google-apis-baremetalsolution_v2 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 987dd57071504cff2aab6f1cc15cdbd8bf2d20262d6b2a81a2532e3a9f616260
4
- data.tar.gz: 706e0f2681e789f8cf766efdf5c17a088792d66d1590bf8b65c3d6ace4507175
3
+ metadata.gz: 997cb0f18e31cad1529de7732cd9a34abd61192cf667860419cad18fce5c3cda
4
+ data.tar.gz: ca9dd6ac9e255559eb5f0b36ca69fe9c2f920dddce5d74217c0fff4ea6eeb1f2
5
5
  SHA512:
6
- metadata.gz: 7ced3e16c4a512992f95e77be1a5a30f9a5d7cc6b6d64ce193424d5bde2f7bfaff1444add26920fc0f0c80feba9448bb284eb2096f8d371e7af087133bb17f91
7
- data.tar.gz: 85a3309fa8cb6fc51bfde8de7aac70274e91f6839c71e4bd5e7235c26ed4c6abc9123f12f76ff93d7d588716c87196fe6b7d1803e9b3d5a6a2bdb3942dc2de3b
6
+ metadata.gz: 76f7e532f6dc4d53f1f68ead8456b21847599579df8524e4b04443738fe3f354770a466b32670c87db14fc1b47f51e4e6b5f73699c4487792046e856175181a2
7
+ data.tar.gz: 3d16139e7be1b563200a4981363bad3a14450a753c031a29f13aac15b42296950707958a7b2bf40e1aede223c7902bb42946ca32e73352f91cc8bccaf75e183c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-baremetalsolution_v2
2
2
 
3
+ ### v0.6.0 (2022-02-10)
4
+
5
+ * Regenerated from discovery document revision 20220119
6
+ * Regenerated using generator version 0.4.1
7
+
3
8
  ### v0.5.0 (2021-12-08)
4
9
 
5
10
  * Regenerated from discovery document revision 20211028
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/baremetalsolution_v2"
51
51
  client = Google::Apis::BaremetalsolutionV2::BaremetalsolutionService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -22,19 +22,6 @@ 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
25
  # A generic empty message that you can re-use to avoid defining duplicated empty
39
26
  # messages in your APIs. A typical example is to use it as the request or the
40
27
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -68,6 +55,11 @@ module Google
68
55
  attr_accessor :hyperthreading_enabled
69
56
  alias_method :hyperthreading_enabled?, :hyperthreading_enabled
70
57
 
58
+ # An identifier for the `Instance`, generated by the backend.
59
+ # Corresponds to the JSON property `id`
60
+ # @return [String]
61
+ attr_accessor :id
62
+
71
63
  # True if the interactive serial console feature is enabled for the instance,
72
64
  # false otherwise. The default value is false.
73
65
  # Corresponds to the JSON property `interactiveSerialConsoleEnabled`
@@ -122,6 +114,7 @@ module Google
122
114
  def update!(**args)
123
115
  @create_time = args[:create_time] if args.key?(:create_time)
124
116
  @hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled)
117
+ @id = args[:id] if args.key?(:id)
125
118
  @interactive_serial_console_enabled = args[:interactive_serial_console_enabled] if args.key?(:interactive_serial_console_enabled)
126
119
  @labels = args[:labels] if args.key?(:labels)
127
120
  @luns = args[:luns] if args.key?(:luns)
@@ -251,31 +244,6 @@ module Google
251
244
  end
252
245
  end
253
246
 
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
247
  # Response message containing the list of snapshot schedule policies.
280
248
  class ListSnapshotSchedulePoliciesResponse
281
249
  include Google::Apis::Core::Hashable
@@ -421,6 +389,11 @@ module Google
421
389
  attr_accessor :boot_lun
422
390
  alias_method :boot_lun?, :boot_lun
423
391
 
392
+ # An identifier for the LUN, generated by the backend.
393
+ # Corresponds to the JSON property `id`
394
+ # @return [String]
395
+ attr_accessor :id
396
+
424
397
  # The LUN multiprotocol type ensures the characteristics of the LUN are
425
398
  # optimized for each operating system.
426
399
  # Corresponds to the JSON property `multiprotocolType`
@@ -470,6 +443,7 @@ module Google
470
443
  # Update properties of this object
471
444
  def update!(**args)
472
445
  @boot_lun = args[:boot_lun] if args.key?(:boot_lun)
446
+ @id = args[:id] if args.key?(:id)
473
447
  @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
474
448
  @name = args[:name] if args.key?(:name)
475
449
  @shareable = args[:shareable] if args.key?(:shareable)
@@ -490,11 +464,21 @@ module Google
490
464
  # @return [String]
491
465
  attr_accessor :cidr
