google-apis-bigtableadmin_v2 0.29.0 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2233d699497185c3f3ca63245ecf899006680559936f44b2a80468b41276ef14
4
- data.tar.gz: 8beb0893de6549d9a4ce412523902fcbf0e2f98e9a77d94087762c859dd74d3f
3
+ metadata.gz: ea4ae565e9570625b3125d2415f1008a37a74762e89e310d87e37e150f934fab
4
+ data.tar.gz: 3d648c453953d601d35a87cb5432d396908385a3c8b5610db42feebed5b3c58a
5
5
  SHA512:
6
- metadata.gz: 93ccff740f19e930d6a0a1d6ae4835522f5cfbecafb9dbd297257f42eb3e479d4c79cd885d17d9f2a9668bfff22f5a11f8c7d09d80a7c328cf6497f10fce3778
7
- data.tar.gz: 25fbce950ebb2371eecf23f085de4270989ae0e569f0e8ee5665651086452bf00b598a29b23a3d108e9d1109c6ef34bcd98eacf241b8fc86f42e84584d4ecef2
6
+ metadata.gz: 602b0b3f4e85a974026f403c1b382d49c0b3624d71628d1af6f8d61934edf71d17887910342b9f6cbaf3777e2ca9d6b1563d5aef0066620d4f66271c0742cf0f
7
+ data.tar.gz: 19e3a1a0dfcdd887cab81ee37cc08818fe7988a2808ede587a20119e53cfa2f5930f8f4e92f9fc38daea8396e173da06a7ef00d00db1910d7279a39d74314f64
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-bigtableadmin_v2
2
2
 
3
+ ### v0.30.0 (2022-11-19)
4
+
5
+ * Regenerated from discovery document revision 20221022
6
+ * Regenerated using generator version 0.11.0
7
+
3
8
  ### v0.29.0 (2022-09-30)
4
9
 
5
10
  * Regenerated using generator version 0.10.0
@@ -245,6 +245,13 @@ module Google
245
245
  # @return [Fixnum]
246
246
  attr_accessor :size_bytes
247
247
 
248
+ # Output only. Name of the backup from which this backup was copied. If a backup
249
+ # is not created by copying a backup, this field will be empty. Values are of
250
+ # the form: projects//instances//backups/.
251
+ # Corresponds to the JSON property `sourceBackup`
252
+ # @return [String]
253
+ attr_accessor :source_backup
254
+
248
255
  # Required. Immutable. Name of the table from which this backup was created.
249
256
  # This needs to be in the same instance as the backup. Values are of the form `
250
257
  # projects/`project`/instances/`instance`/tables/`source_table``.
@@ -275,6 +282,7 @@ module Google
275
282
  @expire_time = args[:expire_time] if args.key?(:expire_time)
276
283
  @name = args[:name] if args.key?(:name)
277
284
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
285
+ @source_backup = args[:source_backup] if args.key?(:source_backup)
278
286
  @source_table = args[:source_table] if args.key?(:source_table)
279
287
  @start_time = args[:start_time] if args.key?(:start_time)
280
288
  @state = args[:state] if args.key?(:state)
@@ -296,6 +304,13 @@ module Google
296
304
  # @return [String]
297
305
  attr_accessor :end_time
298
306
 
307
+ # Output only. Name of the backup from which this backup was copied. If a backup
308
+ # is not created by copying a backup, this field will be empty. Values are of
309
+ # the form: projects//instances//backups/.
310
+ # Corresponds to the JSON property `sourceBackup`
311
+ # @return [String]
312
+ attr_accessor :source_backup
313
+
299
314
  # Output only. Name of the table the backup was created from.
300
315
  # Corresponds to the JSON property `sourceTable`
301
316
  # @return [String]
@@ -315,6 +330,7 @@ module Google
315
330
  def update!(**args)
316
331
  @backup = args[:backup] if args.key?(:backup)
317
332
  @end_time = args[:end_time] if args.key?(:end_time)
333
+ @source_backup = args[:source_backup] if args.key?(:source_backup)
318
334
  @source_table = args[:source_table] if args.key?(:source_table)
319
335
  @start_time = args[:start_time] if args.key?(:start_time)
320
336
  end
@@ -582,6 +598,14 @@ module Google
582
598
  # @return [Google::Apis::BigtableadminV2::GcRule]
