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 2020-07-21 00:38:15 +00:00
parent cc35f161bb
commit 33bbd8c955
31 changed files with 4637 additions and 4904 deletions

View File

@ -14915,12 +14915,30 @@
"/bigqueryreservation:v1beta1/fields": fields
"/bigqueryreservation:v1beta1/key": key
"/bigqueryreservation:v1beta1/quotaUser": quota_user
"/bigtableadmin:v1/Backup": backup
"/bigtableadmin:v1/Backup/endTime": end_time
"/bigtableadmin:v1/Backup/expireTime": expire_time
"/bigtableadmin:v1/Backup/name": name
"/bigtableadmin:v1/Backup/sizeBytes": size_bytes
"/bigtableadmin:v1/Backup/sourceTable": source_table
"/bigtableadmin:v1/Backup/startTime": start_time
"/bigtableadmin:v1/Backup/state": state
"/bigtableadmin:v1/BackupInfo": backup_info
"/bigtableadmin:v1/BackupInfo/backup": backup
"/bigtableadmin:v1/BackupInfo/endTime": end_time
"/bigtableadmin:v1/BackupInfo/sourceTable": source_table
"/bigtableadmin:v1/BackupInfo/startTime": start_time
"/bigtableadmin:v1/Cluster": cluster
"/bigtableadmin:v1/Cluster/defaultStorageType": default_storage_type
"/bigtableadmin:v1/Cluster/location": location
"/bigtableadmin:v1/Cluster/name": name
"/bigtableadmin:v1/Cluster/serveNodes": serve_nodes
"/bigtableadmin:v1/Cluster/state": state
"/bigtableadmin:v1/CreateBackupMetadata": create_backup_metadata
"/bigtableadmin:v1/CreateBackupMetadata/endTime": end_time
"/bigtableadmin:v1/CreateBackupMetadata/name": name
"/bigtableadmin:v1/CreateBackupMetadata/sourceTable": source_table
"/bigtableadmin:v1/CreateBackupMetadata/startTime": start_time
"/bigtableadmin:v1/CreateClusterMetadata": create_cluster_metadata
"/bigtableadmin:v1/CreateClusterMetadata/finishTime": finish_time
"/bigtableadmin:v1/CreateClusterMetadata/originalRequest": original_request
@ -14960,9 +14978,22 @@
"/bigtableadmin:v1/Location/metadata": metadata
"/bigtableadmin:v1/Location/metadata/metadatum": metadatum
"/bigtableadmin:v1/Location/name": name
"/bigtableadmin:v1/OperationProgress": operation_progress
"/bigtableadmin:v1/OperationProgress/endTime": end_time
"/bigtableadmin:v1/OperationProgress/progressPercent": progress_percent
"/bigtableadmin:v1/OperationProgress/startTime": start_time
"/bigtableadmin:v1/OptimizeRestoredTableMetadata": optimize_restored_table_metadata
"/bigtableadmin:v1/OptimizeRestoredTableMetadata/name": name
"/bigtableadmin:v1/OptimizeRestoredTableMetadata/progress": progress
"/bigtableadmin:v1/PartialUpdateInstanceRequest": partial_update_instance_request
"/bigtableadmin:v1/PartialUpdateInstanceRequest/instance": instance
"/bigtableadmin:v1/PartialUpdateInstanceRequest/updateMask": update_mask
"/bigtableadmin:v1/RestoreTableMetadata": restore_table_metadata
"/bigtableadmin:v1/RestoreTableMetadata/backupInfo": backup_info
"/bigtableadmin:v1/RestoreTableMetadata/name": name
"/bigtableadmin:v1/RestoreTableMetadata/optimizeTableOperationName": optimize_table_operation_name
"/bigtableadmin:v1/RestoreTableMetadata/progress": progress
"/bigtableadmin:v1/RestoreTableMetadata/sourceType": source_type
"/bigtableadmin:v1/TableProgress": table_progress
"/bigtableadmin:v1/TableProgress/estimatedCopiedBytes": estimated_copied_bytes
"/bigtableadmin:v1/TableProgress/estimatedSizeBytes": estimated_size_bytes
@ -15000,6 +15031,19 @@
"/bigtableadmin:v2/AuditLogConfig/exemptedMembers": exempted_members
"/bigtableadmin:v2/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
"/bigtableadmin:v2/AuditLogConfig/logType": log_type
"/bigtableadmin:v2/Backup": backup
"/bigtableadmin:v2/Backup/endTime": end_time
"/bigtableadmin:v2/Backup/expireTime": expire_time
"/bigtableadmin:v2/Backup/name": name
"/bigtableadmin:v2/Backup/sizeBytes": size_bytes
"/bigtableadmin:v2/Backup/sourceTable": source_table
"/bigtableadmin:v2/Backup/startTime": start_time
"/bigtableadmin:v2/Backup/state": state
"/bigtableadmin:v2/BackupInfo": backup_info
"/bigtableadmin:v2/BackupInfo/backup": backup
"/bigtableadmin:v2/BackupInfo/endTime": end_time
"/bigtableadmin:v2/BackupInfo/sourceTable": source_table
"/bigtableadmin:v2/BackupInfo/startTime": start_time
"/bigtableadmin:v2/Binding": binding
"/bigtableadmin:v2/Binding/condition": condition
"/bigtableadmin:v2/Binding/members": members
@ -15019,6 +15063,11 @@
"/bigtableadmin:v2/ClusterState/replicationState": replication_state
"/bigtableadmin:v2/ColumnFamily": column_family
"/bigtableadmin:v2/ColumnFamily/gcRule": gc_rule
"/bigtableadmin:v2/CreateBackupMetadata": create_backup_metadata
"/bigtableadmin:v2/CreateBackupMetadata/endTime": end_time
"/bigtableadmin:v2/CreateBackupMetadata/name": name
"/bigtableadmin:v2/CreateBackupMetadata/sourceTable": source_table
"/bigtableadmin:v2/CreateBackupMetadata/startTime": start_time
"/bigtableadmin:v2/CreateClusterMetadata": create_cluster_metadata
"/bigtableadmin:v2/CreateClusterMetadata/finishTime": finish_time
"/bigtableadmin:v2/CreateClusterMetadata/originalRequest": original_request
@ -15081,6 +15130,10 @@
"/bigtableadmin:v2/ListAppProfilesResponse/failedLocations": failed_locations
"/bigtableadmin:v2/ListAppProfilesResponse/failedLocations/failed_location": failed_location
"/bigtableadmin:v2/ListAppProfilesResponse/nextPageToken": next_page_token
"/bigtableadmin:v2/ListBackupsResponse": list_backups_response
"/bigtableadmin:v2/ListBackupsResponse/backups": backups
"/bigtableadmin:v2/ListBackupsResponse/backups/backup": backup
"/bigtableadmin:v2/ListBackupsResponse/nextPageToken": next_page_token
"/bigtableadmin:v2/ListClustersResponse": list_clusters_response
"/bigtableadmin:v2/ListClustersResponse/clusters": clusters
"/bigtableadmin:v2/ListClustersResponse/clusters/cluster": cluster
@ -15130,6 +15183,13 @@
"/bigtableadmin:v2/Operation/name": name
"/bigtableadmin:v2/Operation/response": response
"/bigtableadmin:v2/Operation/response/response": response
"/bigtableadmin:v2/OperationProgress": operation_progress
"/bigtableadmin:v2/OperationProgress/endTime": end_time
"/bigtableadmin:v2/OperationProgress/progressPercent": progress_percent
"/bigtableadmin:v2/OperationProgress/startTime": start_time
"/bigtableadmin:v2/OptimizeRestoredTableMetadata": optimize_restored_table_metadata
"/bigtableadmin:v2/OptimizeRestoredTableMetadata/name": name
"/bigtableadmin:v2/OptimizeRestoredTableMetadata/progress": progress
"/bigtableadmin:v2/PartialUpdateInstanceRequest": partial_update_instance_request
"/bigtableadmin:v2/PartialUpdateInstanceRequest/instance": instance
"/bigtableadmin:v2/PartialUpdateInstanceRequest/updateMask": update_mask
@ -15140,6 +15200,18 @@
"/bigtableadmin:v2/Policy/bindings/binding": binding
"/bigtableadmin:v2/Policy/etag": etag
"/bigtableadmin:v2/Policy/version": version
"/bigtableadmin:v2/RestoreInfo": restore_info
"/bigtableadmin:v2/RestoreInfo/backupInfo": backup_info
"/bigtableadmin:v2/RestoreInfo/sourceType": source_type
"/bigtableadmin:v2/RestoreTableMetadata": restore_table_metadata
"/bigtableadmin:v2/RestoreTableMetadata/backupInfo": backup_info
"/bigtableadmin:v2/RestoreTableMetadata/name": name
"/bigtableadmin:v2/RestoreTableMetadata/optimizeTableOperationName": optimize_table_operation_name
"/bigtableadmin:v2/RestoreTableMetadata/progress": progress
"/bigtableadmin:v2/RestoreTableMetadata/sourceType": source_type
"/bigtableadmin:v2/RestoreTableRequest": restore_table_request
"/bigtableadmin:v2/RestoreTableRequest/backup": backup
"/bigtableadmin:v2/RestoreTableRequest/tableId": table_id
"/bigtableadmin:v2/SetIamPolicyRequest": set_iam_policy_request
"/bigtableadmin:v2/SetIamPolicyRequest/policy": policy
"/bigtableadmin:v2/SetIamPolicyRequest/updateMask": update_mask
@ -15161,6 +15233,7 @@
"/bigtableadmin:v2/Table/columnFamilies/column_family": column_family
"/bigtableadmin:v2/Table/granularity": granularity
"/bigtableadmin:v2/Table/name": name
"/bigtableadmin:v2/Table/restoreInfo": restore_info
"/bigtableadmin:v2/TableProgress": table_progress
"/bigtableadmin:v2/TableProgress/estimatedCopiedBytes": estimated_copied_bytes
"/bigtableadmin:v2/TableProgress/estimatedSizeBytes": estimated_size_bytes
@ -15211,8 +15284,24 @@
"/bigtableadmin:v2/bigtableadmin.projects.instances.appProfiles.patch/ignoreWarnings": ignore_warnings
"/bigtableadmin:v2/bigtableadmin.projects.instances.appProfiles.patch/name": name
"/bigtableadmin:v2/bigtableadmin.projects.instances.appProfiles.patch/updateMask": update_mask
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.create": create_project_instance_cluster_backup
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.create/backupId": backup_id
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.create/parent": parent
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.delete": delete_project_instance_cluster_backup
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.delete/name": name
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.get": get_project_instance_cluster_backup
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.get/name": name
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.getIamPolicy": get_backup_iam_policy
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.getIamPolicy/resource": resource
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.list": list_project_instance_cluster_backups
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.list/filter": filter
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.list/orderBy": order_by
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.list/pageSize": page_size
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.list/pageToken": page_token
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.list/parent": parent
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.patch": patch_project_instance_cluster_backup
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.patch/name": name
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.patch/updateMask": update_mask
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.setIamPolicy": set_backup_iam_policy
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.setIamPolicy/resource": resource
"/bigtableadmin:v2/bigtableadmin.projects.instances.clusters.backups.testIamPermissions": test_backup_iam_permissions
@ -15267,6 +15356,8 @@
"/bigtableadmin:v2/bigtableadmin.projects.instances.tables.list/view": view
"/bigtableadmin:v2/bigtableadmin.projects.instances.tables.modifyColumnFamilies": modify_table_column_families
"/bigtableadmin:v2/bigtableadmin.projects.instances.tables.modifyColumnFamilies/name": name
"/bigtableadmin:v2/bigtableadmin.projects.instances.tables.restore": restore_table
"/bigtableadmin:v2/bigtableadmin.projects.instances.tables.restore/parent": parent
"/bigtableadmin:v2/bigtableadmin.projects.instances.tables.setIamPolicy": set_table_iam_policy
"/bigtableadmin:v2/bigtableadmin.projects.instances.tables.setIamPolicy/resource": resource
"/bigtableadmin:v2/bigtableadmin.projects.instances.tables.testIamPermissions": test_table_iam_permissions
@ -148411,6 +148502,8 @@
"/youtube:v3/youtube.superChatEvents.list/maxResults": max_results
"/youtube:v3/youtube.superChatEvents.list/pageToken": page_token
"/youtube:v3/youtube.superChatEvents.list/part": part
"/youtube:v3/youtube.tests.insert": insert_test
"/youtube:v3/youtube.tests.insert/part": part
"/youtube:v3/youtube.thirdPartyLinks.delete": delete_third_party_link
"/youtube:v3/youtube.thirdPartyLinks.delete/linkingToken": linking_token
"/youtube:v3/youtube.thirdPartyLinks.delete/part": part

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
REVISION = '20200507'
REVISION = '20200715'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -1320,8 +1320,9 @@ module Google
# services.versions#StandardSchedulerSettings)basic scaling or manual scaling in
# the standard environment:
# serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/
# rest/v1/apps.services.versions#Version.FIELDS.serving_status)Flexible
# environment
# rest/v1/apps.services.versions#Version.FIELDS.serving_status)
# manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1/apps.services.versions#manualscaling)Flexible environment
# serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/
# rest/v1/apps.services.versions#Version.FIELDS.serving_status)automatic scaling
# in the flexible environment:
@ -1336,7 +1337,9 @@ module Google
# automatic_scaling)
# automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/
# appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.
# FIELDS.automatic_scaling)
# FIELDS.automatic_scaling)manual scaling in the flexible environment:
# manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1/apps.services.versions#manualscaling)
# @param [String] apps_id
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
# default/versions/1.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta
VERSION = 'V1beta'
REVISION = '20200507'
REVISION = '20200715'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -1320,7 +1320,9 @@ module Google
# services.versions#StandardSchedulerSettings)basic scaling or manual scaling in
# the standard environment:
# serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/
# rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)Flexible
# rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)
# manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta/apps.services.versions#manualscaling)Flexible
# environment
# serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/
# rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)automatic
@ -1336,7 +1338,9 @@ module Google
# automatic_scaling)
# automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/
# appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.
# FIELDS.automatic_scaling)
# FIELDS.automatic_scaling)manual scaling in the flexible environment:
# manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta/apps.services.versions#manualscaling)
# @param [String] apps_id
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
# default/versions/1.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/
module BigtableadminV1
VERSION = 'V1'
REVISION = '20200512'
REVISION = '20200629'
end
end
end