492
466
 
467
+ # An identifier for the `Network`, generated by the backend.
468
+ # Corresponds to the JSON property `id`
469
+ # @return [String]
470
+ attr_accessor :id
471
+
493
472
  # IP address configured.
494
473
  # Corresponds to the JSON property `ipAddress`
495
474
  # @return [String]
496
475
  attr_accessor :ip_address
497
476
 
477
+ # Labels as key value pairs.
478
+ # Corresponds to the JSON property `labels`
479
+ # @return [Hash<String,String>]
480
+ attr_accessor :labels
481
+
498
482
  # List of physical interfaces.
499
483
  # Corresponds to the JSON property `macAddress`
500
484
  # @return [Array<String>]
@@ -503,17 +487,15 @@ module Google
503
487
  # Output only. The resource name of this `Network`. Resource names are
504
488
  # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
505
489
  # design/resource_names. Format: `projects/`project`/locations/`location`/
506
- # networks/`network`` This field will contain the same value as field "network",
507
- # which will soon be deprecated. Please use this field to reference the name of
508
- # the network resource.
490
+ # networks/`network``
509
491
  # Corresponds to the JSON property `name`
510
492
  # @return [String]
511
493
  attr_accessor :name
512
494
 
513
- # Name of the network.
514
- # Corresponds to the JSON property `network`
495
+ # IP range for reserved for services (e.g. NFS).
496
+ # Corresponds to the JSON property `servicesCidr`
515
497
  # @return [String]
516
- attr_accessor :network
498
+ attr_accessor :services_cidr
517
499
 
518
500
  # The Network state.
519
501
  # Corresponds to the JSON property `state`
@@ -542,10 +524,12 @@ module Google
542
524
  # Update properties of this object
543
525
  def update!(**args)
544
526
  @cidr = args[:cidr] if args.key?(:cidr)
527
+ @id = args[:id] if args.key?(:id)
545
528
  @ip_address = args[:ip_address] if args.key?(:ip_address)
529
+ @labels = args[:labels] if args.key?(:labels)
546
530
  @mac_address = args[:mac_address] if args.key?(:mac_address)
547
531
  @name = args[:name] if args.key?(:name)
548
- @network = args[:network] if args.key?(:network)
532
+ @services_cidr = args[:services_cidr] if args.key?(:services_cidr)
549
533
  @state = args[:state] if args.key?(:state)
550
534
  @type = args[:type] if args.key?(:type)
551
535
  @vlan_id = args[:vlan_id] if args.key?(:vlan_id)
@@ -615,6 +599,25 @@ module Google
615
599
  end
616
600
  end
617
601
 
602
+ # QOS policy parameters.
603
+ class QosPolicy
604
+ include Google::Apis::Core::Hashable
605
+
606
+ # The bandwidth permitted by the QOS policy, in gbps.
607
+ # Corresponds to the JSON property `bandwidthGbps`
608
+ # @return [Float]
609
+ attr_accessor :bandwidth_gbps
610
+
611
+ def initialize(**args)
612
+ update!(**args)
613
+ end
614
+
615
+ # Update properties of this object
616
+ def update!(**args)
617
+ @bandwidth_gbps = args[:bandwidth_gbps] if args.key?(:bandwidth_gbps)
618
+ end
619
+ end
620
+
618
621
  # Message requesting to reset a server.
619
622
  class ResetInstanceRequest
620
623
  include Google::Apis::Core::Hashable
@@ -715,22 +718,27 @@ module Google
715
718
  # @return [String]
716
719
  attr_accessor :description
717
720
 
721
+ # An identifier for the snapshot schedule policy, generated by the backend.
722
+ # Corresponds to the JSON property `id`
723
+ # @return [String]
724
+ attr_accessor :id
725
+
726
+ # Labels as key value pairs.
727
+ # Corresponds to the JSON property `labels`
728
+ # @return [Hash<String,String>]
729
+ attr_accessor :labels
730
+
718
731
  # Output only. The name of the snapshot schedule policy.
719
732
  # Corresponds to the JSON property `name`
720
733
  # @return [String]
721
734
  attr_accessor :name
722
735
 
723
- # The snapshot schedules contained in this policy. You can specify a maxiumum of
736
+ # The snapshot schedules contained in this policy. You can specify a maximum of
724
737
  # 5 schedules.
725
738
  # Corresponds to the JSON property `schedules`
726
739
  # @return [Array<Google::Apis::BaremetalsolutionV2::Schedule>]
727
740
  attr_accessor :schedules
728
741
 
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
742
  def initialize(**args)
735
743
  update!(**args)
736
744
  end
@@ -738,9 +746,10 @@ module Google
738
746
  # Update properties of this object
