google-apis-baremetalsolution_v2 0.11.0 → 0.12.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +50 -205
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +2 -2
- data/lib/google/apis/baremetalsolution_v2/representations.rb +20 -97
- data/lib/google/apis/baremetalsolution_v2/service.rb +33 -335
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3cf2c48c1c654441e28d4562de5fb6d80a9fae9706f71a74d0513b3951316e4
|
4
|
+
data.tar.gz: e0d0c3d0bd183720139d2fbacf9c44dc311a008e0277f40728425d9a1bf560cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ec844b481408dfb2c6d6fd3b10c99721c3eb6cabdf654c1286c8fea5ac4e00893ddf4b4e34f18f6f69daf8c1f496c2a64d99433b15a9299d53d9aa295f82992
|
7
|
+
data.tar.gz: fed55cf6b760655cccd9c3d480319087455177413f5063a96e2fefca0e6d4f81103959467bb6d2d36d666d42c9ec68b4fd36eccdcdd711b641bf3ca0cead94df
|
data/CHANGELOG.md
CHANGED
@@ -82,19 +82,22 @@ module Google
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
#
|
86
|
-
|
87
|
-
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
88
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
89
|
-
class Empty
|
85
|
+
# Message for detach specific LUN from an Instance.
|
86
|
+
class DetachLunRequest
|
90
87
|
include Google::Apis::Core::Hashable
|
91
88
|
|
89
|
+
# Required. Name of the Lun to detach.
|
90
|
+
# Corresponds to the JSON property `lun`
|
91
|
+
# @return [String]
|
92
|
+
attr_accessor :lun
|
93
|
+
|
92
94
|
def initialize(**args)
|
93
95
|
update!(**args)
|
94
96
|
end
|
95
97
|
|
96
98
|
# Update properties of this object
|
97
99
|
def update!(**args)
|
100
|
+
@lun = args[:lun] if args.key?(:lun)
|
98
101
|
end
|
99
102
|
end
|
100
103
|
|
@@ -540,63 +543,6 @@ module Google
|
|
540
543
|
end
|
541
544
|
end
|
542
545
|
|
543
|
-
# Response message containing the list of snapshot schedule policies.
|
544
|
-
class ListSnapshotSchedulePoliciesResponse
|
545
|
-
include Google::Apis::Core::Hashable
|
546
|
-
|
547
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
548
|
-
# results in the list.
|
549
|
-
# Corresponds to the JSON property `nextPageToken`
|
550
|
-
# @return [String]
|
551
|
-
attr_accessor :next_page_token
|
552
|
-
|
553
|
-
# The snapshot schedule policies registered in this project.
|
554
|
-
# Corresponds to the JSON property `snapshotSchedulePolicies`
|
555
|
-
# @return [Array<Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy>]
|
556
|
-
attr_accessor :snapshot_schedule_policies
|
557
|
-
|
558
|
-
def initialize(**args)
|
559
|
-
update!(**args)
|
560
|
-
end
|
561
|
-
|
562
|
-
# Update properties of this object
|
563
|
-
def update!(**args)
|
564
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
565
|
-
@snapshot_schedule_policies = args[:snapshot_schedule_policies] if args.key?(:snapshot_schedule_policies)
|
566
|
-
end
|
567
|
-
end
|
568
|
-
|
569
|
-
# Response message containing the list of storage volume snapshots.
|
570
|
-
class ListVolumeSnapshotsResponse
|
571
|
-
include Google::Apis::Core::Hashable
|
572
|
-
|
573
|
-
# A token identifying a page of results from the server.
|
574
|
-
# Corresponds to the JSON property `nextPageToken`
|
575
|
-
# @return [String]
|
576
|
-
attr_accessor :next_page_token
|
577
|
-
|
578
|
-
# Locations that could not be reached.
|
579
|
-
# Corresponds to the JSON property `unreachable`
|
580
|
-
# @return [Array<String>]
|
581
|
-
attr_accessor :unreachable
|
582
|
-
|
583
|
-
# The list of storage volumes.
|
584
|
-
# Corresponds to the JSON property `volumeSnapshots`
|
585
|
-
# @return [Array<Google::Apis::BaremetalsolutionV2::VolumeSnapshot>]
|
586
|
-
attr_accessor :volume_snapshots
|
587
|
-
|
588
|
-
def initialize(**args)
|
589
|
-
update!(**args)
|
590
|
-
end
|
591
|
-
|
592
|
-
# Update properties of this object
|
593
|
-
def update!(**args)
|
594
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
595
|
-
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
596
|
-
@volume_snapshots = args[:volume_snapshots] if args.key?(:volume_snapshots)
|
597
|
-
end
|
598
|
-
end
|
599
|
-
|
600
546
|
# Response message containing the list of storage volumes.
|
601
547
|
class ListVolumesResponse
|
602
548
|
include Google::Apis::Core::Hashable
|
@@ -846,6 +792,13 @@ module Google
|
|
846
792
|
# @return [String]
|
847
793
|
attr_accessor :name
|
848
794
|
|
795
|
+
# List of IP address reservations in this network. When updating this field, an
|
796
|
+
# error will be generated if a reservation conflicts with an IP address already
|
797
|
+
# allocated to a physical server.
|
798
|
+
# Corresponds to the JSON property `reservations`
|
799
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::NetworkAddressReservation>]
|
800
|
+
attr_accessor :reservations
|
801
|
+
|
849
802
|
# IP range for reserved for services (e.g. NFS).
|
850
803
|
# Corresponds to the JSON property `servicesCidr`
|
851
804
|
# @return [String]
|
@@ -883,6 +836,7 @@ module Google
|
|
883
836
|
@labels = args[:labels] if args.key?(:labels)
|
884
837
|
@mac_address = args[:mac_address] if args.key?(:mac_address)
|
885
838
|
@name = args[:name] if args.key?(:name)
|
839
|
+
@reservations = args[:reservations] if args.key?(:reservations)
|
886
840
|
@services_cidr = args[:services_cidr] if args.key?(:services_cidr)
|
887
841
|
@state = args[:state] if args.key?(:state)
|
888
842
|
@type = args[:type] if args.key?(:type)
|
@@ -922,6 +876,40 @@ module Google
|
|
922
876
|
end
|
923
877
|
end
|
924
878
|
|
879
|
+
# A reservation of one or more addresses in a network.
|
880
|
+
class NetworkAddressReservation
|
881
|
+
include Google::Apis::Core::Hashable
|
882
|
+
|
883
|
+
# The last address of this reservation block, inclusive. I.e., for cases when
|
884
|
+
# reservations are only single addresses, end_address and start_address will be
|
885
|
+
# the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
|
886
|
+
# Corresponds to the JSON property `endAddress`
|
887
|
+
# @return [String]
|
888
|
+
attr_accessor :end_address
|
889
|
+
|
890
|
+
# A note about this reservation, intended for human consumption.
|
891
|
+
# Corresponds to the JSON property `note`
|
892
|
+
# @return [String]
|
893
|
+
attr_accessor :note
|
894
|
+
|
895
|
+
# The first address of this reservation block. Must be specified as a single
|
896
|
+
# IPv4 address, e.g. 10.1.2.2.
|
897
|
+
# Corresponds to the JSON property `startAddress`
|
898
|
+
# @return [String]
|
899
|
+
attr_accessor :start_address
|
900
|
+
|
901
|
+
def initialize(**args)
|
902
|
+
update!(**args)
|
903
|
+
end
|
904
|
+
|
905
|
+
# Update properties of this object
|
906
|
+
def update!(**args)
|
907
|
+
@end_address = args[:end_address] if args.key?(:end_address)
|
908
|
+
@note = args[:note] if args.key?(:note)
|
909
|
+
@start_address = args[:start_address] if args.key?(:start_address)
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
925
913
|
# Configuration parameters for a new network.
|
926
914
|
class NetworkConfig
|
927
915
|
include Google::Apis::Core::Hashable
|
@@ -1422,50 +1410,6 @@ module Google
|
|
1422
1410
|
end
|
1423
1411
|
end
|
1424
1412
|
|
1425
|
-
# Message for restoring a volume snapshot.
|
1426
|
-
class RestoreVolumeSnapshotRequest
|
1427
|
-
include Google::Apis::Core::Hashable
|
1428
|
-
|
1429
|
-
def initialize(**args)
|
1430
|
-
update!(**args)
|
1431
|
-
end
|
1432
|
-
|
1433
|
-
# Update properties of this object
|
1434
|
-
def update!(**args)
|
1435
|
-
end
|
1436
|
-
end
|
1437
|
-
|
1438
|
-
# A snapshot schedule.
|
1439
|
-
class Schedule
|
1440
|
-
include Google::Apis::Core::Hashable
|
1441
|
-
|
1442
|
-
# A crontab-like specification that the schedule uses to take snapshots.
|
1443
|
-
# Corresponds to the JSON property `crontabSpec`
|
1444
|
-
# @return [String]
|
1445
|
-
attr_accessor :crontab_spec
|
1446
|
-
|
1447
|
-
# A list of snapshot names created in this schedule.
|
1448
|
-
# Corresponds to the JSON property `prefix`
|
1449
|
-
# @return [String]
|
1450
|
-
attr_accessor :prefix
|
1451
|
-
|
1452
|
-
# The maximum number of snapshots to retain in this schedule.
|
1453
|
-
# Corresponds to the JSON property `retentionCount`
|
1454
|
-
# @return [Fixnum]
|
1455
|
-
attr_accessor :retention_count
|
1456
|
-
|
1457
|
-
def initialize(**args)
|
1458
|
-
update!(**args)
|
1459
|
-
end
|
1460
|
-
|
1461
|
-
# Update properties of this object
|
1462
|
-
def update!(**args)
|
1463
|
-
@crontab_spec = args[:crontab_spec] if args.key?(:crontab_spec)
|
1464
|
-
@prefix = args[:prefix] if args.key?(:prefix)
|
1465
|
-
@retention_count = args[:retention_count] if args.key?(:retention_count)
|
1466
|
-
end
|
1467
|
-
end
|
1468
|
-
|
1469
1413
|
# Network template.
|
1470
1414
|
class ServerNetworkTemplate
|
1471
1415
|
include Google::Apis::Core::Hashable
|
@@ -1540,56 +1484,6 @@ module Google
|
|
1540
1484
|
end
|
1541
1485
|
end
|
1542
1486
|
|
1543
|
-
# A snapshot schedule policy.
|
1544
|
-
class SnapshotSchedulePolicy
|
1545
|
-
include Google::Apis::Core::Hashable
|
1546
|
-
|
1547
|
-
# The description of the snapshot schedule policy.
|
1548
|
-
# Corresponds to the JSON property `description`
|
1549
|
-
# @return [String]
|
1550
|
-
attr_accessor :description
|
1551
|
-
|
1552
|
-
# An identifier for the snapshot schedule policy, generated by the backend.
|
1553
|
-
# Corresponds to the JSON property `id`
|
1554
|
-
# @return [String]
|
1555
|
-
attr_accessor :id
|
1556
|
-
|
1557
|
-
# Labels as key value pairs.
|
1558
|
-
# Corresponds to the JSON property `labels`
|
1559
|
-
# @return [Hash<String,String>]
|
1560
|
-
attr_accessor :labels
|
1561
|
-
|
1562
|
-
# Output only. The name of the snapshot schedule policy.
|
1563
|
-
# Corresponds to the JSON property `name`
|
1564
|
-
# @return [String]
|
1565
|
-
attr_accessor :name
|
1566
|
-
|
1567
|
-
# The snapshot schedules contained in this policy. You can specify a maximum of
|
1568
|
-
# 5 schedules.
|
1569
|
-
# Corresponds to the JSON property `schedules`
|
1570
|
-
# @return [Array<Google::Apis::BaremetalsolutionV2::Schedule>]
|
1571
|
-
attr_accessor :schedules
|
1572
|
-
|
1573
|
-
# The state of the snapshot schedule policy.
|
1574
|
-
# Corresponds to the JSON property `state`
|
1575
|
-
# @return [String]
|
1576
|
-
attr_accessor :state
|
1577
|
-
|
1578
|
-
def initialize(**args)
|
1579
|
-
update!(**args)
|
1580
|
-
end
|
1581
|
-
|
1582
|
-
# Update properties of this object
|
1583
|
-
def update!(**args)
|
1584
|
-
@description = args[:description] if args.key?(:description)
|
1585
|
-
@id = args[:id] if args.key?(:id)
|
1586
|
-
@labels = args[:labels] if args.key?(:labels)
|
1587
|
-
@name = args[:name] if args.key?(:name)
|
1588
|
-
@schedules = args[:schedules] if args.key?(:schedules)
|
1589
|
-
@state = args[:state] if args.key?(:state)
|
1590
|
-
end
|
1591
|
-
end
|
1592
|
-
|
1593
1487
|
# Message requesting to start a server.
|
1594
1488
|
class StartInstanceRequest
|
1595
1489
|
include Google::Apis::Core::Hashable
|
@@ -1955,55 +1849,6 @@ module Google
|
|
1955
1849
|
@user_note = args[:user_note] if args.key?(:user_note)
|
1956
1850
|
end
|
1957
1851
|
end
|
1958
|
-
|
1959
|
-
# Snapshot registered for a given storage volume.
|
1960
|
-
class VolumeSnapshot
|
1961
|
-
include Google::Apis::Core::Hashable
|
1962
|
-
|
1963
|
-
# Output only. The creation time of the storage volume snapshot.
|
1964
|
-
# Corresponds to the JSON property `createTime`
|
1965
|
-
# @return [String]
|
1966
|
-
attr_accessor :create_time
|
1967
|
-
|
1968
|
-
# The description of the storage volume snapshot.
|
1969
|
-
# Corresponds to the JSON property `description`
|
1970
|
-
# @return [String]
|
1971
|
-
attr_accessor :description
|
1972
|
-
|
1973
|
-
# An identifier for the snapshot, generated by the backend.
|
1974
|
-
# Corresponds to the JSON property `id`
|
1975
|
-
# @return [String]
|
1976
|
-
attr_accessor :id
|
1977
|
-
|
1978
|
-
# Output only. The name of the storage volume snapshot.
|
1979
|
-
# Corresponds to the JSON property `name`
|
1980
|
-
# @return [String]
|
1981
|
-
attr_accessor :name
|
1982
|
-
|
1983
|
-
# The size of the storage volume snapshot, in bytes.
|
1984
|
-
# Corresponds to the JSON property `sizeBytes`
|
1985
|
-
# @return [Fixnum]
|
1986
|
-
attr_accessor :size_bytes
|
1987
|
-
|
1988
|
-
# The storage volume this snapshot belongs to.
|
1989
|
-
# Corresponds to the JSON property `storageVolume`
|
1990
|
-
# @return [String]
|
1991
|
-
attr_accessor :storage_volume
|
1992
|
-
|
1993
|
-
def initialize(**args)
|
1994
|
-
update!(**args)
|
1995
|
-
end
|
1996
|
-
|
1997
|
-
# Update properties of this object
|
1998
|
-
def update!(**args)
|
1999
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
2000
|
-
@description = args[:description] if args.key?(:description)
|
2001
|
-
@id = args[:id] if args.key?(:id)
|
2002
|
-
@name = args[:name] if args.key?(:name)
|
2003
|
-
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
|
2004
|
-
@storage_volume = args[:storage_volume] if args.key?(:storage_volume)
|
2005
|
-
end
|
2006
|
-
end
|
2007
1852
|
end
|
2008
1853
|
end
|
2009
1854
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module BaremetalsolutionV2
|
18
18
|
# Version of the google-apis-baremetalsolution_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220501"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class DetachLunRequest
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -106,18 +106,6 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class ListSnapshotSchedulePoliciesResponse
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
|
-
class ListVolumeSnapshotsResponse
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
109
|
class ListVolumesResponse
|
122
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
111
|
|
@@ -160,6 +148,12 @@ module Google
|
|
160
148
|
include Google::Apis::Core::JsonObjectSupport
|
161
149
|
end
|
162
150
|
|
151
|
+
class NetworkAddressReservation
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
163
157
|
class NetworkConfig
|
164
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
159
|
|
@@ -220,18 +214,6 @@ module Google
|
|
220
214
|
include Google::Apis::Core::JsonObjectSupport
|
221
215
|
end
|
222
216
|
|
223
|
-
class RestoreVolumeSnapshotRequest
|
224
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
-
|
226
|
-
include Google::Apis::Core::JsonObjectSupport
|
227
|
-
end
|
228
|
-
|
229
|
-
class Schedule
|
230
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
-
|
232
|
-
include Google::Apis::Core::JsonObjectSupport
|
233
|
-
end
|
234
|
-
|
235
217
|
class ServerNetworkTemplate
|
236
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
219
|
|
@@ -244,12 +226,6 @@ module Google
|
|
244
226
|
include Google::Apis::Core::JsonObjectSupport
|
245
227
|
end
|
246
228
|
|
247
|
-
class SnapshotSchedulePolicy
|
248
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
-
|
250
|
-
include Google::Apis::Core::JsonObjectSupport
|
251
|
-
end
|
252
|
-
|
253
229
|
class StartInstanceRequest
|
254
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
231
|
|
@@ -304,12 +280,6 @@ module Google
|
|
304
280
|
include Google::Apis::Core::JsonObjectSupport
|
305
281
|
end
|
306
282
|
|
307
|
-
class VolumeSnapshot
|
308
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
-
|
310
|
-
include Google::Apis::Core::JsonObjectSupport
|
311
|
-
end
|
312
|
-
|
313
283
|
class AllowedClient
|
314
284
|
# @private
|
315
285
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -323,9 +293,10 @@ module Google
|
|
323
293
|
end
|
324
294
|
end
|
325
295
|
|
326
|
-
class
|
296
|
+
class DetachLunRequest
|
327
297
|
# @private
|
328
298
|
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
+
property :lun, as: 'lun'
|
329
300
|
end
|
330
301
|
end
|
331
302
|
|
@@ -458,25 +429,6 @@ module Google
|
|
458
429
|
end
|
459
430
|
end
|
460
431
|
|
461
|
-
class ListSnapshotSchedulePoliciesResponse
|
462
|
-
# @private
|
463
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
464
|
-
property :next_page_token, as: 'nextPageToken'
|
465
|
-
collection :snapshot_schedule_policies, as: 'snapshotSchedulePolicies', class: Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy, decorator: Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
466
|
-
|
467
|
-
end
|
468
|
-
end
|
469
|
-
|
470
|
-
class ListVolumeSnapshotsResponse
|
471
|
-
# @private
|
472
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
473
|
-
property :next_page_token, as: 'nextPageToken'
|
474
|
-
collection :unreachable, as: 'unreachable'
|
475
|
-
collection :volume_snapshots, as: 'volumeSnapshots', class: Google::Apis::BaremetalsolutionV2::VolumeSnapshot, decorator: Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
476
|
-
|
477
|
-
end
|
478
|
-
end
|
479
|
-
|
480
432
|
class ListVolumesResponse
|
481
433
|
# @private
|
482
434
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -540,6 +492,8 @@ module Google
|
|
540
492
|
hash :labels, as: 'labels'
|
541
493
|
collection :mac_address, as: 'macAddress'
|
542
494
|
property :name, as: 'name'
|
495
|
+
collection :reservations, as: 'reservations', class: Google::Apis::BaremetalsolutionV2::NetworkAddressReservation, decorator: Google::Apis::BaremetalsolutionV2::NetworkAddressReservation::Representation
|
496
|
+
|
543
497
|
property :services_cidr, as: 'servicesCidr'
|
544
498
|
property :state, as: 'state'
|
545
499
|
property :type, as: 'type'
|
@@ -558,6 +512,15 @@ module Google
|
|
558
512
|
end
|
559
513
|
end
|
560
514
|
|
515
|
+
class NetworkAddressReservation
|
516
|
+
# @private
|
517
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
518
|
+
property :end_address, as: 'endAddress'
|
519
|
+
property :note, as: 'note'
|
520
|
+
property :start_address, as: 'startAddress'
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
561
524
|
class NetworkConfig
|
562
525
|
# @private
|
563
526
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -683,21 +646,6 @@ module Google
|
|
683
646
|
end
|
684
647
|
end
|
685
648
|
|
686
|
-
class RestoreVolumeSnapshotRequest
|
687
|
-
# @private
|
688
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
689
|
-
end
|
690
|
-
end
|
691
|
-
|
692
|
-
class Schedule
|
693
|
-
# @private
|
694
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
695
|
-
property :crontab_spec, as: 'crontabSpec'
|
696
|
-
property :prefix, as: 'prefix'
|
697
|
-
property :retention_count, as: 'retentionCount'
|
698
|
-
end
|
699
|
-
end
|
700
|
-
|
701
649
|
class ServerNetworkTemplate
|
702
650
|
# @private
|
703
651
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -718,19 +666,6 @@ module Google
|
|
718
666
|
end
|
719
667
|
end
|
720
668
|
|
721
|
-
class SnapshotSchedulePolicy
|
722
|
-
# @private
|
723
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
724
|
-
property :description, as: 'description'
|
725
|
-
property :id, as: 'id'
|
726
|
-
hash :labels, as: 'labels'
|
727
|
-
property :name, as: 'name'
|
728
|
-
collection :schedules, as: 'schedules', class: Google::Apis::BaremetalsolutionV2::Schedule, decorator: Google::Apis::BaremetalsolutionV2::Schedule::Representation
|
729
|
-
|
730
|
-
property :state, as: 'state'
|
731
|
-
end
|
732
|
-
end
|
733
|
-
|
734
669
|
class StartInstanceRequest
|
735
670
|
# @private
|
736
671
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -829,18 +764,6 @@ module Google
|
|
829
764
|
property :user_note, as: 'userNote'
|
830
765
|
end
|
831
766
|
end
|
832
|
-
|
833
|
-
class VolumeSnapshot
|
834
|
-
# @private
|
835
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
836
|
-
property :create_time, as: 'createTime'
|
837
|
-
property :description, as: 'description'
|
838
|
-
property :id, as: 'id'
|
839
|
-
property :name, as: 'name'
|
840
|
-
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
|
841
|
-
property :storage_volume, as: 'storageVolume'
|
842
|
-
end
|
843
|
-
end
|
844
767
|
end
|
845
768
|
end
|
846
769
|
end
|
@@ -154,6 +154,39 @@ module Google
|
|
154
154
|
execute_or_queue_command(command, &block)
|
155
155
|
end
|
156
156
|
|
157
|
+
# Detach LUN from Instance.
|
158
|
+
# @param [String] instance
|
159
|
+
# Required. Name of the instance.
|
160
|
+
# @param [Google::Apis::BaremetalsolutionV2::DetachLunRequest] detach_lun_request_object
|
161
|
+
# @param [String] fields
|
162
|
+
# Selector specifying which fields to include in a partial response.
|
163
|
+
# @param [String] quota_user
|
164
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
165
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
166
|
+
# @param [Google::Apis::RequestOptions] options
|
167
|
+
# Request-specific options
|
168
|
+
#
|
169
|
+
# @yield [result, err] Result & error if block supplied
|
170
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
171
|
+
# @yieldparam err [StandardError] error object if request failed
|
172
|
+
#
|
173
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
174
|
+
#
|
175
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
176
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
177
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
178
|
+
def detach_instance_lun(instance, detach_lun_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
179
|
+
command = make_simple_command(:post, 'v2/{+instance}:detachLun', options)
|
180
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::DetachLunRequest::Representation
|
181
|
+
command.request_object = detach_lun_request_object
|
182
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
183
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
184
|
+
command.params['instance'] = instance unless instance.nil?
|
185
|
+
command.query['fields'] = fields unless fields.nil?
|
186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
187
|
+
execute_or_queue_command(command, &block)
|
188
|
+
end
|
189
|
+
|
157
190
|
# Get details about a single server.
|
158
191
|
# @param [String] name
|
159
192
|
# Required. Name of the resource.
|
@@ -787,178 +820,6 @@ module Google
|
|
787
820
|
execute_or_queue_command(command, &block)
|
788
821
|
end
|
789
822
|
|
790
|
-
# Create a snapshot schedule policy in the specified project.
|
791
|
-
# @param [String] parent
|
792
|
-
# Required. The parent project and location containing the
|
793
|
-
# SnapshotSchedulePolicy.
|
794
|
-
# @param [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] snapshot_schedule_policy_object
|
795
|
-
# @param [String] snapshot_schedule_policy_id
|
796
|
-
# Required. Snapshot policy ID
|
797
|
-
# @param [String] fields
|
798
|
-
# Selector specifying which fields to include in a partial response.
|
799
|
-
# @param [String] quota_user
|
800
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
801
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
802
|
-
# @param [Google::Apis::RequestOptions] options
|
803
|
-
# Request-specific options
|
804
|
-
#
|
805
|
-
# @yield [result, err] Result & error if block supplied
|
806
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
807
|
-
# @yieldparam err [StandardError] error object if request failed
|
808
|
-
#
|
809
|
-
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
810
|
-
#
|
811
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
812
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
813
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
814
|
-
def create_project_location_snapshot_schedule_policy(parent, snapshot_schedule_policy_object = nil, snapshot_schedule_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
815
|
-
command = make_simple_command(:post, 'v2/{+parent}/snapshotSchedulePolicies', options)
|
816
|
-
command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
817
|
-
command.request_object = snapshot_schedule_policy_object
|
818
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
819
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
820
|
-
command.params['parent'] = parent unless parent.nil?
|
821
|
-
command.query['snapshotSchedulePolicyId'] = snapshot_schedule_policy_id unless snapshot_schedule_policy_id.nil?
|
822
|
-
command.query['fields'] = fields unless fields.nil?
|
823
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
824
|
-
execute_or_queue_command(command, &block)
|
825
|
-
end
|
826
|
-
|
827
|
-
# Delete a named snapshot schedule policy.
|
828
|
-
# @param [String] name
|
829
|
-
# Required. The name of the snapshot schedule policy to delete.
|
830
|
-
# @param [String] fields
|
831
|
-
# Selector specifying which fields to include in a partial response.
|
832
|
-
# @param [String] quota_user
|
833
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
834
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
835
|
-
# @param [Google::Apis::RequestOptions] options
|
836
|
-
# Request-specific options
|
837
|
-
#
|
838
|
-
# @yield [result, err] Result & error if block supplied
|
839
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
|
840
|
-
# @yieldparam err [StandardError] error object if request failed
|
841
|
-
#
|
842
|
-
# @return [Google::Apis::BaremetalsolutionV2::Empty]
|
843
|
-
#
|
844
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
845
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
846
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
847
|
-
def delete_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
848
|
-
command = make_simple_command(:delete, 'v2/{+name}', options)
|
849
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
|
850
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::Empty
|
851
|
-
command.params['name'] = name unless name.nil?
|
852
|
-
command.query['fields'] = fields unless fields.nil?
|
853
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
854
|
-
execute_or_queue_command(command, &block)
|
855
|
-
end
|
856
|
-
|
857
|
-
# Get details of a single snapshot schedule policy.
|
858
|
-
# @param [String] name
|
859
|
-
# Required. Name of the resource.
|
860
|
-
# @param [String] fields
|
861
|
-
# Selector specifying which fields to include in a partial response.
|
862
|
-
# @param [String] quota_user
|
863
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
864
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
865
|
-
# @param [Google::Apis::RequestOptions] options
|
866
|
-
# Request-specific options
|
867
|
-
#
|
868
|
-
# @yield [result, err] Result & error if block supplied
|
869
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
870
|
-
# @yieldparam err [StandardError] error object if request failed
|
871
|
-
#
|
872
|
-
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
873
|
-
#
|
874
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
875
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
876
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
877
|
-
def get_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
878
|
-
command = make_simple_command(:get, 'v2/{+name}', options)
|
879
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
880
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
881
|
-
command.params['name'] = name unless name.nil?
|
882
|
-
command.query['fields'] = fields unless fields.nil?
|
883
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
884
|
-
execute_or_queue_command(command, &block)
|
885
|
-
end
|
886
|
-
|
887
|
-
# List snapshot schedule policies in a given project and location.
|
888
|
-
# @param [String] parent
|
889
|
-
# Required. The parent project containing the Snapshot Schedule Policies.
|
890
|
-
# @param [String] filter
|
891
|
-
# List filter.
|
892
|
-
# @param [Fixnum] page_size
|
893
|
-
# The maximum number of items to return.
|
894
|
-
# @param [String] page_token
|
895
|
-
# The next_page_token value returned from a previous List request, if any.
|
896
|
-
# @param [String] fields
|
897
|
-
# Selector specifying which fields to include in a partial response.
|
898
|
-
# @param [String] quota_user
|
899
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
900
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
901
|
-
# @param [Google::Apis::RequestOptions] options
|
902
|
-
# Request-specific options
|
903
|
-
#
|
904
|
-
# @yield [result, err] Result & error if block supplied
|
905
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse] parsed result object
|
906
|
-
# @yieldparam err [StandardError] error object if request failed
|
907
|
-
#
|
908
|
-
# @return [Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse]
|
909
|
-
#
|
910
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
911
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
912
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
913
|
-
def list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
914
|
-
command = make_simple_command(:get, 'v2/{+parent}/snapshotSchedulePolicies', options)
|
915
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse::Representation
|
916
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse
|
917
|
-
command.params['parent'] = parent unless parent.nil?
|
918
|
-
command.query['filter'] = filter unless filter.nil?
|
919
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
920
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
921
|
-
command.query['fields'] = fields unless fields.nil?
|
922
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
923
|
-
execute_or_queue_command(command, &block)
|
924
|
-
end
|
925
|
-
|
926
|
-
# Update a snapshot schedule policy in the specified project.
|
927
|
-
# @param [String] name
|
928
|
-
# Output only. The name of the snapshot schedule policy.
|
929
|
-
# @param [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] snapshot_schedule_policy_object
|
930
|
-
# @param [String] update_mask
|
931
|
-
# Required. The list of fields to update.
|
932
|
-
# @param [String] fields
|
933
|
-
# Selector specifying which fields to include in a partial response.
|
934
|
-
# @param [String] quota_user
|
935
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
936
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
937
|
-
# @param [Google::Apis::RequestOptions] options
|
938
|
-
# Request-specific options
|
939
|
-
#
|
940
|
-
# @yield [result, err] Result & error if block supplied
|
941
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
942
|
-
# @yieldparam err [StandardError] error object if request failed
|
943
|
-
#
|
944
|
-
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
945
|
-
#
|
946
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
947
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
948
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
949
|
-
def patch_project_location_snapshot_schedule_policy(name, snapshot_schedule_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
950
|
-
command = make_simple_command(:patch, 'v2/{+name}', options)
|
951
|
-
command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
952
|
-
command.request_object = snapshot_schedule_policy_object
|
953
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
954
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
955
|
-
command.params['name'] = name unless name.nil?
|
956
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
957
|
-
command.query['fields'] = fields unless fields.nil?
|
958
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
959
|
-
execute_or_queue_command(command, &block)
|
960
|
-
end
|
961
|
-
|
962
823
|
# Get details of a single storage volume.
|
963
824
|
# @param [String] name
|
964
825
|
# Required. Name of the resource.
|
@@ -1137,169 +998,6 @@ module Google
|
|
1137
998
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1138
999
|
execute_or_queue_command(command, &block)
|
1139
1000
|
end
|
1140
|
-
|
1141
|
-
# Create a storage volume snapshot in a containing volume.
|
1142
|
-
# @param [String] parent
|
1143
|
-
# Required. The volume to snapshot.
|
1144
|
-
# @param [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] volume_snapshot_object
|
1145
|
-
# @param [String] fields
|
1146
|
-
# Selector specifying which fields to include in a partial response.
|
1147
|
-
# @param [String] quota_user
|
1148
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1149
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1150
|
-
# @param [Google::Apis::RequestOptions] options
|
1151
|
-
# Request-specific options
|
1152
|
-
#
|
1153
|
-
# @yield [result, err] Result & error if block supplied
|
1154
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
|
1155
|
-
# @yieldparam err [StandardError] error object if request failed
|
1156
|
-
#
|
1157
|
-
# @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
|
1158
|
-
#
|
1159
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1160
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1161
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1162
|
-
def create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1163
|
-
command = make_simple_command(:post, 'v2/{+parent}/snapshots', options)
|
1164
|
-
command.request_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1165
|
-
command.request_object = volume_snapshot_object
|
1166
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1167
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
|
1168
|
-
command.params['parent'] = parent unless parent.nil?
|
1169
|
-
command.query['fields'] = fields unless fields.nil?
|
1170
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1171
|
-
execute_or_queue_command(command, &block)
|
1172
|
-
end
|
1173
|
-
|
1174
|
-
# Deletes a storage volume snapshot for a given volume.
|
1175
|
-
# @param [String] name
|
1176
|
-
# Required. The name of the snapshot to delete.
|
1177
|
-
# @param [String] fields
|
1178
|
-
# Selector specifying which fields to include in a partial response.
|
1179
|
-
# @param [String] quota_user
|
1180
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1181
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1182
|
-
# @param [Google::Apis::RequestOptions] options
|
1183
|
-
# Request-specific options
|
1184
|
-
#
|
1185
|
-
# @yield [result, err] Result & error if block supplied
|
1186
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
|
1187
|
-
# @yieldparam err [StandardError] error object if request failed
|
1188
|
-
#
|
1189
|
-
# @return [Google::Apis::BaremetalsolutionV2::Empty]
|
1190
|
-
#
|
1191
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1192
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1193
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1194
|
-
def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
1195
|
-
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1196
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
|
1197
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::Empty
|
1198
|
-
command.params['name'] = name unless name.nil?
|
1199
|
-
command.query['fields'] = fields unless fields.nil?
|
1200
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1201
|
-
execute_or_queue_command(command, &block)
|
1202
|
-
end
|
1203
|
-
|
1204
|
-
# Get details of a single storage volume snapshot.
|
1205
|
-
# @param [String] name
|
1206
|
-
# Required. Name of the resource.
|
1207
|
-
# @param [String] fields
|
1208
|
-
# Selector specifying which fields to include in a partial response.
|
1209
|
-
# @param [String] quota_user
|
1210
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1211
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1212
|
-
# @param [Google::Apis::RequestOptions] options
|
1213
|
-
# Request-specific options
|
1214
|
-
#
|
1215
|
-
# @yield [result, err] Result & error if block supplied
|
1216
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
|
1217
|
-
# @yieldparam err [StandardError] error object if request failed
|
1218
|
-
#
|
1219
|
-
# @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
|
1220
|
-
#
|
1221
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1222
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1223
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1224
|
-
def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
1225
|
-
command = make_simple_command(:get, 'v2/{+name}', options)
|
1226
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1227
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
|
1228
|
-
command.params['name'] = name unless name.nil?
|
1229
|
-
command.query['fields'] = fields unless fields.nil?
|
1230
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1231
|
-
execute_or_queue_command(command, &block)
|
1232
|
-
end
|
1233
|
-
|
1234
|
-
# List storage volume snapshots for given storage volume.
|
1235
|
-
# @param [String] parent
|
1236
|
-
# Required. Parent value for ListVolumesRequest.
|
1237
|
-
# @param [Fixnum] page_size
|
1238
|
-
# Requested page size. The server might return fewer items than requested. If
|
1239
|
-
# unspecified, server will pick an appropriate default.
|
1240
|
-
# @param [String] page_token
|
1241
|
-
# A token identifying a page of results from the server.
|
1242
|
-
# @param [String] fields
|
1243
|
-
# Selector specifying which fields to include in a partial response.
|
1244
|
-
# @param [String] quota_user
|
1245
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1246
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1247
|
-
# @param [Google::Apis::RequestOptions] options
|
1248
|
-
# Request-specific options
|
1249
|
-
#
|
1250
|
-
# @yield [result, err] Result & error if block supplied
|
1251
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse] parsed result object
|
1252
|
-
# @yieldparam err [StandardError] error object if request failed
|
1253
|
-
#
|
1254
|
-
# @return [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse]
|
1255
|
-
#
|
1256
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1257
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1258
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1259
|
-
def list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1260
|
-
command = make_simple_command(:get, 'v2/{+parent}/snapshots', options)
|
1261
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse::Representation
|
1262
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse
|
1263
|
-
command.params['parent'] = parent unless parent.nil?
|
1264
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1265
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1266
|
-
command.query['fields'] = fields unless fields.nil?
|
1267
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1268
|
-
execute_or_queue_command(command, &block)
|
1269
|
-
end
|
1270
|
-
|
1271
|
-
# Restore a storage volume snapshot to its containing volume.
|
1272
|
-
# @param [String] volume_snapshot
|
1273
|
-
# Required. Name of the resource.
|
1274
|
-
# @param [Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest] restore_volume_snapshot_request_object
|
1275
|
-
# @param [String] fields
|
1276
|
-
# Selector specifying which fields to include in a partial response.
|
1277
|
-
# @param [String] quota_user
|
1278
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1279
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1280
|
-
# @param [Google::Apis::RequestOptions] options
|
1281
|
-
# Request-specific options
|
1282
|
-
#
|
1283
|
-
# @yield [result, err] Result & error if block supplied
|
1284
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
1285
|
-
# @yieldparam err [StandardError] error object if request failed
|
1286
|
-
#
|
1287
|
-
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
1288
|
-
#
|
1289
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1290
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1291
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1292
|
-
def restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1293
|
-
command = make_simple_command(:post, 'v2/{+volumeSnapshot}:restoreVolumeSnapshot', options)
|
1294
|
-
command.request_representation = Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest::Representation
|
1295
|
-
command.request_object = restore_volume_snapshot_request_object
|
1296
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
1297
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
1298
|
-
command.params['volumeSnapshot'] = volume_snapshot unless volume_snapshot.nil?
|
1299
|
-
command.query['fields'] = fields unless fields.nil?
|
1300
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1301
|
-
execute_or_queue_command(command, &block)
|
1302
|
-
end
|
1303
1001
|
|
1304
1002
|
protected
|
1305
1003
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-baremetalsolution_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|