View File

@ -22,6 +22,119 @@ module Google
module Apis
module BigtableadminV1
# 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
# A resizable group of nodes in a particular cloud location, capable
# of serving all Tables in the parent
# Instance.
@ -75,6 +188,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
@ -293,6 +444,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::BigtableadminV1::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
@ -322,6 +536,59 @@ module Google
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::BigtableadminV1::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::BigtableadminV1::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
# Progress info for copying a table's data to the new cluster.
class TableProgress
include Google::Apis::Core::Hashable

View File

@ -22,12 +22,30 @@ module Google
module Apis
module BigtableadminV1
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 Cluster
class Representation < Google::Apis::Core::JsonRepresentation; end
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
@ -58,12 +76,30 @@ 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
include Google::Apis::Core::JsonObjectSupport
end
class RestoreTableMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TableProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,6 +124,29 @@ module Google
include Google::Apis::Core::JsonObjectSupport
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 Cluster
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -99,6 +158,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
@ -154,6 +223,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::BigtableadminV1::OperationProgress, decorator: Google::Apis::BigtableadminV1::OperationProgress::Representation
end
end
class PartialUpdateInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -163,6 +250,19 @@ module Google
end
end
class RestoreTableMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :backup_info, as: 'backupInfo', class: Google::Apis::BigtableadminV1::BackupInfo, decorator: Google::Apis::BigtableadminV1::BackupInfo::Representation
property :name, as: 'name'
property :optimize_table_operation_name, as: 'optimizeTableOperationName'
property :progress, as: 'progress', class: Google::Apis::BigtableadminV1::OperationProgress, decorator: Google::Apis::BigtableadminV1::OperationProgress::Representation
property :source_type, as: 'sourceType'
end
end
class TableProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/
module BigtableadminV2
VERSION = 'V2'
REVISION = '20200609'
REVISION = '20200629'
# Administer your Cloud Bigtable tables and clusters
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'