739
747
  def update!(**args)
740
748
  @description = args[:description] if args.key?(:description)
749
+ @id = args[:id] if args.key?(:id)
750
+ @labels = args[:labels] if args.key?(:labels)
741
751
  @name = args[:name] if args.key?(:name)
742
752
  @schedules = args[:schedules] if args.key?(:schedules)
743
- @volumes = args[:volumes] if args.key?(:volumes)
744
753
  end
745
754
  end
746
755
 
@@ -787,42 +796,67 @@ module Google
787
796
  class Vrf
788
797
  include Google::Apis::Core::Hashable
789
798
 
790
- # The autonomous system number of the VRF.
791
- # Corresponds to the JSON property `autonomousSystemNumber`
792
- # @return [String]
793
- attr_accessor :autonomous_system_number
794
-
795
- # The Juniper alias of the VRF.
796
- # Corresponds to the JSON property `juniperAlias`
797
- # @return [String]
798
- attr_accessor :juniper_alias
799
-
800
799
  # The name of the VRF.
801
800
  # Corresponds to the JSON property `name`
802
801
  # @return [String]
803
802
  attr_accessor :name
804
803
 
805
- # The route target of the VRF.
806
- # Corresponds to the JSON property `routeTarget`
807
- # @return [Fixnum]
808
- attr_accessor :route_target
804
+ # QOS policy parameters.
805
+ # Corresponds to the JSON property `qosPolicy`
806
+ # @return [Google::Apis::BaremetalsolutionV2::QosPolicy]
807
+ attr_accessor :qos_policy
809
808
 
810
809
  # The possible state of VRF.
811
810
  # Corresponds to the JSON property `state`
812
811
  # @return [String]
813
812
  attr_accessor :state
814
813
 
814
+ # The list of VLAN attachments for the VRF.
815
+ # Corresponds to the JSON property `vlanAttachments`
816
+ # @return [Array<Google::Apis::BaremetalsolutionV2::VlanAttachment>]
817
+ attr_accessor :vlan_attachments
818
+
815
819
  def initialize(**args)
816
820
  update!(**args)
817
821
  end
818
822
 
819
823
  # Update properties of this object
820
824
  def update!(**args)
821
- @autonomous_system_number = args[:autonomous_system_number] if args.key?(:autonomous_system_number)
822
- @juniper_alias = args[:juniper_alias] if args.key?(:juniper_alias)
823
825
  @name = args[:name] if args.key?(:name)
824
- @route_target = args[:route_target] if args.key?(:route_target)
826
+ @qos_policy = args[:qos_policy] if args.key?(:qos_policy)
825
827
  @state = args[:state] if args.key?(:state)
828
+ @vlan_attachments = args[:vlan_attachments] if args.key?(:vlan_attachments)
829
+ end
830
+ end
831
+
832
+ # VLAN attachment details.
833
+ class VlanAttachment
834
+ include Google::Apis::Core::Hashable
835
+
836
+ # The peer IP of the attachment.
837
+ # Corresponds to the JSON property `peerIp`
838
+ # @return [String]
839
+ attr_accessor :peer_ip
840
+
841
+ # The peer vlan ID of the attachment.
842
+ # Corresponds to the JSON property `peerVlanId`
843
+ # @return [Fixnum]
844
+ attr_accessor :peer_vlan_id
845
+
846
+ # The router IP of the attachment.
847
+ # Corresponds to the JSON property `routerIp`
848
+ # @return [String]
849
+ attr_accessor :router_ip
850
+
851
+ def initialize(**args)
852
+ update!(**args)
853
+ end
854
+
855
+ # Update properties of this object
856
+ def update!(**args)
857
+ @peer_ip = args[:peer_ip] if args.key?(:peer_ip)
858
+ @peer_vlan_id = args[:peer_vlan_id] if args.key?(:peer_vlan_id)
859
+ @router_ip = args[:router_ip] if args.key?(:router_ip)
826
860
  end
827
861
  end
828
862
 
@@ -843,6 +877,16 @@ module Google
843
877
  # @return [Fixnum]
844
878
  attr_accessor :current_size_gib
845
879
 
880
+ # An identifier for the `Volume`, generated by the backend.
881
+ # Corresponds to the JSON property `id`
882
+ # @return [String]
883
+ attr_accessor :id
884
+
885
+ # Labels as key value pairs.
886
+ # Corresponds to the JSON property `labels`
887
+ # @return [Hash<String,String>]
888
+ attr_accessor :labels
889
+
846
890
  # Output only. The resource name of this `Volume`. Resource names are schemeless
847
891
  # URIs that follow the conventions in https://cloud.google.com/apis/design/
848
892
  # resource_names. Format: `projects/`project`/locations/`location`/volumes/`