583
599
  attr_accessor :gc_rule
584
600
 
601
+ # Approximate statistics related to a single column family within a table. This
602
+ # information may change rapidly, interpreting these values at a point in time
603
+ # may already preset out-of-date information. Everything below is approximate,
604
+ # unless otherwise specified.
605
+ # Corresponds to the JSON property `stats`
606
+ # @return [Google::Apis::BigtableadminV2::ColumnFamilyStats]
607
+ attr_accessor :stats
608
+
585
609
  def initialize(**args)
586
610
  update!(**args)
587
611
  end
@@ -589,6 +613,130 @@ module Google
589
613
  # Update properties of this object
590
614
  def update!(**args)
591
615
  @gc_rule = args[:gc_rule] if args.key?(:gc_rule)
616
+ @stats = args[:stats] if args.key?(:stats)
617
+ end
618
+ end
619
+
620
+ # Approximate statistics related to a single column family within a table. This
621
+ # information may change rapidly, interpreting these values at a point in time
622
+ # may already preset out-of-date information. Everything below is approximate,
623
+ # unless otherwise specified.
624
+ class ColumnFamilyStats
625
+ include Google::Apis::Core::Hashable
626
+
627
+ # How many cells are present per column qualifier in this column family,
628
+ # averaged over all rows containing any column in the column family. e.g. For
629
+ # column family "family" in a table with 3 rows: * A row with 3 cells in "family:
630
+ # col" and 1 cell in "other:col" (3 cells / 1 column in "family") * A row with 1
631
+ # cell in "family:col", 7 cells in "family:other_col", and 7 cells in "other:
632
+ # data" (8 cells / 2 columns in "family") * A row with 3 cells in "other:col" (0
633
+ # columns in "family", "family" not present) would report (3 + 8 + 0)/(1 + 2 + 0)
634
+ # = 3.66 in this field.
635
+ # Corresponds to the JSON property `averageCellsPerColumn`
636
+ # @return [Float]
637
+ attr_accessor :average_cells_per_column
638
+
639
+ # How many column qualifiers are present in this column family, averaged over
640
+ # all rows in the table. e.g. For column family "family" in a table with 3 rows:
641
+ # * A row with cells in "family:col" and "other:col" (1 column in "family") * A
642
+ # row with cells in "family:col", "family:other_col", and "other:data" (2
643
+ # columns in "family") * A row with cells in "other:col" (0 columns in "family",
644
+ # "family" not present) would report (1 + 2 + 0)/3 = 1.5 in this field.
645
+ # Corresponds to the JSON property `averageColumnsPerRow`
646
+ # @return [Float]
647
+ attr_accessor :average_columns_per_row
648
+
649
+ # How much space the data in the column family occupies. This is roughly how
650
+ # many bytes would be needed to read the contents of the entire column family (e.
651
+ # g. by streaming all contents out).
652
+ # Corresponds to the JSON property `logicalDataBytes`
653
+ # @return [Fixnum]
654
+ attr_accessor :logical_data_bytes
655
+
656
+ def initialize(**args)
657
+ update!(**args)
658
+ end
659
+
660
+ # Update properties of this object
661
+ def update!(**args)
662
+ @average_cells_per_column = args[:average_cells_per_column] if args.key?(:average_cells_per_column)
663
+ @average_columns_per_row = args[:average_columns_per_row] if args.key?(:average_columns_per_row)
664
+ @logical_data_bytes = args[:logical_data_bytes] if args.key?(:logical_data_bytes)
665
+ end
666
+ end
667
+
668
+ # Metadata type for the google.longrunning.Operation returned by CopyBackup.
669
+ class CopyBackupMetadata
670
+ include Google::Apis::Core::Hashable
671
+
672
+ # The name of the backup being created through the copy operation. Values are of
673
+ # the form `projects//instances//clusters//backups/`.
674
+ # Corresponds to the JSON property `name`
675
+ # @return [String]
676
+ attr_accessor :name
677
+
678
+ # Encapsulates progress related information for a Cloud Bigtable long running
679
+ # operation.
680
+ # Corresponds to the JSON property `progress`
681
+ # @return [Google::Apis::BigtableadminV2::OperationProgress]
682
+ attr_accessor :progress
683
+
684
+ # Information about a backup.
685
+ # Corresponds to the JSON property `sourceBackupInfo`
686
+ # @return [Google::Apis::BigtableadminV2::BackupInfo]
687
+ attr_accessor :source_backup_info
688
+
689
+ def initialize(**args)
690
+ update!(**args)
691
+ end
692
+
693
+ # Update properties of this object
694
+ def update!(**args)
695
+ @name = args[:name] if args.key?(:name)
696
+ @progress = args[:progress] if args.key?(:progress)
697
+ @source_backup_info = args[:source_backup_info] if args.key?(:source_backup_info)
698
+ end
699
+ end
700
+
701
+ # The request for CopyBackup.
702
+ class CopyBackupRequest
703
+ include Google::Apis::Core::Hashable
704
+
705
+ # Required. The id of the new backup. The `backup_id` along with `parent` are
706
+ # combined as `parent`/backups/`backup_id` to create the full backup name, of
707
+ # the form: `projects/`project`/instances/`instance`/clusters/`cluster`/backups/`
708
+ # backup_id``. This string must be between 1 and 50 characters in length and
709
+ # match the regex _a-zA-Z0-9*.
710
+ # Corresponds to the JSON property `backupId`
711
+ # @return [String]
712
+ attr_accessor :backup_id
713
+
714
+ # Required. Required. The expiration time of the copied backup with microsecond
715
+ # granularity that must be at least 6 hours and at most 30 days from the time
716
+ # the request is received. Once the `expire_time` has passed, Cloud Bigtable
717
+ # will delete the backup and free the resources used by the backup.
718
+ # Corresponds to the JSON property `expireTime`
719
+ # @return [String]
720
+ attr_accessor :expire_time
721
+
722
+ # Required. The source backup to be copied from. The source backup needs to be
723
+ # in READY state for it to be copied. Copying a copied backup is not allowed.
724
+ # Once CopyBackup is in progress, the source backup cannot be deleted or cleaned
725
+ # up on expiration until CopyBackup is finished. Values are of the form: `
726
+ # projects//instances//clusters//backups/`.
727
+ # Corresponds to the JSON property `sourceBackup`
728
+ # @return [String]
729
+ attr_accessor :source_backup
730
+
731
+ def initialize(**args)
732
+ update!(**args)
733
+ end
734
+
735
+ # Update properties of this object
736
+ def update!(**args)
737
+ @backup_id = args[:backup_id] if args.key?(:backup_id)
738
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
739
+ @source_backup = args[:source_backup] if args.key?(:source_backup)
592
740
  end
