google-apis-backupdr_v1 0.29.0 → 0.31.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: 474de3954a7551bfd6694ebe8a1602ef8f8dee0f2373bbb7b790590837612390
|
4
|
+
data.tar.gz: 8953c485546f4913696f708bd92421e85a72764f1fe11abe6963a2db7694b647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bb79df56519f95384b5e1e610485e334d69718d70a8f62644cd723d8d519d6f6f5b679b7ecac5f47ca4b0584b1a2db077ba13e93eb6da439d54243ad4b51d2b
|
7
|
+
data.tar.gz: 01c0773d4c2c7aeb3e6b35d88e612b70c40a0c53a7c75fe21142b294e80c606be725fb75090ff34728b40563c00328c79aba44fd576ed8dbf7394a25cd22c2db
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-backupdr_v1
|
2
2
|
|
3
|
+
### v0.31.0 (2025-06-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250605
|
6
|
+
|
7
|
+
### v0.30.0 (2025-06-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250523
|
10
|
+
* Regenerated using generator version 0.18.0
|
11
|
+
|
3
12
|
### v0.29.0 (2025-05-18)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20250509
|
@@ -1083,6 +1083,19 @@ module Google
|
|
1083
1083
|
# @return [String]
|
1084
1084
|
attr_accessor :resource_type
|
1085
1085
|
|
1086
|
+
# Output only. The user friendly revision ID of the `BackupPlanRevision`.
|
1087
|
+
# Example: v0, v1, v2, etc.
|
1088
|
+
# Corresponds to the JSON property `revisionId`
|
1089
|
+
# @return [String]
|
1090
|
+
attr_accessor :revision_id
|
1091
|
+
|
1092
|
+
# Output only. The resource id of the `BackupPlanRevision`. Format: `projects/`
|
1093
|
+
# project`/locations/`location`/backupPlans/`backup_plan`/revisions/`revision_id`
|
1094
|
+
# `
|
1095
|
+
# Corresponds to the JSON property `revisionName`
|
1096
|
+
# @return [String]
|
1097
|
+
attr_accessor :revision_name
|
1098
|
+
|
1086
1099
|
# Output only. The `State` for the `BackupPlan`.
|
1087
1100
|
# Corresponds to the JSON property `state`
|
1088
1101
|
# @return [String]
|
@@ -1113,6 +1126,8 @@ module Google
|
|
1113
1126
|
@labels = args[:labels] if args.key?(:labels)
|
1114
1127
|
@name = args[:name] if args.key?(:name)
|
1115
1128
|
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
1129
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
1130
|
+
@revision_name = args[:revision_name] if args.key?(:revision_name)
|
1116
1131
|
@state = args[:state] if args.key?(:state)
|
1117
1132
|
@supported_resource_types = args[:supported_resource_types] if args.key?(:supported_resource_types)
|
1118
1133
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -1130,6 +1145,19 @@ module Google
|
|
1130
1145
|
# @return [String]
|
1131
1146
|
attr_accessor :backup_plan
|
1132
1147
|
|
1148
|
+
# Output only. The user friendly revision ID of the `BackupPlanRevision`.
|
1149
|
+
# Example: v0, v1, v2, etc.
|
1150
|
+
# Corresponds to the JSON property `backupPlanRevisionId`
|
1151
|
+
# @return [String]
|
1152
|
+
attr_accessor :backup_plan_revision_id
|
1153
|
+
|
1154
|
+
# Output only. The resource id of the `BackupPlanRevision`. Format: `projects/`
|
1155
|
+
# project`/locations/`location`/backupPlans/`backup_plan`/revisions/`revision_id`
|
1156
|
+
# `
|
1157
|
+
# Corresponds to the JSON property `backupPlanRevisionName`
|
1158
|
+
# @return [String]
|
1159
|
+
attr_accessor :backup_plan_revision_name
|
1160
|
+
|
1133
1161
|
# Output only. The time when the instance was created.
|
1134
1162
|
# Corresponds to the JSON property `createTime`
|
1135
1163
|
# @return [String]
|
@@ -1181,6 +1209,8 @@ module Google
|
|
1181
1209
|
# Update properties of this object
|
1182
1210
|
def update!(**args)
|
1183
1211
|
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
1212
|
+
@backup_plan_revision_id = args[:backup_plan_revision_id] if args.key?(:backup_plan_revision_id)
|
1213
|
+
@backup_plan_revision_name = args[:backup_plan_revision_name] if args.key?(:backup_plan_revision_name)
|
1184
1214
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1185
1215
|
@data_source = args[:data_source] if args.key?(:data_source)
|
1186
1216
|
@name = args[:name] if args.key?(:name)
|
@@ -1192,6 +1222,55 @@ module Google
|
|
1192
1222
|
end
|
1193
1223
|
end
|
1194
1224
|
|
1225
|
+
# `BackupPlanRevision` represents a snapshot of a `BackupPlan` at a point in
|
1226
|
+
# time.
|
1227
|
+
class BackupPlanRevision
|
1228
|
+
include Google::Apis::Core::Hashable
|
1229
|
+
|
1230
|
+
# A `BackupPlan` specifies some common fields, such as `description` as well as
|
1231
|
+
# one or more `BackupRule` messages. Each `BackupRule` has a retention policy
|
1232
|
+
# and defines a schedule by which the system is to perform backup workloads.
|
1233
|
+
# Corresponds to the JSON property `backupPlanSnapshot`
|
1234
|
+
# @return [Google::Apis::BackupdrV1::BackupPlan]
|
1235
|
+
attr_accessor :backup_plan_snapshot
|
1236
|
+
|
1237
|
+
# Output only. The timestamp that the revision was created.
|
1238
|
+
# Corresponds to the JSON property `createTime`
|
1239
|
+
# @return [String]
|
1240
|
+
attr_accessor :create_time
|
1241
|
+
|
1242
|
+
# Output only. Identifier. The resource name of the `BackupPlanRevision`. Format:
|
1243
|
+
# `projects/`project`/locations/`location`/backupPlans/`backup_plan`/revisions/`
|
1244
|
+
# revision``
|
1245
|
+
# Corresponds to the JSON property `name`
|
1246
|
+
# @return [String]
|
1247
|
+
attr_accessor :name
|
1248
|
+
|
1249
|
+
# Output only. The user friendly revision ID of the `BackupPlanRevision`.
|
1250
|
+
# Example: v0, v1, v2, etc.
|
1251
|
+
# Corresponds to the JSON property `revisionId`
|
1252
|
+
# @return [String]
|
1253
|
+
attr_accessor :revision_id
|
1254
|
+
|
1255
|
+
# Output only. Resource State
|
1256
|
+
# Corresponds to the JSON property `state`
|
1257
|
+
# @return [String]
|
1258
|
+
attr_accessor :state
|
1259
|
+
|
1260
|
+
def initialize(**args)
|
1261
|
+
update!(**args)
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
# Update properties of this object
|
1265
|
+
def update!(**args)
|
1266
|
+
@backup_plan_snapshot = args[:backup_plan_snapshot] if args.key?(:backup_plan_snapshot)
|
1267
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1268
|
+
@name = args[:name] if args.key?(:name)
|
1269
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
1270
|
+
@state = args[:state] if args.key?(:state)
|
1271
|
+
end
|
1272
|
+
end
|
1273
|
+
|
1195
1274
|
# `BackupRule` binds the backup schedule to a retention policy.
|
1196
1275
|
class BackupRule
|
1197
1276
|
include Google::Apis::Core::Hashable
|
@@ -1199,10 +1278,11 @@ module Google
|
|
1199
1278
|
# Required. Configures the duration for which backup data will be kept. It is
|
1200
1279
|
# defined in “days”. The value should be greater than or equal to minimum
|
1201
1280
|
# enforced retention of the backup vault. Minimum value is 1 and maximum value
|
1202
|
-
# is
|
1203
|
-
#
|
1204
|
-
# Minimum value is
|
1205
|
-
# value is
|
1281
|
+
# is 36159 for custom retention on-demand backup. Minimum value is 1 and maximum
|
1282
|
+
# value is 90 for hourly backups. Minimum value is 1 and maximum value is 186
|
1283
|
+
# for daily backups. Minimum value is 7 and maximum value is 366 for weekly
|
1284
|
+
# backups. Minimum value is 30 and maximum value is 732 for monthly backups.
|
1285
|
+
# Minimum value is 365 and maximum value is 36159 for yearly backups.
|
1206
1286
|
# Corresponds to the JSON property `backupRetentionDays`
|
1207
1287
|
# @return [Fixnum]
|
1208
1288
|
attr_accessor :backup_retention_days
|
@@ -2691,6 +2771,19 @@ module Google
|
|
2691
2771
|
# @return [String]
|
2692
2772
|
attr_accessor :backup_plan
|
2693
2773
|
|
2774
|
+
# The user friendly id of the backup plan revision which triggered this backup
|
2775
|
+
# in case of scheduled backup or used for on demand backup.
|
2776
|
+
# Corresponds to the JSON property `backupPlanRevisionId`
|
2777
|
+
# @return [String]
|
2778
|
+
attr_accessor :backup_plan_revision_id
|
2779
|
+
|
2780
|
+
# Resource name of the backup plan revision which triggered this backup in case
|
2781
|
+
# of scheduled backup or used for on demand backup. Format: projects/`project`/
|
2782
|
+
# locations/`location`/backupPlans/`backupPlanId`/revisions/`revisionId`
|
2783
|
+
# Corresponds to the JSON property `backupPlanRevisionName`
|
2784
|
+
# @return [String]
|
2785
|
+
attr_accessor :backup_plan_revision_name
|
2786
|
+
|
2694
2787
|
# The rule id of the backup plan which triggered this backup in case of
|
2695
2788
|
# scheduled backup or used for
|
2696
2789
|
# Corresponds to the JSON property `backupPlanRuleId`
|
@@ -2704,6 +2797,8 @@ module Google
|
|
2704
2797
|
# Update properties of this object
|
2705
2798
|
def update!(**args)
|
2706
2799
|
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
2800
|
+
@backup_plan_revision_id = args[:backup_plan_revision_id] if args.key?(:backup_plan_revision_id)
|
2801
|
+
@backup_plan_revision_name = args[:backup_plan_revision_name] if args.key?(:backup_plan_revision_name)
|
2707
2802
|
@backup_plan_rule_id = args[:backup_plan_rule_id] if args.key?(:backup_plan_rule_id)
|
2708
2803
|
end
|
2709
2804
|
end
|
@@ -2729,6 +2824,16 @@ module Google
|
|
2729
2824
|
# @return [String]
|
2730
2825
|
attr_accessor :backup_plan_description
|
2731
2826
|
|
2827
|
+
# The user friendly id of the backup plan revision. E.g. v0, v1 etc.
|
2828
|
+
# Corresponds to the JSON property `backupPlanRevisionId`
|
2829
|
+
# @return [String]
|
2830
|
+
attr_accessor :backup_plan_revision_id
|
2831
|
+
|
2832
|
+
# The name of the backup plan revision.
|
2833
|
+
# Corresponds to the JSON property `backupPlanRevisionName`
|
2834
|
+
# @return [String]
|
2835
|
+
attr_accessor :backup_plan_revision_name
|
2836
|
+
|
2732
2837
|
# The names of the backup plan rules which point to this backupvault
|
2733
2838
|
# Corresponds to the JSON property `backupPlanRules`
|
2734
2839
|
# @return [Array<String>]
|
@@ -2743,6 +2848,8 @@ module Google
|
|
2743
2848
|
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
2744
2849
|
@backup_plan_association = args[:backup_plan_association] if args.key?(:backup_plan_association)
|
2745
2850
|
@backup_plan_description = args[:backup_plan_description] if args.key?(:backup_plan_description)
|
2851
|
+
@backup_plan_revision_id = args[:backup_plan_revision_id] if args.key?(:backup_plan_revision_id)
|
2852
|
+
@backup_plan_revision_name = args[:backup_plan_revision_name] if args.key?(:backup_plan_revision_name)
|
2746
2853
|
@backup_plan_rules = args[:backup_plan_rules] if args.key?(:backup_plan_rules)
|
2747
2854
|
end
|
2748
2855
|
end
|
@@ -2980,6 +3087,43 @@ module Google
|
|
2980
3087
|
end
|
2981
3088
|
end
|
2982
3089
|
|
3090
|
+
# The response message for getting a list of `BackupPlanRevision`.
|
3091
|
+
class ListBackupPlanRevisionsResponse
|
3092
|
+
include Google::Apis::Core::Hashable
|
3093
|
+
|
3094
|
+
# The list of `BackupPlanRevisions` in the project for the specified location.
|
3095
|
+
# If the ``location`` value in the request is "-", the response contains a list
|
3096
|
+
# of resources from all locations. In case any location is unreachable, the
|
3097
|
+
# response will only return backup plans in reachable locations and the '
|
3098
|
+
# unreachable' field will be populated with a list of unreachable locations.
|
3099
|
+
# Corresponds to the JSON property `backupPlanRevisions`
|
3100
|
+
# @return [Array<Google::Apis::BackupdrV1::BackupPlanRevision>]
|
3101
|
+
attr_accessor :backup_plan_revisions
|
3102
|
+
|
3103
|
+
# A token which may be sent as page_token in a subsequent `
|
3104
|
+
# ListBackupPlanRevisions` call to retrieve the next page of results. If this
|
3105
|
+
# field is omitted or empty, then there are no more results to return.
|
3106
|
+
# Corresponds to the JSON property `nextPageToken`
|
3107
|
+
# @return [String]
|
3108
|
+
attr_accessor :next_page_token
|
3109
|
+
|
3110
|
+
# Locations that could not be reached.
|
3111
|
+
# Corresponds to the JSON property `unreachable`
|
3112
|
+
# @return [Array<String>]
|
3113
|
+
attr_accessor :unreachable
|
3114
|
+
|
3115
|
+
def initialize(**args)
|
3116
|
+
update!(**args)
|
3117
|
+
end
|
3118
|
+
|
3119
|
+
# Update properties of this object
|
3120
|
+
def update!(**args)
|
3121
|
+
@backup_plan_revisions = args[:backup_plan_revisions] if args.key?(:backup_plan_revisions)
|
3122
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3123
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
3124
|
+
end
|
3125
|
+
end
|
3126
|
+
|
2983
3127
|
# The response message for getting a list of `BackupPlan`.
|
2984
3128
|
class ListBackupPlansResponse
|
2985
3129
|
include Google::Apis::Core::Hashable
|
@@ -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.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250605"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -154,6 +154,12 @@ module Google
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
155
155
|
end
|
156
156
|
|
157
|
+
class BackupPlanRevision
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
157
163
|
class BackupRule
|
158
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
165
|
|
@@ -370,6 +376,12 @@ module Google
|
|
370
376
|
include Google::Apis::Core::JsonObjectSupport
|
371
377
|
end
|
372
378
|
|
379
|
+
class ListBackupPlanRevisionsResponse
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
|
+
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
383
|
+
end
|
384
|
+
|
373
385
|
class ListBackupPlansResponse
|
374
386
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
387
|
|
@@ -886,6 +898,8 @@ module Google
|
|
886
898
|
hash :labels, as: 'labels'
|
887
899
|
property :name, as: 'name'
|
888
900
|
property :resource_type, as: 'resourceType'
|
901
|
+
property :revision_id, as: 'revisionId'
|
902
|
+
property :revision_name, as: 'revisionName'
|
889
903
|
property :state, as: 'state'
|
890
904
|
collection :supported_resource_types, as: 'supportedResourceTypes'
|
891
905
|
property :update_time, as: 'updateTime'
|
@@ -896,6 +910,8 @@ module Google
|
|
896
910
|
# @private
|
897
911
|
class Representation < Google::Apis::Core::JsonRepresentation
|
898
912
|
property :backup_plan, as: 'backupPlan'
|
913
|
+
property :backup_plan_revision_id, as: 'backupPlanRevisionId'
|
914
|
+
property :backup_plan_revision_name, as: 'backupPlanRevisionName'
|
899
915
|
property :create_time, as: 'createTime'
|
900
916
|
property :data_source, as: 'dataSource'
|
901
917
|
property :name, as: 'name'
|
@@ -908,6 +924,18 @@ module Google
|
|
908
924
|
end
|
909
925
|
end
|
910
926
|
|
927
|
+
class BackupPlanRevision
|
928
|
+
# @private
|
929
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
930
|
+
property :backup_plan_snapshot, as: 'backupPlanSnapshot', class: Google::Apis::BackupdrV1::BackupPlan, decorator: Google::Apis::BackupdrV1::BackupPlan::Representation
|
931
|
+
|
932
|
+
property :create_time, as: 'createTime'
|
933
|
+
property :name, as: 'name'
|
934
|
+
property :revision_id, as: 'revisionId'
|
935
|
+
property :state, as: 'state'
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
911
939
|
class BackupRule
|
912
940
|
# @private
|
913
941
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1255,6 +1283,8 @@ module Google
|
|
1255
1283
|
# @private
|
1256
1284
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1257
1285
|
property :backup_plan, as: 'backupPlan'
|
1286
|
+
property :backup_plan_revision_id, as: 'backupPlanRevisionId'
|
1287
|
+
property :backup_plan_revision_name, as: 'backupPlanRevisionName'
|
1258
1288
|
property :backup_plan_rule_id, as: 'backupPlanRuleId'
|
1259
1289
|
end
|
1260
1290
|
end
|
@@ -1265,6 +1295,8 @@ module Google
|
|
1265
1295
|
property :backup_plan, as: 'backupPlan'
|
1266
1296
|
property :backup_plan_association, as: 'backupPlanAssociation'
|
1267
1297
|
property :backup_plan_description, as: 'backupPlanDescription'
|
1298
|
+
property :backup_plan_revision_id, as: 'backupPlanRevisionId'
|
1299
|
+
property :backup_plan_revision_name, as: 'backupPlanRevisionName'
|
1268
1300
|
collection :backup_plan_rules, as: 'backupPlanRules'
|
1269
1301
|
end
|
1270
1302
|
end
|
@@ -1335,6 +1367,16 @@ module Google
|
|
1335
1367
|
end
|
1336
1368
|
end
|
1337
1369
|
|
1370
|
+
class ListBackupPlanRevisionsResponse
|
1371
|
+
# @private
|
1372
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1373
|
+
collection :backup_plan_revisions, as: 'backupPlanRevisions', class: Google::Apis::BackupdrV1::BackupPlanRevision, decorator: Google::Apis::BackupdrV1::BackupPlanRevision::Representation
|
1374
|
+
|
1375
|
+
property :next_page_token, as: 'nextPageToken'
|
1376
|
+
collection :unreachable, as: 'unreachable'
|
1377
|
+
end
|
1378
|
+
end
|
1379
|
+
|
1338
1380
|
class ListBackupPlansResponse
|
1339
1381
|
# @private
|
1340
1382
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -568,6 +568,139 @@ module Google
|
|
568
568
|
execute_or_queue_command(command, &block)
|
569
569
|
end
|
570
570
|
|
571
|
+
# Update a BackupPlan
|
572
|
+
# @param [String] name
|
573
|
+
# Output only. Identifier. The resource name of the `BackupPlan`. Format: `
|
574
|
+
# projects/`project`/locations/`location`/backupPlans/`backup_plan``
|
575
|
+
# @param [Google::Apis::BackupdrV1::BackupPlan] backup_plan_object
|
576
|
+
# @param [String] request_id
|
577
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
578
|
+
# request ID so that if you must retry your request, the server will know to
|
579
|
+
# ignore the request if it has already been completed. The server will guarantee
|
580
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
581
|
+
# situation where you make an initial request and t he request times out. If you
|
582
|
+
# make the request again with the same request ID, the server can check if
|
583
|
+
# original operation with the same request ID was received, and if so, will
|
584
|
+
# ignore the second request. This prevents clients from accidentally creating
|
585
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
586
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
587
|
+
# @param [String] update_mask
|
588
|
+
# Required. The list of fields to update. Field mask is used to specify the
|
589
|
+
# fields to be overwritten in the BackupPlan resource by the update. The fields
|
590
|
+
# specified in the update_mask are relative to the resource, not the full
|
591
|
+
# request. A field will be overwritten if it is in the mask. If the user does
|
592
|
+
# not provide a mask then the request will fail. Currently, these fields are
|
593
|
+
# supported in update: description, schedules, retention period, adding and
|
594
|
+
# removing Backup Rules.
|
595
|
+
# @param [String] fields
|
596
|
+
# Selector specifying which fields to include in a partial response.
|
597
|
+
# @param [String] quota_user
|
598
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
599
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
600
|
+
# @param [Google::Apis::RequestOptions] options
|
601
|
+
# Request-specific options
|
602
|
+
#
|
603
|
+
# @yield [result, err] Result & error if block supplied
|
604
|
+
# @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
|
605
|
+
# @yieldparam err [StandardError] error object if request failed
|
606
|
+
#
|
607
|
+
# @return [Google::Apis::BackupdrV1::Operation]
|
608
|
+
#
|
609
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
610
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
611
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
612
|
+
def patch_project_location_backup_plan(name, backup_plan_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
613
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
614
|
+
command.request_representation = Google::Apis::BackupdrV1::BackupPlan::Representation
|
615
|
+
command.request_object = backup_plan_object
|
616
|
+
command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
|
617
|
+
command.response_class = Google::Apis::BackupdrV1::Operation
|
618
|
+
command.params['name'] = name unless name.nil?
|
619
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
620
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
621
|
+
command.query['fields'] = fields unless fields.nil?
|
622
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
623
|
+
execute_or_queue_command(command, &block)
|
624
|
+
end
|
625
|
+
|
626
|
+
# Gets details of a single BackupPlanRevision.
|
627
|
+
# @param [String] name
|
628
|
+
# Required. The resource name of the `BackupPlanRevision` to retrieve. Format: `
|
629
|
+
# projects/`project`/locations/`location`/backupPlans/`backup_plan`/revisions/`
|
630
|
+
# revision``
|
631
|
+
# @param [String] fields
|
632
|
+
# Selector specifying which fields to include in a partial response.
|
633
|
+
# @param [String] quota_user
|
634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
636
|
+
# @param [Google::Apis::RequestOptions] options
|
637
|
+
# Request-specific options
|
638
|
+
#
|
639
|
+
# @yield [result, err] Result & error if block supplied
|
640
|
+
# @yieldparam result [Google::Apis::BackupdrV1::BackupPlanRevision] parsed result object
|
641
|
+
# @yieldparam err [StandardError] error object if request failed
|
642
|
+
#
|
643
|
+
# @return [Google::Apis::BackupdrV1::BackupPlanRevision]
|
644
|
+
#
|
645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
648
|
+
def get_project_location_backup_plan_revision(name, fields: nil, quota_user: nil, options: nil, &block)
|
649
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
650
|
+
command.response_representation = Google::Apis::BackupdrV1::BackupPlanRevision::Representation
|
651
|
+
command.response_class = Google::Apis::BackupdrV1::BackupPlanRevision
|
652
|
+
command.params['name'] = name unless name.nil?
|
653
|
+
command.query['fields'] = fields unless fields.nil?
|
654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
655
|
+
execute_or_queue_command(command, &block)
|
656
|
+
end
|
657
|
+
|
658
|
+
# Lists BackupPlanRevisions in a given project and location.
|
659
|
+
# @param [String] parent
|
660
|
+
# Required. The project and location for which to retrieve `BackupPlanRevisions`
|
661
|
+
# information. Format: `projects/`project`/locations/`location`/backupPlans/`
|
662
|
+
# backup_plan``. In Cloud BackupDR, locations map to GCP regions, for e.g. **us-
|
663
|
+
# central1**.
|
664
|
+
# @param [Fixnum] page_size
|
665
|
+
# Optional. The maximum number of `BackupPlans` to return in a single response.
|
666
|
+
# If not specified, a default value will be chosen by the service. Note that the
|
667
|
+
# response may include a partial list and a caller should only rely on the
|
668
|
+
# response's next_page_token to determine if there are more instances left to be
|
669
|
+
# queried.
|
670
|
+
# @param [String] page_token
|
671
|
+
# Optional. The value of next_page_token received from a previous `
|
672
|
+
# ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-
|
673
|
+
# page list of results. When paginating, all other parameters provided to `
|
674
|
+
# ListBackupPlans` must match the call that provided the page token.
|
675
|
+
# @param [String] fields
|
676
|
+
# Selector specifying which fields to include in a partial response.
|
677
|
+
# @param [String] quota_user
|
678
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
679
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
680
|
+
# @param [Google::Apis::RequestOptions] options
|
681
|
+
# Request-specific options
|
682
|
+
#
|
683
|
+
# @yield [result, err] Result & error if block supplied
|
684
|
+
# @yieldparam result [Google::Apis::BackupdrV1::ListBackupPlanRevisionsResponse] parsed result object
|
685
|
+
# @yieldparam err [StandardError] error object if request failed
|
686
|
+
#
|
687
|
+
# @return [Google::Apis::BackupdrV1::ListBackupPlanRevisionsResponse]
|
688
|
+
#
|
689
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
690
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
691
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
692
|
+
def list_project_location_backup_plan_revisions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
693
|
+
command = make_simple_command(:get, 'v1/{+parent}/revisions', options)
|
694
|
+
command.response_representation = Google::Apis::BackupdrV1::ListBackupPlanRevisionsResponse::Representation
|
695
|
+
command.response_class = Google::Apis::BackupdrV1::ListBackupPlanRevisionsResponse
|
696
|
+
command.params['parent'] = parent unless parent.nil?
|
697
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
698
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
699
|
+
command.query['fields'] = fields unless fields.nil?
|
700
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
701
|
+
execute_or_queue_command(command, &block)
|
702
|
+
end
|
703
|
+
|
571
704
|
# Creates a new BackupVault in a given project and location.
|
572
705
|
# @param [String] parent
|
573
706
|
# Required. Value for parent.
|
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.31.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.31.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.
|
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: []
|