@@ -895,6 +939,8 @@ module Google
895
939
  def update!(**args)
896
940
  @auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
897
941
  @current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
942
+ @id = args[:id] if args.key?(:id)
943
+ @labels = args[:labels] if args.key?(:labels)
898
944
  @name = args[:name] if args.key?(:name)
899
945
  @remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
900
946
  @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
@@ -910,7 +956,7 @@ module Google
910
956
  class VolumeSnapshot
911
957
  include Google::Apis::Core::Hashable
912
958
 
913
- # Optional. The creation time of the storage volume snapshot.
959
+ # Output only. The creation time of the storage volume snapshot.
914
960
  # Corresponds to the JSON property `createTime`
915
961
  # @return [String]
916
962
  attr_accessor :create_time
@@ -920,6 +966,11 @@ module Google
920
966
  # @return [String]
921
967
  attr_accessor :description
922
968
 
969
+ # An identifier for the snapshot, generated by the backend.
970
+ # Corresponds to the JSON property `id`
971
+ # @return [String]
972
+ attr_accessor :id
973
+
923
974
  # Output only. The name of the storage volume snapshot.
924
975
  # Corresponds to the JSON property `name`
925
976
  # @return [String]
@@ -943,6 +994,7 @@ module Google
943
994
  def update!(**args)
944
995
  @create_time = args[:create_time] if args.key?(:create_time)
945
996
  @description = args[:description] if args.key?(:description)
997
+ @id = args[:id] if args.key?(:id)
946
998
  @name = args[:name] if args.key?(:name)
947
999
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
948
1000
  @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
@@ -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.5.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211028"
25
+ REVISION = "20220119"
26
26
  end
27
27
  end
28
28
  end
@@ -22,12 +22,6 @@ module Google
22
22
  module Apis
23
23
  module BaremetalsolutionV2
24
24
 
25
- class CancelOperationRequest
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
25
  class Empty
32
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
27
 
@@ -64,12 +58,6 @@ module Google
64
58
  include Google::Apis::Core::JsonObjectSupport
65
59
  end
66
60
 
67
- class ListOperationsResponse
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
61
  class ListSnapshotSchedulePoliciesResponse
74
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
63
 
@@ -112,6 +100,12 @@ module Google
112
100
  include Google::Apis::Core::JsonObjectSupport
113
101
  end
114
102
 
103
+ class QosPolicy
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
115
109
  class ResetInstanceRequest
116
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
111
 
@@ -154,22 +148,22 @@ module Google
154
148
  include Google::Apis::Core::JsonObjectSupport
155
149
  end
156
150
 
157
- class Volume
151
+ class VlanAttachment
158
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
153
 
160
154
  include Google::Apis::Core::JsonObjectSupport
161
155
  end
162
156
 
163
- class VolumeSnapshot
157
+ class Volume
164
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
159
 
166
160
  include Google::Apis::Core::JsonObjectSupport
167
161
  end
168
162
 
169
- class CancelOperationRequest
170
- # @private
171
- class Representation < Google::Apis::Core::JsonRepresentation
172
- end
163
+ class VolumeSnapshot
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
173
167
  end
174
168
 
175
169
  class Empty
@@ -183,6 +177,7 @@ module Google
183
177
  class Representation < Google::Apis::Core::JsonRepresentation
184
178
  property :create_time, as: 'createTime'
185
179
  property :hyperthreading_enabled, as: 'hyperthreadingEnabled'
180
+ property :id, as: 'id'
186
181
  property :interactive_serial_console_enabled, as: 'interactiveSerialConsoleEnabled'
187
182
  hash :labels, as: 'labels'
188
183
  collection :luns, as: 'luns', class: Google::Apis::BaremetalsolutionV2::Lun, decorator: Google::Apis::BaremetalsolutionV2::Lun::Representation
@@ -235,15 +230,6 @@ module Google
235
230
  end
236
231
  end
237
232
 
238
- class ListOperationsResponse
239
- # @private
240
- class Representation < Google::Apis::Core::JsonRepresentation
241
- property :next_page_token, as: 'nextPageToken'
242
- collection :operations, as: 'operations', class: Google::Apis::BaremetalsolutionV2::Operation, decorator: Google::Apis::BaremetalsolutionV2::Operation::Representation
243
-
244
- end
245
- end
246
-
247
233
  class ListSnapshotSchedulePoliciesResponse
248
234
  # @private
249
235
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -288,6 +274,7 @@ module Google
288
274
  # @private
289
275
  class Representation < Google::Apis::Core::JsonRepresentation
290
276
  property :boot_lun, as: 'bootLun'
277
+ property :id, as: 'id'
291
278
  property :multiprotocol_type, as: 'multiprotocolType'
