google-apis-backupdr_v1 0.28.0 → 0.30.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: de1755142f7003b89c247c8a4cc148996f5c16c070a620a297dd14f722c86c13
4
- data.tar.gz: 3fe86ce2ad1d2bd182d354c0626ba3b2a560c837b96683ea7808d05c2afd9a10
3
+ metadata.gz: a9d366f97a5bc22a1862289351378a078ce70b3534eb4f8ef9bea45703e233a6
4
+ data.tar.gz: 04e07f38c05f0c47e5ccb9ded3d5cbb6e9d42b51052ee044933723a503983d52
5
5
  SHA512:
6
- metadata.gz: 2df40f109103ced71d0e83cff8b3b913fb8e8a1deb783fae5616907fbeb04595cd453ad230884a53de68fa747440786337efb728899db9b7b5f4a563d683ff9a
7
- data.tar.gz: '09ed87a75326dab0ea08771ce32d597b75b63536e16183e2ce396ee39522848734af37ec1a747e9c4f5301f47a548667817d2192a958dde3792819e9c43efc69'
6
+ metadata.gz: f653a1c06a5bc62c444f4e87cc0bcf2f4de4078169d18fb62c0ebfa960059f0db57b3f34194e3d54e2a2e7d7a9aa015dfaec00d9fd1faa015499781b642e4b6f
7
+ data.tar.gz: 05ad32acda501166986d9ba9cb947c7f3b6030417271a6a23e642b8c1298e37ec3268de017437e3611e517f614c2afbe16daeb6ff513d29f8d32d1790c8b560e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-backupdr_v1
2
2
 
3
+ ### v0.30.0 (2025-06-01)
4
+
5
+ * Regenerated from discovery document revision 20250523
6
+ * Regenerated using generator version 0.18.0
7
+
8
+ ### v0.29.0 (2025-05-18)
9
+
10
+ * Regenerated from discovery document revision 20250509
11
+
3
12
  ### v0.28.0 (2025-05-04)
4
13
 
5
14
  * Regenerated using generator version 0.17.0
@@ -483,6 +483,11 @@ module Google
483
483
  # @return [String]
484
484
  attr_accessor :description
485
485
 
486
+ # DiskBackupProperties represents the properties of a Disk backup.
487
+ # Corresponds to the JSON property `diskBackupProperties`
488
+ # @return [Google::Apis::BackupdrV1::DiskBackupProperties]
489
+ attr_accessor :disk_backup_properties
490
+
486
491
  # Optional. The backup can not be deleted before this time.
487
492
  # Corresponds to the JSON property `enforcedRetentionEndTime`
488
493
  # @return [String]
@@ -564,6 +569,7 @@ module Google
564
569
  @consistency_time = args[:consistency_time] if args.key?(:consistency_time)
565
570
  @create_time = args[:create_time] if args.key?(:create_time)
566
571
  @description = args[:description] if args.key?(:description)
572
+ @disk_backup_properties = args[:disk_backup_properties] if args.key?(:disk_backup_properties)
567
573
  @enforced_retention_end_time = args[:enforced_retention_end_time] if args.key?(:enforced_retention_end_time)
568
574
  @etag = args[:etag] if args.key?(:etag)
569
575
  @expire_time = args[:expire_time] if args.key?(:expire_time)
@@ -1082,6 +1088,11 @@ module Google
1082
1088
  # @return [String]
1083
1089
  attr_accessor :state
1084
1090
 
1091
+ # Output only. All resource types to which backupPlan can be applied.
1092
+ # Corresponds to the JSON property `supportedResourceTypes`
1093
+ # @return [Array<String>]
1094
+ attr_accessor :supported_resource_types
1095
+
1085
1096
  # Output only. When the `BackupPlan` was last updated.
1086
1097
  # Corresponds to the JSON property `updateTime`
1087
1098
  # @return [String]
@@ -1103,6 +1114,7 @@ module Google
1103
1114
  @name = args[:name] if args.key?(:name)
1104
1115
  @resource_type = args[:resource_type] if args.key?(:resource_type)
1105
1116
  @state = args[:state] if args.key?(:state)
1117
+ @supported_resource_types = args[:supported_resource_types] if args.key?(:supported_resource_types)
1106
1118
  @update_time = args[:update_time] if args.key?(:update_time)
1107
1119
  end
1108
1120
  end
@@ -1187,10 +1199,11 @@ module Google
1187
1199
  # Required. Configures the duration for which backup data will be kept. It is
1188
1200
  # defined in “days”. The value should be greater than or equal to minimum
1189
1201
  # enforced retention of the backup vault. Minimum value is 1 and maximum value
