Autogenerated update (2019-04-27)
Update: - bigtableadmin_v2 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - dataflow_v1b3 - doubleclickbidmanager_v1 - jobs_v2 - jobs_v3 - jobs_v3p1beta1 - servicecontrol_v1 - testing_v1
This commit is contained in:
1 parent
d2d592ceb6
commit
99be4b4eb5
25 files changed
+495
-77
No files matched your search
@@ -836,6 +836,19 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Response from deleting a snapshot.
|
||||
class DeleteSnapshotResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Specification of one of the bundles produced as a result of splitting
|
||||
# a Source (e.g. when executing a SourceSplitRequest, or when
|
||||
# splitting an active task using WorkItemStatus.dynamic_source_split),
|
||||
@@ -2377,6 +2390,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# List of snapshots.
|
||||
class ListSnapshotsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Returned snapshots.
|
||||
# Corresponds to the JSON property `snapshots`
|
||||
# @return [Array<Google::Apis::DataflowV1b3::Snapshot>]
|
||||
attr_accessor :snapshots
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@snapshots = args[:snapshots] if args.key?(:snapshots)
|
||||
end
|
||||
end
|
||||
|
||||
# MapTask consists of an ordered set of instructions, each of which
|
||||
# describes one particular low-level operation for the worker to
|
||||
# perform in order to accomplish the MapTask's WorkItem.
|
||||
@@ -3283,7 +3315,11 @@ module Google
|
||||
# @return [Array<String>]
|
||||
attr_accessor :additional_experiments
|
||||
|
||||
# Additional user labels attached to the job.
|
||||
# Additional user labels to be specified for the job.
|
||||
# Keys and values should follow the restrictions specified in the [labeling
|
||||
# restrictions](https://cloud.google.com/compute/docs/labeling-resources#
|
||||
# restrictions)
|
||||
# page.
|
||||
# Corresponds to the JSON property `additionalUserLabels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :additional_user_labels
|
||||
@@ -4999,6 +5035,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Response to the validation request.
|
||||
class ValidateResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Will be empty if validation succeeds.
|
||||
# Corresponds to the JSON property `errorMessage`
|
||||
# @return [String]
|
||||
attr_accessor :error_message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@error_message = args[:error_message] if args.key?(:error_message)
|
||||
end
|
||||
end
|
||||
|
||||
# WorkItem represents basic information about a WorkItem to be executed
|
||||
# in the cloud.
|
||||
class WorkItem
|
||||
|
||||
@@ -142,6 +142,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeleteSnapshotResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DerivedSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -358,6 +364,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListSnapshotsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MapTask
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -766,6 +778,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ValidateResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WorkItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1077,6 +1095,12 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class DeleteSnapshotResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class DerivedSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1476,6 +1500,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ListSnapshotsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :snapshots, as: 'snapshots', class: Google::Apis::DataflowV1b3::Snapshot, decorator: Google::Apis::DataflowV1b3::Snapshot::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class MapTask
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2183,6 +2215,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ValidateResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :error_message, as: 'errorMessage'
|
||||
end
|
||||
end
|
||||
|
||||
class WorkItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -47,6 +47,42 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Deletes a snapshot.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the snapshot belongs to.
|
||||
# @param [String] location
|
||||
# The location that contains this snapshot.
|
||||
# @param [String] snapshot_id
|
||||
# The ID of the snapshot.
|
||||
# @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::DataflowV1b3::DeleteSnapshotResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::DeleteSnapshotResponse]
|
||||
#
|
||||
# @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_project_snapshots(project_id, location: nil, snapshot_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1b3/projects/{projectId}/snapshots', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::DeleteSnapshotResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::DeleteSnapshotResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['snapshotId'] = snapshot_id unless snapshot_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Send a worker_message to the service.
|
||||
# @param [String] project_id
|
||||
# The project to send the WorkerMessages to.
|
||||
@@ -1167,6 +1203,152 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a snapshot.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the snapshot belongs to.
|
||||
# @param [String] location
|
||||
# The location that contains this snapshot.
|
||||
# @param [String] snapshot_id
|
||||
# The ID of the snapshot.
|
||||
# @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::DataflowV1b3::DeleteSnapshotResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::DeleteSnapshotResponse]
|
||||
#
|
||||
# @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_project_location_snapshot(project_id, location, snapshot_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::DeleteSnapshotResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::DeleteSnapshotResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.params['snapshotId'] = snapshot_id unless snapshot_id.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 information about a snapshot.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the snapshot belongs to.
|
||||
# @param [String] location
|
||||
# The location that contains this snapshot.
|
||||
# @param [String] snapshot_id
|
||||
# The ID of the snapshot.
|
||||
# @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::DataflowV1b3::Snapshot] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::Snapshot]
|
||||
#
|
||||
# @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_snapshot(project_id, location, snapshot_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Snapshot
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.params['snapshotId'] = snapshot_id unless snapshot_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists snapshots.
|
||||
# @param [String] project_id
|
||||
# The project ID to list snapshots for.
|
||||
# @param [String] location
|
||||
# The location to list snapshots in.
|
||||
# @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::DataflowV1b3::ListSnapshotsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::ListSnapshotsResponse]
|
||||
#
|
||||
# @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 list_project_location_snapshots(project_id, location, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/snapshots', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Validates a GoogleSQL query for Cloud Dataflow syntax. Will always
|
||||
# confirm the given query parses correctly, and if able to look up
|
||||
# schema information from DataCatalog, will validate that the query
|
||||
# analyzes properly as well.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The [regional endpoint]
|
||||
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
|
||||
# which to direct the request.
|
||||
# @param [String] query
|
||||
# The sql query to validate.
|
||||
# @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::DataflowV1b3::ValidateResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::ValidateResponse]
|
||||
#
|
||||
# @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 validate_project_location_sql(project_id, location, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/sql:validate', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::ValidateResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::ValidateResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['query'] = query unless query.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 Cloud Dataflow job from a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
@@ -1303,6 +1485,75 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets information about a snapshot.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the snapshot belongs to.
|
||||
# @param [String] snapshot_id
|
||||
# The ID of the snapshot.
|
||||
# @param [String] location
|
||||
# The location that contains this snapshot.
|
||||
# @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::DataflowV1b3::Snapshot] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::Snapshot]
|
||||
#
|
||||
# @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(project_id, snapshot_id, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/snapshots/{snapshotId}', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Snapshot
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['snapshotId'] = snapshot_id unless snapshot_id.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists snapshots.
|
||||
# @param [String] project_id
|
||||
# The project ID to list snapshots for.
|
||||
# @param [String] location
|
||||
# The location to list snapshots in.
|
||||
# @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::DataflowV1b3::ListSnapshotsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::ListSnapshotsResponse]
|
||||
#
|
||||
# @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 list_project_snapshots(project_id, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/snapshots', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::ListSnapshotsResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::ListSnapshotsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['location'] = location unless location.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 Cloud Dataflow job from a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
|
||||
Reference in new issue
Block a user