292
279
  property :name, as: 'name'
293
280
  property :shareable, as: 'shareable'
@@ -303,10 +290,12 @@ module Google
303
290
  # @private
304
291
  class Representation < Google::Apis::Core::JsonRepresentation
305
292
  property :cidr, as: 'cidr'
293
+ property :id, as: 'id'
306
294
  property :ip_address, as: 'ipAddress'
295
+ hash :labels, as: 'labels'
307
296
  collection :mac_address, as: 'macAddress'
308
297
  property :name, as: 'name'
309
- property :network, as: 'network'
298
+ property :services_cidr, as: 'servicesCidr'
310
299
  property :state, as: 'state'
311
300
  property :type, as: 'type'
312
301
  property :vlan_id, as: 'vlanId'
@@ -327,6 +316,13 @@ module Google
327
316
  end
328
317
  end
329
318
 
319
+ class QosPolicy
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :bandwidth_gbps, as: 'bandwidthGbps'
323
+ end
324
+ end
325
+
330
326
  class ResetInstanceRequest
331
327
  # @private
332
328
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -361,10 +357,11 @@ module Google
361
357
  # @private
362
358
  class Representation < Google::Apis::Core::JsonRepresentation
363
359
  property :description, as: 'description'
360
+ property :id, as: 'id'
361
+ hash :labels, as: 'labels'
364
362
  property :name, as: 'name'
365
363
  collection :schedules, as: 'schedules', class: Google::Apis::BaremetalsolutionV2::Schedule, decorator: Google::Apis::BaremetalsolutionV2::Schedule::Representation
366
364
 
367
- collection :volumes, as: 'volumes'
368
365
  end
369
366
  end
370
367
 
@@ -380,11 +377,21 @@ module Google
380
377
  class Vrf
381
378
  # @private
382
379
  class Representation < Google::Apis::Core::JsonRepresentation
383
- property :autonomous_system_number, as: 'autonomousSystemNumber'
384
- property :juniper_alias, as: 'juniperAlias'
385
380
  property :name, as: 'name'
386
- property :route_target, :numeric_string => true, as: 'routeTarget'
381
+ property :qos_policy, as: 'qosPolicy', class: Google::Apis::BaremetalsolutionV2::QosPolicy, decorator: Google::Apis::BaremetalsolutionV2::QosPolicy::Representation
382
+
387
383
  property :state, as: 'state'
384
+ collection :vlan_attachments, as: 'vlanAttachments', class: Google::Apis::BaremetalsolutionV2::VlanAttachment, decorator: Google::Apis::BaremetalsolutionV2::VlanAttachment::Representation
385
+
386
+ end
387
+ end
388
+
389
+ class VlanAttachment
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ property :peer_ip, as: 'peerIp'
393
+ property :peer_vlan_id, :numeric_string => true, as: 'peerVlanId'
394
+ property :router_ip, as: 'routerIp'
388
395
  end
389
396
  end
390
397
 
@@ -393,6 +400,8 @@ module Google
393
400
  class Representation < Google::Apis::Core::JsonRepresentation
394
401
  property :auto_grown_size_gib, :numeric_string => true, as: 'autoGrownSizeGib'
395
402
  property :current_size_gib, :numeric_string => true, as: 'currentSizeGib'
403
+ property :id, as: 'id'
404
+ hash :labels, as: 'labels'
396
405
  property :name, as: 'name'
397
406
  property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
398
407
  property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
@@ -410,6 +419,7 @@ module Google
410
419
  class Representation < Google::Apis::Core::JsonRepresentation
411
420
  property :create_time, as: 'createTime'
412
421
  property :description, as: 'description'
422
+ property :id, as: 'id'
413
423
  property :name, as: 'name'
414
424
  property :size_bytes, :numeric_string => true, as: 'sizeBytes'
415
425
  property :storage_volume, as: 'storageVolume'
@@ -156,6 +156,8 @@ module Google
156
156
  # List servers in a given project and location.
157
157
  # @param [String] parent
158
158
  # Required. Parent value for ListInstancesRequest.
159
+ # @param [String] filter
160
+ # List filter.
159
161
  # @param [Fixnum] page_size
160
162
  # Requested page size. Server may return fewer items than requested. If
161
163
  # unspecified, the server will pick an appropriate default.
@@ -178,11 +180,12 @@ module Google
178
180
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
181
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
182
  # @raise [Google::Apis::AuthorizationError] Authorization is required