1190
- # is 90 for hourly backups. Minimum value is 1 and maximum value is 186 for
1191
- # daily backups. Minimum value is 7 and maximum value is 366 for weekly backups.
1192
- # Minimum value is 30 and maximum value is 732 for monthly backups. Minimum
1193
- # value is 365 and maximum value is 36159 for yearly backups.
1202
+ # is 36159 for custom retention on-demand backup. Minimum value is 1 and maximum
1203
+ # value is 90 for hourly backups. Minimum value is 1 and maximum value is 186
1204
+ # for daily backups. Minimum value is 7 and maximum value is 366 for weekly
1205
+ # backups. Minimum value is 30 and maximum value is 732 for monthly backups.
1206
+ # Minimum value is 365 and maximum value is 36159 for yearly backups.
1194
1207
  # Corresponds to the JSON property `backupRetentionDays`
1195
1208
  # @return [Fixnum]
1196
1209
  attr_accessor :backup_retention_days
@@ -1919,6 +1932,13 @@ module Google
1919
1932
  class DataSource
1920
1933
  include Google::Apis::Core::Hashable
1921
1934
 
1935
+ # Output only. This field is set to true if the backup is blocked by vault
1936
+ # access restriction.
1937
+ # Corresponds to the JSON property `backupBlockedByVaultAccessRestriction`
1938
+ # @return [Boolean]
1939
+ attr_accessor :backup_blocked_by_vault_access_restriction
1940
+ alias_method :backup_blocked_by_vault_access_restriction?, :backup_blocked_by_vault_access_restriction
1941
+
1922
1942
  # BackupConfigInfo has information about how the resource is configured for
1923
1943
  # Backup and about the most recent backup to this vault.
1924
1944
  # Corresponds to the JSON property `backupConfigInfo`
@@ -1995,6 +2015,7 @@ module Google
1995
2015
 
1996
2016
  # Update properties of this object
1997
2017
  def update!(**args)
2018
+ @backup_blocked_by_vault_access_restriction = args[:backup_blocked_by_vault_access_restriction] if args.key?(:backup_blocked_by_vault_access_restriction)
1998
2019
  @backup_config_info = args[:backup_config_info] if args.key?(:backup_config_info)
1999
2020
  @backup_count = args[:backup_count] if args.key?(:backup_count)
2000
2021
  @config_state = args[:config_state] if args.key?(:config_state)
@@ -2078,6 +2099,12 @@ module Google
2078
2099
  # @return [Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties]
2079
2100
  attr_accessor :compute_instance_datasource_properties
2080
2101
 
2102
+ # DiskDataSourceProperties represents the properties of a Disk resource that are
2103
+ # stored in the DataSource. .
2104
+ # Corresponds to the JSON property `diskDatasourceProperties`
2105
+ # @return [Google::Apis::BackupdrV1::DiskDataSourceProperties]
2106
+ attr_accessor :disk_datasource_properties
2107
+
2081
2108
  # Output only. Full resource pathname URL of the source Google Cloud resource.
2082
2109
  # Corresponds to the JSON property `gcpResourcename`
2083
2110
  # @return [String]
@@ -2101,12 +2128,279 @@ module Google
2101
2128
  # Update properties of this object
2102
2129
  def update!(**args)
2103
2130
  @compute_instance_datasource_properties = args[:compute_instance_datasource_properties] if args.key?(:compute_instance_datasource_properties)
2131
+ @disk_datasource_properties = args[:disk_datasource_properties] if args.key?(:disk_datasource_properties)
2104
2132
  @gcp_resourcename = args[:gcp_resourcename] if args.key?(:gcp_resourcename)
2105
2133
  @location = args[:location] if args.key?(:location)
2106
2134
  @type = args[:type] if args.key?(:type)
2107
2135
  end
2108
2136
  end
2109
2137
 
