Autogenerated update (2019-07-12)
Update: - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - dataproc_v1 - dataproc_v1beta2 - fcm_v1 - iamcredentials_v1 - pubsub_v1 - pubsub_v1beta2 - run_v1alpha1 - videointelligence_v1
This commit is contained in:
parent
495e7d3658
commit
aeb54f610d
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||
module ContaineranalysisV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20190625'
|
||||
REVISION = '20190627'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1085,12 +1085,40 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
# Corresponds to the JSON property `options`
|
||||
# @return [Google::Apis::ContaineranalysisV1alpha1::GetPolicyOptions]
|
||||
attr_accessor :options
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@options = args[:options] if args.key?(:options)
|
||||
end
|
||||
end
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
class GetPolicyOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0 and 1.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -178,6 +178,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetVulnzOccurrencesSummaryResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -676,6 +682,15 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :options, as: 'options', class: Google::Apis::ContaineranalysisV1alpha1::GetPolicyOptions, decorator: Google::Apis::ContaineranalysisV1alpha1::GetPolicyOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_policy_version, as: 'requestedPolicyVersion'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||
module ContaineranalysisV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190604'
|
||||
REVISION = '20190627'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1343,12 +1343,40 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
# Corresponds to the JSON property `options`
|
||||
# @return [Google::Apis::ContaineranalysisV1beta1::GetPolicyOptions]
|
||||
attr_accessor :options
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@options = args[:options] if args.key?(:options)
|
||||
end
|
||||
end
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
class GetPolicyOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0 and 1.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -226,6 +226,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GitSourceContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -813,6 +819,15 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :options, as: 'options', class: Google::Apis::ContaineranalysisV1beta1::GetPolicyOptions, decorator: Google::Apis::ContaineranalysisV1beta1::GetPolicyOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_policy_version, as: 'requestedPolicyVersion'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/dataproc/
|
||||
module DataprocV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190606'
|
||||
REVISION = '20190627'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -758,12 +758,39 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
# Corresponds to the JSON property `options`
|
||||
# @return [Google::Apis::DataprocV1::GetPolicyOptions]
|
||||
attr_accessor :options
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@options = args[:options] if args.key?(:options)
|
||||
end
|
||||
end
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
class GetPolicyOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -136,6 +136,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -582,6 +588,15 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :options, as: 'options', class: Google::Apis::DataprocV1::GetPolicyOptions, decorator: Google::Apis::DataprocV1::GetPolicyOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_policy_version, as: 'requestedPolicyVersion'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -47,114 +47,6 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets the access control policy for a resource. Returns an empty policy if the
|
||||
# resource exists and does not have a policy set.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_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::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Policy]
|
||||
#
|
||||
# @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 get_project_location_autoscaling_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
|
||||
command.request_object = get_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_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::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Policy]
|
||||
#
|
||||
# @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 set_project_location_autoscaling_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns permissions that a caller has on the specified resource. If the
|
||||
# resource does not exist, this will return an empty set of permissions, not a
|
||||
# NOT_FOUND error.Note: This operation is designed to be used for building
|
||||
# permission-aware UIs and command-line tools, not for authorization checking.
|
||||
# This operation may "fail open" without warning.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_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::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @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 test_project_location_autoscaling_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates new workflow template.
|
||||
# @param [String] parent
|
||||
# Required. The "resource name" of the region, as described in https://cloud.
|
||||
|
@ -538,114 +430,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the access control policy for a resource. Returns an empty policy if the
|
||||
# resource exists and does not have a policy set.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_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::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Policy]
|
||||
#
|
||||
# @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 get_project_region_autoscaling_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
|
||||
command.request_object = get_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_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::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Policy]
|
||||
#
|
||||
# @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 set_project_region_autoscaling_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns permissions that a caller has on the specified resource. If the
|
||||
# resource does not exist, this will return an empty set of permissions, not a
|
||||
# NOT_FOUND error.Note: This operation is designed to be used for building
|
||||
# permission-aware UIs and command-line tools, not for authorization checking.
|
||||
# This operation may "fail open" without warning.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_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::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @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 test_project_region_autoscaling_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a cluster in a project.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/dataproc/
|
||||
module DataprocV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20190606'
|
||||
REVISION = '20190627'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -972,12 +972,39 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
# Corresponds to the JSON property `options`
|
||||
# @return [Google::Apis::DataprocV1beta2::GetPolicyOptions]
|
||||
attr_accessor :options
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@options = args[:options] if args.key?(:options)
|
||||
end
|
||||
end
|
||||
|
||||
# Encapsulates settings provided to GetIamPolicy.
|
||||
class GetPolicyOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# Corresponds to the JSON property `requestedPolicyVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :requested_policy_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -166,6 +166,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -705,6 +711,15 @@ module Google
|
|||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :options, as: 'options', class: Google::Apis::DataprocV1beta2::GetPolicyOptions, decorator: Google::Apis::DataprocV1beta2::GetPolicyOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GetPolicyOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_policy_version, as: 'requestedPolicyVersion'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -152,6 +152,10 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -169,11 +173,12 @@ module Google
|
|||
# @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 get_project_location_autoscaling_policy_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_location_autoscaling_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -442,6 +447,10 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -459,11 +468,12 @@ module Google
|
|||
# @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 get_project_location_workflow_template_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_location_workflow_template_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -816,6 +826,10 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -833,11 +847,12 @@ module Google
|
|||
# @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 get_autoscaling_policy_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_autoscaling_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -1171,6 +1186,10 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1188,11 +1207,12 @@ module Google
|
|||
# @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 get_project_region_cluster_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_region_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -1554,6 +1574,10 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1571,11 +1595,12 @@ module Google
|
|||
# @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 get_project_region_job_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_region_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -1899,6 +1924,10 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1916,11 +1945,12 @@ module Google
|
|||
# @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 get_project_region_operation_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_region_operation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -2159,6 +2189,10 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested. See the
|
||||
# operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned. Acceptable values are 0
|
||||
# and 1. If the value is 0, or the field is omitted, policy format version 1
|
||||
# will be returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -2176,11 +2210,12 @@ module Google
|
|||
# @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 get_project_region_workflow_template_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_region_workflow_template_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::DataprocV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://firebase.google.com/docs/cloud-messaging
|
||||
module FcmV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190628'
|
||||
REVISION = '20190711'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -170,6 +170,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :icon
|
||||
|
||||
# Contains the URL of an image that is going to be displayed in a
|
||||
# notification. If present, it will override
|
||||
# google.firebase.fcm.v1.Notification.image.
|
||||
# Corresponds to the JSON property `image`
|
||||
# @return [String]
|
||||
attr_accessor :image
|
||||
|
||||
# The sound to play when the device receives the notification.
|
||||
# Supports "default" or the filename of a sound resource bundled in the app.
|
||||
# Sound files must reside in /res/raw/.
|
||||
|
@ -220,6 +227,7 @@ module Google
|
|||
@click_action = args[:click_action] if args.key?(:click_action)
|
||||
@color = args[:color] if args.key?(:color)
|
||||
@icon = args[:icon] if args.key?(:icon)
|
||||
@image = args[:image] if args.key?(:image)
|
||||
@sound = args[:sound] if args.key?(:sound)
|
||||
@tag = args[:tag] if args.key?(:tag)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
|
@ -273,6 +281,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :analytics_label
|
||||
|
||||
# Contains the URL of an image that is going to be displayed in a
|
||||
# notification. If present, it will override
|
||||
# google.firebase.fcm.v1.Notification.image.
|
||||
# Corresponds to the JSON property `image`
|
||||
# @return [String]
|
||||
attr_accessor :image
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -280,6 +295,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@analytics_label = args[:analytics_label] if args.key?(:analytics_label)
|
||||
@image = args[:image] if args.key?(:image)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -388,6 +404,18 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :body
|
||||
|
||||
# Contains the URL of an image that is going to be downloaded on the device
|
||||
# and displayed in a notification.
|
||||
# JPEG, PNG, BMP have full support across platforms. Animated GIF and video
|
||||
# only work on iOS. WebP and HEIF have varying levels of support across
|
||||
# platforms and platform versions.
|
||||
# Android has 1MB image size limit.
|
||||
# Quota usage and implications/costs for hosting image on Firebase Storage:
|
||||
# https://firebase.google.com/pricing
|
||||
# Corresponds to the JSON property `image`
|
||||
# @return [String]
|
||||
attr_accessor :image
|
||||
|
||||
# The notification's title.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
|
@ -400,6 +428,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@body = args[:body] if args.key?(:body)
|
||||
@image = args[:image] if args.key?(:image)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -120,6 +120,7 @@ module Google
|
|||
property :click_action, as: 'clickAction'
|
||||
property :color, as: 'color'
|
||||
property :icon, as: 'icon'
|
||||
property :image, as: 'image'
|
||||
property :sound, as: 'sound'
|
||||
property :tag, as: 'tag'
|
||||
property :title, as: 'title'
|
||||
|
@ -142,6 +143,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :analytics_label, as: 'analyticsLabel'
|
||||
property :image, as: 'image'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -177,6 +179,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :body, as: 'body'
|
||||
property :image, as: 'image'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials
|
||||
module IamcredentialsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190222'
|
||||
REVISION = '20190704'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -154,103 +154,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GenerateIdentityBindingAccessTokenRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. Input token.
|
||||
# Must be in JWT format according to
|
||||
# RFC7523 (https://tools.ietf.org/html/rfc7523)
|
||||
# and must have 'kid' field in the header.
|
||||
# Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon).
|
||||
# Mandatory payload fields (along the lines of RFC 7523, section 3):
|
||||
# - iss: issuer of the token. Must provide a discovery document at
|
||||
# $iss/.well-known/openid-configuration . The document needs to be
|
||||
# formatted according to section 4.2 of the OpenID Connect Discovery
|
||||
# 1.0 specification.
|
||||
# - iat: Issue time in seconds since epoch. Must be in the past.
|
||||
# - exp: Expiration time in seconds since epoch. Must be less than 48 hours
|
||||
# after iat. We recommend to create tokens that last shorter than 6
|
||||
# hours to improve security unless business reasons mandate longer
|
||||
# expiration times. Shorter token lifetimes are generally more secure
|
||||
# since tokens that have been exfiltrated by attackers can be used for
|
||||
# a shorter time. you can configure the maximum lifetime of the
|
||||
# incoming token in the configuration of the mapper.
|
||||
# The resulting Google token will expire within an hour or at "exp",
|
||||
# whichever is earlier.
|
||||
# - sub: JWT subject, identity asserted in the JWT.
|
||||
# - aud: Configured in the mapper policy. By default the service account
|
||||
# email.
|
||||
# Claims from the incoming token can be transferred into the output token
|
||||
# accoding to the mapper configuration. The outgoing claim size is limited.
|
||||
# Outgoing claims size must be less than 4kB serialized as JSON without
|
||||
# whitespace.
|
||||
# Example header:
|
||||
# `
|
||||
# "alg": "RS256",
|
||||
# "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8"
|
||||
# `
|
||||
# Example payload:
|
||||
# `
|
||||
# "iss": "https://accounts.google.com",
|
||||
# "iat": 1517963104,
|
||||
# "exp": 1517966704,
|
||||
# "aud":
|
||||
# "https://iamcredentials.googleapis.com/google.iam.credentials.v1.CloudGaia",
|
||||
# "sub": "113475438248934895348",
|
||||
# "my_claims": `
|
||||
# "additional_claim": "value"
|
||||
# `
|
||||
# `
|
||||
# Corresponds to the JSON property `jwt`
|
||||
# @return [String]
|
||||
attr_accessor :jwt
|
||||
|
||||
# Code to identify the scopes to be included in the OAuth 2.0 access token.
|
||||
# See https://developers.google.com/identity/protocols/googlescopes for more
|
||||
# information.
|
||||
# At least one value required.
|
||||
# Corresponds to the JSON property `scope`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :scope
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@jwt = args[:jwt] if args.key?(:jwt)
|
||||
@scope = args[:scope] if args.key?(:scope)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GenerateIdentityBindingAccessTokenResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The OAuth 2.0 access token.
|
||||
# Corresponds to the JSON property `accessToken`
|
||||
# @return [String]
|
||||
attr_accessor :access_token
|
||||
|
||||
# Token expiration time.
|
||||
# The expiration time is always set.
|
||||
# Corresponds to the JSON property `expireTime`
|
||||
# @return [String]
|
||||
attr_accessor :expire_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@access_token = args[:access_token] if args.key?(:access_token)
|
||||
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SignBlobRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -46,18 +46,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GenerateIdentityBindingAccessTokenRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GenerateIdentityBindingAccessTokenResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignBlobRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -115,22 +103,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GenerateIdentityBindingAccessTokenRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :jwt, as: 'jwt'
|
||||
collection :scope, as: 'scope'
|
||||
end
|
||||
end
|
||||
|
||||
class GenerateIdentityBindingAccessTokenResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :access_token, as: 'accessToken'
|
||||
property :expire_time, as: 'expireTime'
|
||||
end
|
||||
end
|
||||
|
||||
class SignBlobRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -119,42 +119,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
#
|
||||
# @param [String] name
|
||||
# The resource name of the service account for which the credentials
|
||||
# are requested, in the following format:
|
||||
# `projects/-/serviceAccounts/`ACCOUNT_EMAIL_OR_UNIQUEID``. The `-` wildcard
|
||||
# character is required; replacing it with a project ID is invalid.
|
||||
# @param [Google::Apis::IamcredentialsV1::GenerateIdentityBindingAccessTokenRequest] generate_identity_binding_access_token_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::IamcredentialsV1::GenerateIdentityBindingAccessTokenResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamcredentialsV1::GenerateIdentityBindingAccessTokenResponse]
|
||||
#
|
||||
# @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 generate_service_account_identity_binding_access_token(name, generate_identity_binding_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:generateIdentityBindingAccessToken', options)
|
||||
command.request_representation = Google::Apis::IamcredentialsV1::GenerateIdentityBindingAccessTokenRequest::Representation
|
||||
command.request_object = generate_identity_binding_access_token_request_object
|
||||
command.response_representation = Google::Apis::IamcredentialsV1::GenerateIdentityBindingAccessTokenResponse::Representation
|
||||
command.response_class = Google::Apis::IamcredentialsV1::GenerateIdentityBindingAccessTokenResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Signs a blob using a service account's system-managed private key.
|
||||
# @param [String] name
|
||||
# The resource name of the service account for which the credentials
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/pubsub/docs
|
||||
module PubsubV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190619'
|
||||
REVISION = '20190701'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -184,6 +184,11 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0 and 1.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -201,11 +206,12 @@ module Google
|
|||
# @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 get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_snapshot_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
||||
command.response_class = Google::Apis::PubsubV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -527,6 +533,11 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0 and 1.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -544,11 +555,12 @@ module Google
|
|||
# @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 get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_subscription_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
||||
command.response_class = Google::Apis::PubsubV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -970,6 +982,11 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0 and 1.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -987,11 +1004,12 @@ module Google
|
|||
# @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 get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_topic_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
||||
command.response_class = Google::Apis::PubsubV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/pubsub/docs
|
||||
module PubsubV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20190412'
|
||||
REVISION = '20190701'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -198,6 +198,11 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0 and 1.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -215,11 +220,12 @@ module Google
|
|||
# @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 get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_subscription_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::PubsubV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -555,6 +561,11 @@ module Google
|
|||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Acceptable values are 0 and 1.
|
||||
# If the value is 0, or the field is omitted, policy format version 1 will be
|
||||
# returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -572,11 +583,12 @@ module Google
|
|||
# @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 get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_topic_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
|
||||
command.response_class = Google::Apis::PubsubV1beta2::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/run/
|
||||
module RunV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20190701'
|
||||
REVISION = '20190703'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -147,6 +147,14 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :exempted_members
|
||||
|
||||
# Specifies whether principals can be exempted for the same LogType in
|
||||
# lower-level resource policies. If true, any lower-level exemptions will
|
||||
# be ignored.
|
||||
# Corresponds to the JSON property `ignoreChildExemptions`
|
||||
# @return [Boolean]
|
||||
attr_accessor :ignore_child_exemptions
|
||||
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
|
||||
|
||||
# The log type that this config enables.
|
||||
# Corresponds to the JSON property `logType`
|
||||
# @return [String]
|
||||
|
@ -159,6 +167,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
||||
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
|
||||
@log_type = args[:log_type] if args.key?(:log_type)
|
||||
end
|
||||
end
|
||||
|
@ -3865,7 +3874,6 @@ module Google
|
|||
# ready Revision of the Configuration should be used for this traffic
|
||||
# target. When provided LatestRevision must be true if RevisionName is
|
||||
# empty; it must be false when RevisionName is non-empty.
|
||||
# Not currently supported in Cloud Run.
|
||||
# +optional
|
||||
# Corresponds to the JSON property `latestRevision`
|
||||
# @return [Boolean]
|
||||
|
|
|
@ -577,6 +577,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
|
||||
property :log_type, as: 'logType'
|
||||
end
|
||||
end
|
||||
|
@ -888,7 +889,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :int_val, as: 'intVal'
|
||||
property :str_val, as: 'strVal'
|
||||
property :type, :numeric_string => true, as: 'type'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1303,9 +1304,9 @@ module Google
|
|||
|
||||
property :privileged, as: 'privileged'
|
||||
property :read_only_root_filesystem, as: 'readOnlyRootFilesystem'
|
||||
property :run_as_group, :numeric_string => true, as: 'runAsGroup'
|
||||
property :run_as_group, as: 'runAsGroup'
|
||||
property :run_as_non_root, as: 'runAsNonRoot'
|
||||
property :run_as_user, :numeric_string => true, as: 'runAsUser'
|
||||
property :run_as_user, as: 'runAsUser'
|
||||
property :se_linux_options, as: 'seLinuxOptions', class: Google::Apis::RunV1alpha1::SeLinuxOptions, decorator: Google::Apis::RunV1alpha1::SeLinuxOptions::Representation
|
||||
|
||||
end
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/video-intelligence/docs/
|
||||
module VideointelligenceV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190618'
|
||||
REVISION = '20190709'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -49,110 +49,6 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @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::VideointelligenceV1::GoogleProtobufEmpty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::VideointelligenceV1::GoogleProtobufEmpty]
|
||||
#
|
||||
# @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 cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/operations/{+name}:cancel', options)
|
||||
command.response_representation = Google::Apis::VideointelligenceV1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::VideointelligenceV1::GoogleProtobufEmpty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a long-running operation. This method indicates that the client is
|
||||
# no longer interested in the operation result. It does not cancel the
|
||||
# operation. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be deleted.
|
||||
# @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::VideointelligenceV1::GoogleProtobufEmpty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::VideointelligenceV1::GoogleProtobufEmpty]
|
||||
#
|
||||
# @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 delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/operations/{+name}', options)
|
||||
command.response_representation = Google::Apis::VideointelligenceV1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::VideointelligenceV1::GoogleProtobufEmpty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::VideointelligenceV1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::VideointelligenceV1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @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 get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/operations/{+name}', options)
|
||||
command.response_representation = Google::Apis::VideointelligenceV1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::VideointelligenceV1::GoogleLongrunningOperation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
|
|
Loading…
Reference in New Issue