Skip to content

Commit 36da6af

Browse files
feat: Automated regeneration of bigtableadmin v2 client (googleapis#20214)
Auto-created at 2024-09-15 09:28:49 +0000 using the toys pull request generator.
1 parent 985348b commit 36da6af

File tree

5 files changed

+68
-2
lines changed

5 files changed

+68
-2
lines changed

api_names_out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48363,6 +48363,7 @@
4836348363
"/bigtableadmin:v2/MultiClusterRoutingUseAny": multi_cluster_routing_use_any
4836448364
"/bigtableadmin:v2/MultiClusterRoutingUseAny/clusterIds": cluster_ids
4836548365
"/bigtableadmin:v2/MultiClusterRoutingUseAny/clusterIds/cluster_id": cluster_id
48366+
"/bigtableadmin:v2/MultiClusterRoutingUseAny/rowAffinity": row_affinity
4836648367
"/bigtableadmin:v2/Operation": operation
4836748368
"/bigtableadmin:v2/Operation/done": done
4836848369
"/bigtableadmin:v2/Operation/error": error
@@ -48407,6 +48408,7 @@
4840748408
"/bigtableadmin:v2/RestoreTableRequest": restore_table_request
4840848409
"/bigtableadmin:v2/RestoreTableRequest/backup": backup
4840948410
"/bigtableadmin:v2/RestoreTableRequest/tableId": table_id
48411+
"/bigtableadmin:v2/RowAffinity": row_affinity
4841048412
"/bigtableadmin:v2/SetIamPolicyRequest": set_iam_policy_request
4841148413
"/bigtableadmin:v2/SetIamPolicyRequest/policy": policy
4841248414
"/bigtableadmin:v2/SetIamPolicyRequest/updateMask": update_mask

generated/google-apis-bigtableadmin_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-bigtableadmin_v2
22

3+
### v0.62.0 (2024-09-15)
4+
5+
* Regenerated from discovery document revision 20240904
6+
37
### v0.61.0 (2024-09-01)
48

59
* Regenerated from discovery document revision 20240824

generated/google-apis-bigtableadmin_v2/lib/google/apis/bigtableadmin_v2/classes.rb

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ def update!(**args)
301301
class Backup
302302
include Google::Apis::Core::Hashable
303303

304+
# Indicates the backup type of the backup.
305+
# Corresponds to the JSON property `backupType`
306+
# @return [String]
307+
attr_accessor :backup_type
308+
304309
# Encryption information for a given resource. If this resource is protected
305310
# with customer managed encryption, the in-use Cloud Key Management Service (
306311
# Cloud KMS) key version is specified along with its status.
@@ -322,6 +327,16 @@ class Backup
322327
# @return [String]
323328
attr_accessor :expire_time
324329

330+
# The time at which the hot backup will be converted to a standard backup. Once
331+
# the `hot_to_standard_time` has passed, Cloud Bigtable will convert the hot
332+
# backup to a standard backup. This value must be greater than the backup
333+
# creation time by: - At least 24 hours This field only applies for hot backups.
334+
# When creating or updating a standard backup, attempting to set this field will
335+
# fail the request.
336+
# Corresponds to the JSON property `hotToStandardTime`
337+
# @return [String]
338+
attr_accessor :hot_to_standard_time
339+
325340
# A globally unique identifier for the backup which cannot be changed. Values
326341
# are of the form `projects/`project`/instances/`instance`/clusters/`cluster`/
327342
# backups/_a-zA-Z0-9*` The final segment of the name must be between 1 and 50
@@ -369,9 +384,11 @@ def initialize(**args)
369384

370385
# Update properties of this object
371386
def update!(**args)
387+
@backup_type = args[:backup_type] if args.key?(:backup_type)
372388
@encryption_info = args[:encryption_info] if args.key?(:encryption_info)
373389
@end_time = args[:end_time] if args.key?(:end_time)
374390
@expire_time = args[:expire_time] if args.key?(:expire_time)
391+
@hot_to_standard_time = args[:hot_to_standard_time] if args.key?(:hot_to_standard_time)
375392
@name = args[:name] if args.key?(:name)
376393
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
377394
@source_backup = args[:source_backup] if args.key?(:source_backup)
@@ -2719,13 +2736,23 @@ class MultiClusterRoutingUseAny
27192736
# @return [Array<String>]
27202737
attr_accessor :cluster_ids
27212738

2739+
# If enabled, the AFE will route the request based on the row key of the request,
2740+
# rather than randomly. Instead, each row key will be assigned to a cluster,
2741+
# and will stick to that cluster. If clusters are added or removed, then this
2742+
# may affect which row keys stick to which clusters. To avoid this, users can
2743+
# specify a group cluster.
2744+
# Corresponds to the JSON property `rowAffinity`
2745+
# @return [Google::Apis::BigtableadminV2::RowAffinity]
2746+
attr_accessor :row_affinity
2747+
27222748
def initialize(**args)
27232749
update!(**args)
27242750
end
27252751

27262752
# Update properties of this object
27272753
def update!(**args)
27282754
@cluster_ids = args[:cluster_ids] if args.key?(:cluster_ids)
2755+
@row_affinity = args[:row_affinity] if args.key?(:row_affinity)
27292756
end
27302757
end
27312758

@@ -3135,6 +3162,23 @@ def update!(**args)
31353162
end
31363163
end
31373164

3165+
# If enabled, the AFE will route the request based on the row key of the request,
3166+
# rather than randomly. Instead, each row key will be assigned to a cluster,
3167+
# and will stick to that cluster. If clusters are added or removed, then this
3168+
# may affect which row keys stick to which clusters. To avoid this, users can
3169+
# specify a group cluster.
3170+
class RowAffinity
3171+
include Google::Apis::Core::Hashable
3172+
3173+
def initialize(**args)
3174+
update!(**args)
3175+
end
3176+
3177+
# Update properties of this object
3178+
def update!(**args)
3179+
end
3180+
end
3181+
31383182
# Request message for `SetIamPolicy` method.
31393183
class SetIamPolicyRequest
31403184
include Google::Apis::Core::Hashable

generated/google-apis-bigtableadmin_v2/lib/google/apis/bigtableadmin_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module BigtableadminV2
1818
# Version of the google-apis-bigtableadmin_v2 gem
19-
GEM_VERSION = "0.61.0"
19+
GEM_VERSION = "0.62.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240824"
25+
REVISION = "20240904"
2626
end
2727
end
2828
end

generated/google-apis-bigtableadmin_v2/lib/google/apis/bigtableadmin_v2/representations.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
580580
include Google::Apis::Core::JsonObjectSupport
581581
end
582582

583+
class RowAffinity
584+
class Representation < Google::Apis::Core::JsonRepresentation; end
585+
586+
include Google::Apis::Core::JsonObjectSupport
587+
end
588+
583589
class SetIamPolicyRequest
584590
class Representation < Google::Apis::Core::JsonRepresentation; end
585591

@@ -779,10 +785,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
779785
class Backup
780786
# @private
781787
class Representation < Google::Apis::Core::JsonRepresentation
788+
property :backup_type, as: 'backupType'
782789
property :encryption_info, as: 'encryptionInfo', class: Google::Apis::BigtableadminV2::EncryptionInfo, decorator: Google::Apis::BigtableadminV2::EncryptionInfo::Representation
783790

784791
property :end_time, as: 'endTime'
785792
property :expire_time, as: 'expireTime'
793+
property :hot_to_standard_time, as: 'hotToStandardTime'
786794
property :name, as: 'name'
787795
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
788796
property :source_backup, as: 'sourceBackup'
@@ -1456,6 +1464,8 @@ class MultiClusterRoutingUseAny
14561464
# @private
14571465
class Representation < Google::Apis::Core::JsonRepresentation
14581466
collection :cluster_ids, as: 'clusterIds'
1467+
property :row_affinity, as: 'rowAffinity', class: Google::Apis::BigtableadminV2::RowAffinity, decorator: Google::Apis::BigtableadminV2::RowAffinity::Representation
1468+
14591469
end
14601470
end
14611471

@@ -1559,6 +1569,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
15591569
end
15601570
end
15611571

1572+
class RowAffinity
1573+
# @private
1574+
class Representation < Google::Apis::Core::JsonRepresentation
1575+
end
1576+
end
1577+
15621578
class SetIamPolicyRequest
15631579
# @private
15641580
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)