2138
+ # DiskBackupProperties represents the properties of a Disk backup.
2139
+ class DiskBackupProperties
2140
+ include Google::Apis::Core::Hashable
2141
+
2142
+ # The architecture of the source disk. Valid values are ARM64 or X86_64.
2143
+ # Corresponds to the JSON property `architecture`
2144
+ # @return [String]
2145
+ attr_accessor :architecture
2146
+
2147
+ # A description of the source disk.
2148
+ # Corresponds to the JSON property `description`
2149
+ # @return [String]
2150
+ attr_accessor :description
2151
+
2152
+ # A list of guest OS features that are applicable to this backup.
2153
+ # Corresponds to the JSON property `guestOsFeature`
2154
+ # @return [Array<Google::Apis::BackupdrV1::GuestOsFeature>]
2155
+ attr_accessor :guest_os_feature
2156
+
2157
+ # A list of publicly available licenses that are applicable to this backup. This
2158
+ # is applicable if the original image had licenses attached, e.g. Windows image.
2159
+ # Corresponds to the JSON property `licenses`
2160
+ # @return [Array<String>]
2161
+ attr_accessor :licenses
2162
+
2163
+ # Region and zone are mutually exclusive fields. The URL of the region of the
2164
+ # source disk.
2165
+ # Corresponds to the JSON property `region`
2166
+ # @return [String]
2167
+ attr_accessor :region
2168
+
2169
+ # The URL of the Zones where the source disk should be replicated.
2170
+ # Corresponds to the JSON property `replicaZones`
2171
+ # @return [Array<String>]
2172
+ attr_accessor :replica_zones
2173
+
2174
+ # Size(in GB) of the source disk.
2175
+ # Corresponds to the JSON property `sizeGb`
2176
+ # @return [Fixnum]
2177
+ attr_accessor :size_gb
2178
+
2179
+ # The source disk used to create this backup.
2180
+ # Corresponds to the JSON property `sourceDisk`
2181
+ # @return [String]
2182
+ attr_accessor :source_disk
2183
+
2184
+ # The URL of the type of the disk.
2185
+ # Corresponds to the JSON property `type`
2186
+ # @return [String]
2187
+ attr_accessor :type
2188
+
2189
+ # The URL of the Zone where the source disk.
2190
+ # Corresponds to the JSON property `zone`
2191
+ # @return [String]
2192
+ attr_accessor :zone
2193
+
2194
+ def initialize(**args)
2195
+ update!(**args)
2196
+ end
2197
+
2198
+ # Update properties of this object
2199
+ def update!(**args)
2200
+ @architecture = args[:architecture] if args.key?(:architecture)
2201
+ @description = args[:description] if args.key?(:description)
2202
+ @guest_os_feature = args[:guest_os_feature] if args.key?(:guest_os_feature)
2203
+ @licenses = args[:licenses] if args.key?(:licenses)
2204
+ @region = args[:region] if args.key?(:region)
2205
+ @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
2206
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
2207
+ @source_disk = args[:source_disk] if args.key?(:source_disk)
2208
+ @type = args[:type] if args.key?(:type)
2209
+ @zone = args[:zone] if args.key?(:zone)
2210
+ end
2211
+ end
2212
+
2213
+ # DiskDataSourceProperties represents the properties of a Disk resource that are
2214
+ # stored in the DataSource. .
2215
+ class DiskDataSourceProperties
2216
+ include Google::Apis::Core::Hashable
2217
+
2218
+ # The description of the disk.
2219
+ # Corresponds to the JSON property `description`
2220
+ # @return [String]
2221
+ attr_accessor :description
2222
+
2223
+ # Name of the disk backed up by the datasource.
2224
+ # Corresponds to the JSON property `name`
2225
+ # @return [String]
2226
+ attr_accessor :name
2227
+
2228
+ # The size of the disk in GB.
2229
+ # Corresponds to the JSON property `sizeGb`
2230
+ # @return [Fixnum]
2231
+ attr_accessor :size_gb
2232
+
2233
+ # The type of the disk.
2234
+ # Corresponds to the JSON property `type`
2235
+ # @return [String]
2236
+ attr_accessor :type
2237
+
2238
+ def initialize(**args)
2239
+ update!(**args)
2240
+ end
2241
+
2242
+ # Update properties of this object
2243
+ def update!(**args)
2244
+ @description = args[:description] if args.key?(:description)
2245
+ @name = args[:name] if args.key?(:name)
2246
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
2247
+ @type = args[:type] if args.key?(:type)
2248
+ end
2249
+ end
2250
+
2251
+ # DiskRestoreProperties represents the properties of a Disk restore.
2252
+ class DiskRestoreProperties
2253
+ include Google::Apis::Core::Hashable
2254
+
2255
+ # Optional. The access mode of the disk.
2256
+ # Corresponds to the JSON property `accessMode`
2257
+ # @return [String]
2258
+ attr_accessor :access_mode
2259
+
2260
+ # Optional. The architecture of the source disk. Valid values are ARM64 or
2261
+ # X86_64.
2262
+ # Corresponds to the JSON property `architecture`
2263
+ # @return [String]
2264
+ attr_accessor :architecture
2265
+
2266
+ # Optional. An optional description of this resource. Provide this property when
2267
+ # you create the resource.
2268
+ # Corresponds to the JSON property `description`
2269
+ # @return [String]
2270
+ attr_accessor :description
2271
+
2272
+ # A customer-supplied encryption key.
2273
+ # Corresponds to the JSON property `diskEncryptionKey`
2274
+ # @return [Google::Apis::BackupdrV1::CustomerEncryptionKey]
2275
+ attr_accessor :disk_encryption_key
2276
+
2277
+ # Optional. Indicates whether this disk is using confidential compute mode.
2278
+ # Encryption with a Cloud KMS key is required to enable this option.
2279
+ # Corresponds to the JSON property `enableConfidentialCompute`
2280
+ # @return [Boolean]
2281
+ attr_accessor :enable_confidential_compute
2282
+ alias_method :enable_confidential_compute?, :enable_confidential_compute
2283
+
2284
+ # Optional. A list of features to enable in the guest operating system. This is
2285
+ # applicable only for bootable images.
2286
+ # Corresponds to the JSON property `guestOsFeature`
2287
+ # @return [Array<Google::Apis::BackupdrV1::GuestOsFeature>]
2288
+ attr_accessor :guest_os_feature
2289
+
2290
+ # Optional. Labels to apply to this disk. These can be modified later using
2291
+ # setLabels method. Label values can be empty.
2292
+ # Corresponds to the JSON property `labels`
2293
+ # @return [Hash<String,String>]
2294
+ attr_accessor :labels
2295
+
2296
+ # Optional. A list of publicly available licenses that are applicable to this
2297
+ # backup. This is applicable if the original image had licenses attached, e.g.
2298
+ # Windows image
2299
+ # Corresponds to the JSON property `licenses`
2300
+ # @return [Array<String>]
2301
+ attr_accessor :licenses
2302
+
2303
+ # Required. Name of the disk..
2304
+ # Corresponds to the JSON property `name`
2305
+ # @return [String]
2306
+ attr_accessor :name
2307
+
2308
+ # Optional. Physical block size of the persistent disk, in bytes. If not present
2309
+ # in a request, a default value is used. Currently, the supported size is 4096.
2310
+ # Corresponds to the JSON property `physicalBlockSizeBytes`
2311
+ # @return [Fixnum]
2312
+ attr_accessor :physical_block_size_bytes
2313
+
2314
+ # Optional. Indicates how many IOPS to provision for the disk. This sets the
2315
+ # number of I/O operations per second that the disk can handle.
2316
+ # Corresponds to the JSON property `provisionedIops`
2317
+ # @return [Fixnum]
2318
+ attr_accessor :provisioned_iops
2319
+
2320
+ # Optional. Indicates how much throughput to provision for the disk. This sets
2321
+ # the number of throughput MB per second that the disk can handle.
2322
+ # Corresponds to the JSON property `provisionedThroughput`
2323
+ # @return [Fixnum]
2324
+ attr_accessor :provisioned_throughput
2325
+
2326
+ # Optional. Resource manager tags to be bound to the disk.
2327
+ # Corresponds to the JSON property `resourceManagerTags`
2328
+ # @return [Hash<String,String>]
2329
+ attr_accessor :resource_manager_tags
2330
+
2331
+ # Optional. Resource policies applied to this disk.
2332
+ # Corresponds to the JSON property `resourcePolicy`
2333
+ # @return [Array<String>]
2334
+ attr_accessor :resource_policy
2335
+
2336
+ # Required. The size of the disk in GB.
2337
+ # Corresponds to the JSON property `sizeGb`
2338
+ # @return [Fixnum]
2339
+ attr_accessor :size_gb
2340
+
2341
+ # Optional. The storage pool in which the new disk is created. You can provide
2342
+ # this as a partial or full URL to the resource.
2343
+ # Corresponds to the JSON property `storagePool`
2344
+ # @return [String]
2345
+ attr_accessor :storage_pool
2346
+
2347
+ # Required. URL of the disk type resource describing which disk type to use to
2348
+ # create the disk.
2349
+ # Corresponds to the JSON property `type`
2350
+ # @return [String]
2351
+ attr_accessor :type
2352
+
2353
+ def initialize(**args)
2354
+ update!(**args)
2355
+ end
2356
+
2357
+ # Update properties of this object
2358
+ def update!(**args)
2359
+ @access_mode = args[:access_mode] if args.key?(:access_mode)
2360
+ @architecture = args[:architecture] if args.key?(:architecture)
2361
+ @description = args[:description] if args.key?(:description)
2362
+ @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
2363
+ @enable_confidential_compute = args[:enable_confidential_compute] if args.key?(:enable_confidential_compute)
2364
+ @guest_os_feature = args[:guest_os_feature] if args.key?(:guest_os_feature)
2365
+ @labels = args[:labels] if args.key?(:labels)
2366
+ @licenses = args[:licenses] if args.key?(:licenses)
2367
+ @name = args[:name] if args.key?(:name)
2368
+ @physical_block_size_bytes = args[:physical_block_size_bytes] if args.key?(:physical_block_size_bytes)
2369
+ @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
2370
+ @provisioned_throughput = args[:provisioned_throughput] if args.key?(:provisioned_throughput)
2371
+ @resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags)
2372
+ @resource_policy = args[:resource_policy] if args.key?(:resource_policy)
2373
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
2374
+ @storage_pool = args[:storage_pool] if args.key?(:storage_pool)
2375
+ @type = args[:type] if args.key?(:type)
2376
+ end
2377
+ end
2378
+
2379
+ # DiskTargetEnvironment represents the target environment for the disk.
2380
+ class DiskTargetEnvironment
2381
+ include Google::Apis::Core::Hashable
2382
+
2383
+ # Required. Target project for the disk.
2384
+ # Corresponds to the JSON property `project`
2385
+ # @return [String]
2386
+ attr_accessor :project
2387
+
2388
+ # Required. Target zone for the disk.
2389
+ # Corresponds to the JSON property `zone`
2390
+ # @return [String]
2391
+ attr_accessor :zone
2392
+
2393
+ def initialize(**args)
2394
+ update!(**args)
2395
+ end
2396
+
2397
+ # Update properties of this object
2398
+ def update!(**args)
2399
+ @project = args[:project] if args.key?(:project)
2400
+ @zone = args[:zone] if args.key?(:zone)
2401
+ end
2402
+ end
2403
+
2110
2404
  # A set of Display Device options