View File

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

View File

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

View File

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

View File

@ -26,11 +26,14 @@ module Google
# @see https://developers.google.com/display-video/
module DisplayvideoV1
VERSION = 'V1'
REVISION = '20200714'
REVISION = '20200720'
# Create, see, edit, and permanently delete your Display & Video 360 entities and reports
AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video'
# Create, see, and edit Display & Video 360 Campaign entities and see billing invoices
AUTH_DISPLAY_VIDEO_MEDIAPLANNING = 'https://www.googleapis.com/auth/display-video-mediaplanning'
# View and manage your reports in DoubleClick Bid Manager
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,10 @@ module Google
# @see https://developers.google.com/gmail/postmaster
module GmailpostmastertoolsV1beta1
VERSION = 'V1beta1'
REVISION = '20200629'
REVISION = '20200719'
# See email traffic metrics for the domains you have registered in Gmail Postmaster Tools
AUTH_POSTMASTER_READONLY = 'https://www.googleapis.com/auth/postmaster.readonly'
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/
module PeopleV1
VERSION = 'V1'
REVISION = '20200624'
REVISION = '20200720'
# See, edit, download, and permanently delete your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'

File diff suppressed because it is too large Load Diff

View File

@ -47,12 +47,11 @@ module Google
@batch_path = 'batch'
end
# Get a list of contact groups owned by the authenticated user by specifying
# a list of contact group resource names.
# Get a list of contact groups owned by the authenticated user by specifying a
# list of contact group resource names.
# @param [Fixnum] max_members
# Optional. Specifies the maximum number of members to return for each group.
# Defaults
# to 0 if not set, which will return zero members.
# Defaults to 0 if not set, which will return zero members.
# @param [Array<String>, String] resource_names
# Required. The resource names of the contact groups to get.
# @param [String] fields
@ -113,8 +112,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Delete an existing contact group owned by the authenticated user by
# specifying a contact group resource name.
# Delete an existing contact group owned by the authenticated user by specifying
# a contact group resource name.
# @param [String] resource_name
# Required. The resource name of the contact group to delete.
# @param [Boolean] delete_contacts
@ -147,14 +146,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Get a specific contact group owned by the authenticated user by specifying
# a contact group resource name.
# Get a specific contact group owned by the authenticated user by specifying a
# contact group resource name.
# @param [String] resource_name
# Required. The resource name of the contact group to get.
# @param [Fixnum] max_members
# Optional. Specifies the maximum number of members to return. Defaults to 0 if
# not
# set, which will return zero members.
# not set, which will return zero members.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -187,12 +185,11 @@ module Google
# contact groups are not populated.
# @param [Fixnum] page_size
# Optional. The maximum number of resources to return. Valid values are between
# 1 and
# 1000, inclusive. Defaults to 30 if not set or set to 0.
# 1 and 1000, inclusive. Defaults to 30 if not set or set to 0.
# @param [String] page_token
# Optional. The next_page_token value returned from a previous call to
# [ListContactGroups](/people/api/rest/v1/contactgroups/list).
# Requests the next page of resources.
# Optional. The next_page_token value returned from a previous call to [
# ListContactGroups](/people/api/rest/v1/contactgroups/list). Requests the next
# page of resources.
# @param [String] sync_token
# Optional. A sync token, returned by a previous call to `contactgroups.list`.
# Only resources changed since the sync token was created will be returned.
@ -225,8 +222,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Update the name of an existing contact group owned by the authenticated
# user.
# Update the name of an existing contact group owned by the authenticated user.
# @param [String] resource_name
# The resource name for the contact group, assigned by the server. An ASCII
# string, in the form of `contactGroups/`contact_group_id``.
@ -260,10 +256,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Modify the members of a contact group owned by the authenticated user.
# The only system contact groups that can have members added are
# `contactGroups/myContacts` and `contactGroups/starred`. Other system
# contact groups are deprecated and can only have contacts removed.
# Modify the members of a contact group owned by the authenticated user. The
# only system contact groups that can have members added are `contactGroups/
# myContacts` and `contactGroups/starred`. Other system contact groups are
# deprecated and can only have contacts removed.
# @param [String] resource_name
# Required. The resource name of the contact group to modify.
# @param [Google::Apis::PeopleV1::ModifyContactGroupMembersRequest] modify_contact_group_members_request_object
@ -329,37 +325,32 @@ module Google
execute_or_queue_command(command, &block)
end
# List all "Other contacts", that is contacts that are not in a contact
# group. "Other contacts" are typically auto created contacts from
# interactions.
# List all "Other contacts", that is contacts that are not in a contact group. "
# Other contacts" are typically auto created contacts from interactions.
# @param [Fixnum] page_size
# Optional. The number of "Other contacts" to include in the response. Valid
# values are
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
# values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to
# 0.
# @param [String] page_token
# Optional. A page token, received from a previous `ListOtherContacts` call.
# Provide this to retrieve the subsequent page.
# When paginating, all other parameters provided to `ListOtherContacts`
# must match the call that provided the page token.
# Provide this to retrieve the subsequent page. When paginating, all other
# parameters provided to `ListOtherContacts` must match the call that provided
# the page token.
# @param [String] read_mask
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Valid values are:
# * emailAddresses
# * names
# * phoneNumbers
# Multiple fields can be specified by separating them with commas. Valid values
# are: * emailAddresses * names * phoneNumbers
# @param [Boolean] request_sync_token
# Optional. Whether the response should include `next_sync_token`, which can be
# used to
# get all changes since the last request. For subsequent sync requests use
# the `sync_token` param instead. Initial sync requests that specify
# `request_sync_token` have an additional rate limit.
# used to get all changes since the last request. For subsequent sync requests
# use the `sync_token` param instead. Initial sync requests that specify `
# request_sync_token` have an additional rate limit.
# @param [String] sync_token
# Optional. A sync token, received from a previous `ListOtherContacts` call.
# Provide this to retrieve only the resources changed since the last request.
# Sync requests that specify `sync_token` have an additional rate limit.
# When syncing, all other parameters provided to `ListOtherContacts`
# must match the call that provided the sync token.
# Sync requests that specify `sync_token` have an additional rate limit. When
# syncing, all other parameters provided to `ListOtherContacts` must match the
# call that provided the sync token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -395,39 +386,15 @@ module Google
# @param [Google::Apis::PeopleV1::Person] person_object
# @param [String] person_fields
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Defaults to all
# fields if not set. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. Defaults to
# all fields if not set. Valid values are: * addresses * ageRanges * biographies
# * birthdays * coverPhotos * emailAddresses * events * genders * imClients *
# interests * locales * memberships * metadata * names * nicknames * occupations
# * organizations * phoneNumbers * photos * relations * residences *
# sipAddresses * skills * urls * userDefined
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT and
# ReadSourceType.PROFILE if not
# set.
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
# CONTACT and ReadSourceType.PROFILE if not set.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -493,39 +460,15 @@ module Google
# Required. The resource name of the contact whose photo will be deleted.
# @param [String] person_fields
# Optional. A field mask to restrict which fields on the person are returned.
# Multiple
# fields can be specified by separating them with commas. Defaults to empty
# if not set, which will skip the post mutate get. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. Defaults to
# empty if not set, which will skip the post mutate get. Valid values are: *
# addresses * ageRanges * biographies * birthdays * coverPhotos * emailAddresses
# * events * genders * imClients * interests * locales * memberships * metadata *
# names * nicknames * occupations * organizations * phoneNumbers * photos *
# relations * residences * sipAddresses * skills * urls * userDefined
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT and
# ReadSourceType.PROFILE if not
# set.
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
# CONTACT and ReadSourceType.PROFILE if not set.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -555,57 +498,31 @@ module Google
execute_or_queue_command(command, &block)
end
# Provides information about a person by specifying a resource name. Use
# `people/me` to indicate the authenticated user.
# The request throws a 400 error if 'personFields' is not specified.
# Provides information about a person by specifying a resource name. Use `people/
# me` to indicate the authenticated user. The request throws a 400 error if '
# personFields' is not specified.
# @param [String] resource_name
# Required. The resource name of the person to provide information about.
# - To get information about the authenticated user, specify `people/me`.
# - To get information about a google account, specify
# `people/`account_id``.
# - To get information about a contact, specify the resource name that
# identifies the contact as returned by
# [`people.connections.list`](/people/api/rest/v1/people.connections/list).
# Required. The resource name of the person to provide information about. - To
# get information about the authenticated user, specify `people/me`. - To get
# information about a google account, specify `people/`account_id``. - To get
# information about a contact, specify the resource name that identifies the
# contact as returned by [`people.connections.list`](/people/api/rest/v1/people.
# connections/list).
# @param [String] person_fields
# Required. A field mask to restrict which fields on the person are returned.
# Multiple
# fields can be specified by separating them with commas. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * coverPhotos *
# emailAddresses * events * genders * imClients * interests * locales *
# memberships * metadata * names * nicknames * occupations * organizations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
# userDefined
# @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response.
# Each
# path should start with `person.`: for example, `person.names` or
# `person.photos`.
# Each path should start with `person.`: for example, `person.names` or `person.
# photos`.
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.PROFILE
# and
# ReadSourceType.CONTACT
# if not set.
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
# PROFILE and ReadSourceType.CONTACT if not set.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -636,59 +553,31 @@ module Google
execute_or_queue_command(command, &block)
end
# Provides information about a list of specific people by specifying a list
# of requested resource names. Use `people/me` to indicate the authenticated
# user.
# Provides information about a list of specific people by specifying a list of
# requested resource names. Use `people/me` to indicate the authenticated user.
# The request throws a 400 error if 'personFields' is not specified.
# @param [String] person_fields
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * coverPhotos *
# emailAddresses * events * genders * imClients * interests * locales *
# memberships * metadata * names * nicknames * occupations * organizations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
# userDefined
# @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response.
# Each
# path should start with `person.`: for example, `person.names` or
# `person.photos`.
# Each path should start with `person.`: for example, `person.names` or `person.
# photos`.
# @param [Array<String>, String] resource_names
# Required. The resource names of the people to provide information about.
# - To get information about the authenticated user, specify `people/me`.
# - To get information about a google account, specify
# `people/`account_id``.
# - To get information about a contact, specify the resource name that
# identifies the contact as returned by
# [`people.connections.list`](/people/api/rest/v1/people.connections/list).
# You can include up to 50 resource names in one request.
# Required. The resource names of the people to provide information about. - To
# get information about the authenticated user, specify `people/me`. - To get
# information about a google account, specify `people/`account_id``. - To get
# information about a contact, specify the resource name that identifies the
# contact as returned by [`people.connections.list`](/people/api/rest/v1/people.
# connections/list). You can include up to 50 resource names in one request.
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT
# and
# ReadSourceType.PROFILE
# if not set.
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
# CONTACT and ReadSourceType.PROFILE if not set.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -723,57 +612,34 @@ module Google
# user's domain directory.
# @param [Array<String>, String] merge_sources
# Optional. Additional data to merge into the directory sources if they are
# connected
# through verified join keys such as email addresses or phone numbers.
# connected through verified join keys such as email addresses or phone numbers.
# @param [Fixnum] page_size
# Optional. The number of people to include in the response. Valid values are
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
# @param [String] page_token
# Optional. A page token, received from a previous `ListDirectoryPeople` call.
# Provide this to retrieve the subsequent page.
# When paginating, all other parameters provided to `ListDirectoryPeople`
# must match the call that provided the page token.
# Provide this to retrieve the subsequent page. When paginating, all other
# parameters provided to `ListDirectoryPeople` must match the call that provided
# the page token.
# @param [String] read_mask
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * coverPhotos *
# emailAddresses * events * genders * imClients * interests * locales *
# memberships * metadata * names * nicknames * occupations * organizations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
# userDefined
# @param [Boolean] request_sync_token
# Optional. Whether the response should include `next_sync_token`, which can be
# used to
# get all changes since the last request. For subsequent sync requests use
# the `sync_token` param instead.
# used to get all changes since the last request. For subsequent sync requests
# use the `sync_token` param instead.
# @param [Array<String>, String] sources
# Required. Directory sources to return.
# @param [String] sync_token
# Optional. A sync token, received from a previous `ListDirectoryPeople` call.
# Provide this to retrieve only the resources changed since the last request.
# When syncing, all other parameters provided to `ListDirectoryPeople`
# must match the call that provided the sync token.
# When syncing, all other parameters provided to `ListDirectoryPeople` must
# match the call that provided the sync token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -811,48 +677,26 @@ module Google
# user's domain directory that match the search query.
# @param [Array<String>, String] merge_sources
# Optional. Additional data to merge into the directory sources if they are
# connected
# through verified join keys such as email addresses or phone numbers.
# connected through verified join keys such as email addresses or phone numbers.
# @param [Fixnum] page_size
# Optional. The number of people to include in the response. Valid values are
# between 1 and 500, inclusive. Defaults to 100 if not set or set to 0.
# @param [String] page_token
# Optional. A page token, received from a previous `SearchDirectoryPeople` call.
# Provide this to retrieve the subsequent page.
# When paginating, all other parameters provided to `SearchDirectoryPeople`
# must match the call that provided the page token.
# Provide this to retrieve the subsequent page. When paginating, all other
# parameters provided to `SearchDirectoryPeople` must match the call that
# provided the page token.
# @param [String] query
# Required. Prefix query that matches fields in the person. Does NOT use the
# read_mask for determining what fields to match.
# @param [String] read_mask
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * coverPhotos *
# emailAddresses * events * genders * imClients * interests * locales *
# memberships * metadata * names * nicknames * occupations * organizations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
# userDefined
# @param [Array<String>, String] sources
# Required. Directory sources to return.
# @param [String] fields
@ -887,81 +731,36 @@ module Google
execute_or_queue_command(command, &block)
end
# Update contact data for an existing contact person. Any non-contact data
# will not be modified.
# The request throws a 400 error if `updatePersonFields` is not specified.
# The request throws a 400 error if `person.metadata.sources` is not
# specified for the contact to be updated.
# The request throws a 400 error with an error with reason
# `"failedPrecondition"` if `person.metadata.sources.etag` is different than
# the contact's etag, which indicates the contact has changed since its data
# was read. Clients should get the latest person and re-apply their updates
# to the latest person.
# Update contact data for an existing contact person. Any non-contact data will
# not be modified. The request throws a 400 error if `updatePersonFields` is not
# specified. The request throws a 400 error if `person.metadata.sources` is not
# specified for the contact to be updated. The request throws a 400 error with
# an error with reason `"failedPrecondition"` if `person.metadata.sources.etag`
# is different than the contact's etag, which indicates the contact has changed
# since its data was read. Clients should get the latest person and re-apply
# their updates to the latest person.
# @param [String] resource_name
# The resource name for the person, assigned by the server. An ASCII string
# with a max length of 27 characters, in the form of
# `people/`person_id``.
# The resource name for the person, assigned by the server. An ASCII string with
# a max length of 27 characters, in the form of `people/`person_id``.
# @param [Google::Apis::PeopleV1::Person] person_object
# @param [String] person_fields
# Optional. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Defaults to all
# fields if not set. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. Defaults to
# all fields if not set. Valid values are: * addresses * ageRanges * biographies
# * birthdays * coverPhotos * emailAddresses * events * genders * imClients *
# interests * locales * memberships * metadata * names * nicknames * occupations
# * organizations * phoneNumbers * photos * relations * residences *
# sipAddresses * skills * urls * userDefined
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT and
# ReadSourceType.PROFILE if not
# set.
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
# CONTACT and ReadSourceType.PROFILE if not set.
# @param [String] update_person_fields
# Required. A field mask to restrict which fields on the person are updated.
# Multiple
# fields can be specified by separating them with commas.
# All updated fields will be replaced. Valid values are:
# * addresses
# * biographies
# * birthdays
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * relations
# * residences
# * sipAddresses
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. All updated
# fields will be replaced. Valid values are: * addresses * biographies *
# birthdays * emailAddresses * events * genders * imClients * interests *
# locales * memberships * names * nicknames * occupations * organizations *
# phoneNumbers * relations * residences * sipAddresses * urls * userDefined
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1027,75 +826,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Provides a list of the authenticated user's contacts.
# The request throws a 400 error if 'personFields' is not specified.
# Provides a list of the authenticated user's contacts. The request throws a 400
# error if 'personFields' is not specified.
# @param [String] resource_name
# Required. The resource name to return connections for. Only `people/me` is
# valid.
# @param [Fixnum] page_size
# Optional. The number of connections to include in the response. Valid values
# are
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
# are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
# @param [String] page_token
# Optional. A page token, received from a previous `ListConnections` call.
# Provide this to retrieve the subsequent page.
# When paginating, all other parameters provided to `ListConnections`
# must match the call that provided the page token.
# Provide this to retrieve the subsequent page. When paginating, all other
# parameters provided to `ListConnections` must match the call that provided the
# page token.
# @param [String] person_fields
# Required. A field mask to restrict which fields on each person are returned.
# Multiple
# fields can be specified by separating them with commas. Valid values are:
# * addresses
# * ageRanges
# * biographies
# * birthdays
# * coverPhotos
# * emailAddresses
# * events
# * genders
# * imClients
# * interests
# * locales
# * memberships
# * metadata
# * names
# * nicknames
# * occupations
# * organizations
# * phoneNumbers
# * photos
# * relations
# * residences
# * sipAddresses
# * skills
# * urls
# * userDefined
# Multiple fields can be specified by separating them with commas. Valid values
# are: * addresses * ageRanges * biographies * birthdays * coverPhotos *
# emailAddresses * events * genders * imClients * interests * locales *
# memberships * metadata * names * nicknames * occupations * organizations *
# phoneNumbers * photos * relations * residences * sipAddresses * skills * urls *
# userDefined
# @param [String] request_mask_include_field
# Required. Comma-separated list of person fields to be included in the response.
# Each
# path should start with `person.`: for example, `person.names` or
# `person.photos`.
# Each path should start with `person.`: for example, `person.names` or `person.
# photos`.
# @param [Boolean] request_sync_token
# Optional. Whether the response should include `next_sync_token`, which can be
# used to
# get all changes since the last request. For subsequent sync requests use
# the `sync_token` param instead. Initial sync requests that specify
# `request_sync_token` have an additional rate limit.
# used to get all changes since the last request. For subsequent sync requests
# use the `sync_token` param instead. Initial sync requests that specify `
# request_sync_token` have an additional rate limit.
# @param [String] sort_order
# Optional. The order in which the connections should be sorted. Defaults to
# `LAST_MODIFIED_ASCENDING`.
# Optional. The order in which the connections should be sorted. Defaults to `
# LAST_MODIFIED_ASCENDING`.
# @param [Array<String>, String] sources
# Optional. A mask of what source types to return. Defaults to
# ReadSourceType.CONTACT
# and
# ReadSourceType.PROFILE if not
# set.
# Optional. A mask of what source types to return. Defaults to ReadSourceType.
# CONTACT and ReadSourceType.PROFILE if not set.
# @param [String] sync_token
# Optional. A sync token, received from a previous `ListConnections` call.
# Provide this to retrieve only the resources changed since the last request.
# Sync requests that specify `sync_token` have an additional rate limit.
# When syncing, all other parameters provided to `ListConnections`
# must match the call that provided the sync token.
# Sync requests that specify `sync_token` have an additional rate limit. When
# syncing, all other parameters provided to `ListConnections` must match the
# call that provided the sync token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -28,7 +28,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/
module RealtimebiddingV1
VERSION = 'V1'
REVISION = '20200713'
REVISION = '20200720'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1
VERSION = 'V1'
REVISION = '20200711'
REVISION = '20200719'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -790,7 +790,7 @@ module Google
class CreateTenancyUnitRequest
include Google::Apis::Core::Hashable
# Optional service producer-provided identifier of the tenancy unit.
# Optional. Optional service producer-provided identifier of the tenancy unit.
# Must be no longer than 40 characters and preferably URI friendly.
# If it isn't provided, a UID for the tenancy unit is automatically
# generated. The identifier must be unique across a managed service.

