google-apis-baremetalsolution_v2 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +527 -0
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +2 -2
- data/lib/google/apis/baremetalsolution_v2/representations.rb +246 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +691 -13
- 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: 987dd57071504cff2aab6f1cc15cdbd8bf2d20262d6b2a81a2532e3a9f616260
|
4
|
+
data.tar.gz: 706e0f2681e789f8cf766efdf5c17a088792d66d1590bf8b65c3d6ace4507175
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ced3e16c4a512992f95e77be1a5a30f9a5d7cc6b6d64ce193424d5bde2f7bfaff1444add26920fc0f0c80feba9448bb284eb2096f8d371e7af087133bb17f91
|
7
|
+
data.tar.gz: 85a3309fa8cb6fc51bfde8de7aac70274e91f6839c71e4bd5e7235c26ed4c6abc9123f12f76ff93d7d588716c87196fe6b7d1803e9b3d5a6a2bdb3942dc2de3b
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,36 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module BaremetalsolutionV2
|
24
24
|
|
25
|
+
# The request message for Operations.CancelOperation.
|
26
|
+
class CancelOperationRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
def initialize(**args)
|
30
|
+
update!(**args)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Update properties of this object
|
34
|
+
def update!(**args)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
39
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
40
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
41
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
42
|
+
# `Empty` is empty JSON object ````.
|
43
|
+
class Empty
|
44
|
+
include Google::Apis::Core::Hashable
|
45
|
+
|
46
|
+
def initialize(**args)
|
47
|
+
update!(**args)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Update properties of this object
|
51
|
+
def update!(**args)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
25
55
|
# A server.
|
26
56
|
class Instance
|
27
57
|
include Google::Apis::Core::Hashable
|
@@ -190,6 +220,150 @@ module Google
|
|
190
220
|
end
|
191
221
|
end
|
192
222
|
|
223
|
+
# Response message containing the list of networks.
|
224
|
+
class ListNetworksResponse
|
225
|
+
include Google::Apis::Core::Hashable
|
226
|
+
|
227
|
+
# The list of networks.
|
228
|
+
# Corresponds to the JSON property `networks`
|
229
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::Network>]
|
230
|
+
attr_accessor :networks
|
231
|
+
|
232
|
+
# A token identifying a page of results from the server.
|
233
|
+
# Corresponds to the JSON property `nextPageToken`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :next_page_token
|
236
|
+
|
237
|
+
# Locations that could not be reached.
|
238
|
+
# Corresponds to the JSON property `unreachable`
|
239
|
+
# @return [Array<String>]
|
240
|
+
attr_accessor :unreachable
|
241
|
+
|
242
|
+
def initialize(**args)
|
243
|
+
update!(**args)
|
244
|
+
end
|
245
|
+
|
246
|
+
# Update properties of this object
|
247
|
+
def update!(**args)
|
248
|
+
@networks = args[:networks] if args.key?(:networks)
|
249
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
250
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
# The response message for Operations.ListOperations.
|
255
|
+
class ListOperationsResponse
|
256
|
+
include Google::Apis::Core::Hashable
|
257
|
+
|
258
|
+
# The standard List next-page token.
|
259
|
+
# Corresponds to the JSON property `nextPageToken`
|
260
|
+
# @return [String]
|
261
|
+
attr_accessor :next_page_token
|
262
|
+
|
263
|
+
# A list of operations that matches the specified filter in the request.
|
264
|
+
# Corresponds to the JSON property `operations`
|
265
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::Operation>]
|
266
|
+
attr_accessor :operations
|
267
|
+
|
268
|
+
def initialize(**args)
|
269
|
+
update!(**args)
|
270
|
+
end
|
271
|
+
|
272
|
+
# Update properties of this object
|
273
|
+
def update!(**args)
|
274
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
275
|
+
@operations = args[:operations] if args.key?(:operations)
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# Response message containing the list of snapshot schedule policies.
|
280
|
+
class ListSnapshotSchedulePoliciesResponse
|
281
|
+
include Google::Apis::Core::Hashable
|
282
|
+
|
283
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
284
|
+
# results in the list.
|
285
|
+
# Corresponds to the JSON property `nextPageToken`
|
286
|
+
# @return [String]
|
287
|
+
attr_accessor :next_page_token
|
288
|
+
|
289
|
+
# The snapshot schedule policies registered in this project.
|
290
|
+
# Corresponds to the JSON property `snapshotSchedulePolicies`
|
291
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy>]
|
292
|
+
attr_accessor :snapshot_schedule_policies
|
293
|
+
|
294
|
+
def initialize(**args)
|
295
|
+
update!(**args)
|
296
|
+
end
|
297
|
+
|
298
|
+
# Update properties of this object
|
299
|
+
def update!(**args)
|
300
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
301
|
+
@snapshot_schedule_policies = args[:snapshot_schedule_policies] if args.key?(:snapshot_schedule_policies)
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# Response message containing the list of storage volume snapshots.
|
306
|
+
class ListVolumeSnapshotsResponse
|
307
|
+
include Google::Apis::Core::Hashable
|
308
|
+
|
309
|
+
# A token identifying a page of results from the server.
|
310
|
+
# Corresponds to the JSON property `nextPageToken`
|
311
|
+
# @return [String]
|
312
|
+
attr_accessor :next_page_token
|
313
|
+
|
314
|
+
# Locations that could not be reached.
|
315
|
+
# Corresponds to the JSON property `unreachable`
|
316
|
+
# @return [Array<String>]
|
317
|
+
attr_accessor :unreachable
|
318
|
+
|
319
|
+
# The list of storage volumes.
|
320
|
+
# Corresponds to the JSON property `volumeSnapshots`
|
321
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::VolumeSnapshot>]
|
322
|
+
attr_accessor :volume_snapshots
|
323
|
+
|
324
|
+
def initialize(**args)
|
325
|
+
update!(**args)
|
326
|
+
end
|
327
|
+
|
328
|
+
# Update properties of this object
|
329
|
+
def update!(**args)
|
330
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
331
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
332
|
+
@volume_snapshots = args[:volume_snapshots] if args.key?(:volume_snapshots)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
# Response message containing the list of storage volumes.
|
337
|
+
class ListVolumesResponse
|
338
|
+
include Google::Apis::Core::Hashable
|
339
|
+
|
340
|
+
# A token identifying a page of results from the server.
|
341
|
+
# Corresponds to the JSON property `nextPageToken`
|
342
|
+
# @return [String]
|
343
|
+
attr_accessor :next_page_token
|
344
|
+
|
345
|
+
# Locations that could not be reached.
|
346
|
+
# Corresponds to the JSON property `unreachable`
|
347
|
+
# @return [Array<String>]
|
348
|
+
attr_accessor :unreachable
|
349
|
+
|
350
|
+
# The list of storage volumes.
|
351
|
+
# Corresponds to the JSON property `volumes`
|
352
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::Volume>]
|
353
|
+
attr_accessor :volumes
|
354
|
+
|
355
|
+
def initialize(**args)
|
356
|
+
update!(**args)
|
357
|
+
end
|
358
|
+
|
359
|
+
# Update properties of this object
|
360
|
+
def update!(**args)
|
361
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
362
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
363
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
193
367
|
# A resource that represents Google Cloud Platform location.
|
194
368
|
class Location
|
195
369
|
include Google::Apis::Core::Hashable
|
@@ -379,6 +553,236 @@ module Google
|
|
379
553
|
end
|
380
554
|
end
|
381
555
|
|
556
|
+
# This resource represents a long-running operation that is the result of a
|
557
|
+
# network API call.
|
558
|
+
class Operation
|
559
|
+
include Google::Apis::Core::Hashable
|
560
|
+
|
561
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
562
|
+
# , the operation is completed, and either `error` or `response` is available.
|
563
|
+
# Corresponds to the JSON property `done`
|
564
|
+
# @return [Boolean]
|
565
|
+
attr_accessor :done
|
566
|
+
alias_method :done?, :done
|
567
|
+
|
568
|
+
# The `Status` type defines a logical error model that is suitable for different
|
569
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
570
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
571
|
+
# data: error code, error message, and error details. You can find out more
|
572
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
573
|
+
# //cloud.google.com/apis/design/errors).
|
574
|
+
# Corresponds to the JSON property `error`
|
575
|
+
# @return [Google::Apis::BaremetalsolutionV2::Status]
|
576
|
+
attr_accessor :error
|
577
|
+
|
578
|
+
# Service-specific metadata associated with the operation. It typically contains
|
579
|
+
# progress information and common metadata such as create time. Some services
|
580
|
+
# might not provide such metadata. Any method that returns a long-running
|
581
|
+
# operation should document the metadata type, if any.
|
582
|
+
# Corresponds to the JSON property `metadata`
|
583
|
+
# @return [Hash<String,Object>]
|
584
|
+
attr_accessor :metadata
|
585
|
+
|
586
|
+
# The server-assigned name, which is only unique within the same service that
|
587
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
588
|
+
# be a resource name ending with `operations/`unique_id``.
|
589
|
+
# Corresponds to the JSON property `name`
|
590
|
+
# @return [String]
|
591
|
+
attr_accessor :name
|
592
|
+
|
593
|
+
# The normal response of the operation in case of success. If the original
|
594
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
595
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
596
|
+
# the response should be the resource. For other methods, the response should
|
597
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
598
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
599
|
+
# response type is `TakeSnapshotResponse`.
|
600
|
+
# Corresponds to the JSON property `response`
|
601
|
+
# @return [Hash<String,Object>]
|
602
|
+
attr_accessor :response
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@done = args[:done] if args.key?(:done)
|
611
|
+
@error = args[:error] if args.key?(:error)
|
612
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
613
|
+
@name = args[:name] if args.key?(:name)
|
614
|
+
@response = args[:response] if args.key?(:response)
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
618
|
+
# Message requesting to reset a server.
|
619
|
+
class ResetInstanceRequest
|
620
|
+
include Google::Apis::Core::Hashable
|
621
|
+
|
622
|
+
def initialize(**args)
|
623
|
+
update!(**args)
|
624
|
+
end
|
625
|
+
|
626
|
+
# Update properties of this object
|
627
|
+
def update!(**args)
|
628
|
+
end
|
629
|
+
end
|
630
|
+
|
631
|
+
# Message for restoring a volume snapshot.
|
632
|
+
class RestoreVolumeSnapshotRequest
|
633
|
+
include Google::Apis::Core::Hashable
|
634
|
+
|
635
|
+
def initialize(**args)
|
636
|
+
update!(**args)
|
637
|
+
end
|
638
|
+
|
639
|
+
# Update properties of this object
|
640
|
+
def update!(**args)
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
# A snapshot schedule.
|
645
|
+
class Schedule
|
646
|
+
include Google::Apis::Core::Hashable
|
647
|
+
|
648
|
+
# A crontab-like specification that the schedule uses to take snapshots.
|
649
|
+
# Corresponds to the JSON property `crontabSpec`
|
650
|
+
# @return [String]
|
651
|
+
attr_accessor :crontab_spec
|
652
|
+
|
653
|
+
# A list of snapshot names created in this schedule.
|
654
|
+
# Corresponds to the JSON property `prefix`
|
655
|
+
# @return [String]
|
656
|
+
attr_accessor :prefix
|
657
|
+
|
658
|
+
# The maximum number of snapshots to retain in this schedule.
|
659
|
+
# Corresponds to the JSON property `retentionCount`
|
660
|
+
# @return [Fixnum]
|
661
|
+
attr_accessor :retention_count
|
662
|
+
|
663
|
+
def initialize(**args)
|
664
|
+
update!(**args)
|
665
|
+
end
|
666
|
+
|
667
|
+
# Update properties of this object
|
668
|
+
def update!(**args)
|
669
|
+
@crontab_spec = args[:crontab_spec] if args.key?(:crontab_spec)
|
670
|
+
@prefix = args[:prefix] if args.key?(:prefix)
|
671
|
+
@retention_count = args[:retention_count] if args.key?(:retention_count)
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
675
|
+
# Details about snapshot space reservation and usage on the storage volume.
|
676
|
+
class SnapshotReservationDetail
|
677
|
+
include Google::Apis::Core::Hashable
|
678
|
+
|
679
|
+
# The space on this storage volume reserved for snapshots, shown in GiB.
|
680
|
+
# Corresponds to the JSON property `reservedSpaceGib`
|
681
|
+
# @return [Fixnum]
|
682
|
+
attr_accessor :reserved_space_gib
|
683
|
+
|
684
|
+
# The amount, in GiB, of available space in this storage volume's reserved
|
685
|
+
# snapshot space.
|
686
|
+
# Corresponds to the JSON property `reservedSpaceRemainingGib`
|
687
|
+
# @return [Fixnum]
|
688
|
+
attr_accessor :reserved_space_remaining_gib
|
689
|
+
|
690
|
+
# The percent of snapshot space on this storage volume actually being used by
|
691
|
+
# the snapshot copies. This value might be higher than 100% if the snapshot
|
692
|
+
# copies have overflowed into the data portion of the storage volume.
|
693
|
+
# Corresponds to the JSON property `reservedSpaceUsedPercent`
|
694
|
+
# @return [Fixnum]
|
695
|
+
attr_accessor :reserved_space_used_percent
|
696
|
+
|
697
|
+
def initialize(**args)
|
698
|
+
update!(**args)
|
699
|
+
end
|
700
|
+
|
701
|
+
# Update properties of this object
|
702
|
+
def update!(**args)
|
703
|
+
@reserved_space_gib = args[:reserved_space_gib] if args.key?(:reserved_space_gib)
|
704
|
+
@reserved_space_remaining_gib = args[:reserved_space_remaining_gib] if args.key?(:reserved_space_remaining_gib)
|
705
|
+
@reserved_space_used_percent = args[:reserved_space_used_percent] if args.key?(:reserved_space_used_percent)
|
706
|
+
end
|
707
|
+
end
|
708
|
+
|
709
|
+
# A snapshot schedule policy.
|
710
|
+
class SnapshotSchedulePolicy
|
711
|
+
include Google::Apis::Core::Hashable
|
712
|
+
|
713
|
+
# The description of the snapshot schedule policy.
|
714
|
+
# Corresponds to the JSON property `description`
|
715
|
+
# @return [String]
|
716
|
+
attr_accessor :description
|
717
|
+
|
718
|
+
# Output only. The name of the snapshot schedule policy.
|
719
|
+
# Corresponds to the JSON property `name`
|
720
|
+
# @return [String]
|
721
|
+
attr_accessor :name
|
722
|
+
|
723
|
+
# The snapshot schedules contained in this policy. You can specify a maxiumum of
|
724
|
+
# 5 schedules.
|
725
|
+
# Corresponds to the JSON property `schedules`
|
726
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::Schedule>]
|
727
|
+
attr_accessor :schedules
|
728
|
+
|
729
|
+
# The names of the volumes associated with this policy.
|
730
|
+
# Corresponds to the JSON property `volumes`
|
731
|
+
# @return [Array<String>]
|
732
|
+
attr_accessor :volumes
|
733
|
+
|
734
|
+
def initialize(**args)
|
735
|
+
update!(**args)
|
736
|
+
end
|
737
|
+
|
738
|
+
# Update properties of this object
|
739
|
+
def update!(**args)
|
740
|
+
@description = args[:description] if args.key?(:description)
|
741
|
+
@name = args[:name] if args.key?(:name)
|
742
|
+
@schedules = args[:schedules] if args.key?(:schedules)
|
743
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
744
|
+
end
|
745
|
+
end
|
746
|
+
|
747
|
+
# The `Status` type defines a logical error model that is suitable for different
|
748
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
749
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
750
|
+
# data: error code, error message, and error details. You can find out more
|
751
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
752
|
+
# //cloud.google.com/apis/design/errors).
|
753
|
+
class Status
|
754
|
+
include Google::Apis::Core::Hashable
|
755
|
+
|
756
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
757
|
+
# Corresponds to the JSON property `code`
|
758
|
+
# @return [Fixnum]
|
759
|
+
attr_accessor :code
|
760
|
+
|
761
|
+
# A list of messages that carry the error details. There is a common set of
|
762
|
+
# message types for APIs to use.
|
763
|
+
# Corresponds to the JSON property `details`
|
764
|
+
# @return [Array<Hash<String,Object>>]
|
765
|
+
attr_accessor :details
|
766
|
+
|
767
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
768
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
769
|
+
# field, or localized by the client.
|
770
|
+
# Corresponds to the JSON property `message`
|
771
|
+
# @return [String]
|
772
|
+
attr_accessor :message
|
773
|
+
|
774
|
+
def initialize(**args)
|
775
|
+
update!(**args)
|
776
|
+
end
|
777
|
+
|
778
|
+
# Update properties of this object
|
779
|
+
def update!(**args)
|
780
|
+
@code = args[:code] if args.key?(:code)
|
781
|
+
@details = args[:details] if args.key?(:details)
|
782
|
+
@message = args[:message] if args.key?(:message)
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
382
786
|
# A network VRF.
|
383
787
|
class Vrf
|
384
788
|
include Google::Apis::Core::Hashable
|
@@ -421,6 +825,129 @@ module Google
|
|
421
825
|
@state = args[:state] if args.key?(:state)
|
422
826
|
end
|
423
827
|
end
|
828
|
+
|
829
|
+
# A storage volume.
|
830
|
+
class Volume
|
831
|
+
include Google::Apis::Core::Hashable
|
832
|
+
|
833
|
+
# The size, in GiB, that this storage volume has expanded as a result of an auto
|
834
|
+
# grow policy. In the absence of auto-grow, the value is 0.
|
835
|
+
# Corresponds to the JSON property `autoGrownSizeGib`
|
836
|
+
# @return [Fixnum]
|
837
|
+
attr_accessor :auto_grown_size_gib
|
838
|
+
|
839
|
+
# The current size of this storage volume, in GiB, including space reserved for
|
840
|
+
# snapshots. This size might be different than the requested size if the storage
|
841
|
+
# volume has been configured with auto grow or auto shrink.
|
842
|
+
# Corresponds to the JSON property `currentSizeGib`
|
843
|
+
# @return [Fixnum]
|
844
|
+
attr_accessor :current_size_gib
|
845
|
+
|
846
|
+
# Output only. The resource name of this `Volume`. Resource names are schemeless
|
847
|
+
# URIs that follow the conventions in https://cloud.google.com/apis/design/
|
848
|
+
# resource_names. Format: `projects/`project`/locations/`location`/volumes/`
|
849
|
+
# volume``
|
850
|
+
# Corresponds to the JSON property `name`
|
851
|
+
# @return [String]
|
852
|
+
attr_accessor :name
|
853
|
+
|
854
|
+
# The space remaining in the storage volume for new LUNs, in GiB, excluding
|
855
|
+
# space reserved for snapshots.
|
856
|
+
# Corresponds to the JSON property `remainingSpaceGib`
|
857
|
+
# @return [Fixnum]
|
858
|
+
attr_accessor :remaining_space_gib
|
859
|
+
|
860
|
+
# The requested size of this storage volume, in GiB.
|
861
|
+
# Corresponds to the JSON property `requestedSizeGib`
|
862
|
+
# @return [Fixnum]
|
863
|
+
attr_accessor :requested_size_gib
|
864
|
+
|
865
|
+
# The behavior to use when snapshot reserved space is full.
|
866
|
+
# Corresponds to the JSON property `snapshotAutoDeleteBehavior`
|
867
|
+
# @return [String]
|
868
|
+
attr_accessor :snapshot_auto_delete_behavior
|
869
|
+
|
870
|
+
# Details about snapshot space reservation and usage on the storage volume.
|
871
|
+
# Corresponds to the JSON property `snapshotReservationDetail`
|
872
|
+
# @return [Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail]
|
873
|
+
attr_accessor :snapshot_reservation_detail
|
874
|
+
|
875
|
+
# The name of the snapshot schedule policy in use for this volume, if any.
|
876
|
+
# Corresponds to the JSON property `snapshotSchedulePolicy`
|
877
|
+
# @return [String]
|
878
|
+
attr_accessor :snapshot_schedule_policy
|
879
|
+
|
880
|
+
# The state of this storage volume.
|
881
|
+
# Corresponds to the JSON property `state`
|
882
|
+
# @return [String]
|
883
|
+
attr_accessor :state
|
884
|
+
|
885
|
+
# The storage type for this volume.
|
886
|
+
# Corresponds to the JSON property `storageType`
|
887
|
+
# @return [String]
|
888
|
+
attr_accessor :storage_type
|
889
|
+
|
890
|
+
def initialize(**args)
|
891
|
+
update!(**args)
|
892
|
+
end
|
893
|
+
|
894
|
+
# Update properties of this object
|
895
|
+
def update!(**args)
|
896
|
+
@auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
|
897
|
+
@current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
|
898
|
+
@name = args[:name] if args.key?(:name)
|
899
|
+
@remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
|
900
|
+
@requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
|
901
|
+
@snapshot_auto_delete_behavior = args[:snapshot_auto_delete_behavior] if args.key?(:snapshot_auto_delete_behavior)
|
902
|
+
@snapshot_reservation_detail = args[:snapshot_reservation_detail] if args.key?(:snapshot_reservation_detail)
|
903
|
+
@snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
|
904
|
+
@state = args[:state] if args.key?(:state)
|
905
|
+
@storage_type = args[:storage_type] if args.key?(:storage_type)
|
906
|
+
end
|
907
|
+
end
|
908
|
+
|
909
|
+
# Snapshot registered for a given storage volume.
|
910
|
+
class VolumeSnapshot
|
911
|
+
include Google::Apis::Core::Hashable
|
912
|
+
|
913
|
+
# Optional. The creation time of the storage volume snapshot.
|
914
|
+
# Corresponds to the JSON property `createTime`
|
915
|
+
# @return [String]
|
916
|
+
attr_accessor :create_time
|
917
|
+
|
918
|
+
# The description of the storage volume snapshot.
|
919
|
+
# Corresponds to the JSON property `description`
|
920
|
+
# @return [String]
|
921
|
+
attr_accessor :description
|
922
|
+
|
923
|
+
# Output only. The name of the storage volume snapshot.
|
924
|
+
# Corresponds to the JSON property `name`
|
925
|
+
# @return [String]
|
926
|
+
attr_accessor :name
|
927
|
+
|
928
|
+
# The size of the storage volume snapshot, in bytes.
|
929
|
+
# Corresponds to the JSON property `sizeBytes`
|
930
|
+
# @return [Fixnum]
|
931
|
+
attr_accessor :size_bytes
|
932
|
+
|
933
|
+
# The storage volume this snapshot belongs to.
|
934
|
+
# Corresponds to the JSON property `storageVolume`
|
935
|
+
# @return [String]
|
936
|
+
attr_accessor :storage_volume
|
937
|
+
|
938
|
+
def initialize(**args)
|
939
|
+
update!(**args)
|
940
|
+
end
|
941
|
+
|
942
|
+
# Update properties of this object
|
943
|
+
def update!(**args)
|
944
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
945
|
+
@description = args[:description] if args.key?(:description)
|
946
|
+
@name = args[:name] if args.key?(:name)
|
947
|
+
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
|
948
|
+
@storage_volume = args[:storage_volume] if args.key?(:storage_volume)
|
949
|
+
end
|
950
|
+
end
|
424
951
|
end
|
425
952
|
end
|
426
953
|
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.5.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211028"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|