2111
2405
  class DisplayDevice
2112
2406
  include Google::Apis::Core::Hashable
@@ -3590,6 +3884,37 @@ module Google
3590
3884
  end
3591
3885
  end
3592
3886
 
3887
+ # RegionDiskTargetEnvironment represents the target environment for the disk.
3888
+ class RegionDiskTargetEnvironment
3889
+ include Google::Apis::Core::Hashable
3890
+
3891
+ # Required. Target project for the disk.
3892
+ # Corresponds to the JSON property `project`
3893
+ # @return [String]
3894
+ attr_accessor :project
3895
+
3896
+ # Required. Target region for the disk.
3897
+ # Corresponds to the JSON property `region`
3898
+ # @return [String]
3899
+ attr_accessor :region
3900
+
3901
+ # Required. Target URLs of the replica zones for the disk.
3902
+ # Corresponds to the JSON property `replicaZones`
3903
+ # @return [Array<String>]
3904
+ attr_accessor :replica_zones
3905
+
3906
+ def initialize(**args)
3907
+ update!(**args)
3908
+ end
3909
+
3910
+ # Update properties of this object
3911
+ def update!(**args)
3912
+ @project = args[:project] if args.key?(:project)
3913
+ @region = args[:region] if args.key?(:region)
3914
+ @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
3915
+ end
3916
+ end
3917
+
3593
3918
  # Message for deleting a DataSource.