View File

@ -207,17 +207,18 @@ module Google
# services/`service`
# `service` the name of a service, for example 'service.googleapis.com'.
# @param [Fixnum] page_size
# The maximum number of results returned by this request. Currently, the
# Optional. The maximum number of results returned by this request. Currently,
# the
# default maximum is set to 1000. If `page_size` isn't provided or the size
# provided is a number larger than 1000, it's automatically set to 1000.
# Optional.
# @param [String] page_token
# The continuation token, which is used to page through large result sets.
# Optional. The continuation token, which is used to page through large result
# sets.
# To get the next page of results, set this parameter to the value of
# `nextPageToken` from the previous response.
# Optional.
# @param [String] query
# Set a query ``expression`` for querying tenancy units. Your ``expression``
# Optional. Set a query ``expression`` for querying tenancy units. Your ``
# expression``
# must be in the format: `field_name=literal_string`. The `field_name` is the
# name of the field you want to compare. Supported fields are
# `tenant_resources.tag` and `tenant_resources.resource`.
@ -229,7 +230,6 @@ module Google
# Multiple expressions can be joined with `AND`s. Tenancy units must match
# all expressions to be included in the result set. For example,
# `tenant_resources.tag=xyz AND tenant_resources.resource=projects/123456`
# Optional.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/spanner/
module SpannerV1
VERSION = 'V1'
REVISION = '20200623'
REVISION = '20200709'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/fonts/docs/developer_api
module WebfontsV1
VERSION = 'V1'
REVISION = '20200622'
REVISION = '20200720'
end
end
end