593
741
  end
594
742
 
@@ -2183,11 +2331,20 @@ module Google
2183
2331
  attr_accessor :cluster_states
2184
2332
 
2185
2333
  # The column families configured for this table, mapped by column family ID.
2186
- # Views: `SCHEMA_VIEW`, `FULL`
2334
+ # Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
2187
2335
  # Corresponds to the JSON property `columnFamilies`
2188
2336
  # @return [Hash<String,Google::Apis::BigtableadminV2::ColumnFamily>]
2189
2337
  attr_accessor :column_families
2190
2338
 
2339
+ # Set to true to make the table protected against data loss. i.e. deleting the
2340
+ # following resources through Admin APIs are prohibited: - The table. - The
2341
+ # column families in the table. - The instance containing the table. Note one
2342
+ # can still delete the data stored in the table through Data APIs.
2343
+ # Corresponds to the JSON property `deletionProtection`
2344
+ # @return [Boolean]
2345
+ attr_accessor :deletion_protection
2346
+ alias_method :deletion_protection?, :deletion_protection
2347
+
2191
2348
  # Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in
2192
2349
  # this table. Timestamps not matching the granularity will be rejected. If
2193
2350
  # unspecified at creation time, the value will be set to `MILLIS`. Views: `
@@ -2198,7 +2355,7 @@ module Google
2198
2355
 
2199
2356
  # The unique name of the table. Values are of the form `projects/`project`/
2200
2357
  # instances/`instance`/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `
2201
- # REPLICATION_VIEW`, `FULL`
2358
+ # REPLICATION_VIEW`, `STATS_VIEW`, `FULL`
2202
2359
  # Corresponds to the JSON property `name`
2203
2360
  # @return [String]
2204
2361
  attr_accessor :name
@@ -2208,6 +2365,16 @@ module Google
2208
2365
  # @return [Google::Apis::BigtableadminV2::RestoreInfo]
2209
2366
  attr_accessor :restore_info