181
- def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
183
+ def list_project_location_instances(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
182
184
  command = make_simple_command(:get, 'v2/{+parent}/instances', options)
183
185
  command.response_representation = Google::Apis::BaremetalsolutionV2::ListInstancesResponse::Representation
184
186
  command.response_class = Google::Apis::BaremetalsolutionV2::ListInstancesResponse
185
187
  command.params['parent'] = parent unless parent.nil?
188
+ command.query['filter'] = filter unless filter.nil?
186
189
  command.query['pageSize'] = page_size unless page_size.nil?
187
190
  command.query['pageToken'] = page_token unless page_token.nil?
188
191
  command.query['fields'] = fields unless fields.nil?
@@ -190,6 +193,45 @@ module Google
190
193
  execute_or_queue_command(command, &block)
191
194
  end
192
195
 
196
+ # Update details of a single server.
197
+ # @param [String] name
198
+ # Output only. The resource name of this `Instance`. Resource names are
199
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
200
+ # design/resource_names. Format: `projects/`project`/locations/`location`/
201
+ # instances/`instance``
202
+ # @param [Google::Apis::BaremetalsolutionV2::Instance] instance_object
203
+ # @param [String] update_mask
204
+ # The list of fields to update. The only currently supported fields are: `labels`
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [String] quota_user
208
+ # Available to use for quota purposes for server-side applications. Can be any
209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
210
+ # @param [Google::Apis::RequestOptions] options
211
+ # Request-specific options
212
+ #
213
+ # @yield [result, err] Result & error if block supplied
214
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
215
+ # @yieldparam err [StandardError] error object if request failed
216
+ #
217
+ # @return [Google::Apis::BaremetalsolutionV2::Operation]
218
+ #
219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
222
+ def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:patch, 'v2/{+name}', options)
224
+ command.request_representation = Google::Apis::BaremetalsolutionV2::Instance::Representation
225
+ command.request_object = instance_object
226
+ command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
227
+ command.response_class = Google::Apis::BaremetalsolutionV2::Operation
228
+ command.params['name'] = name unless name.nil?
229
+ command.query['updateMask'] = update_mask unless update_mask.nil?
230
+ command.query['fields'] = fields unless fields.nil?
231
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
232
+ execute_or_queue_command(command, &block)
233
+ end
234
+
193
235
  # Perform an ungraceful, hard reset on a server. Equivalent to shutting the
194
236
  # power off and then turning it back on.
195
237
  # @param [String] name
@@ -257,6 +299,8 @@ module Google
257
299
  # List network in a given project and location.
258
300
  # @param [String] parent
259
301
  # Required. Parent value for ListNetworksRequest.
302
+ # @param [String] filter
303
+ # List filter.
260
304
  # @param [Fixnum] page_size
261
305
  # Requested page size. The server might return fewer items than requested. If
262
306
  # unspecified, server will pick an appropriate default.
@@ -279,11 +323,12 @@ module Google
279
323
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
324
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
325
  # @raise [Google::Apis::AuthorizationError] Authorization is required
282
- def list_project_location_networks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
326
+ def list_project_location_networks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
283
327
  command = make_simple_command(:get, 'v2/{+parent}/networks', options)
284
328
  command.response_representation = Google::Apis::BaremetalsolutionV2::ListNetworksResponse::Representation
285
329
  command.response_class = Google::Apis::BaremetalsolutionV2::ListNetworksResponse
286
330
  command.params['parent'] = parent unless parent.nil?
331
+ command.query['filter'] = filter unless filter.nil?
287
332
  command.query['pageSize'] = page_size unless page_size.nil?
288
333
  command.query['pageToken'] = page_token unless page_token.nil?
289
334
  command.query['fields'] = fields unless fields.nil?
@@ -291,83 +336,15 @@ module Google
291
336
  execute_or_queue_command(command, &block)
292
337
  end
293
338
 
