google-apis-backupdr_v1 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cedc1a328c753791425fbde38a54ae064f6d5635e69041006c8b964df3f1ad33
4
- data.tar.gz: 0c5e56c67dcabbd795c18996785565c80cd572a2d75acb3007c2bc0f8bbc9cbf
3
+ metadata.gz: 549efdb104eefac307e91ef8a2a8c06eaf33a9a5c91d149ab21dac8c2a51e999
4
+ data.tar.gz: 04bd5726119b97e19432d60992dee6ced819d93920ddf83102810e5fa82db1cd
5
5
  SHA512:
6
- metadata.gz: 99046882fcb7b94485e04a74d0d5daa9da7635b97f494764252c92648080cf5217ba220546e1824e93f697fcfef234b65b7b6f88846d9eef34e9fb50020decb7
7
- data.tar.gz: aa6772cba08f4fa13c79b8d21daf056b255fc8c54ace85c056e5821d48331dc6b1a7b3afdf67ce93214415cfd474920a7c227a7628b6f1e6a08c951648629737
6
+ metadata.gz: e77170b74c8968d6623e4313cbd8c02a7a7f0957ca59ef2d936629c9c2385fe82ff725f0f2dc4e50f0aae6abfff45e8e0001d348ecd392197dc61d3466adbe5d
7
+ data.tar.gz: 12d99978cf69de1d07e9ea37e9fc751d6b2e9d9933a539349ff6301216950bd8f01b357508c96e4d47f083ae18e0f334ee955c44c7f2d342dccb8239d86cce8f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-backupdr_v1
2
2
 
3
+ ### v0.47.0 (2025-11-23)
4
+
5
+ * Regenerated from discovery document revision 20251112
6
+
7
+ ### v0.46.0 (2025-11-16)
8
+
9
+ * Regenerated from discovery document revision 20251105
10
+
3
11
  ### v0.45.0 (2025-11-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20251029
@@ -522,6 +522,12 @@ module Google
522
522
  # @return [Array<Google::Apis::BackupdrV1::BackupLock>]
523
523
  attr_accessor :backup_appliance_locks
524
524
 
525
+ # Output only. Setting for how the enforced retention end time is inherited.
526
+ # This value is copied from this backup's BackupVault.
527
+ # Corresponds to the JSON property `backupRetentionInheritance`
528
+ # @return [String]
529
+ attr_accessor :backup_retention_inheritance
530
+
525
531
  # Output only. Type of the backup, unspecified, scheduled or ondemand.
526
532
  # Corresponds to the JSON property `backupType`
527
533
  # @return [String]
@@ -585,6 +591,11 @@ module Google
585
591
  # @return [Google::Apis::BackupdrV1::BackupGcpResource]
586
592
  attr_accessor :gcp_resource
587
593
 
594
+ # Optional. Output only. The list of KMS key versions used to encrypt the backup.
595
+ # Corresponds to the JSON property `kmsKeyVersions`
596
+ # @return [Array<String>]
597
+ attr_accessor :kms_key_versions
598
+
588
599
  # Optional. Resource labels to represent user provided metadata. No labels
589
600
  # currently defined.
590
601
  # Corresponds to the JSON property `labels`
@@ -641,6 +652,7 @@ module Google
641
652
  @alloy_db_backup_properties = args[:alloy_db_backup_properties] if args.key?(:alloy_db_backup_properties)
642
653
  @backup_appliance_backup_properties = args[:backup_appliance_backup_properties] if args.key?(:backup_appliance_backup_properties)
643
654
  @backup_appliance_locks = args[:backup_appliance_locks] if args.key?(:backup_appliance_locks)
655
+ @backup_retention_inheritance = args[:backup_retention_inheritance] if args.key?(:backup_retention_inheritance)
644
656
  @backup_type = args[:backup_type] if args.key?(:backup_type)
645
657
  @cloud_sql_instance_backup_properties = args[:cloud_sql_instance_backup_properties] if args.key?(:cloud_sql_instance_backup_properties)