2210
2367
 
2368
+ # Approximate statistics related to a table. These statistics are calculated
2369
+ # infrequently, while simultaneously, data in the table can change rapidly. Thus
2370
+ # the values reported here (e.g. row count) are very likely out-of date, even
2371
+ # the instant they are received in this API. Thus, only treat these values as
2372
+ # approximate. IMPORTANT: Everything below is approximate, unless otherwise
2373
+ # specified.
2374
+ # Corresponds to the JSON property `stats`
2375
+ # @return [Google::Apis::BigtableadminV2::TableStats]
2376
+ attr_accessor :stats
2377
+
2211
2378
  def initialize(**args)
2212
2379
  update!(**args)
2213
2380
  end
@@ -2216,9 +2383,11 @@ module Google
2216
2383
  def update!(**args)
2217
2384
  @cluster_states = args[:cluster_states] if args.key?(:cluster_states)
2218
2385
  @column_families = args[:column_families] if args.key?(:column_families)
2386
+ @deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection)
2219
2387
  @granularity = args[:granularity] if args.key?(:granularity)
2220
2388
  @name = args[:name] if args.key?(:name)
2221
2389
  @restore_info = args[:restore_info] if args.key?(:restore_info)
2390
+ @stats = args[:stats] if args.key?(:stats)
2222
2391
  end
2223
2392
  end
2224
2393
 
@@ -2254,6 +2423,58 @@ module Google
2254
2423
  end
2255
2424
  end
2256
2425
 
2426
+ # Approximate statistics related to a table. These statistics are calculated
2427
+ # infrequently, while simultaneously, data in the table can change rapidly. Thus
2428
+ # the values reported here (e.g. row count) are very likely out-of date, even
2429
+ # the instant they are received in this API. Thus, only treat these values as
2430
+ # approximate. IMPORTANT: Everything below is approximate, unless otherwise
2431
+ # specified.
2432
+ class TableStats
2433
+ include Google::Apis::Core::Hashable
2434
+
2435
+ # How many cells are present per column (column family, column qualifier)
2436
+ # combinations, averaged over all columns in all rows in the table. e.g. A table
2437
+ # with 2 rows: * A row with 3 cells in "family:col" and 1 cell in "other:col" (4
2438
+ # cells / 2 columns) * A row with 1 cell in "family:col", 7 cells in "family:
2439
+ # other_col", and 7 cells in "other:data" (15 cells / 3 columns) would report (4
2440
+ # + 15)/(2 + 3) = 3.8 in this field.
2441
+ # Corresponds to the JSON property `averageCellsPerColumn`
2442
+ # @return [Float]
2443
+ attr_accessor :average_cells_per_column
2444
+
2445
+ # How many (column family, column qualifier) combinations are present per row in
2446
+ # the table, averaged over all rows in the table. e.g. A table with 2 rows: * A
2447
+ # row with cells in "family:col" and "other:col" (2 distinct columns) * A row
2448
+ # with cells in "family:col", "family:other_col", and "other:data" (3 distinct
2449
+ # columns) would report (2 + 3)/2 = 2.5 in this field.
2450
+ # Corresponds to the JSON property `averageColumnsPerRow`
2451
+ # @return [Float]
2452
+ attr_accessor :average_columns_per_row
2453
+
2454
+ # This is roughly how many bytes would be needed to read the entire table (e.g.
2455
+ # by streaming all contents out).
2456
+ # Corresponds to the JSON property `logicalDataBytes`
2457
+ # @return [Fixnum]
2458
+ attr_accessor :logical_data_bytes
2459
+
2460
+ # How many rows are in the table.
2461
+ # Corresponds to the JSON property `rowCount`
2462
+ # @return [Fixnum]
2463
+ attr_accessor :row_count
2464
+
2465
+ def initialize(**args)
2466
+ update!(**args)
2467
+ end
2468
+
2469
+ # Update properties of this object
2470
+ def update!(**args)
2471
+ @average_cells_per_column = args[:average_cells_per_column] if args.key?(:average_cells_per_column)
2472
+ @average_columns_per_row = args[:average_columns_per_row] if args.key?(:average_columns_per_row)
2473
+ @logical_data_bytes = args[:logical_data_bytes] if args.key?(:logical_data_bytes)
2474
+ @row_count = args[:row_count] if args.key?(:row_count)
2475
+ end
2476
+ end
2477
+
2257
2478
  # Request message for `TestIamPermissions` method.