3594
3919
  class RemoveDataSourceRequest
3595
3920
  include Google::Apis::Core::Hashable
@@ -3714,6 +4039,21 @@ module Google
3714
4039
  # @return [Google::Apis::BackupdrV1::ComputeInstanceTargetEnvironment]
3715
4040
  attr_accessor :compute_instance_target_environment
3716
4041
 
4042
+ # DiskRestoreProperties represents the properties of a Disk restore.
4043
+ # Corresponds to the JSON property `diskRestoreProperties`
4044
+ # @return [Google::Apis::BackupdrV1::DiskRestoreProperties]
4045
+ attr_accessor :disk_restore_properties
4046
+
4047
+ # DiskTargetEnvironment represents the target environment for the disk.
4048
+ # Corresponds to the JSON property `diskTargetEnvironment`
4049
+ # @return [Google::Apis::BackupdrV1::DiskTargetEnvironment]
4050
+ attr_accessor :disk_target_environment
4051
+
4052
+ # RegionDiskTargetEnvironment represents the target environment for the disk.
4053
+ # Corresponds to the JSON property `regionDiskTargetEnvironment`
4054
+ # @return [Google::Apis::BackupdrV1::RegionDiskTargetEnvironment]
4055
+ attr_accessor :region_disk_target_environment
4056
+
3717
4057
  # Optional. An optional request ID to identify requests. Specify a unique
3718
4058
  # request ID so that if you must retry your request, the server will know to
3719
4059
  # ignore the request if it has already been completed. The server will guarantee
