Skip to content

Commit

Permalink
feat: Automated regeneration of dataform v1beta1 client (#15966)
Browse files Browse the repository at this point in the history
Auto-created at 2023-08-27 10:26:00 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Aug 27, 2023
1 parent 5919398 commit ee9f6d7
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 2 deletions.
4 changes: 4 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125177,6 +125177,7 @@
"/dataform:v1beta1/GitRemoteSettings": git_remote_settings
"/dataform:v1beta1/GitRemoteSettings/authenticationTokenSecretVersion": authentication_token_secret_version
"/dataform:v1beta1/GitRemoteSettings/defaultBranch": default_branch
"/dataform:v1beta1/GitRemoteSettings/sshAuthenticationConfig": ssh_authentication_config
"/dataform:v1beta1/GitRemoteSettings/tokenStatus": token_status
"/dataform:v1beta1/GitRemoteSettings/url": url
"/dataform:v1beta1/IncrementalTableConfig": incremental_table_config
Expand Down Expand Up @@ -125377,6 +125378,9 @@
"/dataform:v1beta1/ScheduledReleaseRecord/releaseTime": release_time
"/dataform:v1beta1/SetIamPolicyRequest": set_iam_policy_request
"/dataform:v1beta1/SetIamPolicyRequest/policy": policy
"/dataform:v1beta1/SshAuthenticationConfig": ssh_authentication_config
"/dataform:v1beta1/SshAuthenticationConfig/hostPublicKey": host_public_key
"/dataform:v1beta1/SshAuthenticationConfig/userPrivateKeySecretVersion": user_private_key_secret_version
"/dataform:v1beta1/Status": status
"/dataform:v1beta1/Status/code": code
"/dataform:v1beta1/Status/details": details
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-dataform_v1beta1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-dataform_v1beta1

### v0.14.0 (2023-08-27)

* Regenerated from discovery document revision 20230812

### v0.13.0 (2023-08-13)

* Regenerated from discovery document revision 20230805
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,11 @@ class GitRemoteSettings
# @return [String]
attr_accessor :default_branch

# Configures fields for performing SSH authentication.
# Corresponds to the JSON property `sshAuthenticationConfig`
# @return [Google::Apis::DataformV1beta1::SshAuthenticationConfig]
attr_accessor :ssh_authentication_config

# Output only. Deprecated: The field does not contain any token status
# information. Instead use https://cloud.google.com/dataform/reference/rest/
# v1beta1/projects.locations.repositories/computeAccessTokenStatus
Expand All @@ -915,6 +920,7 @@ def initialize(**args)
def update!(**args)
@authentication_token_secret_version = args[:authentication_token_secret_version] if args.key?(:authentication_token_secret_version)
@default_branch = args[:default_branch] if args.key?(:default_branch)
@ssh_authentication_config = args[:ssh_authentication_config] if args.key?(:ssh_authentication_config)
@token_status = args[:token_status] if args.key?(:token_status)
@url = args[:url] if args.key?(:url)
end
Expand Down Expand Up @@ -2317,6 +2323,34 @@ def update!(**args)
end
end

# Configures fields for performing SSH authentication.
class SshAuthenticationConfig
include Google::Apis::Core::Hashable

# Required. Content of a public SSH key to verify an identity of a remote Git
# host.
# Corresponds to the JSON property `hostPublicKey`
# @return [String]
attr_accessor :host_public_key

# Required. The name of the Secret Manager secret version to use as a ssh
# private key for Git operations. Must be in the format `projects/*/secrets/*/
# versions/*`.
# Corresponds to the JSON property `userPrivateKeySecretVersion`
# @return [String]
attr_accessor :user_private_key_secret_version

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@host_public_key = args[:host_public_key] if args.key?(:host_public_key)
@user_private_key_secret_version = args[:user_private_key_secret_version] if args.key?(:user_private_key_secret_version)
end
end

# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module DataformV1beta1
# Version of the google-apis-dataform_v1beta1 gem
GEM_VERSION = "0.13.0"
GEM_VERSION = "0.14.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.12.0"

# Revision of the discovery document this client was generated from
REVISION = "20230805"
REVISION = "20230812"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class SshAuthenticationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Status
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -757,6 +763,8 @@ class GitRemoteSettings
class Representation < Google::Apis::Core::JsonRepresentation
property :authentication_token_secret_version, as: 'authenticationTokenSecretVersion'
property :default_branch, as: 'defaultBranch'
property :ssh_authentication_config, as: 'sshAuthenticationConfig', class: Google::Apis::DataformV1beta1::SshAuthenticationConfig, decorator: Google::Apis::DataformV1beta1::SshAuthenticationConfig::Representation

property :token_status, as: 'tokenStatus'
property :url, as: 'url'
end
Expand Down Expand Up @@ -1145,6 +1153,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SshAuthenticationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host_public_key, as: 'hostPublicKey'
property :user_private_key_secret_version, as: 'userPrivateKeySecretVersion'
end
end

class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit ee9f6d7

Please sign in to comment.