646
658
  @compute_instance_backup_properties = args[:compute_instance_backup_properties] if args.key?(:compute_instance_backup_properties)
@@ -653,6 +665,7 @@ module Google
653
665
  @expire_time = args[:expire_time] if args.key?(:expire_time)
654
666
  @gcp_backup_plan_info = args[:gcp_backup_plan_info] if args.key?(:gcp_backup_plan_info)
655
667
  @gcp_resource = args[:gcp_resource] if args.key?(:gcp_resource)
668
+ @kms_key_versions = args[:kms_key_versions] if args.key?(:kms_key_versions)
656
669
  @labels = args[:labels] if args.key?(:labels)
657
670
  @name = args[:name] if args.key?(:name)
658
671
  @resource_size_bytes = args[:resource_size_bytes] if args.key?(:resource_size_bytes)
@@ -1475,6 +1488,11 @@ module Google
1475
1488
  # @return [String]
1476
1489
  attr_accessor :backup_minimum_enforced_retention_duration
1477
1490
 
1491
+ # Optional. Setting for how a backup's enforced retention end time is inherited.
1492
+ # Corresponds to the JSON property `backupRetentionInheritance`
1493
+ # @return [String]
1494
+ attr_accessor :backup_retention_inheritance
1495
+
1478
1496
  # Output only. The time when the instance was created.
1479
1497
  # Corresponds to the JSON property `createTime`
1480
1498
  # @return [String]
@@ -1497,6 +1515,12 @@ module Google
1497
1515
  # @return [String]
1498
1516
  attr_accessor :effective_time
1499
1517
 
1518
+ # Message describing the EncryptionConfig of backup vault. This determines how
1519
+ # data within the vault is encrypted at rest.
1520
+ # Corresponds to the JSON property `encryptionConfig`
1521
+ # @return [Google::Apis::BackupdrV1::EncryptionConfig]
1522
+ attr_accessor :encryption_config
1523
+
1500
1524
  # Optional. Server specified ETag for the backup vault resource to prevent
1501
1525
  # simultaneous updates from overwiting each other.
1502
1526
  # Corresponds to the JSON property `etag`
@@ -1554,10 +1578,12 @@ module Google
1554
1578
  @annotations = args[:annotations] if args.key?(:annotations)
1555
1579
  @backup_count = args[:backup_count] if args.key?(:backup_count)
1556
1580
  @backup_minimum_enforced_retention_duration = args[:backup_minimum_enforced_retention_duration] if args.key?(:backup_minimum_enforced_retention_duration)
1581
+ @backup_retention_inheritance = args[:backup_retention_inheritance] if args.key?(:backup_retention_inheritance)
1557
1582
  @create_time = args[:create_time] if args.key?(:create_time)
1558
1583
  @deletable = args[:deletable] if args.key?(:deletable)
1559
1584
  @description = args[:description] if args.key?(:description)
1560
1585
  @effective_time = args[:effective_time] if args.key?(:effective_time)
1586
+ @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
1561
1587
  @etag = args[:etag] if args.key?(:etag)
1562
1588
  @labels = args[:labels] if args.key?(:labels)
1563
1589
  @name = args[:name] if args.key?(:name)
@@ -3010,6 +3036,48 @@ module Google
3010
3036
  end
3011
3037
  end
3012
3038
 
