google-apis-baremetalsolution_v2 0.7.0 → 0.10.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 +12 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +95 -2
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +2 -2
- data/lib/google/apis/baremetalsolution_v2/representations.rb +14 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +107 -1
- 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: 9ff7c6a28e457e4054b2e29a430fe673e0508be9a0eb4847d05a396e2d0dd045
|
4
|
+
data.tar.gz: 2ce33bac77e72492cb7fa4ddfbfd85ec704f6d3896c07f9580c49abc8c4270ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77ee9d83485c9aa0cba163192a47820c478f012cb566063b375dcaf726aa6765a47e3dca38ddefa5931c65372a7c47e58b0d5a9b1d659f8c4c12e8b75ebf79e4
|
7
|
+
data.tar.gz: b9270b61f183a370e8bff41209d71fd2534a88fc6653620767fe8b05f8986bf75594c62c0e8c893e521fc5cfc1b9c73ffc0fe3ac462e12ef06e0d65b48853309
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-baremetalsolution_v2
|
2
2
|
|
3
|
+
### v0.10.0 (2022-03-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220322
|
6
|
+
|
7
|
+
### v0.9.0 (2022-03-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220314
|
10
|
+
|
11
|
+
### v0.8.0 (2022-03-13)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220307
|
14
|
+
|
3
15
|
### v0.7.0 (2022-02-14)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220209
|
@@ -85,8 +85,7 @@ module Google
|
|
85
85
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
86
86
|
# messages in your APIs. A typical example is to use it as the request or the
|
87
87
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
88
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
89
|
-
# `Empty` is empty JSON object ````.
|
88
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
90
89
|
class Empty
|
91
90
|
include Google::Apis::Core::Hashable
|
92
91
|
|
@@ -190,6 +189,12 @@ module Google
|
|
190
189
|
class InstanceConfig
|
191
190
|
include Google::Apis::Core::Hashable
|
192
191
|
|
192
|
+
# If true networks can be from different projects of the same vendor account.
|
193
|
+
# Corresponds to the JSON property `accountNetworksEnabled`
|
194
|
+
# @return [Boolean]
|
195
|
+
attr_accessor :account_networks_enabled
|
196
|
+
alias_method :account_networks_enabled?, :account_networks_enabled
|
197
|
+
|
193
198
|
# A network.
|
194
199
|
# Corresponds to the JSON property `clientNetwork`
|
195
200
|
# @return [Google::Apis::BaremetalsolutionV2::NetworkAddress]
|
@@ -241,6 +246,7 @@ module Google
|
|
241
246
|
|
242
247
|
# Update properties of this object
|
243
248
|
def update!(**args)
|
249
|
+
@account_networks_enabled = args[:account_networks_enabled] if args.key?(:account_networks_enabled)
|
244
250
|
@client_network = args[:client_network] if args.key?(:client_network)
|
245
251
|
@hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading)
|
246
252
|
@id = args[:id] if args.key?(:id)
|
@@ -872,6 +878,12 @@ module Google
|
|
872
878
|
# @return [String]
|
873
879
|
attr_accessor :cidr
|
874
880
|
|
881
|
+
# The GCP service of the network. Available gcp_service are in https://cloud.
|
882
|
+
# google.com/bare-metal/docs/bms-planning.
|
883
|
+
# Corresponds to the JSON property `gcpService`
|
884
|
+
# @return [String]
|
885
|
+
attr_accessor :gcp_service
|
886
|
+
|
875
887
|
# A transient unique identifier to identify a volume within an
|
876
888
|
# ProvisioningConfig request.
|
877
889
|
# Corresponds to the JSON property `id`
|
@@ -905,6 +917,12 @@ module Google
|
|
905
917
|
# @return [Array<Google::Apis::BaremetalsolutionV2::IntakeVlanAttachment>]
|
906
918
|
attr_accessor :vlan_attachments
|
907
919
|
|
920
|
+
# Whether the VLAN attachment pair is located in the same project.
|
921
|
+
# Corresponds to the JSON property `vlanSameProject`
|
922
|
+
# @return [Boolean]
|
923
|
+
attr_accessor :vlan_same_project
|
924
|
+
alias_method :vlan_same_project?, :vlan_same_project
|
925
|
+
|
908
926
|
def initialize(**args)
|
909
927
|
update!(**args)
|
910
928
|
end
|
@@ -913,12 +931,14 @@ module Google
|
|
913
931
|
def update!(**args)
|
914
932
|
@bandwidth = args[:bandwidth] if args.key?(:bandwidth)
|
915
933
|
@cidr = args[:cidr] if args.key?(:cidr)
|
934
|
+
@gcp_service = args[:gcp_service] if args.key?(:gcp_service)
|
916
935
|
@id = args[:id] if args.key?(:id)
|
917
936
|
@name = args[:name] if args.key?(:name)
|
918
937
|
@service_cidr = args[:service_cidr] if args.key?(:service_cidr)
|
919
938
|
@type = args[:type] if args.key?(:type)
|
920
939
|
@user_note = args[:user_note] if args.key?(:user_note)
|
921
940
|
@vlan_attachments = args[:vlan_attachments] if args.key?(:vlan_attachments)
|
941
|
+
@vlan_same_project = args[:vlan_same_project] if args.key?(:vlan_same_project)
|
922
942
|
end
|
923
943
|
end
|
924
944
|
|
@@ -1123,6 +1143,17 @@ module Google
|
|
1123
1143
|
class ProvisioningConfig
|
1124
1144
|
include Google::Apis::Core::Hashable
|
1125
1145
|
|
1146
|
+
# Output only. URI to Cloud Console UI view of this provisioning config.
|
1147
|
+
# Corresponds to the JSON property `cloudConsoleUri`
|
1148
|
+
# @return [String]
|
1149
|
+
attr_accessor :cloud_console_uri
|
1150
|
+
|
1151
|
+
# Email provided to send a confirmation with provisioning config to. Deprecated
|
1152
|
+
# in favour of email field in request messages.
|
1153
|
+
# Corresponds to the JSON property `email`
|
1154
|
+
# @return [String]
|
1155
|
+
attr_accessor :email
|
1156
|
+
|
1126
1157
|
# A service account to enable customers to access instance credentials upon
|
1127
1158
|
# handover.
|
1128
1159
|
# Corresponds to the JSON property `handoverServiceAccount`
|
@@ -1134,6 +1165,12 @@ module Google
|
|
1134
1165
|
# @return [Array<Google::Apis::BaremetalsolutionV2::InstanceConfig>]
|
1135
1166
|
attr_accessor :instances
|
1136
1167
|
|
1168
|
+
# Optional. Location name of this ProvisioningConfig. It is optional only for
|
1169
|
+
# Intake UI transition period.
|
1170
|
+
# Corresponds to the JSON property `location`
|
1171
|
+
# @return [String]
|
1172
|
+
attr_accessor :location
|
1173
|
+
|
1137
1174
|
# Output only. The name of the provisioning config.
|
1138
1175
|
# Corresponds to the JSON property `name`
|
1139
1176
|
# @return [String]
|
@@ -1144,11 +1181,21 @@ module Google
|
|
1144
1181
|
# @return [Array<Google::Apis::BaremetalsolutionV2::NetworkConfig>]
|
1145
1182
|
attr_accessor :networks
|
1146
1183
|
|
1184
|
+
# Output only. State of ProvisioningConfig.
|
1185
|
+
# Corresponds to the JSON property `state`
|
1186
|
+
# @return [String]
|
1187
|
+
attr_accessor :state
|
1188
|
+
|
1147
1189
|
# A generated buganizer id to track provisioning request.
|
1148
1190
|
# Corresponds to the JSON property `ticketId`
|
1149
1191
|
# @return [String]
|
1150
1192
|
attr_accessor :ticket_id
|
1151
1193
|
|
1194
|
+
# Output only. Last update timestamp.
|
1195
|
+
# Corresponds to the JSON property `updateTime`
|
1196
|
+
# @return [String]
|
1197
|
+
attr_accessor :update_time
|
1198
|
+
|
1152
1199
|
# Volumes to be created.
|
1153
1200
|
# Corresponds to the JSON property `volumes`
|
1154
1201
|
# @return [Array<Google::Apis::BaremetalsolutionV2::VolumeConfig>]
|
@@ -1160,11 +1207,16 @@ module Google
|
|
1160
1207
|
|
1161
1208
|
# Update properties of this object
|
1162
1209
|
def update!(**args)
|
1210
|
+
@cloud_console_uri = args[:cloud_console_uri] if args.key?(:cloud_console_uri)
|
1211
|
+
@email = args[:email] if args.key?(:email)
|
1163
1212
|
@handover_service_account = args[:handover_service_account] if args.key?(:handover_service_account)
|
1164
1213
|
@instances = args[:instances] if args.key?(:instances)
|
1214
|
+
@location = args[:location] if args.key?(:location)
|
1165
1215
|
@name = args[:name] if args.key?(:name)
|
1166
1216
|
@networks = args[:networks] if args.key?(:networks)
|
1217
|
+
@state = args[:state] if args.key?(:state)
|
1167
1218
|
@ticket_id = args[:ticket_id] if args.key?(:ticket_id)
|
1219
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1168
1220
|
@volumes = args[:volumes] if args.key?(:volumes)
|
1169
1221
|
end
|
1170
1222
|
end
|
@@ -1203,6 +1255,21 @@ module Google
|
|
1203
1255
|
# @return [String]
|
1204
1256
|
attr_accessor :name
|
1205
1257
|
|
1258
|
+
# Network bandwidth, Gbps
|
1259
|
+
# Corresponds to the JSON property `networkBandwidth`
|
1260
|
+
# @return [Fixnum]
|
1261
|
+
attr_accessor :network_bandwidth
|
1262
|
+
|
1263
|
+
# Server count.
|
1264
|
+
# Corresponds to the JSON property `serverCount`
|
1265
|
+
# @return [Fixnum]
|
1266
|
+
attr_accessor :server_count
|
1267
|
+
|
1268
|
+
# Storage size (GB).
|
1269
|
+
# Corresponds to the JSON property `storageGib`
|
1270
|
+
# @return [Fixnum]
|
1271
|
+
attr_accessor :storage_gib
|
1272
|
+
|
1206
1273
|
def initialize(**args)
|
1207
1274
|
update!(**args)
|
1208
1275
|
end
|
@@ -1215,6 +1282,9 @@ module Google
|
|
1215
1282
|
@instance_quota = args[:instance_quota] if args.key?(:instance_quota)
|
1216
1283
|
@location = args[:location] if args.key?(:location)
|
1217
1284
|
@name = args[:name] if args.key?(:name)
|
1285
|
+
@network_bandwidth = args[:network_bandwidth] if args.key?(:network_bandwidth)
|
1286
|
+
@server_count = args[:server_count] if args.key?(:server_count)
|
1287
|
+
@storage_gib = args[:storage_gib] if args.key?(:storage_gib)
|
1218
1288
|
end
|
1219
1289
|
end
|
1220
1290
|
|
@@ -1303,6 +1373,14 @@ module Google
|
|
1303
1373
|
# @return [Fixnum]
|
1304
1374
|
attr_accessor :reserved_space_gib
|
1305
1375
|
|
1376
|
+
# Percent of the total Volume size reserved for snapshot copies. Enabling
|
1377
|
+
# snapshots requires reserving 20% or more of the storage volume space for
|
1378
|
+
# snapshots. Maximum reserved space for snapshots is 40%. Setting this field
|
1379
|
+
# will effectively set snapshot_enabled to true.
|
1380
|
+
# Corresponds to the JSON property `reservedSpacePercent`
|
1381
|
+
# @return [Fixnum]
|
1382
|
+
attr_accessor :reserved_space_percent
|
1383
|
+
|
1306
1384
|
# The amount, in GiB, of available space in this storage volume's reserved
|
1307
1385
|
# snapshot space.
|
1308
1386
|
# Corresponds to the JSON property `reservedSpaceRemainingGib`
|
@@ -1323,6 +1401,7 @@ module Google
|
|
1323
1401
|
# Update properties of this object
|
1324
1402
|
def update!(**args)
|
1325
1403
|
@reserved_space_gib = args[:reserved_space_gib] if args.key?(:reserved_space_gib)
|
1404
|
+
@reserved_space_percent = args[:reserved_space_percent] if args.key?(:reserved_space_percent)
|
1326
1405
|
@reserved_space_remaining_gib = args[:reserved_space_remaining_gib] if args.key?(:reserved_space_remaining_gib)
|
1327
1406
|
@reserved_space_used_percent = args[:reserved_space_used_percent] if args.key?(:reserved_space_used_percent)
|
1328
1407
|
end
|
@@ -1593,6 +1672,12 @@ module Google
|
|
1593
1672
|
# @return [String]
|
1594
1673
|
attr_accessor :snapshot_auto_delete_behavior
|
1595
1674
|
|
1675
|
+
# Whether snapshots are enabled.
|
1676
|
+
# Corresponds to the JSON property `snapshotEnabled`
|
1677
|
+
# @return [Boolean]
|
1678
|
+
attr_accessor :snapshot_enabled
|
1679
|
+
alias_method :snapshot_enabled?, :snapshot_enabled
|
1680
|
+
|
1596
1681
|
# Details about snapshot space reservation and usage on the storage volume.
|
1597
1682
|
# Corresponds to the JSON property `snapshotReservationDetail`
|
1598
1683
|
# @return [Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail]
|
@@ -1627,6 +1712,7 @@ module Google
|
|
1627
1712
|
@remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
|
1628
1713
|
@requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
|
1629
1714
|
@snapshot_auto_delete_behavior = args[:snapshot_auto_delete_behavior] if args.key?(:snapshot_auto_delete_behavior)
|
1715
|
+
@snapshot_enabled = args[:snapshot_enabled] if args.key?(:snapshot_enabled)
|
1630
1716
|
@snapshot_reservation_detail = args[:snapshot_reservation_detail] if args.key?(:snapshot_reservation_detail)
|
1631
1717
|
@snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
|
1632
1718
|
@state = args[:state] if args.key?(:state)
|
@@ -1638,6 +1724,12 @@ module Google
|
|
1638
1724
|
class VolumeConfig
|
1639
1725
|
include Google::Apis::Core::Hashable
|
1640
1726
|
|
1727
|
+
# The GCP service of the storage volume. Available gcp_service are in https://
|
1728
|
+
# cloud.google.com/bare-metal/docs/bms-planning.
|
1729
|
+
# Corresponds to the JSON property `gcpService`
|
1730
|
+
# @return [String]
|
1731
|
+
attr_accessor :gcp_service
|
1732
|
+
|
1641
1733
|
# A transient unique identifier to identify a volume within an
|
1642
1734
|
# ProvisioningConfig request.
|
1643
1735
|
# Corresponds to the JSON property `id`
|
@@ -1697,6 +1789,7 @@ module Google
|
|
1697
1789
|
|
1698
1790
|
# Update properties of this object
|
1699
1791
|
def update!(**args)
|
1792
|
+
@gcp_service = args[:gcp_service] if args.key?(:gcp_service)
|
1700
1793
|
@id = args[:id] if args.key?(:id)
|
1701
1794
|
@lun_ranges = args[:lun_ranges] if args.key?(:lun_ranges)
|
1702
1795
|
@machine_ids = args[:machine_ids] if args.key?(:machine_ids)
|
@@ -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.10.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 = "20220322"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -321,6 +321,7 @@ module Google
|
|
321
321
|
class InstanceConfig
|
322
322
|
# @private
|
323
323
|
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
+
property :account_networks_enabled, as: 'accountNetworksEnabled'
|
324
325
|
property :client_network, as: 'clientNetwork', class: Google::Apis::BaremetalsolutionV2::NetworkAddress, decorator: Google::Apis::BaremetalsolutionV2::NetworkAddress::Representation
|
325
326
|
|
326
327
|
property :hyperthreading, as: 'hyperthreading'
|
@@ -514,6 +515,7 @@ module Google
|
|
514
515
|
class Representation < Google::Apis::Core::JsonRepresentation
|
515
516
|
property :bandwidth, as: 'bandwidth'
|
516
517
|
property :cidr, as: 'cidr'
|
518
|
+
property :gcp_service, as: 'gcpService'
|
517
519
|
property :id, as: 'id'
|
518
520
|
property :name, as: 'name'
|
519
521
|
property :service_cidr, as: 'serviceCidr'
|
@@ -521,6 +523,7 @@ module Google
|
|
521
523
|
property :user_note, as: 'userNote'
|
522
524
|
collection :vlan_attachments, as: 'vlanAttachments', class: Google::Apis::BaremetalsolutionV2::IntakeVlanAttachment, decorator: Google::Apis::BaremetalsolutionV2::IntakeVlanAttachment::Representation
|
523
525
|
|
526
|
+
property :vlan_same_project, as: 'vlanSameProject'
|
524
527
|
end
|
525
528
|
end
|
526
529
|
|
@@ -574,13 +577,18 @@ module Google
|
|
574
577
|
class ProvisioningConfig
|
575
578
|
# @private
|
576
579
|
class Representation < Google::Apis::Core::JsonRepresentation
|
580
|
+
property :cloud_console_uri, as: 'cloudConsoleUri'
|
581
|
+
property :email, as: 'email'
|
577
582
|
property :handover_service_account, as: 'handoverServiceAccount'
|
578
583
|
collection :instances, as: 'instances', class: Google::Apis::BaremetalsolutionV2::InstanceConfig, decorator: Google::Apis::BaremetalsolutionV2::InstanceConfig::Representation
|
579
584
|
|
585
|
+
property :location, as: 'location'
|
580
586
|
property :name, as: 'name'
|
581
587
|
collection :networks, as: 'networks', class: Google::Apis::BaremetalsolutionV2::NetworkConfig, decorator: Google::Apis::BaremetalsolutionV2::NetworkConfig::Representation
|
582
588
|
|
589
|
+
property :state, as: 'state'
|
583
590
|
property :ticket_id, as: 'ticketId'
|
591
|
+
property :update_time, as: 'updateTime'
|
584
592
|
collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::VolumeConfig, decorator: Google::Apis::BaremetalsolutionV2::VolumeConfig::Representation
|
585
593
|
|
586
594
|
end
|
@@ -596,6 +604,9 @@ module Google
|
|
596
604
|
|
597
605
|
property :location, as: 'location'
|
598
606
|
property :name, as: 'name'
|
607
|
+
property :network_bandwidth, :numeric_string => true, as: 'networkBandwidth'
|
608
|
+
property :server_count, :numeric_string => true, as: 'serverCount'
|
609
|
+
property :storage_gib, :numeric_string => true, as: 'storageGib'
|
599
610
|
end
|
600
611
|
end
|
601
612
|
|
@@ -631,6 +642,7 @@ module Google
|
|
631
642
|
# @private
|
632
643
|
class Representation < Google::Apis::Core::JsonRepresentation
|
633
644
|
property :reserved_space_gib, :numeric_string => true, as: 'reservedSpaceGib'
|
645
|
+
property :reserved_space_percent, as: 'reservedSpacePercent'
|
634
646
|
property :reserved_space_remaining_gib, :numeric_string => true, as: 'reservedSpaceRemainingGib'
|
635
647
|
property :reserved_space_used_percent, as: 'reservedSpaceUsedPercent'
|
636
648
|
end
|
@@ -713,6 +725,7 @@ module Google
|
|
713
725
|
property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
|
714
726
|
property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
|
715
727
|
property :snapshot_auto_delete_behavior, as: 'snapshotAutoDeleteBehavior'
|
728
|
+
property :snapshot_enabled, as: 'snapshotEnabled'
|
716
729
|
property :snapshot_reservation_detail, as: 'snapshotReservationDetail', class: Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail, decorator: Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail::Representation
|
717
730
|
|
718
731
|
property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy'
|
@@ -724,6 +737,7 @@ module Google
|
|
724
737
|
class VolumeConfig
|
725
738
|
# @private
|
726
739
|
class Representation < Google::Apis::Core::JsonRepresentation
|
740
|
+
property :gcp_service, as: 'gcpService'
|
727
741
|
property :id, as: 'id'
|
728
742
|
collection :lun_ranges, as: 'lunRanges', class: Google::Apis::BaremetalsolutionV2::LunRange, decorator: Google::Apis::BaremetalsolutionV2::LunRange::Representation
|
729
743
|
|
@@ -545,6 +545,111 @@ module Google
|
|
545
545
|
execute_or_queue_command(command, &block)
|
546
546
|
end
|
547
547
|
|
548
|
+
# Create new ProvisioningConfig.
|
549
|
+
# @param [String] parent
|
550
|
+
# Required. The parent project and location containing the ProvisioningConfig.
|
551
|
+
# @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
|
552
|
+
# @param [String] email
|
553
|
+
# Optional. Email provided to send a confirmation with provisioning config to.
|
554
|
+
# @param [String] fields
|
555
|
+
# Selector specifying which fields to include in a partial response.
|
556
|
+
# @param [String] quota_user
|
557
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
558
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
559
|
+
# @param [Google::Apis::RequestOptions] options
|
560
|
+
# Request-specific options
|
561
|
+
#
|
562
|
+
# @yield [result, err] Result & error if block supplied
|
563
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
|
564
|
+
# @yieldparam err [StandardError] error object if request failed
|
565
|
+
#
|
566
|
+
# @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
|
567
|
+
#
|
568
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
569
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
570
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
571
|
+
def create_project_location_provisioning_config(parent, provisioning_config_object = nil, email: nil, fields: nil, quota_user: nil, options: nil, &block)
|
572
|
+
command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs', options)
|
573
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
574
|
+
command.request_object = provisioning_config_object
|
575
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
576
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
|
577
|
+
command.params['parent'] = parent unless parent.nil?
|
578
|
+
command.query['email'] = email unless email.nil?
|
579
|
+
command.query['fields'] = fields unless fields.nil?
|
580
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
581
|
+
execute_or_queue_command(command, &block)
|
582
|
+
end
|
583
|
+
|
584
|
+
# Get ProvisioningConfig by name.
|
585
|
+
# @param [String] name
|
586
|
+
# Required. Name of the ProvisioningConfig.
|
587
|
+
# @param [String] fields
|
588
|
+
# Selector specifying which fields to include in a partial response.
|
589
|
+
# @param [String] quota_user
|
590
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
591
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
592
|
+
# @param [Google::Apis::RequestOptions] options
|
593
|
+
# Request-specific options
|
594
|
+
#
|
595
|
+
# @yield [result, err] Result & error if block supplied
|
596
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
|
597
|
+
# @yieldparam err [StandardError] error object if request failed
|
598
|
+
#
|
599
|
+
# @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
|
600
|
+
#
|
601
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
602
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
603
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
604
|
+
def get_project_location_provisioning_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
605
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
606
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
607
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
|
608
|
+
command.params['name'] = name unless name.nil?
|
609
|
+
command.query['fields'] = fields unless fields.nil?
|
610
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
611
|
+
execute_or_queue_command(command, &block)
|
612
|
+
end
|
613
|
+
|
614
|
+
# Update existing ProvisioningConfig.
|
615
|
+
# @param [String] name
|
616
|
+
# Output only. The name of the provisioning config.
|
617
|
+
# @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
|
618
|
+
# @param [String] email
|
619
|
+
# Optional. Email provided to send a confirmation with provisioning config to.
|
620
|
+
# @param [String] update_mask
|
621
|
+
# Required. The list of fields to update.
|
622
|
+
# @param [String] fields
|
623
|
+
# Selector specifying which fields to include in a partial response.
|
624
|
+
# @param [String] quota_user
|
625
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
626
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
627
|
+
# @param [Google::Apis::RequestOptions] options
|
628
|
+
# Request-specific options
|
629
|
+
#
|
630
|
+
# @yield [result, err] Result & error if block supplied
|
631
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
|
632
|
+
# @yieldparam err [StandardError] error object if request failed
|
633
|
+
#
|
634
|
+
# @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
|
635
|
+
#
|
636
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
637
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
638
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
639
|
+
def patch_project_location_provisioning_config(name, provisioning_config_object = nil, email: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
640
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
641
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
642
|
+
command.request_object = provisioning_config_object
|
643
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
644
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
|
645
|
+
command.params['name'] = name unless name.nil?
|
646
|
+
command.query['email'] = email unless email.nil?
|
647
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
648
|
+
command.query['fields'] = fields unless fields.nil?
|
649
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
650
|
+
execute_or_queue_command(command, &block)
|
651
|
+
end
|
652
|
+
|
548
653
|
# Submit a provisiong configuration for a given project.
|
549
654
|
# @param [String] parent
|
550
655
|
# Required. The parent project and location containing the ProvisioningConfig.
|
@@ -869,7 +974,8 @@ module Google
|
|
869
974
|
# @param [String] update_mask
|
870
975
|
# The list of fields to update. The only currently supported fields are: `
|
871
976
|
# snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' '
|
872
|
-
# requested_size_gib'
|
977
|
+
# requested_size_gib' 'snapshot_enabled' 'snapshot_reservation_detail.
|
978
|
+
# reserved_space_percent'
|
873
979
|
# @param [String] fields
|
874
980
|
# Selector specifying which fields to include in a partial response.
|
875
981
|
# @param [String] quota_user
|
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.10.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-03-28 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.10.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: []
|