diff --git a/api_names_out.yaml b/api_names_out.yaml index 0a1a3b2ef..d0d86d324 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -66375,6 +66375,9 @@ "/dataproc:v1beta2/HiveJob/queryList": query_list "/dataproc:v1beta2/HiveJob/scriptVariables": script_variables "/dataproc:v1beta2/HiveJob/scriptVariables/script_variable": script_variable +"/dataproc:v1beta2/InjectCredentialsRequest": inject_credentials_request +"/dataproc:v1beta2/InjectCredentialsRequest/clusterUuid": cluster_uuid +"/dataproc:v1beta2/InjectCredentialsRequest/credentialsCiphertext": credentials_ciphertext "/dataproc:v1beta2/InstanceGroupAutoscalingPolicyConfig": instance_group_autoscaling_policy_config "/dataproc:v1beta2/InstanceGroupAutoscalingPolicyConfig/maxInstances": max_instances "/dataproc:v1beta2/InstanceGroupAutoscalingPolicyConfig/minInstances": min_instances @@ -66800,6 +66803,10 @@ "/dataproc:v1beta2/dataproc.projects.regions.clusters.getIamPolicy": get_project_region_cluster_iam_policy "/dataproc:v1beta2/dataproc.projects.regions.clusters.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version "/dataproc:v1beta2/dataproc.projects.regions.clusters.getIamPolicy/resource": resource +"/dataproc:v1beta2/dataproc.projects.regions.clusters.injectCredentials": inject_cluster_credentials +"/dataproc:v1beta2/dataproc.projects.regions.clusters.injectCredentials/cluster": cluster +"/dataproc:v1beta2/dataproc.projects.regions.clusters.injectCredentials/project": project +"/dataproc:v1beta2/dataproc.projects.regions.clusters.injectCredentials/region": region "/dataproc:v1beta2/dataproc.projects.regions.clusters.list": list_project_region_clusters "/dataproc:v1beta2/dataproc.projects.regions.clusters.list/filter": filter "/dataproc:v1beta2/dataproc.projects.regions.clusters.list/pageSize": page_size diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 7c8223b26..8395fc5fa 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20201120' + REVISION = '20201210' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index 295b8d347..5a5e11591 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -1240,6 +1240,34 @@ module Google end end + # A request to inject credentials into a cluster. + class InjectCredentialsRequest + include Google::Apis::Core::Hashable + + # Required. The cluster UUID. + # Corresponds to the JSON property `clusterUuid` + # @return [String] + attr_accessor :cluster_uuid + + # Required. The encrypted credentials being injected in to the cluster.The + # client is responsible for encrypting the credentials in a way that is + # supported by the cluster.A wrapped value is used here so that the actual + # contents of the encrypted credentials are not written to audit logs. + # Corresponds to the JSON property `credentialsCiphertext` + # @return [String] + attr_accessor :credentials_ciphertext + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) + @credentials_ciphertext = args[:credentials_ciphertext] if args.key?(:credentials_ciphertext) + end + end + # Configuration for the size bounds of an instance group, including its # proportional size to other groups. class InstanceGroupAutoscalingPolicyConfig @@ -1739,7 +1767,7 @@ module Google # Optional. Maximum number of times in total a driver may be restarted as a # result of driver exiting with non-zero code before job is reported failed. - # Maximum value is 240 + # Maximum value is 240. # Corresponds to the JSON property `maxFailuresTotal` # @return [Fixnum] attr_accessor :max_failures_total diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index 3b521957a..86c0fd4ed 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -190,6 +190,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InjectCredentialsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupAutoscalingPolicyConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -823,6 +829,14 @@ module Google end end + class InjectCredentialsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_uuid, as: 'clusterUuid' + property :credentials_ciphertext, as: 'credentialsCiphertext' + end + end + class InstanceGroupAutoscalingPolicyConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1beta2/service.rb b/generated/google/apis/dataproc_v1beta2/service.rb index a0d30575f..1488ae4a5 100644 --- a/generated/google/apis/dataproc_v1beta2/service.rb +++ b/generated/google/apis/dataproc_v1beta2/service.rb @@ -1306,6 +1306,48 @@ module Google execute_or_queue_command(command, &block) end + # Inject encrypted credentials into all of the VMs in a cluster.The target + # cluster must be a personal auth cluster assigned to the user who is issuing + # the RPC. + # @param [String] project + # Required. The ID of the Google Cloud Platform project the cluster belongs to, + # of the form projects/. + # @param [String] region + # Required. The region containing the cluster, of the form regions/. + # @param [String] cluster + # Required. The cluster, in the form clusters/. + # @param [Google::Apis::DataprocV1beta2::InjectCredentialsRequest] inject_credentials_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def inject_cluster_credentials(project, region, cluster, inject_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+project}/{+region}/{+cluster}:injectCredentials', options) + command.request_representation = Google::Apis::DataprocV1beta2::InjectCredentialsRequest::Representation + command.request_object = inject_credentials_request_object + command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation + command.response_class = Google::Apis::DataprocV1beta2::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['cluster'] = cluster unless cluster.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists all regions/`region`/clusters in a project alphabetically. # @param [String] project_id # Required. The ID of the Google Cloud Platform project that the cluster belongs diff --git a/generated/google/apis/dataproc_v1beta2/synth.metadata b/generated/google/apis/dataproc_v1beta2/synth.metadata index 6411dc013..840b738d6 100644 --- a/generated/google/apis/dataproc_v1beta2/synth.metadata +++ b/generated/google/apis/dataproc_v1beta2/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "949844223ecbdb701c9f0062f48bfefe5391ea7c" + "sha": "033efab58aeef5d2b0ba4e8d75d0caf227dfbd5e" } } ]