@@ -3736,6 +4076,9 @@ module Google
3736
4076
  def update!(**args)
3737
4077
  @compute_instance_restore_properties = args[:compute_instance_restore_properties] if args.key?(:compute_instance_restore_properties)
3738
4078
  @compute_instance_target_environment = args[:compute_instance_target_environment] if args.key?(:compute_instance_target_environment)
4079
+ @disk_restore_properties = args[:disk_restore_properties] if args.key?(:disk_restore_properties)
4080
+ @disk_target_environment = args[:disk_target_environment] if args.key?(:disk_target_environment)
4081
+ @region_disk_target_environment = args[:region_disk_target_environment] if args.key?(:region_disk_target_environment)
3739
4082
  @request_id = args[:request_id] if args.key?(:request_id)
3740
4083
  end
3741
4084
  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.28.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.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250411"
25
+ REVISION = "20250523"
26
26
  end
27
27
  end
28
28
  end
@@ -238,6 +238,30 @@ module Google
238
238
  include Google::Apis::Core::JsonObjectSupport
239
239
  end
240
240
 
241
+ class DiskBackupProperties
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class DiskDataSourceProperties
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class DiskRestoreProperties
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class DiskTargetEnvironment
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
241
265
  class DisplayDevice
242
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
267
 
@@ -466,6 +490,12 @@ module Google
466
490
  include Google::Apis::Core::JsonObjectSupport
467
491
  end
468
492
 
493
+ class RegionDiskTargetEnvironment
494
+ class Representation < Google::Apis::Core::JsonRepresentation; end
495
+
496
+ include Google::Apis::Core::JsonObjectSupport
497
+ end
498
+
469
499
  class RemoveDataSourceRequest
470
500
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
501
 
@@ -710,6 +740,8 @@ module Google
710
740
  property :consistency_time, as: 'consistencyTime'
711
741
  property :create_time, as: 'createTime'
712
742
  property :description, as: 'description'
743
+ property :disk_backup_properties, as: 'diskBackupProperties', class: Google::Apis::BackupdrV1::DiskBackupProperties, decorator: Google::Apis::BackupdrV1::DiskBackupProperties::Representation
744
+
713
745
  property :enforced_retention_end_time, as: 'enforcedRetentionEndTime'
714
746
  property :etag, as: 'etag'
715
747
  property :expire_time, as: 'expireTime'
@@ -855,6 +887,7 @@ module Google
855
887
  property :name, as: 'name'
856
888
  property :resource_type, as: 'resourceType'
857
889
  property :state, as: 'state'
890
+ collection :supported_resource_types, as: 'supportedResourceTypes'
858
891
  property :update_time, as: 'updateTime'
859
892
  end
860
893
  end
@@ -1042,6 +1075,7 @@ module Google
1042
1075
  class DataSource
1043
1076
  # @private
1044
1077
  class Representation < Google::Apis::Core::JsonRepresentation
1078
+ property :backup_blocked_by_vault_access_restriction, as: 'backupBlockedByVaultAccessRestriction'
1045
1079
  property :backup_config_info, as: 'backupConfigInfo', class: Google::Apis::BackupdrV1::BackupConfigInfo, decorator: Google::Apis::BackupdrV1::BackupConfigInfo::Representation
1046
1080
 
1047
1081
  property :backup_count, :numeric_string => true, as: 'backupCount'
@@ -1078,12 +1112,74 @@ module Google
1078
1112
  class Representation < Google::Apis::Core::JsonRepresentation
1079
1113
  property :compute_instance_datasource_properties, as: 'computeInstanceDatasourceProperties', class: Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties, decorator: Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties::Representation
1080
1114
 
1115
+ property :disk_datasource_properties, as: 'diskDatasourceProperties', class: Google::Apis::BackupdrV1::DiskDataSourceProperties, decorator: Google::Apis::BackupdrV1::DiskDataSourceProperties::Representation
1116
+
1081
1117
  property :gcp_resourcename, as: 'gcpResourcename'
1082
1118
  property :location, as: 'location'
1083
1119
  property :type, as: 'type'
1084
1120
  end
1085
1121
  end
1086
1122
 