2258
2479
  class TestIamPermissionsRequest
2259
2480
  include Google::Apis::Core::Hashable
@@ -2433,6 +2654,37 @@ module Google
2433
2654
  @request_time = args[:request_time] if args.key?(:request_time)
2434
2655
  end
2435
2656
  end
2657
+
2658
+ # Metadata type for the operation returned by UpdateTable.
2659
+ class UpdateTableMetadata
2660
+ include Google::Apis::Core::Hashable
2661
+
2662
+ # If set, the time at which this operation finished or was canceled.
2663
+ # Corresponds to the JSON property `endTime`
2664
+ # @return [String]
2665
+ attr_accessor :end_time
2666
+
2667
+ # The name of the table being updated.
2668
+ # Corresponds to the JSON property `name`
2669
+ # @return [String]
2670
+ attr_accessor :name
2671
+
2672
+ # The time at which this operation started.
2673
+ # Corresponds to the JSON property `startTime`
2674
+ # @return [String]
2675
+ attr_accessor :start_time
2676
+
2677
+ def initialize(**args)
2678
+ update!(**args)
2679
+ end
2680
+
2681
+ # Update properties of this object
2682
+ def update!(**args)
2683
+ @end_time = args[:end_time] if args.key?(:end_time)
2684
+ @name = args[:name] if args.key?(:name)
2685
+ @start_time = args[:start_time] if args.key?(:start_time)
2686
+ end
2687
+ end
2436
2688
  end
2437
2689
  end
2438
2690
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigtableadminV2
18
18
  # Version of the google-apis-bigtableadmin_v2 gem
19
- GEM_VERSION = "0.29.0"
19
+ GEM_VERSION = "0.30.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220908"
25
+ REVISION = "20221022"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,24 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class ColumnFamilyStats
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class CopyBackupMetadata
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class CopyBackupRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
115
133
  class CreateBackupMetadata
116
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
135
 
@@ -394,6 +412,12 @@ module Google
394
412
  include Google::Apis::Core::JsonObjectSupport
395
413
  end
396
414
 
415
+ class TableStats
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
397
421
  class TestIamPermissionsRequest
398
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
423
 
@@ -442,6 +466,12 @@ module Google
442
466
  include Google::Apis::Core::JsonObjectSupport
443
467
  end
444
468
 
469
+ class UpdateTableMetadata
470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
471
+
472
+ include Google::Apis::Core::JsonObjectSupport
473
+ end
474
+
445
475
  class AppProfile
446
476
  # @private
447
477
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -497,6 +527,7 @@ module Google
497
527
  property :expire_time, as: 'expireTime'
498
528
  property :name, as: 'name'
499
529
  property :size_bytes, :numeric_string => true, as: 'sizeBytes'
530
+ property :source_backup, as: 'sourceBackup'
500
531
  property :source_table, as: 'sourceTable'
501
532
  property :start_time, as: 'startTime'
502
533
  property :state, as: 'state'
@@ -508,6 +539,7 @@ module Google
508
539
  class Representation < Google::Apis::Core::JsonRepresentation
509
540
  property :backup, as: 'backup'
510
541
  property :end_time, as: 'endTime'
542
+ property :source_backup, as: 'sourceBackup'
511
543
  property :source_table, as: 'sourceTable'
512
544
  property :start_time, as: 'startTime'
513
545
  end
@@ -584,6 +616,37 @@ module Google
584
616
  class Representation < Google::Apis::Core::JsonRepresentation
585
617
  property :gc_rule, as: 'gcRule', class: Google::Apis::BigtableadminV2::GcRule, decorator: Google::Apis::BigtableadminV2::GcRule::Representation
586
618
 