3039
+ # Message describing the EncryptionConfig of backup vault. This determines how
3040
+ # data within the vault is encrypted at rest.
3041
+ class EncryptionConfig
3042
+ include Google::Apis::Core::Hashable
3043
+
3044
+ # Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must
3045
+ # be in the same region as the vault. Some workload backups like compute disk
3046
+ # backups may use their inherited source key instead. Format: projects/`project`/
3047
+ # locations/`location`/keyRings/`ring`/cryptoKeys/`key`
3048
+ # Corresponds to the JSON property `kmsKeyName`
3049
+ # @return [String]
3050
+ attr_accessor :kms_key_name
3051
+
3052
+ def initialize(**args)
3053
+ update!(**args)
3054
+ end
3055
+
3056
+ # Update properties of this object
3057
+ def update!(**args)
3058
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
3059
+ end
3060
+ end
3061
+
3062
+ # Request message for ending a trial.
3063
+ class EndTrialRequest
3064
+ include Google::Apis::Core::Hashable
3065
+
3066
+ # Required. The reason for ending the trial.
3067
+ # Corresponds to the JSON property `endReason`
3068
+ # @return [String]
3069
+ attr_accessor :end_reason
3070
+
3071
+ def initialize(**args)
3072
+ update!(**args)
3073
+ end
3074
+
3075
+ # Update properties of this object
3076
+ def update!(**args)
3077
+ @end_reason = args[:end_reason] if args.key?(:end_reason)
3078
+ end
3079
+ end
3080
+
3013
3081
  # A key/value pair to be used for storing metadata.
3014
3082
  class Entry
3015
3083
  include Google::Apis::Core::Hashable
@@ -4848,6 +4916,17 @@ module Google
4848
4916
  class RestoreBackupRequest
4849
4917
  include Google::Apis::Core::Hashable
4850
4918
 
4919
+ # Optional. A field mask used to clear server-side default values for fields
4920
+ # within the `instance_properties` oneof. When a field in this mask is cleared,
4921
+ # the server will not apply its default logic (like inheriting a value from the
4922
+ # source) for that field. The most common current use case is clearing default
4923
+ # encryption keys. Examples of field mask paths: - Compute Instance Disks: `
4924
+ # compute_instance_restore_properties.disks.*.disk_encryption_key` - Single Disk:
4925
+ # `disk_restore_properties.disk_encryption_key`
4926
+ # Corresponds to the JSON property `clearOverridesFieldMask`
4927
+ # @return [String]
4928
+ attr_accessor :clear_overrides_field_mask
4929
+
4851
4930
  # ComputeInstanceRestoreProperties represents Compute Engine instance properties
4852
4931
  # to be overridden during restore.
4853
4932
  # Corresponds to the JSON property `computeInstanceRestoreProperties`
@@ -4895,6 +4974,7 @@ module Google
4895
4974
 
4896
4975
  # Update properties of this object
4897
4976
  def update!(**args)
4977
+ @clear_overrides_field_mask = args[:clear_overrides_field_mask] if args.key?(:clear_overrides_field_mask)
4898
4978
  @compute_instance_restore_properties = args[:compute_instance_restore_properties] if args.key?(:compute_instance_restore_properties)
4899
4979
  @compute_instance_target_environment = args[:compute_instance_target_environment] if args.key?(:compute_instance_target_environment)
4900
4980
  @disk_restore_properties = args[:disk_restore_properties] if args.key?(:disk_restore_properties)
@@ -5485,6 +5565,11 @@ module Google
5485
5565
  # @return [Fixnum]
5486
5566
  attr_accessor :custom_retention_days
5487
5567
 
5568
+ # Optional. Labels to be applied on the backup.
5569
+ # Corresponds to the JSON property `labels`
5570
+ # @return [Hash<String,String>]
5571
+ attr_accessor :labels
5572
+
5488
5573
  # Optional. An optional request ID to identify requests. Specify a unique
5489
5574
  # request ID so that if you must retry your request, the server will know to
5490
5575
  # ignore the request if it has already been completed. The server will guarantee
@@ -5512,6 +5597,7 @@ module Google
5512
5597
  # Update properties of this object
5513
5598
  def update!(**args)
5514
5599
  @custom_retention_days = args[:custom_retention_days] if args.key?(:custom_retention_days)
5600
+ @labels = args[:labels] if args.key?(:labels)
5515
5601
  @request_id = args[:request_id] if args.key?(:request_id)
5516
5602
  @rule_id = args[:rule_id] if args.key?(:rule_id)