1123
+ class DiskBackupProperties
1124
+ # @private
1125
+ class Representation < Google::Apis::Core::JsonRepresentation
1126
+ property :architecture, as: 'architecture'
1127
+ property :description, as: 'description'
1128
+ collection :guest_os_feature, as: 'guestOsFeature', class: Google::Apis::BackupdrV1::GuestOsFeature, decorator: Google::Apis::BackupdrV1::GuestOsFeature::Representation
1129
+
1130
+ collection :licenses, as: 'licenses'
1131
+ property :region, as: 'region'
1132
+ collection :replica_zones, as: 'replicaZones'
1133
+ property :size_gb, :numeric_string => true, as: 'sizeGb'
1134
+ property :source_disk, as: 'sourceDisk'
1135
+ property :type, as: 'type'
1136
+ property :zone, as: 'zone'
1137
+ end
1138
+ end
1139
+
1140
+ class DiskDataSourceProperties
1141
+ # @private
1142
+ class Representation < Google::Apis::Core::JsonRepresentation
1143
+ property :description, as: 'description'
1144
+ property :name, as: 'name'
1145
+ property :size_gb, :numeric_string => true, as: 'sizeGb'
1146
+ property :type, as: 'type'
1147
+ end
1148
+ end
1149
+
1150
+ class DiskRestoreProperties
1151
+ # @private
1152
+ class Representation < Google::Apis::Core::JsonRepresentation
1153
+ property :access_mode, as: 'accessMode'
1154
+ property :architecture, as: 'architecture'
1155
+ property :description, as: 'description'
1156
+ property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::BackupdrV1::CustomerEncryptionKey, decorator: Google::Apis::BackupdrV1::CustomerEncryptionKey::Representation
1157
+
1158
+ property :enable_confidential_compute, as: 'enableConfidentialCompute'
1159
+ collection :guest_os_feature, as: 'guestOsFeature', class: Google::Apis::BackupdrV1::GuestOsFeature, decorator: Google::Apis::BackupdrV1::GuestOsFeature::Representation
1160
+
1161
+ hash :labels, as: 'labels'
1162
+ collection :licenses, as: 'licenses'
1163
+ property :name, as: 'name'
1164
+ property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes'
1165
+ property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
1166
+ property :provisioned_throughput, :numeric_string => true, as: 'provisionedThroughput'
1167
+ hash :resource_manager_tags, as: 'resourceManagerTags'
1168
+ collection :resource_policy, as: 'resourcePolicy'
1169
+ property :size_gb, :numeric_string => true, as: 'sizeGb'
1170
+ property :storage_pool, as: 'storagePool'
1171
+ property :type, as: 'type'
1172
+ end
1173
+ end
1174
+
1175
+ class DiskTargetEnvironment
1176
+ # @private
1177
+ class Representation < Google::Apis::Core::JsonRepresentation
1178
+ property :project, as: 'project'
1179
+ property :zone, as: 'zone'
1180
+ end
1181
+ end
1182
+
1087
1183
  class DisplayDevice
1088
1184
  # @private
1089
1185
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1461,6 +1557,15 @@ module Google
1461
1557
  end
1462
1558
  end
1463
1559
 
1560
+ class RegionDiskTargetEnvironment
1561
+ # @private
1562
+ class Representation < Google::Apis::Core::JsonRepresentation
1563
+ property :project, as: 'project'
1564
+ property :region, as: 'region'
1565
+ collection :replica_zones, as: 'replicaZones'
1566
+ end
1567
+ end
1568
+
1464
1569
  class RemoveDataSourceRequest
1465
1570
  # @private
1466
1571
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1491,6 +1596,12 @@ module Google
1491
1596
 
1492
1597
  property :compute_instance_target_environment, as: 'computeInstanceTargetEnvironment', class: Google::Apis::BackupdrV1::ComputeInstanceTargetEnvironment, decorator: Google::Apis::BackupdrV1::ComputeInstanceTargetEnvironment::Representation
1493
1598
 
1599
+ property :disk_restore_properties, as: 'diskRestoreProperties', class: Google::Apis::BackupdrV1::DiskRestoreProperties, decorator: Google::Apis::BackupdrV1::DiskRestoreProperties::Representation
1600
+
1601
+ property :disk_target_environment, as: 'diskTargetEnvironment', class: Google::Apis::BackupdrV1::DiskTargetEnvironment, decorator: Google::Apis::BackupdrV1::DiskTargetEnvironment::Representation
1602
+
1603
+ property :region_disk_target_environment, as: 'regionDiskTargetEnvironment', class: Google::Apis::BackupdrV1::RegionDiskTargetEnvironment, decorator: Google::Apis::BackupdrV1::RegionDiskTargetEnvironment::Representation
1604
+
1494
1605
  property :request_id, as: 'requestId'
1495
1606
  end
1496
1607
  end
@@ -299,6 +299,61 @@ module Google
299
299
  execute_or_queue_command(command, &block)
300
300
  end
301
301
 
