google-apis-backupdr_v1 0.32.0 → 0.34.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f56ece336011530245726aa00e302aa66101e36fb720f9ceebbec89c40396585
|
4
|
+
data.tar.gz: ba63d94d69eba4ad859adfdab45ceeb5593e79921a37f4b6bf1700fb8207c76f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72fd25a17b7d094afe33537bd0bba680d6b2d8d241bbc4546ee24f7ad1c8bbcff6e02aa3688b0a2d03cf9e6bf116e994c32e25641bab3ba488228b47291182c5
|
7
|
+
data.tar.gz: 07f06b03fc95a26586265cb3a92c345c1c0bc7b345f520433631e6d89261308c856b4ef4369f751c7319d6111b1ffd406f43eab12b1562daad48c2b2e83e6358
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-backupdr_v1
|
2
2
|
|
3
|
+
### v0.34.0 (2025-07-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250711
|
6
|
+
|
7
|
+
### v0.33.0 (2025-07-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250625
|
10
|
+
|
3
11
|
### v0.32.0 (2025-06-22)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250611
|
@@ -462,6 +462,12 @@ module Google
|
|
462
462
|
# @return [String]
|
463
463
|
attr_accessor :backup_type
|
464
464
|
|
465
|
+
# CloudSqlInstanceBackupProperties represents Cloud SQL Instance Backup
|
466
|
+
# properties. .
|
467
|
+
# Corresponds to the JSON property `cloudSqlInstanceBackupProperties`
|
468
|
+
# @return [Google::Apis::BackupdrV1::CloudSqlInstanceBackupProperties]
|
469
|
+
attr_accessor :cloud_sql_instance_backup_properties
|
470
|
+
|
465
471
|
# ComputeInstanceBackupProperties represents Compute Engine instance backup
|
466
472
|
# properties.
|
467
473
|
# Corresponds to the JSON property `computeInstanceBackupProperties`
|
@@ -565,6 +571,7 @@ module Google
|
|
565
571
|
@backup_appliance_backup_properties = args[:backup_appliance_backup_properties] if args.key?(:backup_appliance_backup_properties)
|
566
572
|
@backup_appliance_locks = args[:backup_appliance_locks] if args.key?(:backup_appliance_locks)
|
567
573
|
@backup_type = args[:backup_type] if args.key?(:backup_type)
|
574
|
+
@cloud_sql_instance_backup_properties = args[:cloud_sql_instance_backup_properties] if args.key?(:cloud_sql_instance_backup_properties)
|
568
575
|
@compute_instance_backup_properties = args[:compute_instance_backup_properties] if args.key?(:compute_instance_backup_properties)
|
569
576
|
@consistency_time = args[:consistency_time] if args.key?(:consistency_time)
|
570
577
|
@create_time = args[:create_time] if args.key?(:create_time)
|
@@ -1072,6 +1079,13 @@ module Google
|
|
1072
1079
|
# @return [Hash<String,String>]
|
1073
1080
|
attr_accessor :labels
|
1074
1081
|
|
1082
|
+
# Optional. Required for CloudSQL resource_type Configures how long logs will be
|
1083
|
+
# stored. It is defined in “days”. This value should be greater than or equal to
|
1084
|
+
# minimum enforced log retention duration of the backup vault.
|
1085
|
+
# Corresponds to the JSON property `logRetentionDays`
|
1086
|
+
# @return [Fixnum]
|
1087
|
+
attr_accessor :log_retention_days
|
1088
|
+
|
1075
1089
|
# Output only. Identifier. The resource name of the `BackupPlan`. Format: `
|
1076
1090
|
# projects/`project`/locations/`location`/backupPlans/`backup_plan``
|
1077
1091
|
# Corresponds to the JSON property `name`
|
@@ -1124,6 +1138,7 @@ module Google
|
|
1124
1138
|
@description = args[:description] if args.key?(:description)
|
1125
1139
|
@etag = args[:etag] if args.key?(:etag)
|
1126
1140
|
@labels = args[:labels] if args.key?(:labels)
|
1141
|
+
@log_retention_days = args[:log_retention_days] if args.key?(:log_retention_days)
|
1127
1142
|
@name = args[:name] if args.key?(:name)
|
1128
1143
|
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
1129
1144
|
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
@@ -1158,6 +1173,11 @@ module Google
|
|
1158
1173
|
# @return [String]
|
1159
1174
|
attr_accessor :backup_plan_revision_name
|
1160
1175
|
|
1176
|
+
# Cloud SQL instance's BPA properties.
|
1177
|
+
# Corresponds to the JSON property `cloudSqlInstanceBackupPlanAssociationProperties`
|
1178
|
+
# @return [Google::Apis::BackupdrV1::CloudSqlInstanceBackupPlanAssociationProperties]
|
1179
|
+
attr_accessor :cloud_sql_instance_backup_plan_association_properties
|
1180
|
+
|
1161
1181
|
# Output only. The time when the instance was created.
|
1162
1182
|
# Corresponds to the JSON property `createTime`
|
1163
1183
|
# @return [String]
|
@@ -1215,6 +1235,7 @@ module Google
|
|
1215
1235
|
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
1216
1236
|
@backup_plan_revision_id = args[:backup_plan_revision_id] if args.key?(:backup_plan_revision_id)
|
1217
1237
|
@backup_plan_revision_name = args[:backup_plan_revision_name] if args.key?(:backup_plan_revision_name)
|
1238
|
+
@cloud_sql_instance_backup_plan_association_properties = args[:cloud_sql_instance_backup_plan_association_properties] if args.key?(:cloud_sql_instance_backup_plan_association_properties)
|
1218
1239
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1219
1240
|
@data_source = args[:data_source] if args.key?(:data_source)
|
1220
1241
|
@name = args[:name] if args.key?(:name)
|
@@ -1282,11 +1303,8 @@ module Google
|
|
1282
1303
|
# Required. Configures the duration for which backup data will be kept. It is
|
1283
1304
|
# defined in “days”. The value should be greater than or equal to minimum
|
1284
1305
|
# enforced retention of the backup vault. Minimum value is 1 and maximum value
|
1285
|
-
# is 36159 for custom retention on-demand backup. Minimum
|
1286
|
-
#
|
1287
|
-
# for daily backups. Minimum value is 7 and maximum value is 366 for weekly
|
1288
|
-
# backups. Minimum value is 30 and maximum value is 732 for monthly backups.
|
1289
|
-
# Minimum value is 365 and maximum value is 36159 for yearly backups.
|
1306
|
+
# is 36159 for custom retention on-demand backup. Minimum and maximum values are
|
1307
|
+
# workload specific for all other rules.
|
1290
1308
|
# Corresponds to the JSON property `backupRetentionDays`
|
1291
1309
|
# @return [Fixnum]
|
1292
1310
|
attr_accessor :backup_retention_days
|
@@ -1584,6 +1602,167 @@ module Google
|
|
1584
1602
|
end
|
1585
1603
|
end
|
1586
1604
|
|
1605
|
+
# Cloud SQL instance's BPA properties.
|
1606
|
+
class CloudSqlInstanceBackupPlanAssociationProperties
|
1607
|
+
include Google::Apis::Core::Hashable
|
1608
|
+
|
1609
|
+
# Output only. The time when the instance was created.
|
1610
|
+
# Corresponds to the JSON property `instanceCreateTime`
|
1611
|
+
# @return [String]
|
1612
|
+
attr_accessor :instance_create_time
|
1613
|
+
|
1614
|
+
def initialize(**args)
|
1615
|
+
update!(**args)
|
1616
|
+
end
|
1617
|
+
|
1618
|
+
# Update properties of this object
|
1619
|
+
def update!(**args)
|
1620
|
+
@instance_create_time = args[:instance_create_time] if args.key?(:instance_create_time)
|
1621
|
+
end
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
# CloudSqlInstanceBackupProperties represents Cloud SQL Instance Backup
|
1625
|
+
# properties. .
|
1626
|
+
class CloudSqlInstanceBackupProperties
|
1627
|
+
include Google::Apis::Core::Hashable
|
1628
|
+
|
1629
|
+
# Output only. The installed database version of the Cloud SQL instance when the
|
1630
|
+
# backup was taken.
|
1631
|
+
# Corresponds to the JSON property `databaseInstalledVersion`
|
1632
|
+
# @return [String]
|
1633
|
+
attr_accessor :database_installed_version
|
1634
|
+
|
1635
|
+
# Output only. Whether the backup is a final backup.
|
1636
|
+
# Corresponds to the JSON property `finalBackup`
|
1637
|
+
# @return [Boolean]
|
1638
|
+
attr_accessor :final_backup
|
1639
|
+
alias_method :final_backup?, :final_backup
|
1640
|
+
|
1641
|
+
# Output only. The tier (or machine type) for this instance. Example: `db-custom-
|
1642
|
+
# 1-3840`
|
1643
|
+
# Corresponds to the JSON property `instanceTier`
|
1644
|
+
# @return [String]
|
1645
|
+
attr_accessor :instance_tier
|
1646
|
+
|
1647
|
+
# Output only. The source instance of the backup. Format: projects/`project`/
|
1648
|
+
# instances/`instance`
|
1649
|
+
# Corresponds to the JSON property `sourceInstance`
|
1650
|
+
# @return [String]
|
1651
|
+
attr_accessor :source_instance
|
1652
|
+
|
1653
|
+
def initialize(**args)
|
1654
|
+
update!(**args)
|
1655
|
+
end
|
1656
|
+
|
1657
|
+
# Update properties of this object
|
1658
|
+
def update!(**args)
|
1659
|
+
@database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version)
|
1660
|
+
@final_backup = args[:final_backup] if args.key?(:final_backup)
|
1661
|
+
@instance_tier = args[:instance_tier] if args.key?(:instance_tier)
|
1662
|
+
@source_instance = args[:source_instance] if args.key?(:source_instance)
|
1663
|
+
end
|
1664
|
+
end
|
1665
|
+
|
1666
|
+
# CloudSqlInstanceDataSourceProperties represents the properties of a Cloud SQL
|
1667
|
+
# resource that are stored in the DataSource. .
|
1668
|
+
class CloudSqlInstanceDataSourceProperties
|
1669
|
+
include Google::Apis::Core::Hashable
|
1670
|
+
|
1671
|
+
# Output only. The installed database version of the Cloud SQL instance.
|
1672
|
+
# Corresponds to the JSON property `databaseInstalledVersion`
|
1673
|
+
# @return [String]
|
1674
|
+
attr_accessor :database_installed_version
|
1675
|
+
|
1676
|
+
# Output only. The instance creation timestamp.
|
1677
|
+
# Corresponds to the JSON property `instanceCreateTime`
|
1678
|
+
# @return [String]
|
1679
|
+
attr_accessor :instance_create_time
|
1680
|
+
|
1681
|
+
# Output only. The tier (or machine type) for this instance. Example: `db-custom-
|
1682
|
+
# 1-3840`
|
1683
|
+
# Corresponds to the JSON property `instanceTier`
|
1684
|
+
# @return [String]
|
1685
|
+
attr_accessor :instance_tier
|
1686
|
+
|
1687
|
+
# Output only. Name of the Cloud SQL instance backed up by the datasource.
|
1688
|
+
# Format: projects/`project`/instances/`instance`
|
1689
|
+
# Corresponds to the JSON property `name`
|
1690
|
+
# @return [String]
|
1691
|
+
attr_accessor :name
|
1692
|
+
|
1693
|
+
def initialize(**args)
|
1694
|
+
update!(**args)
|
1695
|
+
end
|
1696
|
+
|
1697
|
+
# Update properties of this object
|
1698
|
+
def update!(**args)
|
1699
|
+
@database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version)
|
1700
|
+
@instance_create_time = args[:instance_create_time] if args.key?(:instance_create_time)
|
1701
|
+
@instance_tier = args[:instance_tier] if args.key?(:instance_tier)
|
1702
|
+
@name = args[:name] if args.key?(:name)
|
1703
|
+
end
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
# CloudSqlInstanceDataSourceReferenceProperties represents the properties of a
|
1707
|
+
# Cloud SQL resource that are stored in the DataSourceReference. .
|
1708
|
+
class CloudSqlInstanceDataSourceReferenceProperties
|
1709
|
+
include Google::Apis::Core::Hashable
|
1710
|
+
|
1711
|
+
# Output only. The installed database version of the Cloud SQL instance.
|
1712
|
+
# Corresponds to the JSON property `databaseInstalledVersion`
|
1713
|
+
# @return [String]
|
1714
|
+
attr_accessor :database_installed_version
|
1715
|
+
|
1716
|
+
# Output only. The instance creation timestamp.
|
1717
|
+
# Corresponds to the JSON property `instanceCreateTime`
|
1718
|
+
# @return [String]
|
1719
|
+
attr_accessor :instance_create_time
|
1720
|
+
|
1721
|
+
# Output only. The tier (or machine type) for this instance. Example: `db-custom-
|
1722
|
+
# 1-3840`
|
1723
|
+
# Corresponds to the JSON property `instanceTier`
|
1724
|
+
# @return [String]
|
1725
|
+
attr_accessor :instance_tier
|
1726
|
+
|
1727
|
+
# Output only. Name of the Cloud SQL instance backed up by the datasource.
|
1728
|
+
# Format: projects/`project`/instances/`instance`
|
1729
|
+
# Corresponds to the JSON property `name`
|
1730
|
+
# @return [String]
|
1731
|
+
attr_accessor :name
|
1732
|
+
|
1733
|
+
def initialize(**args)
|
1734
|
+
update!(**args)
|
1735
|
+
end
|
1736
|
+
|
1737
|
+
# Update properties of this object
|
1738
|
+
def update!(**args)
|
1739
|
+
@database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version)
|
1740
|
+
@instance_create_time = args[:instance_create_time] if args.key?(:instance_create_time)
|
1741
|
+
@instance_tier = args[:instance_tier] if args.key?(:instance_tier)
|
1742
|
+
@name = args[:name] if args.key?(:name)
|
1743
|
+
end
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
# CloudSqlInstanceInitializationConfig contains the configuration for
|
1747
|
+
# initializing a Cloud SQL instance.
|
1748
|
+
class CloudSqlInstanceInitializationConfig
|
1749
|
+
include Google::Apis::Core::Hashable
|
1750
|
+
|
1751
|
+
# Required. The edition of the Cloud SQL instance.
|
1752
|
+
# Corresponds to the JSON property `edition`
|
1753
|
+
# @return [String]
|
1754
|
+
attr_accessor :edition
|
1755
|
+
|
1756
|
+
def initialize(**args)
|
1757
|
+
update!(**args)
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
# Update properties of this object
|
1761
|
+
def update!(**args)
|
1762
|
+
@edition = args[:edition] if args.key?(:edition)
|
1763
|
+
end
|
1764
|
+
end
|
1765
|
+
|
1587
1766
|
# ComputeInstanceBackupProperties represents Compute Engine instance backup
|
1588
1767
|
# properties.
|
1589
1768
|
class ComputeInstanceBackupProperties
|
@@ -1781,7 +1960,8 @@ module Google
|
|
1781
1960
|
attr_accessor :description
|
1782
1961
|
|
1783
1962
|
# Optional. Array of disks associated with this instance. Persistent disks must
|
1784
|
-
# be created before you can assign them.
|
1963
|
+
# be created before you can assign them. Source regional persistent disks will
|
1964
|
+
# be restored with default replica zones if not specified.
|
1785
1965
|
# Corresponds to the JSON property `disks`
|
1786
1966
|
# @return [Array<Google::Apis::BackupdrV1::AttachedDisk>]
|
1787
1967
|
attr_accessor :disks
|
@@ -1844,6 +2024,7 @@ module Google
|
|
1844
2024
|
# Optional. An array of network configurations for this instance. These specify
|
1845
2025
|
# how interfaces are configured to interact with other network services, such as
|
1846
2026
|
# connecting to the internet. Multiple interfaces are supported per instance.
|
2027
|
+
# Required to restore in different project or region.
|
1847
2028
|
# Corresponds to the JSON property `networkInterfaces`
|
1848
2029
|
# @return [Array<Google::Apis::BackupdrV1::NetworkInterface>]
|
1849
2030
|
attr_accessor :network_interfaces
|
@@ -1869,7 +2050,8 @@ module Google
|
|
1869
2050
|
# @return [Google::Apis::BackupdrV1::AllocationAffinity]
|
1870
2051
|
attr_accessor :reservation_affinity
|
1871
2052
|
|
1872
|
-
# Optional. Resource policies applied to this instance.
|
2053
|
+
# Optional. Resource policies applied to this instance. By default, no resource
|
2054
|
+
# policies will be applied.
|
1873
2055
|
# Corresponds to the JSON property `resourcePolicies`
|
1874
2056
|
# @return [Array<String>]
|
1875
2057
|
attr_accessor :resource_policies
|
@@ -2170,12 +2352,43 @@ module Google
|
|
2170
2352
|
end
|
2171
2353
|
end
|
2172
2354
|
|
2355
|
+
# Information of backup configuration on the DataSource.
|
2356
|
+
class DataSourceBackupConfigInfo
|
2357
|
+
include Google::Apis::Core::Hashable
|
2358
|
+
|
2359
|
+
# Output only. The status of the last backup in this DataSource
|
2360
|
+
# Corresponds to the JSON property `lastBackupState`
|
2361
|
+
# @return [String]
|
2362
|
+
attr_accessor :last_backup_state
|
2363
|
+
|
2364
|
+
# Output only. Timestamp of the last successful backup to this DataSource.
|
2365
|
+
# Corresponds to the JSON property `lastSuccessfulBackupConsistencyTime`
|
2366
|
+
# @return [String]
|
2367
|
+
attr_accessor :last_successful_backup_consistency_time
|
2368
|
+
|
2369
|
+
def initialize(**args)
|
2370
|
+
update!(**args)
|
2371
|
+
end
|
2372
|
+
|
2373
|
+
# Update properties of this object
|
2374
|
+
def update!(**args)
|
2375
|
+
@last_backup_state = args[:last_backup_state] if args.key?(:last_backup_state)
|
2376
|
+
@last_successful_backup_consistency_time = args[:last_successful_backup_consistency_time] if args.key?(:last_successful_backup_consistency_time)
|
2377
|
+
end
|
2378
|
+
end
|
2379
|
+
|
2173
2380
|
# DataSourceGcpResource is used for protected resources that are Google Cloud
|
2174
2381
|
# Resources. This name is easeier to understand than GcpResourceDataSource or
|
2175
2382
|
# GcpDataSourceResource
|
2176
2383
|
class DataSourceGcpResource
|
2177
2384
|
include Google::Apis::Core::Hashable
|
2178
2385
|
|
2386
|
+
# CloudSqlInstanceDataSourceProperties represents the properties of a Cloud SQL
|
2387
|
+
# resource that are stored in the DataSource. .
|
2388
|
+
# Corresponds to the JSON property `cloudSqlInstanceDatasourceProperties`
|
2389
|
+
# @return [Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceProperties]
|
2390
|
+
attr_accessor :cloud_sql_instance_datasource_properties
|
2391
|
+
|
2179
2392
|
# ComputeInstanceDataSourceProperties represents the properties of a
|
2180
2393
|
# ComputeEngine resource that are stored in the DataSource.
|
2181
2394
|
# Corresponds to the JSON property `computeInstanceDatasourceProperties`
|
@@ -2210,6 +2423,7 @@ module Google
|
|
2210
2423
|
|
2211
2424
|
# Update properties of this object
|
2212
2425
|
def update!(**args)
|
2426
|
+
@cloud_sql_instance_datasource_properties = args[:cloud_sql_instance_datasource_properties] if args.key?(:cloud_sql_instance_datasource_properties)
|
2213
2427
|
@compute_instance_datasource_properties = args[:compute_instance_datasource_properties] if args.key?(:compute_instance_datasource_properties)
|
2214
2428
|
@disk_datasource_properties = args[:disk_datasource_properties] if args.key?(:disk_datasource_properties)
|
2215
2429
|
@gcp_resourcename = args[:gcp_resourcename] if args.key?(:gcp_resourcename)
|
@@ -2218,6 +2432,102 @@ module Google
|
|
2218
2432
|
end
|
2219
2433
|
end
|
2220
2434
|
|
2435
|
+
# The GCP resource that the DataSource is associated with.
|
2436
|
+
class DataSourceGcpResourceInfo
|
2437
|
+
include Google::Apis::Core::Hashable
|
2438
|
+
|
2439
|
+
# CloudSqlInstanceDataSourceReferenceProperties represents the properties of a
|
2440
|
+
# Cloud SQL resource that are stored in the DataSourceReference. .
|
2441
|
+
# Corresponds to the JSON property `cloudSqlInstanceProperties`
|
2442
|
+
# @return [Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties]
|
2443
|
+
attr_accessor :cloud_sql_instance_properties
|
2444
|
+
|
2445
|
+
# Output only. The resource name of the GCP resource. Ex: projects/`project`/
|
2446
|
+
# zones/`zone`/instances/`instance`
|
2447
|
+
# Corresponds to the JSON property `gcpResourcename`
|
2448
|
+
# @return [String]
|
2449
|
+
attr_accessor :gcp_resourcename
|
2450
|
+
|
2451
|
+
# Output only. The location of the GCP resource. Ex: //"global"/"unspecified"
|
2452
|
+
# Corresponds to the JSON property `location`
|
2453
|
+
# @return [String]
|
2454
|
+
attr_accessor :location
|
2455
|
+
|
2456
|
+
# Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance
|
2457
|
+
# Corresponds to the JSON property `type`
|
2458
|
+
# @return [String]
|
2459
|
+
attr_accessor :type
|
2460
|
+
|
2461
|
+
def initialize(**args)
|
2462
|
+
update!(**args)
|
2463
|
+
end
|
2464
|
+
|
2465
|
+
# Update properties of this object
|
2466
|
+
def update!(**args)
|
2467
|
+
@cloud_sql_instance_properties = args[:cloud_sql_instance_properties] if args.key?(:cloud_sql_instance_properties)
|
2468
|
+
@gcp_resourcename = args[:gcp_resourcename] if args.key?(:gcp_resourcename)
|
2469
|
+
@location = args[:location] if args.key?(:location)
|
2470
|
+
@type = args[:type] if args.key?(:type)
|
2471
|
+
end
|
2472
|
+
end
|
2473
|
+
|
2474
|
+
# DataSourceReference is a reference to a DataSource resource.
|
2475
|
+
class DataSourceReference
|
2476
|
+
include Google::Apis::Core::Hashable
|
2477
|
+
|
2478
|
+
# Output only. The time when the DataSourceReference was created.
|
2479
|
+
# Corresponds to the JSON property `createTime`
|
2480
|
+
# @return [String]
|
2481
|
+
attr_accessor :create_time
|
2482
|
+
|
2483
|
+
# Output only. The resource name of the DataSource. Format: projects/`project`/
|
2484
|
+
# locations/`location`/backupVaults/`backupVault`/dataSources/`dataSource`
|
2485
|
+
# Corresponds to the JSON property `dataSource`
|
2486
|
+
# @return [String]
|
2487
|
+
attr_accessor :data_source
|
2488
|
+
|
2489
|
+
# Information of backup configuration on the DataSource.
|
2490
|
+
# Corresponds to the JSON property `dataSourceBackupConfigInfo`
|
2491
|
+
# @return [Google::Apis::BackupdrV1::DataSourceBackupConfigInfo]
|
2492
|
+
attr_accessor :data_source_backup_config_info
|
2493
|
+
|
2494
|
+
# Output only. The backup configuration state of the DataSource.
|
2495
|
+
# Corresponds to the JSON property `dataSourceBackupConfigState`
|
2496
|
+
# @return [String]
|
2497
|
+
attr_accessor :data_source_backup_config_state
|
2498
|
+
|
2499
|
+
# Output only. Number of backups in the DataSource.
|
2500
|
+
# Corresponds to the JSON property `dataSourceBackupCount`
|
2501
|
+
# @return [Fixnum]
|
2502
|
+
attr_accessor :data_source_backup_count
|
2503
|
+
|
2504
|
+
# The GCP resource that the DataSource is associated with.
|
2505
|
+
# Corresponds to the JSON property `dataSourceGcpResourceInfo`
|
2506
|
+
# @return [Google::Apis::BackupdrV1::DataSourceGcpResourceInfo]
|
2507
|
+
attr_accessor :data_source_gcp_resource_info
|
2508
|
+
|
2509
|
+
# Identifier. The resource name of the DataSourceReference. Format: projects/`
|
2510
|
+
# project`/locations/`location`/dataSourceReferences/`data_source_reference`
|
2511
|
+
# Corresponds to the JSON property `name`
|
2512
|
+
# @return [String]
|
2513
|
+
attr_accessor :name
|
2514
|
+
|
2515
|
+
def initialize(**args)
|
2516
|
+
update!(**args)
|
2517
|
+
end
|
2518
|
+
|
2519
|
+
# Update properties of this object
|
2520
|
+
def update!(**args)
|
2521
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2522
|
+
@data_source = args[:data_source] if args.key?(:data_source)
|
2523
|
+
@data_source_backup_config_info = args[:data_source_backup_config_info] if args.key?(:data_source_backup_config_info)
|
2524
|
+
@data_source_backup_config_state = args[:data_source_backup_config_state] if args.key?(:data_source_backup_config_state)
|
2525
|
+
@data_source_backup_count = args[:data_source_backup_count] if args.key?(:data_source_backup_count)
|
2526
|
+
@data_source_gcp_resource_info = args[:data_source_gcp_resource_info] if args.key?(:data_source_gcp_resource_info)
|
2527
|
+
@name = args[:name] if args.key?(:name)
|
2528
|
+
end
|
2529
|
+
end
|
2530
|
+
|
2221
2531
|
# DiskBackupProperties represents the properties of a Disk backup.
|
2222
2532
|
class DiskBackupProperties
|
2223
2533
|
include Google::Apis::Core::Hashable
|
@@ -2658,6 +2968,98 @@ module Google
|
|
2658
2968
|
end
|
2659
2969
|
end
|
2660
2970
|
|
2971
|
+
# Response for the FetchBackupPlanAssociationsForResourceType method.
|
2972
|
+
class FetchBackupPlanAssociationsForResourceTypeResponse
|
2973
|
+
include Google::Apis::Core::Hashable
|
2974
|
+
|
2975
|
+
# Output only. The BackupPlanAssociations from the specified parent.
|
2976
|
+
# Corresponds to the JSON property `backupPlanAssociations`
|
2977
|
+
# @return [Array<Google::Apis::BackupdrV1::BackupPlanAssociation>]
|
2978
|
+
attr_accessor :backup_plan_associations
|
2979
|
+
|
2980
|
+
# Output only. A token, which can be sent as `page_token` to retrieve the next
|
2981
|
+
# page. If this field is omitted, there are no subsequent pages.
|
2982
|
+
# Corresponds to the JSON property `nextPageToken`
|
2983
|
+
# @return [String]
|
2984
|
+
attr_accessor :next_page_token
|
2985
|
+
|
2986
|
+
def initialize(**args)
|
2987
|
+
update!(**args)
|
2988
|
+
end
|
2989
|
+
|
2990
|
+
# Update properties of this object
|
2991
|
+
def update!(**args)
|
2992
|
+
@backup_plan_associations = args[:backup_plan_associations] if args.key?(:backup_plan_associations)
|
2993
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2994
|
+
end
|
2995
|
+
end
|
2996
|
+
|
2997
|
+
# Response for the FetchDataSourceReferencesForResourceType method.
|
2998
|
+
class FetchDataSourceReferencesForResourceTypeResponse
|
2999
|
+
include Google::Apis::Core::Hashable
|
3000
|
+
|
3001
|
+
# The DataSourceReferences from the specified parent.
|
3002
|
+
# Corresponds to the JSON property `dataSourceReferences`
|
3003
|
+
# @return [Array<Google::Apis::BackupdrV1::DataSourceReference>]
|
3004
|
+
attr_accessor :data_source_references
|
3005
|
+
|
3006
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
3007
|
+
# field is omitted, there are no subsequent pages.
|
3008
|
+
# Corresponds to the JSON property `nextPageToken`
|
3009
|
+
# @return [String]
|
3010
|
+
attr_accessor :next_page_token
|
3011
|
+
|
3012
|
+
def initialize(**args)
|
3013
|
+
update!(**args)
|
3014
|
+
end
|
3015
|
+
|
3016
|
+
# Update properties of this object
|
3017
|
+
def update!(**args)
|
3018
|
+
@data_source_references = args[:data_source_references] if args.key?(:data_source_references)
|
3019
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3020
|
+
end
|
3021
|
+
end
|
3022
|
+
|
3023
|
+
# Request message for GetMsComplianceMetadata
|
3024
|
+
class FetchMsComplianceMetadataRequest
|
3025
|
+
include Google::Apis::Core::Hashable
|
3026
|
+
|
3027
|
+
# Required. The project id of the target project
|
3028
|
+
# Corresponds to the JSON property `projectId`
|
3029
|
+
# @return [String]
|
3030
|
+
attr_accessor :project_id
|
3031
|
+
|
3032
|
+
def initialize(**args)
|
3033
|
+
update!(**args)
|
3034
|
+
end
|
3035
|
+
|
3036
|
+
# Update properties of this object
|
3037
|
+
def update!(**args)
|
3038
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
3039
|
+
end
|
3040
|
+
end
|
3041
|
+
|
3042
|
+
# Response message for GetMsComplianceMetadata
|
3043
|
+
class FetchMsComplianceMetadataResponse
|
3044
|
+
include Google::Apis::Core::Hashable
|
3045
|
+
|
3046
|
+
# The ms compliance metadata of the target project, if the project is an assured
|
3047
|
+
# workloads project, values will be true, otherwise false.
|
3048
|
+
# Corresponds to the JSON property `isAssuredWorkload`
|
3049
|
+
# @return [Boolean]
|
3050
|
+
attr_accessor :is_assured_workload
|
3051
|
+
alias_method :is_assured_workload?, :is_assured_workload
|
3052
|
+
|
3053
|
+
def initialize(**args)
|
3054
|
+
update!(**args)
|
3055
|
+
end
|
3056
|
+
|
3057
|
+
# Update properties of this object
|
3058
|
+
def update!(**args)
|
3059
|
+
@is_assured_workload = args[:is_assured_workload] if args.key?(:is_assured_workload)
|
3060
|
+
end
|
3061
|
+
end
|
3062
|
+
|
2661
3063
|
# Response message for fetching usable BackupVaults.
|
2662
3064
|
class FetchUsableBackupVaultsResponse
|
2663
3065
|
include Google::Apis::Core::Hashable
|
@@ -2940,6 +3342,12 @@ module Google
|
|
2940
3342
|
class InitializeServiceRequest
|
2941
3343
|
include Google::Apis::Core::Hashable
|
2942
3344
|
|
3345
|
+
# CloudSqlInstanceInitializationConfig contains the configuration for
|
3346
|
+
# initializing a Cloud SQL instance.
|
3347
|
+
# Corresponds to the JSON property `cloudSqlInstanceInitializationConfig`
|
3348
|
+
# @return [Google::Apis::BackupdrV1::CloudSqlInstanceInitializationConfig]
|
3349
|
+
attr_accessor :cloud_sql_instance_initialization_config
|
3350
|
+
|
2943
3351
|
# Optional. An optional request ID to identify requests. Specify a unique
|
2944
3352
|
# request ID so that if you must retry your request, the server will know to
|
2945
3353
|
# ignore the request if it has already been completed. The server will guarantee
|
@@ -2967,6 +3375,7 @@ module Google
|
|
2967
3375
|
|
2968
3376
|
# Update properties of this object
|
2969
3377
|
def update!(**args)
|
3378
|
+
@cloud_sql_instance_initialization_config = args[:cloud_sql_instance_initialization_config] if args.key?(:cloud_sql_instance_initialization_config)
|
2970
3379
|
@request_id = args[:request_id] if args.key?(:request_id)
|
2971
3380
|
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
2972
3381
|
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.
|
19
|
+
GEM_VERSION = "0.34.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 = "
|
25
|
+
REVISION = "20250711"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -190,6 +190,36 @@ module Google
|
|
190
190
|
include Google::Apis::Core::JsonObjectSupport
|
191
191
|
end
|
192
192
|
|
193
|
+
class CloudSqlInstanceBackupPlanAssociationProperties
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class CloudSqlInstanceBackupProperties
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class CloudSqlInstanceDataSourceProperties
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class CloudSqlInstanceDataSourceReferenceProperties
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class CloudSqlInstanceInitializationConfig
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
193
223
|
class ComputeInstanceBackupProperties
|
194
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
225
|
|
@@ -238,12 +268,30 @@ module Google
|
|
238
268
|
include Google::Apis::Core::JsonObjectSupport
|
239
269
|
end
|
240
270
|
|
271
|
+
class DataSourceBackupConfigInfo
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
241
277
|
class DataSourceGcpResource
|
242
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
279
|
|
244
280
|
include Google::Apis::Core::JsonObjectSupport
|
245
281
|
end
|
246
282
|
|
283
|
+
class DataSourceGcpResourceInfo
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class DataSourceReference
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
247
295
|
class DiskBackupProperties
|
248
296
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
297
|
|
@@ -304,6 +352,30 @@ module Google
|
|
304
352
|
include Google::Apis::Core::JsonObjectSupport
|
305
353
|
end
|
306
354
|
|
355
|
+
class FetchBackupPlanAssociationsForResourceTypeResponse
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
361
|
+
class FetchDataSourceReferencesForResourceTypeResponse
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
367
|
+
class FetchMsComplianceMetadataRequest
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
373
|
+
class FetchMsComplianceMetadataResponse
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
307
379
|
class FetchUsableBackupVaultsResponse
|
308
380
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
381
|
|
@@ -747,6 +819,8 @@ module Google
|
|
747
819
|
collection :backup_appliance_locks, as: 'backupApplianceLocks', class: Google::Apis::BackupdrV1::BackupLock, decorator: Google::Apis::BackupdrV1::BackupLock::Representation
|
748
820
|
|
749
821
|
property :backup_type, as: 'backupType'
|
822
|
+
property :cloud_sql_instance_backup_properties, as: 'cloudSqlInstanceBackupProperties', class: Google::Apis::BackupdrV1::CloudSqlInstanceBackupProperties, decorator: Google::Apis::BackupdrV1::CloudSqlInstanceBackupProperties::Representation
|
823
|
+
|
750
824
|
property :compute_instance_backup_properties, as: 'computeInstanceBackupProperties', class: Google::Apis::BackupdrV1::ComputeInstanceBackupProperties, decorator: Google::Apis::BackupdrV1::ComputeInstanceBackupProperties::Representation
|
751
825
|
|
752
826
|
property :consistency_time, as: 'consistencyTime'
|
@@ -896,6 +970,7 @@ module Google
|
|
896
970
|
property :description, as: 'description'
|
897
971
|
property :etag, as: 'etag'
|
898
972
|
hash :labels, as: 'labels'
|
973
|
+
property :log_retention_days, :numeric_string => true, as: 'logRetentionDays'
|
899
974
|
property :name, as: 'name'
|
900
975
|
property :resource_type, as: 'resourceType'
|
901
976
|
property :revision_id, as: 'revisionId'
|
@@ -912,6 +987,8 @@ module Google
|
|
912
987
|
property :backup_plan, as: 'backupPlan'
|
913
988
|
property :backup_plan_revision_id, as: 'backupPlanRevisionId'
|
914
989
|
property :backup_plan_revision_name, as: 'backupPlanRevisionName'
|
990
|
+
property :cloud_sql_instance_backup_plan_association_properties, as: 'cloudSqlInstanceBackupPlanAssociationProperties', class: Google::Apis::BackupdrV1::CloudSqlInstanceBackupPlanAssociationProperties, decorator: Google::Apis::BackupdrV1::CloudSqlInstanceBackupPlanAssociationProperties::Representation
|
991
|
+
|
915
992
|
property :create_time, as: 'createTime'
|
916
993
|
property :data_source, as: 'dataSource'
|
917
994
|
property :name, as: 'name'
|
@@ -992,6 +1069,50 @@ module Google
|
|
992
1069
|
end
|
993
1070
|
end
|
994
1071
|
|
1072
|
+
class CloudSqlInstanceBackupPlanAssociationProperties
|
1073
|
+
# @private
|
1074
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1075
|
+
property :instance_create_time, as: 'instanceCreateTime'
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
class CloudSqlInstanceBackupProperties
|
1080
|
+
# @private
|
1081
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1082
|
+
property :database_installed_version, as: 'databaseInstalledVersion'
|
1083
|
+
property :final_backup, as: 'finalBackup'
|
1084
|
+
property :instance_tier, as: 'instanceTier'
|
1085
|
+
property :source_instance, as: 'sourceInstance'
|
1086
|
+
end
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
class CloudSqlInstanceDataSourceProperties
|
1090
|
+
# @private
|
1091
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1092
|
+
property :database_installed_version, as: 'databaseInstalledVersion'
|
1093
|
+
property :instance_create_time, as: 'instanceCreateTime'
|
1094
|
+
property :instance_tier, as: 'instanceTier'
|
1095
|
+
property :name, as: 'name'
|
1096
|
+
end
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
class CloudSqlInstanceDataSourceReferenceProperties
|
1100
|
+
# @private
|
1101
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1102
|
+
property :database_installed_version, as: 'databaseInstalledVersion'
|
1103
|
+
property :instance_create_time, as: 'instanceCreateTime'
|
1104
|
+
property :instance_tier, as: 'instanceTier'
|
1105
|
+
property :name, as: 'name'
|
1106
|
+
end
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
class CloudSqlInstanceInitializationConfig
|
1110
|
+
# @private
|
1111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1112
|
+
property :edition, as: 'edition'
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
995
1116
|
class ComputeInstanceBackupProperties
|
996
1117
|
# @private
|
997
1118
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1135,9 +1256,19 @@ module Google
|
|
1135
1256
|
end
|
1136
1257
|
end
|
1137
1258
|
|
1259
|
+
class DataSourceBackupConfigInfo
|
1260
|
+
# @private
|
1261
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1262
|
+
property :last_backup_state, as: 'lastBackupState'
|
1263
|
+
property :last_successful_backup_consistency_time, as: 'lastSuccessfulBackupConsistencyTime'
|
1264
|
+
end
|
1265
|
+
end
|
1266
|
+
|
1138
1267
|
class DataSourceGcpResource
|
1139
1268
|
# @private
|
1140
1269
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1270
|
+
property :cloud_sql_instance_datasource_properties, as: 'cloudSqlInstanceDatasourceProperties', class: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceProperties, decorator: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceProperties::Representation
|
1271
|
+
|
1141
1272
|
property :compute_instance_datasource_properties, as: 'computeInstanceDatasourceProperties', class: Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties, decorator: Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties::Representation
|
1142
1273
|
|
1143
1274
|
property :disk_datasource_properties, as: 'diskDatasourceProperties', class: Google::Apis::BackupdrV1::DiskDataSourceProperties, decorator: Google::Apis::BackupdrV1::DiskDataSourceProperties::Representation
|
@@ -1148,6 +1279,32 @@ module Google
|
|
1148
1279
|
end
|
1149
1280
|
end
|
1150
1281
|
|
1282
|
+
class DataSourceGcpResourceInfo
|
1283
|
+
# @private
|
1284
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1285
|
+
property :cloud_sql_instance_properties, as: 'cloudSqlInstanceProperties', class: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties, decorator: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties::Representation
|
1286
|
+
|
1287
|
+
property :gcp_resourcename, as: 'gcpResourcename'
|
1288
|
+
property :location, as: 'location'
|
1289
|
+
property :type, as: 'type'
|
1290
|
+
end
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
class DataSourceReference
|
1294
|
+
# @private
|
1295
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1296
|
+
property :create_time, as: 'createTime'
|
1297
|
+
property :data_source, as: 'dataSource'
|
1298
|
+
property :data_source_backup_config_info, as: 'dataSourceBackupConfigInfo', class: Google::Apis::BackupdrV1::DataSourceBackupConfigInfo, decorator: Google::Apis::BackupdrV1::DataSourceBackupConfigInfo::Representation
|
1299
|
+
|
1300
|
+
property :data_source_backup_config_state, as: 'dataSourceBackupConfigState'
|
1301
|
+
property :data_source_backup_count, :numeric_string => true, as: 'dataSourceBackupCount'
|
1302
|
+
property :data_source_gcp_resource_info, as: 'dataSourceGcpResourceInfo', class: Google::Apis::BackupdrV1::DataSourceGcpResourceInfo, decorator: Google::Apis::BackupdrV1::DataSourceGcpResourceInfo::Representation
|
1303
|
+
|
1304
|
+
property :name, as: 'name'
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
|
1151
1308
|
class DiskBackupProperties
|
1152
1309
|
# @private
|
1153
1310
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1256,6 +1413,38 @@ module Google
|
|
1256
1413
|
end
|
1257
1414
|
end
|
1258
1415
|
|
1416
|
+
class FetchBackupPlanAssociationsForResourceTypeResponse
|
1417
|
+
# @private
|
1418
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1419
|
+
collection :backup_plan_associations, as: 'backupPlanAssociations', class: Google::Apis::BackupdrV1::BackupPlanAssociation, decorator: Google::Apis::BackupdrV1::BackupPlanAssociation::Representation
|
1420
|
+
|
1421
|
+
property :next_page_token, as: 'nextPageToken'
|
1422
|
+
end
|
1423
|
+
end
|
1424
|
+
|
1425
|
+
class FetchDataSourceReferencesForResourceTypeResponse
|
1426
|
+
# @private
|
1427
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1428
|
+
collection :data_source_references, as: 'dataSourceReferences', class: Google::Apis::BackupdrV1::DataSourceReference, decorator: Google::Apis::BackupdrV1::DataSourceReference::Representation
|
1429
|
+
|
1430
|
+
property :next_page_token, as: 'nextPageToken'
|
1431
|
+
end
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
class FetchMsComplianceMetadataRequest
|
1435
|
+
# @private
|
1436
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1437
|
+
property :project_id, as: 'projectId'
|
1438
|
+
end
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
class FetchMsComplianceMetadataResponse
|
1442
|
+
# @private
|
1443
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1444
|
+
property :is_assured_workload, as: 'isAssuredWorkload'
|
1445
|
+
end
|
1446
|
+
end
|
1447
|
+
|
1259
1448
|
class FetchUsableBackupVaultsResponse
|
1260
1449
|
# @private
|
1261
1450
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1328,6 +1517,8 @@ module Google
|
|
1328
1517
|
class InitializeServiceRequest
|
1329
1518
|
# @private
|
1330
1519
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1520
|
+
property :cloud_sql_instance_initialization_config, as: 'cloudSqlInstanceInitializationConfig', class: Google::Apis::BackupdrV1::CloudSqlInstanceInitializationConfig, decorator: Google::Apis::BackupdrV1::CloudSqlInstanceInitializationConfig::Representation
|
1521
|
+
|
1331
1522
|
property :request_id, as: 'requestId'
|
1332
1523
|
property :resource_type, as: 'resourceType'
|
1333
1524
|
end
|
@@ -223,6 +223,64 @@ module Google
|
|
223
223
|
execute_or_queue_command(command, &block)
|
224
224
|
end
|
225
225
|
|
226
|
+
# List BackupPlanAssociations for a given resource type.
|
227
|
+
# @param [String] parent
|
228
|
+
# Required. The parent resource name. Format: projects/`project`/locations/`
|
229
|
+
# location`
|
230
|
+
# @param [String] filter
|
231
|
+
# Optional. A filter expression that filters the results fetched in the response.
|
232
|
+
# The expression must specify the field name, a comparison operator, and the
|
233
|
+
# value that you want to use for filtering. Supported fields: * resource *
|
234
|
+
# backup_plan * state * data_source *
|
235
|
+
# cloud_sql_instance_backup_plan_association_properties.instance_create_time
|
236
|
+
# @param [String] order_by
|
237
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
238
|
+
# order. Use "desc" after a field name for descending. Supported fields: * name
|
239
|
+
# @param [Fixnum] page_size
|
240
|
+
# Optional. The maximum number of BackupPlanAssociations to return. The service
|
241
|
+
# may return fewer than this value. If unspecified, at most 50
|
242
|
+
# BackupPlanAssociations will be returned. The maximum value is 100; values
|
243
|
+
# above 100 will be coerced to 100.
|
244
|
+
# @param [String] page_token
|
245
|
+
# Optional. A page token, received from a previous call of `
|
246
|
+
# FetchBackupPlanAssociationsForResourceType`. Provide this to retrieve the
|
247
|
+
# subsequent page. When paginating, all other parameters provided to `
|
248
|
+
# FetchBackupPlanAssociationsForResourceType` must match the call that provided
|
249
|
+
# the page token.
|
250
|
+
# @param [String] resource_type
|
251
|
+
# Required. The type of the GCP resource. Ex: sql.googleapis.com/Instance
|
252
|
+
# @param [String] fields
|
253
|
+
# Selector specifying which fields to include in a partial response.
|
254
|
+
# @param [String] quota_user
|
255
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
256
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
257
|
+
# @param [Google::Apis::RequestOptions] options
|
258
|
+
# Request-specific options
|
259
|
+
#
|
260
|
+
# @yield [result, err] Result & error if block supplied
|
261
|
+
# @yieldparam result [Google::Apis::BackupdrV1::FetchBackupPlanAssociationsForResourceTypeResponse] parsed result object
|
262
|
+
# @yieldparam err [StandardError] error object if request failed
|
263
|
+
#
|
264
|
+
# @return [Google::Apis::BackupdrV1::FetchBackupPlanAssociationsForResourceTypeResponse]
|
265
|
+
#
|
266
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
267
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
268
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
269
|
+
def fetch_project_location_backup_plan_association_for_resource_type(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, resource_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
270
|
+
command = make_simple_command(:get, 'v1/{+parent}/backupPlanAssociations:fetchForResourceType', options)
|
271
|
+
command.response_representation = Google::Apis::BackupdrV1::FetchBackupPlanAssociationsForResourceTypeResponse::Representation
|
272
|
+
command.response_class = Google::Apis::BackupdrV1::FetchBackupPlanAssociationsForResourceTypeResponse
|
273
|
+
command.params['parent'] = parent unless parent.nil?
|
274
|
+
command.query['filter'] = filter unless filter.nil?
|
275
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
276
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
277
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
278
|
+
command.query['resourceType'] = resource_type unless resource_type.nil?
|
279
|
+
command.query['fields'] = fields unless fields.nil?
|
280
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
281
|
+
execute_or_queue_command(command, &block)
|
282
|
+
end
|
283
|
+
|
226
284
|
# Gets details of a single BackupPlanAssociation.
|
227
285
|
# @param [String] name
|
228
286
|
# Required. Name of the backup plan association resource, in the format `
|
@@ -1615,6 +1673,99 @@ module Google
|
|
1615
1673
|
execute_or_queue_command(command, &block)
|
1616
1674
|
end
|
1617
1675
|
|
1676
|
+
# Fetch DataSourceReferences for a given project, location and resource type.
|
1677
|
+
# @param [String] parent
|
1678
|
+
# Required. The parent resource name. Format: projects/`project`/locations/`
|
1679
|
+
# location`
|
1680
|
+
# @param [String] filter
|
1681
|
+
# Optional. A filter expression that filters the results fetched in the response.
|
1682
|
+
# The expression must specify the field name, a comparison operator, and the
|
1683
|
+
# value that you want to use for filtering. Supported fields: * data_source *
|
1684
|
+
# data_source_gcp_resource_info.gcp_resourcename *
|
1685
|
+
# data_source_backup_config_state * data_source_backup_count *
|
1686
|
+
# data_source_backup_config_info.last_backup_state *
|
1687
|
+
# data_source_gcp_resource_info.gcp_resourcename * data_source_gcp_resource_info.
|
1688
|
+
# type * data_source_gcp_resource_info.location * data_source_gcp_resource_info.
|
1689
|
+
# cloud_sql_instance_properties.instance_create_time
|
1690
|
+
# @param [String] order_by
|
1691
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
1692
|
+
# order. Use "desc" after a field name for descending. Supported fields: * name
|
1693
|
+
# @param [Fixnum] page_size
|
1694
|
+
# Optional. The maximum number of DataSourceReferences to return. The service
|
1695
|
+
# may return fewer than this value. If unspecified, at most 50
|
1696
|
+
# DataSourceReferences will be returned. The maximum value is 100; values above
|
1697
|
+
# 100 will be coerced to 100.
|
1698
|
+
# @param [String] page_token
|
1699
|
+
# Optional. A page token, received from a previous call of `
|
1700
|
+
# FetchDataSourceReferencesForResourceType`. Provide this to retrieve the
|
1701
|
+
# subsequent page. When paginating, all other parameters provided to `
|
1702
|
+
# FetchDataSourceReferencesForResourceType` must match the call that provided
|
1703
|
+
# the page token.
|
1704
|
+
# @param [String] resource_type
|
1705
|
+
# Required. The type of the GCP resource. Ex: sql.googleapis.com/Instance
|
1706
|
+
# @param [String] fields
|
1707
|
+
# Selector specifying which fields to include in a partial response.
|
1708
|
+
# @param [String] quota_user
|
1709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1711
|
+
# @param [Google::Apis::RequestOptions] options
|
1712
|
+
# Request-specific options
|
1713
|
+
#
|
1714
|
+
# @yield [result, err] Result & error if block supplied
|
1715
|
+
# @yieldparam result [Google::Apis::BackupdrV1::FetchDataSourceReferencesForResourceTypeResponse] parsed result object
|
1716
|
+
# @yieldparam err [StandardError] error object if request failed
|
1717
|
+
#
|
1718
|
+
# @return [Google::Apis::BackupdrV1::FetchDataSourceReferencesForResourceTypeResponse]
|
1719
|
+
#
|
1720
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1721
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1722
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1723
|
+
def fetch_project_location_data_source_reference_for_resource_type(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, resource_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1724
|
+
command = make_simple_command(:get, 'v1/{+parent}/dataSourceReferences:fetchForResourceType', options)
|
1725
|
+
command.response_representation = Google::Apis::BackupdrV1::FetchDataSourceReferencesForResourceTypeResponse::Representation
|
1726
|
+
command.response_class = Google::Apis::BackupdrV1::FetchDataSourceReferencesForResourceTypeResponse
|
1727
|
+
command.params['parent'] = parent unless parent.nil?
|
1728
|
+
command.query['filter'] = filter unless filter.nil?
|
1729
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1730
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1731
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1732
|
+
command.query['resourceType'] = resource_type unless resource_type.nil?
|
1733
|
+
command.query['fields'] = fields unless fields.nil?
|
1734
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1735
|
+
execute_or_queue_command(command, &block)
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
# Gets details of a single DataSourceReference.
|
1739
|
+
# @param [String] name
|
1740
|
+
# Required. The name of the DataSourceReference to retrieve. Format: projects/`
|
1741
|
+
# project`/locations/`location`/dataSourceReferences/`data_source_reference`
|
1742
|
+
# @param [String] fields
|
1743
|
+
# Selector specifying which fields to include in a partial response.
|
1744
|
+
# @param [String] quota_user
|
1745
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1746
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1747
|
+
# @param [Google::Apis::RequestOptions] options
|
1748
|
+
# Request-specific options
|
1749
|
+
#
|
1750
|
+
# @yield [result, err] Result & error if block supplied
|
1751
|
+
# @yieldparam result [Google::Apis::BackupdrV1::DataSourceReference] parsed result object
|
1752
|
+
# @yieldparam err [StandardError] error object if request failed
|
1753
|
+
#
|
1754
|
+
# @return [Google::Apis::BackupdrV1::DataSourceReference]
|
1755
|
+
#
|
1756
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1757
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1758
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1759
|
+
def get_project_location_data_source_reference(name, fields: nil, quota_user: nil, options: nil, &block)
|
1760
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1761
|
+
command.response_representation = Google::Apis::BackupdrV1::DataSourceReference::Representation
|
1762
|
+
command.response_class = Google::Apis::BackupdrV1::DataSourceReference
|
1763
|
+
command.params['name'] = name unless name.nil?
|
1764
|
+
command.query['fields'] = fields unless fields.nil?
|
1765
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1766
|
+
execute_or_queue_command(command, &block)
|
1767
|
+
end
|
1768
|
+
|
1618
1769
|
# Creates a new ManagementServer in a given project and location.
|
1619
1770
|
# @param [String] parent
|
1620
1771
|
# Required. The management server project and location in the format 'projects/`
|
@@ -1831,6 +1982,42 @@ module Google
|
|
1831
1982
|
execute_or_queue_command(command, &block)
|
1832
1983
|
end
|
1833
1984
|
|
1985
|
+
# Returns the Assured Workloads compliance metadata for a given project.
|
1986
|
+
# @param [String] parent
|
1987
|
+
# Required. The project and location to be used to check CSS metadata for target
|
1988
|
+
# project information, in the format 'projects/`project_id`/locations/`location`'
|
1989
|
+
# . In Cloud BackupDR, locations map to Google Cloud regions, for example **us-
|
1990
|
+
# central1**.
|
1991
|
+
# @param [Google::Apis::BackupdrV1::FetchMsComplianceMetadataRequest] fetch_ms_compliance_metadata_request_object
|
1992
|
+
# @param [String] fields
|
1993
|
+
# Selector specifying which fields to include in a partial response.
|
1994
|
+
# @param [String] quota_user
|
1995
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1996
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1997
|
+
# @param [Google::Apis::RequestOptions] options
|
1998
|
+
# Request-specific options
|
1999
|
+
#
|
2000
|
+
# @yield [result, err] Result & error if block supplied
|
2001
|
+
# @yieldparam result [Google::Apis::BackupdrV1::FetchMsComplianceMetadataResponse] parsed result object
|
2002
|
+
# @yieldparam err [StandardError] error object if request failed
|
2003
|
+
#
|
2004
|
+
# @return [Google::Apis::BackupdrV1::FetchMsComplianceMetadataResponse]
|
2005
|
+
#
|
2006
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2007
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2008
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2009
|
+
def ms_project_location_management_server_compliance_metadata(parent, fetch_ms_compliance_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2010
|
+
command = make_simple_command(:post, 'v1/{+parent}:msComplianceMetadata', options)
|
2011
|
+
command.request_representation = Google::Apis::BackupdrV1::FetchMsComplianceMetadataRequest::Representation
|
2012
|
+
command.request_object = fetch_ms_compliance_metadata_request_object
|
2013
|
+
command.response_representation = Google::Apis::BackupdrV1::FetchMsComplianceMetadataResponse::Representation
|
2014
|
+
command.response_class = Google::Apis::BackupdrV1::FetchMsComplianceMetadataResponse
|
2015
|
+
command.params['parent'] = parent unless parent.nil?
|
2016
|
+
command.query['fields'] = fields unless fields.nil?
|
2017
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2018
|
+
execute_or_queue_command(command, &block)
|
2019
|
+
end
|
2020
|
+
|
1834
2021
|
# Sets the access control policy on the specified resource. Replaces any
|
1835
2022
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1836
2023
|
# PERMISSION_DENIED` errors.
|
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.
|
4
|
+
version: 0.34.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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-backupdr_v1/v0.34.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:
|