View File

@ -45,8 +45,8 @@ module Google
attr_accessor :quota_user
def initialize
super('https://www.googleapis.com/', '')
@batch_path = 'batch/webfonts/v1'
super('https://webfonts.googleapis.com/', '')
@batch_path = 'batch'
end
# Retrieves the list of fonts currently served by the Google Fonts Developer

View File

@ -26,7 +26,7 @@ module Google
# @see https://devsite.googleplex.com/youtube/partner/docs/v1/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20200707'
REVISION = '20200720'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/youtube/
module YoutubeV3
VERSION = 'V3'
REVISION = '20200715'
REVISION = '20200719'
# Manage your YouTube account
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'

View File

@ -3450,6 +3450,38 @@ module Google
execute_or_queue_command(command, &block)
end
# POST method.
# @param [Array<String>, String] part
# @param [Google::Apis::YoutubeV3::TestItem] test_item_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::YoutubeV3::TestItem] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::TestItem]
#
# @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 insert_test(part, test_item_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'youtube/v3/tests', options)
command.request_representation = Google::Apis::YoutubeV3::TestItem::Representation
command.request_object = test_item_object
command.response_representation = Google::Apis::YoutubeV3::TestItem::Representation
command.response_class = Google::Apis::YoutubeV3::TestItem
command.query['part'] = part unless part.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 resource.
# @param [String] linking_token
# Delete the partner links with the given linking token.
@ -4319,38 +4351,6 @@ module Google
execute_or_queue_command(command, &block)
end
# POST method.
# @param [Google::Apis::YoutubeV3::TestItem] test_item_object
# @param [Array<String>, String] part
# @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::YoutubeV3::TestItem] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubeV3::TestItem]
#
# @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_youtube_v3_test(test_item_object = nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'youtube/v3/tests', options)
command.request_representation = Google::Apis::YoutubeV3::TestItem::Representation
command.request_object = test_item_object
command.response_representation = Google::Apis::YoutubeV3::TestItem::Representation
command.response_class = Google::Apis::YoutubeV3::TestItem
command.query['part'] = part unless part.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)