302
+ # Update a BackupPlanAssociation
303
+ # @param [String] name
304
+ # Output only. Identifier. The resource name of BackupPlanAssociation in below
305
+ # format Format : projects/`project`/locations/`location`/backupPlanAssociations/
306
+ # `backupPlanAssociationId`
307
+ # @param [Google::Apis::BackupdrV1::BackupPlanAssociation] backup_plan_association_object
308
+ # @param [String] request_id
309
+ # Optional. An optional request ID to identify requests. Specify a unique
310
+ # request ID so that if you must retry your request, the server will know to
311
+ # ignore the request if it has already been completed. The server will guarantee
312
+ # that for at least 60 minutes since the first request. For example, consider a
313
+ # situation where you make an initial request and t he request times out. If you
314
+ # make the request again with the same request ID, the server can check if
315
+ # original operation with the same request ID was received, and if so, will
316
+ # ignore the second request. This prevents clients from accidentally creating
317
+ # duplicate commitments. The request ID must be a valid UUID with the exception
318
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
319
+ # @param [String] update_mask
320
+ # Required. The list of fields to update. Field mask is used to specify the
321
+ # fields to be overwritten in the BackupPlanAssociation resource by the update.
322
+ # The fields specified in the update_mask are relative to the resource, not the
323
+ # full request. A field will be overwritten if it is in the mask. If the user
324
+ # does not provide a mask then the request will fail. Currently
325
+ # backup_plan_association.backup_plan is the only supported field.
326
+ # @param [String] fields
327
+ # Selector specifying which fields to include in a partial response.
328
+ # @param [String] quota_user
329
+ # Available to use for quota purposes for server-side applications. Can be any
330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
331
+ # @param [Google::Apis::RequestOptions] options
332
+ # Request-specific options
333
+ #
334
+ # @yield [result, err] Result & error if block supplied
335
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
336
+ # @yieldparam err [StandardError] error object if request failed
337
+ #
338
+ # @return [Google::Apis::BackupdrV1::Operation]
339
+ #
340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
343
+ def patch_project_location_backup_plan_association(name, backup_plan_association_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
344
+ command = make_simple_command(:patch, 'v1/{+name}', options)
345
+ command.request_representation = Google::Apis::BackupdrV1::BackupPlanAssociation::Representation
346
+ command.request_object = backup_plan_association_object
347
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
348
+ command.response_class = Google::Apis::BackupdrV1::Operation
349
+ command.params['name'] = name unless name.nil?
350
+ command.query['requestId'] = request_id unless request_id.nil?
351
+ command.query['updateMask'] = update_mask unless update_mask.nil?
352
+ command.query['fields'] = fields unless fields.nil?
353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
354
+ execute_or_queue_command(command, &block)
355
+ end
356
+
302
357
  # Triggers a new Backup.
303
358
  # @param [String] name
304
359
  # Required. Name of the backup plan association resource, in the format `
@@ -773,6 +828,9 @@ module Google
773
828
  # @param [Boolean] force
774
829
  # Optional. If set to true, will not check plan duration against backup vault
775
830
  # enforcement duration.
831
+ # @param [Boolean] force_update_access_restriction
832
+ # Optional. If set to true, we will force update access restriction even if some
833
+ # non compliant data sources are present. The default is 'false'.
776
834
  # @param [String] request_id
777
835
  # Optional. An optional request ID to identify requests. Specify a unique
778
836
  # request ID so that if you must retry your request, the server will know to
@@ -810,7 +868,7 @@ module Google
810
868
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
811
869
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
812
870
  # @raise [Google::Apis::AuthorizationError] Authorization is required
813
- def patch_project_location_backup_vault(name, backup_vault_object = nil, force: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
871
+ def patch_project_location_backup_vault(name, backup_vault_object = nil, force: nil, force_update_access_restriction: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
814
872
  command = make_simple_command(:patch, 'v1/{+name}', options)
815
873
  command.request_representation = Google::Apis::BackupdrV1::BackupVault::Representation
816
874
  command.request_object = backup_vault_object
@@ -818,6 +876,7 @@ module Google
818
876
  command.response_class = Google::Apis::BackupdrV1::Operation
819
877
  command.params['name'] = name unless name.nil?
820
878
  command.query['force'] = force unless force.nil?
879
+ command.query['forceUpdateAccessRestriction'] = force_update_access_restriction unless force_update_access_restriction.nil?
821
880
  command.query['requestId'] = request_id unless request_id.nil?
822
881
  command.query['updateMask'] = update_mask unless update_mask.nil?
823
882
  command.query['validateOnly'] = validate_only unless validate_only.nil?
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.28.0
4
+ version: 0.30.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.28.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-backupdr_v1/v0.30.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:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Backup and DR Service API V1
79
79
  test_files: []