diff --git a/api_names_out.yaml b/api_names_out.yaml index b955a73b9..e57181487 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -65692,6 +65692,9 @@ "/dataproc:v1/HiveJob/queryList": query_list "/dataproc:v1/HiveJob/scriptVariables": script_variables "/dataproc:v1/HiveJob/scriptVariables/script_variable": script_variable +"/dataproc:v1/InjectCredentialsRequest": inject_credentials_request +"/dataproc:v1/InjectCredentialsRequest/clusterUuid": cluster_uuid +"/dataproc:v1/InjectCredentialsRequest/credentialsCiphertext": credentials_ciphertext "/dataproc:v1/InstanceGroupAutoscalingPolicyConfig": instance_group_autoscaling_policy_config "/dataproc:v1/InstanceGroupAutoscalingPolicyConfig/maxInstances": max_instances "/dataproc:v1/InstanceGroupAutoscalingPolicyConfig/minInstances": min_instances @@ -66099,6 +66102,10 @@ "/dataproc:v1/dataproc.projects.regions.clusters.get/region": region "/dataproc:v1/dataproc.projects.regions.clusters.getIamPolicy": get_cluster_iam_policy "/dataproc:v1/dataproc.projects.regions.clusters.getIamPolicy/resource": resource +"/dataproc:v1/dataproc.projects.regions.clusters.injectCredentials": inject_cluster_credentials +"/dataproc:v1/dataproc.projects.regions.clusters.injectCredentials/cluster": cluster +"/dataproc:v1/dataproc.projects.regions.clusters.injectCredentials/project": project +"/dataproc:v1/dataproc.projects.regions.clusters.injectCredentials/region": region "/dataproc:v1/dataproc.projects.regions.clusters.list": list_clusters "/dataproc:v1/dataproc.projects.regions.clusters.list/filter": filter "/dataproc:v1/dataproc.projects.regions.clusters.list/pageSize": page_size diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index 6b36fe4fb..efe2cb0d4 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - 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_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index e37871cc1..a2f4796a6 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -1211,6 +1211,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 @@ -1694,7 +1722,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_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 413c8e2b9..c01879c37 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -184,6 +184,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 @@ -781,6 +787,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_v1/service.rb b/generated/google/apis/dataproc_v1/service.rb index 11151a6c9..cf3b7b680 100644 --- a/generated/google/apis/dataproc_v1/service.rb +++ b/generated/google/apis/dataproc_v1/service.rb @@ -1285,6 +1285,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::DataprocV1::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::DataprocV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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, 'v1/{+project}/{+region}/{+cluster}:injectCredentials', options) + command.request_representation = Google::Apis::DataprocV1::InjectCredentialsRequest::Representation + command.request_object = inject_credentials_request_object + command.response_representation = Google::Apis::DataprocV1::Operation::Representation + command.response_class = Google::Apis::DataprocV1::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_v1/synth.metadata b/generated/google/apis/dataproc_v1/synth.metadata index 6411dc013..e0da85f30 100644 --- a/generated/google/apis/dataproc_v1/synth.metadata +++ b/generated/google/apis/dataproc_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "949844223ecbdb701c9f0062f48bfefe5391ea7c" + "sha": "3eb7b044d3605c38773a6c874a3f1826f98701f9" } } ]