619
+ property :stats, as: 'stats', class: Google::Apis::BigtableadminV2::ColumnFamilyStats, decorator: Google::Apis::BigtableadminV2::ColumnFamilyStats::Representation
620
+
621
+ end
622
+ end
623
+
624
+ class ColumnFamilyStats
625
+ # @private
626
+ class Representation < Google::Apis::Core::JsonRepresentation
627
+ property :average_cells_per_column, as: 'averageCellsPerColumn'
628
+ property :average_columns_per_row, as: 'averageColumnsPerRow'
629
+ property :logical_data_bytes, :numeric_string => true, as: 'logicalDataBytes'
630
+ end
631
+ end
632
+
633
+ class CopyBackupMetadata
634
+ # @private
635
+ class Representation < Google::Apis::Core::JsonRepresentation
636
+ property :name, as: 'name'
637
+ property :progress, as: 'progress', class: Google::Apis::BigtableadminV2::OperationProgress, decorator: Google::Apis::BigtableadminV2::OperationProgress::Representation
638
+
639
+ property :source_backup_info, as: 'sourceBackupInfo', class: Google::Apis::BigtableadminV2::BackupInfo, decorator: Google::Apis::BigtableadminV2::BackupInfo::Representation
640
+
641
+ end
642
+ end
643
+
644
+ class CopyBackupRequest
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ property :backup_id, as: 'backupId'
648
+ property :expire_time, as: 'expireTime'
649
+ property :source_backup, as: 'sourceBackup'
587
650
  end
588
651
  end
589
652
 
@@ -1020,10 +1083,13 @@ module Google
1020
1083
 
1021
1084
  hash :column_families, as: 'columnFamilies', class: Google::Apis::BigtableadminV2::ColumnFamily, decorator: Google::Apis::BigtableadminV2::ColumnFamily::Representation
1022
1085
 
1086
+ property :deletion_protection, as: 'deletionProtection'
1023
1087
  property :granularity, as: 'granularity'
1024
1088
  property :name, as: 'name'
1025
1089
  property :restore_info, as: 'restoreInfo', class: Google::Apis::BigtableadminV2::RestoreInfo, decorator: Google::Apis::BigtableadminV2::RestoreInfo::Representation
1026
1090
 
1091
+ property :stats, as: 'stats', class: Google::Apis::BigtableadminV2::TableStats, decorator: Google::Apis::BigtableadminV2::TableStats::Representation
1092
+
1027
1093
  end
1028
1094
  end
1029
1095
 
@@ -1036,6 +1102,16 @@ module Google
1036
1102
  end
1037
1103
  end
1038
1104
 
1105
+ class TableStats
1106
+ # @private
1107
+ class Representation < Google::Apis::Core::JsonRepresentation
1108
+ property :average_cells_per_column, as: 'averageCellsPerColumn'
1109
+ property :average_columns_per_row, as: 'averageColumnsPerRow'
1110
+ property :logical_data_bytes, :numeric_string => true, as: 'logicalDataBytes'
1111
+ property :row_count, :numeric_string => true, as: 'rowCount'
1112
+ end
1113
+ end
1114
+
1039
1115
  class TestIamPermissionsRequest
1040
1116
  # @private
1041
1117
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1098,6 +1174,15 @@ module Google
1098
1174
  property :request_time, as: 'requestTime'
1099
1175
  end
1100
1176
  end
1177
+
1178
+ class UpdateTableMetadata
1179
+ # @private
1180
+ class Representation < Google::Apis::Core::JsonRepresentation
1181
+ property :end_time, as: 'endTime'
1182
+ property :name, as: 'name'
1183
+ property :start_time, as: 'startTime'
1184
+ end
1185
+ end
1101
1186
  end
1102
1187
  end
1103
1188
  end
@@ -926,6 +926,42 @@ module Google
926
926
  execute_or_queue_command(command, &block)
927
927
  end
928
928
 
