From 400f174a41e3b2a268e26db01bbaa812b6be1ea8 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sun, 8 Dec 2019 00:36:52 +0000 Subject: [PATCH] Autogenerated update (2019-12-08) Update: - dataproc_v1 - dataproc_v1beta2 --- generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 51 ++++++++++++++++--- .../apis/dataproc_v1/representations.rb | 17 +++++++ generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 14 ++--- .../google/apis/dataproc_v1beta2/service.rb | 24 ++++----- 6 files changed, 82 insertions(+), 28 deletions(-) diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index e0cbbf1cc..6bd2f1a2a 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 = '20191031' + REVISION = '20191120' # 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 6f9dccf82..ee2e203e6 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -864,6 +864,11 @@ module Google # @return [String] attr_accessor :network_uri + # Reservation Affinity for consuming Zonal reservation. + # Corresponds to the JSON property `reservationAffinity` + # @return [Google::Apis::DataprocV1::ReservationAffinity] + attr_accessor :reservation_affinity + # Optional. The service account of the instances. Defaults to the default # Compute Engine service account. Custom service accounts need permissions # equivalent to the following IAM roles: @@ -926,6 +931,7 @@ module Google @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only) @metadata = args[:metadata] if args.key?(:metadata) @network_uri = args[:network_uri] if args.key?(:network_uri) + @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @service_account = args[:service_account] if args.key?(:service_account) @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes) @subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri) @@ -2250,8 +2256,8 @@ module Google # the request to setIamPolicy to ensure that their change will be applied to the # same version of the policy.If no etag is provided in the call to setIamPolicy, # then the existing policy is overwritten. Due to blind-set semantics of an etag- - # less policy, 'setIamPolicy' will not fail even if either of incoming or stored - # policy does not meet the version requirements. + # less policy, 'setIamPolicy' will not fail even if the incoming policy version + # does not meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2260,11 +2266,11 @@ module Google # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests # specifying an invalid value will be rejected.Operations affecting conditional # bindings must specify version 3. This can be either setting a conditional - # policy, modifying a conditional binding, or removing a conditional binding - # from the stored conditional policy. Operations on non-conditional policies may - # specify any valid value or leave the field unset.If no etag is provided in the - # call to setIamPolicy, any version compliance checks on the incoming and/or - # stored policy is skipped. + # policy, modifying a conditional binding, or removing a binding (conditional or + # unconditional) from the stored conditional policy. Operations on non- + # conditional policies may specify any valid value or leave the field unset.If + # no etag is provided in the call to setIamPolicy, version compliance checks + # against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2405,6 +2411,37 @@ module Google end end + # Reservation Affinity for consuming Zonal reservation. + class ReservationAffinity + include Google::Apis::Core::Hashable + + # Optional. Type of reservation to consume + # Corresponds to the JSON property `consumeReservationType` + # @return [String] + attr_accessor :consume_reservation_type + + # Optional. Corresponds to the label key of reservation resource. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Optional. Corresponds to the label values of reservation resource. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type) + @key = args[:key] if args.key?(:key) + @values = args[:values] if args.key?(:values) + end + end + # Security related configuration, including Kerberos. class SecurityConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 570fc865c..58af816fe 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -340,6 +340,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ReservationAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SecurityConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -670,6 +676,8 @@ module Google property :internal_ip_only, as: 'internalIpOnly' hash :metadata, as: 'metadata' property :network_uri, as: 'networkUri' + property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::DataprocV1::ReservationAffinity, decorator: Google::Apis::DataprocV1::ReservationAffinity::Representation + property :service_account, as: 'serviceAccount' collection :service_account_scopes, as: 'serviceAccountScopes' property :subnetwork_uri, as: 'subnetworkUri' @@ -1034,6 +1042,15 @@ module Google end end + class ReservationAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consume_reservation_type, as: 'consumeReservationType' + property :key, as: 'key' + collection :values, as: 'values' + end + end + class SecurityConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index d8001cd02..69fa1d71a 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 = '20191031' + REVISION = '20191120' # 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 ce83ac884..ef0206a01 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -2314,8 +2314,8 @@ module Google # the request to setIamPolicy to ensure that their change will be applied to the # same version of the policy.If no etag is provided in the call to setIamPolicy, # then the existing policy is overwritten. Due to blind-set semantics of an etag- - # less policy, 'setIamPolicy' will not fail even if either of incoming or stored - # policy does not meet the version requirements. + # less policy, 'setIamPolicy' will not fail even if the incoming policy version + # does not meet the requirements for modifying the stored policy. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2324,11 +2324,11 @@ module Google # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests # specifying an invalid value will be rejected.Operations affecting conditional # bindings must specify version 3. This can be either setting a conditional - # policy, modifying a conditional binding, or removing a conditional binding - # from the stored conditional policy. Operations on non-conditional policies may - # specify any valid value or leave the field unset.If no etag is provided in the - # call to setIamPolicy, any version compliance checks on the incoming and/or - # stored policy is skipped. + # policy, modifying a conditional binding, or removing a binding (conditional or + # unconditional) from the stored conditional policy. Operations on non- + # conditional policies may specify any valid value or leave the field unset.If + # no etag is provided in the call to setIamPolicy, version compliance checks + # against the stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version diff --git a/generated/google/apis/dataproc_v1beta2/service.rb b/generated/google/apis/dataproc_v1beta2/service.rb index f333ac175..b9d807853 100644 --- a/generated/google/apis/dataproc_v1beta2/service.rb +++ b/generated/google/apis/dataproc_v1beta2/service.rb @@ -1119,7 +1119,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_region_cluster(project_id, region, cluster_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/clusters', options) + command = make_simple_command(:post, 'v1beta2/projects/{+projectId}/regions/{+region}/clusters', options) command.request_representation = Google::Apis::DataprocV1beta2::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation @@ -1170,7 +1170,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_region_cluster(project_id, region, cluster_name, cluster_uuid: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) + command = make_simple_command(:delete, 'v1beta2/projects/{+projectId}/regions/{+region}/clusters/{+clusterName}', options) command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation command.response_class = Google::Apis::DataprocV1beta2::Operation command.params['projectId'] = project_id unless project_id.nil? @@ -1212,7 +1212,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options) + command = make_simple_command(:post, 'v1beta2/projects/{+projectId}/regions/{+region}/clusters/{+clusterName}:diagnose', options) command.request_representation = Google::Apis::DataprocV1beta2::DiagnoseClusterRequest::Representation command.request_object = diagnose_cluster_request_object command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation @@ -1251,7 +1251,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_region_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) + command = make_simple_command(:get, 'v1beta2/projects/{+projectId}/regions/{+region}/clusters/{+clusterName}', options) command.response_representation = Google::Apis::DataprocV1beta2::Cluster::Representation command.response_class = Google::Apis::DataprocV1beta2::Cluster command.params['projectId'] = project_id unless project_id.nil? @@ -1340,7 +1340,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_region_clusters(project_id, region, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta2/projects/{projectId}/regions/{region}/clusters', options) + command = make_simple_command(:get, 'v1beta2/projects/{+projectId}/regions/{+region}/clusters', options) command.response_representation = Google::Apis::DataprocV1beta2::ListClustersResponse::Representation command.response_class = Google::Apis::DataprocV1beta2::ListClustersResponse command.params['projectId'] = project_id unless project_id.nil? @@ -1450,7 +1450,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_region_cluster(project_id, region, cluster_name, cluster_object = nil, graceful_decommission_timeout: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) + command = make_simple_command(:patch, 'v1beta2/projects/{+projectId}/regions/{+region}/clusters/{+clusterName}', options) command.request_representation = Google::Apis::DataprocV1beta2::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation @@ -1567,7 +1567,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options) + command = make_simple_command(:post, 'v1beta2/projects/{+projectId}/regions/{+region}/jobs/{+jobId}:cancel', options) command.request_representation = Google::Apis::DataprocV1beta2::CancelJobRequest::Representation command.request_object = cancel_job_request_object command.response_representation = Google::Apis::DataprocV1beta2::Job::Representation @@ -1606,7 +1606,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_region_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}', options) + command = make_simple_command(:delete, 'v1beta2/projects/{+projectId}/regions/{+region}/jobs/{+jobId}', options) command.response_representation = Google::Apis::DataprocV1beta2::Empty::Representation command.response_class = Google::Apis::DataprocV1beta2::Empty command.params['projectId'] = project_id unless project_id.nil? @@ -1642,7 +1642,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_region_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}', options) + command = make_simple_command(:get, 'v1beta2/projects/{+projectId}/regions/{+region}/jobs/{+jobId}', options) command.response_representation = Google::Apis::DataprocV1beta2::Job::Representation command.response_class = Google::Apis::DataprocV1beta2::Job command.params['projectId'] = project_id unless project_id.nil? @@ -1733,7 +1733,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_region_jobs(project_id, region, cluster_name: nil, filter: nil, job_state_matcher: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta2/projects/{projectId}/regions/{region}/jobs', options) + command = make_simple_command(:get, 'v1beta2/projects/{+projectId}/regions/{+region}/jobs', options) command.response_representation = Google::Apis::DataprocV1beta2::ListJobsResponse::Representation command.response_class = Google::Apis::DataprocV1beta2::ListJobsResponse command.params['projectId'] = project_id unless project_id.nil? @@ -1780,7 +1780,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}', options) + command = make_simple_command(:patch, 'v1beta2/projects/{+projectId}/regions/{+region}/jobs/{+jobId}', options) command.request_representation = Google::Apis::DataprocV1beta2::Job::Representation command.request_object = job_object command.response_representation = Google::Apis::DataprocV1beta2::Job::Representation @@ -1854,7 +1854,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/jobs:submit', options) + command = make_simple_command(:post, 'v1beta2/projects/{+projectId}/regions/{+region}/jobs:submit', options) command.request_representation = Google::Apis::DataprocV1beta2::SubmitJobRequest::Representation command.request_object = submit_job_request_object command.response_representation = Google::Apis::DataprocV1beta2::Job::Representation