Autogenerated update (2020-07-21)

Update:
- appengine_v1
- appengine_v1beta
- bigtableadmin_v1
- bigtableadmin_v2
- displayvideo_v1
- gmailpostmastertools_v1beta1
- people_v1
- realtimebidding_v1
- serviceconsumermanagement_v1
- spanner_v1
- webfonts_v1
- youtube_partner_v1
- youtube_v3
This commit is contained in:
Google APIs committed 2020-07-21 00:38:15 +00:00
1 parent cc35f161bb
commit 33bbd8c955
31 files changed
+4637 -4904

No files matched your search

@@ -196,6 +196,119 @@ module Google
end
end
# A backup of a Cloud Bigtable table.
class Backup
include Google::Apis::Core::Hashable
# Output only. `end_time` is the time that the backup was finished. The row
# data in the backup will be no newer than this timestamp.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Required. The expiration time of the backup, with microseconds
# granularity that must be at least 6 hours and at most 30 days
# from the time the request is received. Once the `expire_time`
# has passed, Cloud Bigtable will delete the backup and free the
# resources used by the backup.
# Corresponds to the JSON property `expireTime`
# @return [String]
attr_accessor :expire_time
# A globally unique identifier for the backup which cannot be
# changed. Values are of the form
# `projects/`project`/instances/`instance`/clusters/`cluster`/
# backups/_a-zA-Z0-9*`
# The final segment of the name must be between 1 and 50 characters
# in length.
# The backup is stored in the cluster identified by the prefix of the backup
# name of the form
# `projects/`project`/instances/`instance`/clusters/`cluster``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Size of the backup in bytes.
# Corresponds to the JSON property `sizeBytes`
# @return [Fixnum]
attr_accessor :size_bytes
# Required. Immutable. Name of the table from which this backup was created.
# This needs
# to be in the same instance as the backup. Values are of the form
# `projects/`project`/instances/`instance`/tables/`source_table``.
# Corresponds to the JSON property `sourceTable`
# @return [String]
attr_accessor :source_table
# Output only. `start_time` is the time that the backup was started
# (i.e. approximately the time the
# CreateBackup request is received). The
# row data in this backup will be no older than this timestamp.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Output only. The current state of the backup.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@expire_time = args[:expire_time] if args.key?(:expire_time)
@name = args[:name] if args.key?(:name)
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
@source_table = args[:source_table] if args.key?(:source_table)
@start_time = args[:start_time] if args.key?(:start_time)
@state = args[:state] if args.key?(:state)
end
end
# Information about a backup.
class BackupInfo
include Google::Apis::Core::Hashable
# Output only. Name of the backup.
# Corresponds to the JSON property `backup`
# @return [String]
attr_accessor :backup
# Output only. This time that the backup was finished. Row data in the
# backup will be no newer than this timestamp.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Output only. Name of the table the backup was created from.
# Corresponds to the JSON property `sourceTable`
# @return [String]
attr_accessor :source_table
# Output only. The time that the backup was started. Row data in the backup
# will be no older than this timestamp.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@backup = args[:backup] if args.key?(:backup)
@end_time = args[:end_time] if args.key?(:end_time)
@source_table = args[:source_table] if args.key?(:source_table)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
@@ -412,6 +525,44 @@ module Google
end
end
# Metadata type for the operation returned by
# CreateBackup.
class CreateBackupMetadata
include Google::Apis::Core::Hashable
# If set, the time at which this operation finished or was cancelled.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# The name of the backup being created.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The name of the table the backup is created from.
# Corresponds to the JSON property `sourceTable`
# @return [String]
attr_accessor :source_table
# The time at which this operation started.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@name = args[:name] if args.key?(:name)
@source_table = args[:source_table] if args.key?(:source_table)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# The metadata for the Operation returned by CreateCluster.
class CreateClusterMetadata
include Google::Apis::Core::Hashable
@@ -964,6 +1115,33 @@ module Google
end
end
# The response for ListBackups.
class ListBackupsResponse
include Google::Apis::Core::Hashable
# The list of matching backups.
# Corresponds to the JSON property `backups`
# @return [Array<Google::Apis::BigtableadminV2::Backup>]
attr_accessor :backups
# `next_page_token` can be sent in a subsequent
# ListBackups call to fetch more
# of the matching backups.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@backups = args[:backups] if args.key?(:backups)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for BigtableInstanceAdmin.ListClusters.
class ListClustersResponse
include Google::Apis::Core::Hashable
@@ -1304,6 +1482,69 @@ module Google
end
end
# Encapsulates progress related information for a Cloud Bigtable long
# running operation.
class OperationProgress
include Google::Apis::Core::Hashable
# If set, the time at which this operation failed or was completed
# successfully.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Percent completion of the operation.
# Values are between 0 and 100 inclusive.
# Corresponds to the JSON property `progressPercent`
# @return [Fixnum]
attr_accessor :progress_percent
# Time the request was received.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# Metadata type for the long-running operation used to track the progress
# of optimizations performed on a newly restored table. This long-running
# operation is automatically created by the system after the successful
# completion of a table restore, and cannot be cancelled.
class OptimizeRestoredTableMetadata
include Google::Apis::Core::Hashable
# Name of the restored table being optimized.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Encapsulates progress related information for a Cloud Bigtable long
# running operation.
# Corresponds to the JSON property `progress`
# @return [Google::Apis::BigtableadminV2::OperationProgress]
attr_accessor :progress
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@progress = args[:progress] if args.key?(:progress)
end
end
# Request message for BigtableInstanceAdmin.PartialUpdateInstance.
class PartialUpdateInstanceRequest
include Google::Apis::Core::Hashable
@@ -1461,6 +1702,114 @@ module Google
end
end
# Information about a table restore.
class RestoreInfo
include Google::Apis::Core::Hashable
# Information about a backup.
# Corresponds to the JSON property `backupInfo`
# @return [Google::Apis::BigtableadminV2::BackupInfo]
attr_accessor :backup_info
# The type of the restore source.
# Corresponds to the JSON property `sourceType`
# @return [String]
attr_accessor :source_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@backup_info = args[:backup_info] if args.key?(:backup_info)
@source_type = args[:source_type] if args.key?(:source_type)
end
end
# Metadata type for the long-running operation returned by
# RestoreTable.
class RestoreTableMetadata
include Google::Apis::Core::Hashable
# Information about a backup.
# Corresponds to the JSON property `backupInfo`
# @return [Google::Apis::BigtableadminV2::BackupInfo]
attr_accessor :backup_info
# Name of the table being created and restored to.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# If exists, the name of the long-running operation that will be used to
# track the post-restore optimization process to optimize the performance of
# the restored table. The metadata type of the long-running operation is
# OptimizeRestoreTableMetadata. The response type is
# Empty. This long-running operation may be
# automatically created by the system if applicable after the
# RestoreTable long-running operation completes successfully. This operation
# may not be created if the table is already optimized or the restore was
# not successful.
# Corresponds to the JSON property `optimizeTableOperationName`
# @return [String]
attr_accessor :optimize_table_operation_name
# Encapsulates progress related information for a Cloud Bigtable long
# running operation.
# Corresponds to the JSON property `progress`
# @return [Google::Apis::BigtableadminV2::OperationProgress]
attr_accessor :progress
# The type of the restore source.
# Corresponds to the JSON property `sourceType`
# @return [String]
attr_accessor :source_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@backup_info = args[:backup_info] if args.key?(:backup_info)
@name = args[:name] if args.key?(:name)
@optimize_table_operation_name = args[:optimize_table_operation_name] if args.key?(:optimize_table_operation_name)
@progress = args[:progress] if args.key?(:progress)
@source_type = args[:source_type] if args.key?(:source_type)
end
end
# The request for
# RestoreTable.
class RestoreTableRequest
include Google::Apis::Core::Hashable
# Name of the backup from which to restore. Values are of the form
# `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
# Corresponds to the JSON property `backup`
# @return [String]
attr_accessor :backup
# Required. The id of the table to create and restore to. This
# table must not already exist. The `table_id` appended to
# `parent` forms the full table name of the form
# `projects/<project>/instances/<instance>/tables/<table_id>`.
# Corresponds to the JSON property `tableId`
# @return [String]
attr_accessor :table_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@backup = args[:backup] if args.key?(:backup)
@table_id = args[:table_id] if args.key?(:table_id)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
@@ -1674,6 +2023,11 @@ module Google
# @return [String]
attr_accessor :name
# Information about a table restore.
# Corresponds to the JSON property `restoreInfo`
# @return [Google::Apis::BigtableadminV2::RestoreInfo]
attr_accessor :restore_info
def initialize(**args)
update!(**args)
end
@@ -1684,6 +2038,7 @@ module Google
@column_families = args[:column_families] if args.key?(:column_families)
@granularity = args[:granularity] if args.key?(:granularity)
@name = args[:name] if args.key?(:name)
@restore_info = args[:restore_info] if args.key?(:restore_info)
end
end
@@ -40,6 +40,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Backup
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackupInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -76,6 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateBackupMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateClusterMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -172,6 +190,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListBackupsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListClustersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -232,6 +256,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OptimizeRestoredTableMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PartialUpdateInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -244,6 +280,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RestoreInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreTableMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreTableRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -346,6 +400,29 @@ module Google
end
end
class Backup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :expire_time, as: 'expireTime'
property :name, as: 'name'
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
property :source_table, as: 'sourceTable'
property :start_time, as: 'startTime'
property :state, as: 'state'
end
end
class BackupInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :backup, as: 'backup'
property :end_time, as: 'endTime'
property :source_table, as: 'sourceTable'
property :start_time, as: 'startTime'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -396,6 +473,16 @@ module Google
end
end
class CreateBackupMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :name, as: 'name'
property :source_table, as: 'sourceTable'
property :start_time, as: 'startTime'
end
end
class CreateClusterMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -544,6 +631,15 @@ module Google
end
end
class ListBackupsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :backups, as: 'backups', class: Google::Apis::BigtableadminV2::Backup, decorator: Google::Apis::BigtableadminV2::Backup::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListClustersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -640,6 +736,24 @@ module Google
end
end
class OperationProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :progress_percent, as: 'progressPercent'
property :start_time, as: 'startTime'
end
end
class OptimizeRestoredTableMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :progress, as: 'progress', class: Google::Apis::BigtableadminV2::OperationProgress, decorator: Google::Apis::BigtableadminV2::OperationProgress::Representation
end
end
class PartialUpdateInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -661,6 +775,36 @@ module Google
end
end
class RestoreInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :backup_info, as: 'backupInfo', class: Google::Apis::BigtableadminV2::BackupInfo, decorator: Google::Apis::BigtableadminV2::BackupInfo::Representation
property :source_type, as: 'sourceType'
end
end
class RestoreTableMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :backup_info, as: 'backupInfo', class: Google::Apis::BigtableadminV2::BackupInfo, decorator: Google::Apis::BigtableadminV2::BackupInfo::Representation
property :name, as: 'name'
property :optimize_table_operation_name, as: 'optimizeTableOperationName'
property :progress, as: 'progress', class: Google::Apis::BigtableadminV2::OperationProgress, decorator: Google::Apis::BigtableadminV2::OperationProgress::Representation
property :source_type, as: 'sourceType'
end
end
class RestoreTableRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :backup, as: 'backup'
property :table_id, as: 'tableId'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -703,6 +847,8 @@ module Google
property :granularity, as: 'granularity'
property :name, as: 'name'
property :restore_info, as: 'restoreInfo', class: Google::Apis::BigtableadminV2::RestoreInfo, decorator: Google::Apis::BigtableadminV2::RestoreInfo::Representation
end
end
@@ -879,6 +879,121 @@ module Google
execute_or_queue_command(command, &block)
end
# Starts creating a new Cloud Bigtable Backup. The returned backup
# long-running operation can be used to
# track creation of the backup. The
# metadata field type is
# CreateBackupMetadata. The
# response field type is
# Backup, if successful. Cancelling the returned operation will stop the
# creation and delete the backup.
# @param [String] parent
# Required. This must be one of the clusters in the instance in which this
# table is located. The backup will be stored in this cluster. Values are
# of the form `projects/`project`/instances/`instance`/clusters/`cluster``.
# @param [Google::Apis::BigtableadminV2::Backup] backup_object
# @param [String] backup_id
# Required. The id of the backup to be created. The `backup_id` along with
# the parent `parent` are combined as `parent`/backups/`backup_id` to create
# the full backup name, of the form:
# `projects/`project`/instances/`instance`/clusters/`cluster`/backups/`backup_id`
# `.
# This string must be between 1 and 50 characters in length and match the
# regex _a-zA-Z0-9*.
# @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::BigtableadminV2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_instance_cluster_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/backups', options)
command.request_representation = Google::Apis::BigtableadminV2::Backup::Representation
command.request_object = backup_object
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
command.response_class = Google::Apis::BigtableadminV2::Operation
command.params['parent'] = parent unless parent.nil?
command.query['backupId'] = backup_id unless backup_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
# Deletes a pending or completed Cloud Bigtable backup.
# @param [String] name
# Required. Name of the backup to delete.
# Values are of the form
# `projects/`project`/instances/`instance`/clusters/`cluster`/backups/`backup``.
# @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::BigtableadminV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::Empty]
#
# @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_instance_cluster_backup(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/{+name}', options)
command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation
command.response_class = Google::Apis::BigtableadminV2::Empty
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 metadata on a pending or completed Cloud Bigtable Backup.
# @param [String] name
# Required. Name of the backup.
# Values are of the form
# `projects/`project`/instances/`instance`/clusters/`cluster`/backups/`backup``.
# @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::BigtableadminV2::Backup] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::Backup]
#
# @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_instance_cluster_backup(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::BigtableadminV2::Backup::Representation
command.response_class = Google::Apis::BigtableadminV2::Backup
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 access control policy for a Table resource.
# Returns an empty policy if the resource exists but does not have a policy
# set.
@@ -915,6 +1030,147 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists Cloud Bigtable backups. Returns both completed and pending
# backups.
# @param [String] parent
# Required. The cluster to list backups from. Values are of the
# form `projects/`project`/instances/`instance`/clusters/`cluster``.
# Use ``cluster` = '-'` to list backups for all clusters in an instance,
# e.g., `projects/`project`/instances/`instance`/clusters/-`.
# @param [String] filter
# A filter expression that filters backups listed in the response.
# The expression must specify the field name, a comparison operator,
# and the value that you want to use for filtering. The value must be a
# string, a number, or a boolean. The comparison operator must be
# <, >, <=, >=, !=, =, or :. Colon ‘:’ represents a HAS operator which is
# roughly synonymous with equality. Filter rules are case insensitive.
# The fields eligible for filtering are:
# * `name`
# * `source_table`
# * `state`
# * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
# * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
# * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
# * `size_bytes`
# To filter on multiple expressions, provide each separate expression within
# parentheses. By default, each expression is an AND expression. However,
# you can include AND, OR, and NOT expressions explicitly.
# Some examples of using filters are:
# * `name:"exact"` --> The backup's name is the string "exact".
# * `name:howl` --> The backup's name contains the string "howl".
# * `source_table:prod`
# --> The source_table's name contains the string "prod".
# * `state:CREATING` --> The backup is pending creation.
# * `state:READY` --> The backup is fully created and ready for use.
# * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")`
# --> The backup name contains the string "howl" and start_time
# of the backup is before 2018-03-28T14:50:00Z.
# * `size_bytes > 10000000000` --> The backup's size is greater than 10GB
# @param [String] order_by
# An expression for specifying the sort order of the results of the request.
# The string value should specify one or more fields in Backup. The full
# syntax is described at https://aip.dev/132#ordering.
# Fields supported are:
# * name
# * source_table
# * expire_time
# * start_time
# * end_time
# * size_bytes
# * state
# For example, "start_time". The default sorting order is ascending.
# To specify descending order for the field, a suffix " desc" should
# be appended to the field name. For example, "start_time desc".
# Redundant space characters in the syntax are insigificant.
# If order_by is empty, results will be sorted by `start_time` in descending
# order starting from the most recently created backup.
# @param [Fixnum] page_size
# Number of backups to be returned in the response. If 0 or
# less, defaults to the server's maximum allowed page size.
# @param [String] page_token
# If non-empty, `page_token` should contain a
# next_page_token from a
# previous ListBackupsResponse to the same `parent` and with the same
# `filter`.
# @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::BigtableadminV2::ListBackupsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::ListBackupsResponse]
#
# @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_instance_cluster_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/backups', options)
command.response_representation = Google::Apis::BigtableadminV2::ListBackupsResponse::Representation
command.response_class = Google::Apis::BigtableadminV2::ListBackupsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a pending or completed Cloud Bigtable Backup.
# @param [String] name
# A globally unique identifier for the backup which cannot be
# changed. Values are of the form
# `projects/`project`/instances/`instance`/clusters/`cluster`/
# backups/_a-zA-Z0-9*`
# The final segment of the name must be between 1 and 50 characters
# in length.
# The backup is stored in the cluster identified by the prefix of the backup
# name of the form
# `projects/`project`/instances/`instance`/clusters/`cluster``.
# @param [Google::Apis::BigtableadminV2::Backup] backup_object
# @param [String] update_mask
# Required. A mask specifying which fields (e.g. `expire_time`) in the
# Backup resource should be updated. This mask is relative to the Backup
# resource, not to the request message. The field mask must always be
# specified; this prevents any future fields from being erased accidentally
# by clients that do not know about them.
# @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::BigtableadminV2::Backup] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::Backup]
#
# @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 patch_project_instance_cluster_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v2/{+name}', options)
command.request_representation = Google::Apis::BigtableadminV2::Backup::Representation
command.request_object = backup_object
command.response_representation = Google::Apis::BigtableadminV2::Backup::Representation
command.response_class = Google::Apis::BigtableadminV2::Backup
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.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 a Table resource.
# Replaces any existing policy.
# @param [String] resource
@@ -1322,6 +1578,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Create a new table by restoring from a completed backup. The new table
# must be in the same instance as the instance containing the backup. The
# returned table long-running operation can
# be used to track the progress of the operation, and to cancel it. The
# metadata field type is
# RestoreTableMetadata. The
# response type is
# Table, if successful.
# @param [String] parent
# Required. The name of the instance in which to create the restored
# table. This instance must be the parent of the source backup. Values are
# of the form `projects/<project>/instances/<instance>`.
# @param [Google::Apis::BigtableadminV2::RestoreTableRequest] restore_table_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::BigtableadminV2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def restore_table(parent, restore_table_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/tables:restore', options)
command.request_representation = Google::Apis::BigtableadminV2::RestoreTableRequest::Representation
command.request_object = restore_table_request_object
command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
command.response_class = Google::Apis::BigtableadminV2::Operation
command.params['parent'] = parent unless parent.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 a Table resource.
# Replaces any existing policy.
# @param [String] resource