5517
5603
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BackupdrV1
18
18
  # Version of the google-apis-backupdr_v1 gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251029"
25
+ REVISION = "20251112"
26
26
  end
27
27
  end
28
28
  end
@@ -346,6 +346,18 @@ module Google
346
346
  include Google::Apis::Core::JsonObjectSupport
347
347
  end
348
348
 
349
+ class EncryptionConfig
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class EndTrialRequest
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
349
361
  class Entry
350
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
363
 
@@ -885,6 +897,7 @@ module Google
885
897
 
886
898
  collection :backup_appliance_locks, as: 'backupApplianceLocks', class: Google::Apis::BackupdrV1::BackupLock, decorator: Google::Apis::BackupdrV1::BackupLock::Representation
887
899
 
900
+ property :backup_retention_inheritance, as: 'backupRetentionInheritance'
888
901
  property :backup_type, as: 'backupType'
889
902
  property :cloud_sql_instance_backup_properties, as: 'cloudSqlInstanceBackupProperties', class: Google::Apis::BackupdrV1::CloudSqlInstanceBackupProperties, decorator: Google::Apis::BackupdrV1::CloudSqlInstanceBackupProperties::Representation
890
903
 
@@ -902,6 +915,7 @@ module Google
902
915
 
903
916
  property :gcp_resource, as: 'gcpResource', class: Google::Apis::BackupdrV1::BackupGcpResource, decorator: Google::Apis::BackupdrV1::BackupGcpResource::Representation
904
917
 
918
+ collection :kms_key_versions, as: 'kmsKeyVersions'
905
919
  hash :labels, as: 'labels'
906
920
  property :name, as: 'name'
907
921
  property :resource_size_bytes, :numeric_string => true, as: 'resourceSizeBytes'
@@ -1108,10 +1122,13 @@ module Google
1108
1122
  hash :annotations, as: 'annotations'
1109
1123
  property :backup_count, :numeric_string => true, as: 'backupCount'
1110
1124
  property :backup_minimum_enforced_retention_duration, as: 'backupMinimumEnforcedRetentionDuration'
1125
+ property :backup_retention_inheritance, as: 'backupRetentionInheritance'
1111
1126
  property :create_time, as: 'createTime'
1112
1127
  property :deletable, as: 'deletable'
1113
1128
  property :description, as: 'description'
1114
1129
  property :effective_time, as: 'effectiveTime'
1130
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::BackupdrV1::EncryptionConfig, decorator: Google::Apis::BackupdrV1::EncryptionConfig::Representation
1131
+
1115
1132
  property :etag, as: 'etag'
1116
1133
  hash :labels, as: 'labels'
1117
1134
  property :name, as: 'name'
@@ -1468,6 +1485,20 @@ module Google
1468
1485
  end
1469
1486
  end
1470
1487
 
1488
+ class EncryptionConfig
1489
+ # @private
1490
+ class Representation < Google::Apis::Core::JsonRepresentation
1491
+ property :kms_key_name, as: 'kmsKeyName'
1492
+ end
1493
+ end
1494
+
1495
+ class EndTrialRequest
1496
+ # @private
1497
+ class Representation < Google::Apis::Core::JsonRepresentation
1498
+ property :end_reason, as: 'endReason'
1499
+ end
1500
+ end
1501
+
1471
1502
  class Entry
1472
1503
  # @private
1473
1504
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1942,6 +1973,7 @@ module Google
1942
1973
  class RestoreBackupRequest
1943
1974
  # @private
1944
1975
  class Representation < Google::Apis::Core::JsonRepresentation
1976
+ property :clear_overrides_field_mask, as: 'clearOverridesFieldMask'
1945
1977
  property :compute_instance_restore_properties, as: 'computeInstanceRestoreProperties', class: Google::Apis::BackupdrV1::ComputeInstanceRestoreProperties, decorator: Google::Apis::BackupdrV1::ComputeInstanceRestoreProperties::Representation
1946
1978
 
