Autogenerated update (2019-12-08)

Update:
- dataproc_v1
- dataproc_v1beta2
This commit is contained in:
Google APIs 2019-12-08 00:36:52 +00:00
parent f5be88af32
commit 400f174a41
6 changed files with 82 additions and 28 deletions

View File

@ -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'

View File

@ -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<String>]
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

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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