294
- # Starts asynchronous cancellation on a long-running operation. The server makes
295
- # a best effort to cancel the operation, but success is not guaranteed. If the
296
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
297
- # Clients can use Operations.GetOperation or other methods to check whether the
298
- # cancellation succeeded or whether the operation completed despite cancellation.
299
- # On successful cancellation, the operation is not deleted; instead, it becomes
300
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
301
- # corresponding to `Code.CANCELLED`.
302
- # @param [String] name
303
- # The name of the operation resource to be cancelled.
304
- # @param [Google::Apis::BaremetalsolutionV2::CancelOperationRequest] cancel_operation_request_object
305
- # @param [String] fields
306
- # Selector specifying which fields to include in a partial response.
307
- # @param [String] quota_user
308
- # Available to use for quota purposes for server-side applications. Can be any
309
- # arbitrary string assigned to a user, but should not exceed 40 characters.
310
- # @param [Google::Apis::RequestOptions] options
311
- # Request-specific options
312
- #
313
- # @yield [result, err] Result & error if block supplied
314
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
315
- # @yieldparam err [StandardError] error object if request failed
316
- #
317
- # @return [Google::Apis::BaremetalsolutionV2::Empty]
318
- #
319
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
320
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
321
- # @raise [Google::Apis::AuthorizationError] Authorization is required
322
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
323
- command = make_simple_command(:post, 'v2/{+name}:cancel', options)
324
- command.request_representation = Google::Apis::BaremetalsolutionV2::CancelOperationRequest::Representation
325
- command.request_object = cancel_operation_request_object
326
- command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
327
- command.response_class = Google::Apis::BaremetalsolutionV2::Empty
328
- command.params['name'] = name unless name.nil?
329
- command.query['fields'] = fields unless fields.nil?
330
- command.query['quotaUser'] = quota_user unless quota_user.nil?
331
- execute_or_queue_command(command, &block)
332
- end
333
-
334
- # Deletes a long-running operation. This method indicates that the client is no
335
- # longer interested in the operation result. It does not cancel the operation.
336
- # If the server doesn't support this method, it returns `google.rpc.Code.
337
- # UNIMPLEMENTED`.
338
- # @param [String] name
339
- # The name of the operation resource to be deleted.
340
- # @param [String] fields
341
- # Selector specifying which fields to include in a partial response.
342
- # @param [String] quota_user
343
- # Available to use for quota purposes for server-side applications. Can be any
344
- # arbitrary string assigned to a user, but should not exceed 40 characters.
345
- # @param [Google::Apis::RequestOptions] options
346
- # Request-specific options
347
- #
348
- # @yield [result, err] Result & error if block supplied
349
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
350
- # @yieldparam err [StandardError] error object if request failed
351
- #
352
- # @return [Google::Apis::BaremetalsolutionV2::Empty]
353
- #
354
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356
- # @raise [Google::Apis::AuthorizationError] Authorization is required
357
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
358
- command = make_simple_command(:delete, 'v2/{+name}', options)
359
- command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
360
- command.response_class = Google::Apis::BaremetalsolutionV2::Empty
361
- command.params['name'] = name unless name.nil?
362
- command.query['fields'] = fields unless fields.nil?
363
- command.query['quotaUser'] = quota_user unless quota_user.nil?
364
- execute_or_queue_command(command, &block)
365
- end
366
-
367
- # Gets the latest state of a long-running operation. Clients can use this method
368
- # to poll the operation result at intervals as recommended by the API service.
339
+ # Update details of a single network.
369
340
  # @param [String] name
370
- # The name of the operation resource.
341
+ # Output only. The resource name of this `Network`. Resource names are
342
+ # schemeless URIs that follow the conventions in https://cloud.google.com/apis/
343
+ # design/resource_names. Format: `projects/`project`/locations/`location`/
344
+ # networks/`network``
345
+ # @param [Google::Apis::BaremetalsolutionV2::Network] network_object
346
+ # @param [String] update_mask
347
+ # The list of fields to update. The only currently supported fields are: `labels`
371
348
  # @param [String] fields
372
349
  # Selector specifying which fields to include in a partial response.
373
350
  # @param [String] quota_user
@@ -385,57 +362,14 @@ module Google
385
362
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
363
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
364
  # @raise [Google::Apis::AuthorizationError] Authorization is required