1947
1979
  property :compute_instance_target_environment, as: 'computeInstanceTargetEnvironment', class: Google::Apis::BackupdrV1::ComputeInstanceTargetEnvironment, decorator: Google::Apis::BackupdrV1::ComputeInstanceTargetEnvironment::Representation
@@ -2113,6 +2145,7 @@ module Google
2113
2145
  # @private
2114
2146
  class Representation < Google::Apis::Core::JsonRepresentation
2115
2147
  property :custom_retention_days, as: 'customRetentionDays'
2148
+ hash :labels, as: 'labels'
2116
2149
  property :request_id, as: 'requestId'
2117
2150
  property :rule_id, as: 'ruleId'
2118
2151
  end
@@ -1538,10 +1538,14 @@ module Google
1538
1538
  # @param [String] filter
1539
1539
  # Optional. A filter expression that filters the results fetched in the response.
1540
1540
  # The expression must specify the field name, a comparison operator, and the
1541
- # value that you want to use for filtering. Supported fields:
1541
+ # value that you want to use for filtering. Supported fields: * name * state *
1542
+ # backup_type * create_time * expire_time * enforced_retention_end_time *
1543
+ # gcp_backup_plan_info.backup_plan * cloud_sql_instance_backup_properties.
1544
+ # instance_tier * cloud_sql_instance_backup_properties.
1545
+ # database_installed_version
1542
1546
  # @param [String] order_by
1543
1547
  # Optional. A comma-separated list of fields to order by, sorted in ascending
1544
- # order. Use "desc" after a field name for descending.
1548
+ # order. Use "desc" after a field name for descending. Supported fields: * name
1545
1549
  # @param [Fixnum] page_size
1546
1550
  # Optional. The maximum number of Backups to return. The service may return
1547
1551
  # fewer than this value. If unspecified, at most 50 Backups will be returned.
@@ -2472,6 +2476,39 @@ module Google
2472
2476
  execute_or_queue_command(command, &block)
2473
2477
  end
2474
2478
 
2479
+ # Ends the trial for a project
2480
+ # @param [String] parent
2481
+ # Required. The parent resource where this trial will be ended.
2482
+ # @param [Google::Apis::BackupdrV1::EndTrialRequest] end_trial_request_object
2483
+ # @param [String] fields
2484
+ # Selector specifying which fields to include in a partial response.
2485
+ # @param [String] quota_user
2486
+ # Available to use for quota purposes for server-side applications. Can be any
2487
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2488
+ # @param [Google::Apis::RequestOptions] options
2489
+ # Request-specific options
2490
+ #
2491
+ # @yield [result, err] Result & error if block supplied
2492
+ # @yieldparam result [Google::Apis::BackupdrV1::Trial] parsed result object
2493
+ # @yieldparam err [StandardError] error object if request failed
2494
+ #
2495
+ # @return [Google::Apis::BackupdrV1::Trial]
2496
+ #
2497
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2498
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2499
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2500
+ def end_trial(parent, end_trial_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2501
+ command = make_simple_command(:post, 'v1/{+parent}/trial:end', options)
2502
+ command.request_representation = Google::Apis::BackupdrV1::EndTrialRequest::Representation
2503
+ command.request_object = end_trial_request_object
2504
+ command.response_representation = Google::Apis::BackupdrV1::Trial::Representation
2505
+ command.response_class = Google::Apis::BackupdrV1::Trial
2506
+ command.params['parent'] = parent unless parent.nil?
2507
+ command.query['fields'] = fields unless fields.nil?
2508
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2509
+ execute_or_queue_command(command, &block)
2510
+ end
2511
+
2475
2512
  # Subscribes to a trial for a project
2476
2513
  # @param [String] parent
2477
2514
  # Required. The project where this trial will be created. Format: projects/`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-backupdr_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-backupdr_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-backupdr_v1/v0.45.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-backupdr_v1/v0.47.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-backupdr_v1
62
62
  rdoc_options: []
63
63
  require_paths: