google-apis-backupdr_v1 0.30.0 → 0.32.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: fc2010285998e37638e2d7ce24f9d4d0a863cc5cb845ccc3af9a61dbe2ed8adb
|
4
|
+
data.tar.gz: edcf0933185c7d3dcb2cdaf386ebce209811e0cb072658b6a100baf5e3ca210e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ccad42c94e0220c4184046ce58720efa42a2cc6524085755ed179b6b9e62b052de49286238fc38c7c818cc29656f2a54c767cadeaa923417f22a682a277e6c1
|
7
|
+
data.tar.gz: '090ce934ed41fdbdd18c68c8ceb8de6358fe96efed3dcd6db3c38bb3a82a5a1ef5a52c88e4fff1cd1e68071e25db2070b0cb4ff0364dcba4fc876afa226c2568'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-backupdr_v1
|
2
2
|
|
3
|
+
### v0.32.0 (2025-06-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250611
|
6
|
+
|
7
|
+
### v0.31.0 (2025-06-15)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250605
|
10
|
+
|
3
11
|
### v0.30.0 (2025-06-01)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250523
|
@@ -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]
|
@@ -1149,7 +1177,11 @@ module Google
|
|
1149
1177
|
# @return [String]
|
1150
1178
|
attr_accessor :name
|
1151
1179
|
|
1152
|
-
# Required. Immutable. Resource name of workload on which
|
1180
|
+
# Required. Immutable. Resource name of workload on which the backup plan is
|
1181
|
+
# applied. The format can either be the resource name (e.g., "projects/my-
|
1182
|
+
# project/zones/us-central1-a/instances/my-instance") or the full resource URI (
|
1183
|
+
# e.g., "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-
|
1184
|
+
# central1-a/instances/my-instance").
|
1153
1185
|
# Corresponds to the JSON property `resource`
|
1154
1186
|
# @return [String]
|
1155
1187
|
attr_accessor :resource
|
@@ -1181,6 +1213,8 @@ module Google
|
|
1181
1213
|
# Update properties of this object
|
1182
1214
|
def update!(**args)
|
1183
1215
|
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
1216
|
+
@backup_plan_revision_id = args[:backup_plan_revision_id] if args.key?(:backup_plan_revision_id)
|
1217
|
+
@backup_plan_revision_name = args[:backup_plan_revision_name] if args.key?(:backup_plan_revision_name)
|
1184
1218
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1185
1219
|
@data_source = args[:data_source] if args.key?(:data_source)
|
1186
1220
|
@name = args[:name] if args.key?(:name)
|
@@ -1192,6 +1226,55 @@ module Google
|
|
1192
1226
|
end
|
1193
1227
|
end
|
1194
1228
|
|
1229
|
+
# `BackupPlanRevision` represents a snapshot of a `BackupPlan` at a point in
|
1230
|
+
# time.
|
1231
|
+
class BackupPlanRevision
|
1232
|
+
include Google::Apis::Core::Hashable
|
1233
|
+
|
1234
|
+
# A `BackupPlan` specifies some common fields, such as `description` as well as
|
1235
|
+
# one or more `BackupRule` messages. Each `BackupRule` has a retention policy
|
1236
|
+
# and defines a schedule by which the system is to perform backup workloads.
|
1237
|
+
# Corresponds to the JSON property `backupPlanSnapshot`
|
1238
|
+
# @return [Google::Apis::BackupdrV1::BackupPlan]
|
1239
|
+
attr_accessor :backup_plan_snapshot
|
1240
|
+
|
1241
|
+
# Output only. The timestamp that the revision was created.
|
1242
|
+
# Corresponds to the JSON property `createTime`
|
1243
|
+
# @return [String]
|
1244
|
+
attr_accessor :create_time
|
1245
|
+
|
1246
|
+
# Output only. Identifier. The resource name of the `BackupPlanRevision`. Format:
|
1247
|
+
# `projects/`project`/locations/`location`/backupPlans/`backup_plan`/revisions/`
|
1248
|
+
# revision``
|
1249
|
+
# Corresponds to the JSON property `name`
|
1250
|
+
# @return [String]
|
1251
|
+
attr_accessor :name
|
1252
|
+
|
1253
|
+
# Output only. The user friendly revision ID of the `BackupPlanRevision`.
|
1254
|
+
# Example: v0, v1, v2, etc.
|
1255
|
+
# Corresponds to the JSON property `revisionId`
|
1256
|
+
# @return [String]
|
1257
|
+
attr_accessor :revision_id
|
1258
|
+
|
1259
|
+
# Output only. Resource State
|
1260
|
+
# Corresponds to the JSON property `state`
|
1261
|
+
# @return [String]
|
1262
|
+
attr_accessor :state
|
1263
|
+
|
1264
|
+
def initialize(**args)
|
1265
|
+
update!(**args)
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
# Update properties of this object
|
1269
|
+
def update!(**args)
|
1270
|
+
@backup_plan_snapshot = args[:backup_plan_snapshot] if args.key?(:backup_plan_snapshot)
|
1271
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1272
|
+
@name = args[:name] if args.key?(:name)
|
1273
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
1274
|
+
@state = args[:state] if args.key?(:state)
|
1275
|
+
end
|
1276
|
+
end
|
1277
|
+
|
1195
1278
|
# `BackupRule` binds the backup schedule to a retention policy.
|
1196
1279
|
class BackupRule
|
1197
1280
|
include Google::Apis::Core::Hashable
|
@@ -2692,6 +2775,19 @@ module Google
|
|
2692
2775
|
# @return [String]
|
2693
2776
|
attr_accessor :backup_plan
|
2694
2777
|
|
2778
|
+
# The user friendly id of the backup plan revision which triggered this backup
|
2779
|
+
# in case of scheduled backup or used for on demand backup.
|
2780
|
+
# Corresponds to the JSON property `backupPlanRevisionId`
|
2781
|
+
# @return [String]
|
2782
|
+
attr_accessor :backup_plan_revision_id
|
2783
|
+
|
2784
|
+
# Resource name of the backup plan revision which triggered this backup in case
|
2785
|
+
# of scheduled backup or used for on demand backup. Format: projects/`project`/
|
2786
|
+
# locations/`location`/backupPlans/`backupPlanId`/revisions/`revisionId`
|
2787
|
+
# Corresponds to the JSON property `backupPlanRevisionName`
|
2788
|
+
# @return [String]
|
2789
|
+
attr_accessor :backup_plan_revision_name
|
2790
|
+
|
2695
2791
|
# The rule id of the backup plan which triggered this backup in case of
|
2696
2792
|
# scheduled backup or used for
|
2697
2793
|
# Corresponds to the JSON property `backupPlanRuleId`
|
@@ -2705,6 +2801,8 @@ module Google
|
|
2705
2801
|
# Update properties of this object
|
2706
2802
|
def update!(**args)
|
2707
2803
|
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
2804
|
+
@backup_plan_revision_id = args[:backup_plan_revision_id] if args.key?(:backup_plan_revision_id)
|
2805
|
+
@backup_plan_revision_name = args[:backup_plan_revision_name] if args.key?(:backup_plan_revision_name)
|
2708
2806
|
@backup_plan_rule_id = args[:backup_plan_rule_id] if args.key?(:backup_plan_rule_id)
|
2709
2807
|
end
|
2710
2808
|
end
|
@@ -2730,6 +2828,16 @@ module Google
|
|
2730
2828
|
# @return [String]
|
2731
2829
|
attr_accessor :backup_plan_description
|
2732
2830
|
|
2831
|
+
# The user friendly id of the backup plan revision. E.g. v0, v1 etc.
|
2832
|
+
# Corresponds to the JSON property `backupPlanRevisionId`
|
2833
|
+
# @return [String]
|
2834
|
+
attr_accessor :backup_plan_revision_id
|
2835
|
+
|
2836
|
+
# The name of the backup plan revision.
|
2837
|
+
# Corresponds to the JSON property `backupPlanRevisionName`
|
2838
|
+
# @return [String]
|
2839
|
+
attr_accessor :backup_plan_revision_name
|
2840
|
+
|
2733
2841
|
# The names of the backup plan rules which point to this backupvault
|
2734
2842
|
# Corresponds to the JSON property `backupPlanRules`
|
2735
2843
|
# @return [Array<String>]
|
@@ -2744,6 +2852,8 @@ module Google
|
|
2744
2852
|
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
2745
2853
|
@backup_plan_association = args[:backup_plan_association] if args.key?(:backup_plan_association)
|
2746
2854
|
@backup_plan_description = args[:backup_plan_description] if args.key?(:backup_plan_description)
|
2855
|
+
@backup_plan_revision_id = args[:backup_plan_revision_id] if args.key?(:backup_plan_revision_id)
|
2856
|
+
@backup_plan_revision_name = args[:backup_plan_revision_name] if args.key?(:backup_plan_revision_name)
|
2747
2857
|
@backup_plan_rules = args[:backup_plan_rules] if args.key?(:backup_plan_rules)
|
2748
2858
|
end
|
2749
2859
|
end
|
@@ -2981,6 +3091,43 @@ module Google
|
|
2981
3091
|
end
|
2982
3092
|
end
|
2983
3093
|
|
3094
|
+
# The response message for getting a list of `BackupPlanRevision`.
|
3095
|
+
class ListBackupPlanRevisionsResponse
|
3096
|
+
include Google::Apis::Core::Hashable
|
3097
|
+
|
3098
|
+
# The list of `BackupPlanRevisions` in the project for the specified location.
|
3099
|
+
# If the ``location`` value in the request is "-", the response contains a list
|
3100
|
+
# of resources from all locations. In case any location is unreachable, the
|
3101
|
+
# response will only return backup plans in reachable locations and the '
|
3102
|
+
# unreachable' field will be populated with a list of unreachable locations.
|
3103
|
+
# Corresponds to the JSON property `backupPlanRevisions`
|
3104
|
+
# @return [Array<Google::Apis::BackupdrV1::BackupPlanRevision>]
|
3105
|
+
attr_accessor :backup_plan_revisions
|
3106
|
+
|
3107
|
+
# A token which may be sent as page_token in a subsequent `
|
3108
|
+
# ListBackupPlanRevisions` call to retrieve the next page of results. If this
|
3109
|
+
# field is omitted or empty, then there are no more results to return.
|
3110
|
+
# Corresponds to the JSON property `nextPageToken`
|
3111
|
+
# @return [String]
|
3112
|
+
attr_accessor :next_page_token
|
3113
|
+
|
3114
|
+
# Locations that could not be reached.
|
3115
|
+
# Corresponds to the JSON property `unreachable`
|
3116
|
+
# @return [Array<String>]
|
3117
|
+
attr_accessor :unreachable
|
3118
|
+
|
3119
|
+
def initialize(**args)
|
3120
|
+
update!(**args)
|
3121
|
+
end
|
3122
|
+
|
3123
|
+
# Update properties of this object
|
3124
|
+
def update!(**args)
|
3125
|
+
@backup_plan_revisions = args[:backup_plan_revisions] if args.key?(:backup_plan_revisions)
|
3126
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3127
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
3128
|
+
end
|
3129
|
+
end
|
3130
|
+
|
2984
3131
|
# The response message for getting a list of `BackupPlan`.
|
2985
3132
|
class ListBackupPlansResponse
|
2986
3133
|
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.32.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 = "20250611"
|
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.32.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.32.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:
|