388
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
389
- command = make_simple_command(:get, 'v2/{+name}', options)
365
+ def patch_project_location_network(name, network_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
366
+ command = make_simple_command(:patch, 'v2/{+name}', options)
367
+ command.request_representation = Google::Apis::BaremetalsolutionV2::Network::Representation
368
+ command.request_object = network_object
390
369
  command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
391
370
  command.response_class = Google::Apis::BaremetalsolutionV2::Operation
392
371
  command.params['name'] = name unless name.nil?
393
- command.query['fields'] = fields unless fields.nil?
394
- command.query['quotaUser'] = quota_user unless quota_user.nil?
395
- execute_or_queue_command(command, &block)
396
- end
397
-
398
- # Lists operations that match the specified filter in the request. If the server
399
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
400
- # binding allows API services to override the binding to use different resource
401
- # name schemes, such as `users/*/operations`. To override the binding, API
402
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
403
- # service configuration. For backwards compatibility, the default name includes
404
- # the operations collection id, however overriding users must ensure the name
405
- # binding is the parent resource, without the operations collection id.
406
- # @param [String] name
407
- # The name of the operation's parent resource.
408
- # @param [String] filter
409
- # The standard list filter.
410
- # @param [Fixnum] page_size
411
- # The standard list page size.
412
- # @param [String] page_token
413
- # The standard list page token.
414
- # @param [String] fields
415
- # Selector specifying which fields to include in a partial response.
416
- # @param [String] quota_user
417
- # Available to use for quota purposes for server-side applications. Can be any
418
- # arbitrary string assigned to a user, but should not exceed 40 characters.
419
- # @param [Google::Apis::RequestOptions] options
420
- # Request-specific options
421
- #
422
- # @yield [result, err] Result & error if block supplied
423
- # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListOperationsResponse] parsed result object
424
- # @yieldparam err [StandardError] error object if request failed
425
- #
426
- # @return [Google::Apis::BaremetalsolutionV2::ListOperationsResponse]
427
- #
428
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
429
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
430
- # @raise [Google::Apis::AuthorizationError] Authorization is required
431
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
432
- command = make_simple_command(:get, 'v2/{+name}/operations', options)
433
- command.response_representation = Google::Apis::BaremetalsolutionV2::ListOperationsResponse::Representation
434
- command.response_class = Google::Apis::BaremetalsolutionV2::ListOperationsResponse
435
- command.params['name'] = name unless name.nil?
436
- command.query['filter'] = filter unless filter.nil?
437
- command.query['pageSize'] = page_size unless page_size.nil?
438
- command.query['pageToken'] = page_token unless page_token.nil?
372
+ command.query['updateMask'] = update_mask unless update_mask.nil?
439
373
  command.query['fields'] = fields unless fields.nil?
440
374
  command.query['quotaUser'] = quota_user unless quota_user.nil?
441
375
  execute_or_queue_command(command, &block)
@@ -541,6 +475,8 @@ module Google
541
475
  # List snapshot schedule policies in a given project and location.
542
476
  # @param [String] parent
543
477
  # Required. The parent project containing the Snapshot Schedule Policies.
478
+ # @param [String] filter
479
+ # List filter.
544
480
  # @param [Fixnum] page_size
545
481
  # The maximum number of items to return.
546
482
  # @param [String] page_token
@@ -562,11 +498,12 @@ module Google
562
498
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563
499
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564
500
  # @raise [Google::Apis::AuthorizationError] Authorization is required
565
- def list_project_location_snapshot_schedule_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
501
+ def list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
566
502
  command = make_simple_command(:get, 'v2/{+parent}/snapshotSchedulePolicies', options)
567
503
  command.response_representation = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse::Representation
568
504
  command.response_class = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse
569
505
  command.params['parent'] = parent unless parent.nil?
506
+ command.query['filter'] = filter unless filter.nil?
570
507
  command.query['pageSize'] = page_size unless page_size.nil?
571
508
  command.query['pageToken'] = page_token unless page_token.nil?
572
509
  command.query['fields'] = fields unless fields.nil?
@@ -643,6 +580,8 @@ module Google
643
580
  # List storage volumes in a given project and location.
644
581
  # @param [String] parent
645
582
  # Required. Parent value for ListVolumesRequest.
583
+ # @param [String] filter
584
+ # List filter.
646
585
  # @param [Fixnum] page_size
647
586
  # Requested page size. The server might return fewer items than requested. If
648
587
  # unspecified, server will pick an appropriate default.
@@ -665,11 +604,12 @@ module Google
665
604
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
666
605
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
667
606
  # @raise [Google::Apis::AuthorizationError] Authorization is required
668
- def list_project_location_volumes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
607
+ def list_project_location_volumes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
669
608
  command = make_simple_command(:get, 'v2/{+parent}/volumes', options)
670
609
  command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumesResponse::Representation
671
610
  command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumesResponse
672
611
  command.params['parent'] = parent unless parent.nil?
612
+ command.query['filter'] = filter unless filter.nil?
673
613
  command.query['pageSize'] = page_size unless page_size.nil?
674
614
  command.query['pageToken'] = page_token unless page_token.nil?
675
615
  command.query['fields'] = fields unless fields.nil?
@@ -686,7 +626,7 @@ module Google
686
626
  # @param [Google::Apis::BaremetalsolutionV2::Volume] volume_object
687
627
  # @param [String] update_mask
688
628
  # The list of fields to update. The only currently supported fields are: `
689
- # snapshot_auto_delete_behavior` `snapshot_schedule_policy_name`
629
+ # snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels'
690
630
  # @param [String] fields
691
631
  # Selector specifying which fields to include in a partial response.
692
632
  # @param [String] quota_user
@@ -717,7 +657,7 @@ module Google
717
657
  execute_or_queue_command(command, &block)
718
658
  end
719
659
 
720
- # Get details of a single storage lun.
660
+ # Get details of a single storage logical unit number(LUN).
721
661
  # @param [String] name
722
662
  # Required. Name of the resource.
723
663
  # @param [String] fields
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.5.0
4
+ version: 0.6.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: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-02-14 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.5.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.6.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Bare Metal Solution API V2