929
+ # Copy a Cloud Bigtable backup to a new backup in the destination cluster
930
+ # located in the destination instance and project.
931
+ # @param [String] parent
932
+ # Required. The name of the destination cluster that will contain the backup
933
+ # copy. The cluster must already exists. Values are of the form: `projects/`
934
+ # project`/instances/`instance`/clusters/`cluster``.
935
+ # @param [Google::Apis::BigtableadminV2::CopyBackupRequest] copy_backup_request_object
936
+ # @param [String] fields
937
+ # Selector specifying which fields to include in a partial response.
938
+ # @param [String] quota_user
939
+ # Available to use for quota purposes for server-side applications. Can be any
940
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
941
+ # @param [Google::Apis::RequestOptions] options
942
+ # Request-specific options
943
+ #
944
+ # @yield [result, err] Result & error if block supplied
945
+ # @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
946
+ # @yieldparam err [StandardError] error object if request failed
947
+ #
948
+ # @return [Google::Apis::BigtableadminV2::Operation]
949
+ #
950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
953
+ def copy_backup(parent, copy_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
954
+ command = make_simple_command(:post, 'v2/{+parent}/backups:copy', options)
955
+ command.request_representation = Google::Apis::BigtableadminV2::CopyBackupRequest::Representation
956
+ command.request_object = copy_backup_request_object
957
+ command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
958
+ command.response_class = Google::Apis::BigtableadminV2::Operation
959
+ command.params['parent'] = parent unless parent.nil?
960
+ command.query['fields'] = fields unless fields.nil?
961
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
962
+ execute_or_queue_command(command, &block)
963
+ end
964
+
929
965
  # Starts creating a new Cloud Bigtable Backup. The returned backup long-running
930
966
  # operation can be used to track creation of the backup. The metadata field type
931
967
  # is CreateBackupMetadata. The response field type is Backup, if successful.
@@ -1646,15 +1682,57 @@ module Google
1646
1682
  execute_or_queue_command(command, &block)
1647
1683
  end
1648
1684
 
1649
- # Create a new table by restoring from a completed backup. The new table must be
1650
- # in the same project as the instance containing the backup. The returned table
1685
+ # Updates a specified table.
1686
+ # @param [String] name
1687
+ # The unique name of the table. Values are of the form `projects/`project`/
1688
+ # instances/`instance`/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `
1689
+ # REPLICATION_VIEW`, `STATS_VIEW`, `FULL`
1690
+ # @param [Google::Apis::BigtableadminV2::Table] table_object
1691
+ # @param [String] update_mask
1692
+ # Required. The list of fields to update. A mask specifying which fields (e.g. `
1693
+ # change_stream_config`) in the `table` field should be updated. This mask is
1694
+ # relative to the `table` field, not to the request message. The wildcard (*)
1695
+ # path is currently not supported. Currently UpdateTable is only supported for
1696
+ # the following fields: * `change_stream_config` * `change_stream_config.
1697
+ # retention_period` * `deletion_protection` If `column_families` is set in `
1698
+ # update_mask`, it will return an UNIMPLEMENTED error.
1699
+ # @param [String] fields
1700
+ # Selector specifying which fields to include in a partial response.
1701
+ # @param [String] quota_user
1702
+ # Available to use for quota purposes for server-side applications. Can be any
1703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1704
+ # @param [Google::Apis::RequestOptions] options
1705
+ # Request-specific options
1706
+ #
1707
+ # @yield [result, err] Result & error if block supplied
1708
+ # @yieldparam result [Google::Apis::BigtableadminV2::Operation] parsed result object
1709
+ # @yieldparam err [StandardError] error object if request failed
1710
+ #
1711
+ # @return [Google::Apis::BigtableadminV2::Operation]
1712
+ #
1713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1716
+ def patch_project_instance_table(name, table_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1717
+ command = make_simple_command(:patch, 'v2/{+name}', options)
1718
+ command.request_representation = Google::Apis::BigtableadminV2::Table::Representation
1719
+ command.request_object = table_object
1720
+ command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation
1721
+ command.response_class = Google::Apis::BigtableadminV2::Operation
1722
+ command.params['name'] = name unless name.nil?
1723
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1724
+ command.query['fields'] = fields unless fields.nil?
1725
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1726
+ execute_or_queue_command(command, &block)
1727
+ end
1728
+
1729
+ # Create a new table by restoring from a completed backup. The returned table
1651
1730
  # long-running operation can be used to track the progress of the operation, and
1652
1731
  # to cancel it. The metadata field type is RestoreTableMetadata. The response
1653
1732
  # type is Table, if successful.
1654
1733
  # @param [String] parent
1655
- # Required. The name of the instance in which to create the restored table. This
1656
- # instance must be in the same project as the source backup. Values are of the
1657
- # form `projects//instances/`.
1734
+ # Required. The name of the instance in which to create the restored table.
1735
+ # Values are of the form `projects//instances/`.
1658
1736
  # @param [Google::Apis::BigtableadminV2::RestoreTableRequest] restore_table_request_object
1659
1737
  # @param [String] fields
1660
1738
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigtableadmin_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-03 00:00:00.000000000 Z
11
+ date: 2022-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigtableadmin_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.29.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v2/v0.30.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigtableadmin_v2
63
63
  post_install_message:
64
64
  rdoc_options: []