google-apis-baremetalsolution_v2 0.21.0 → 0.22.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 +81 -4
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +2 -2
- data/lib/google/apis/baremetalsolution_v2/representations.rb +24 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +65 -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: e0ddd42936833e67a320f935c74a7931ca3c7fbb69baa2ab42fe46d2175e6f09
|
4
|
+
data.tar.gz: 3a5a040a9ae9ad2d4a163ff136ec80ae6dd5c778dfa9fa2703041fd232ad374c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e03d203d9bc426d3bf3936236391b2e36ec3b9ce4cafbe717e68fdfeff1c3d9310bbf31c2bafd2cf6ad4db2a31e033bdda1c8d5997efc62dc335bc687f5b4f
|
7
|
+
data.tar.gz: 27cf77e1afe39bc26a3ac3a33757ab153a578a795c5aedb7caf3790aa1168bf45b254f9b4cd5daeed4734fa35f4c91f34d37b3eb6bfdad20316be3f3bd89103b
|
data/CHANGELOG.md
CHANGED
@@ -68,7 +68,8 @@ module Google
|
|
68
68
|
attr_accessor :no_root_squash
|
69
69
|
alias_method :no_root_squash?, :no_root_squash
|
70
70
|
|
71
|
-
# The IP address of the share on this network.
|
71
|
+
# Output only. The IP address of the share on this network. Assigned
|
72
|
+
# automatically during provisioning based on the network's services_cidr.
|
72
73
|
# Corresponds to the JSON property `shareIp`
|
73
74
|
# @return [String]
|
74
75
|
attr_accessor :share_ip
|
@@ -938,6 +939,12 @@ module Google
|
|
938
939
|
# @return [String]
|
939
940
|
attr_accessor :ip_address
|
940
941
|
|
942
|
+
# Whether network uses standard frames or jumbo ones.
|
943
|
+
# Corresponds to the JSON property `jumboFramesEnabled`
|
944
|
+
# @return [Boolean]
|
945
|
+
attr_accessor :jumbo_frames_enabled
|
946
|
+
alias_method :jumbo_frames_enabled?, :jumbo_frames_enabled
|
947
|
+
|
941
948
|
# Labels as key value pairs.
|
942
949
|
# Corresponds to the JSON property `labels`
|
943
950
|
# @return [Hash<String,String>]
|
@@ -948,6 +955,11 @@ module Google
|
|
948
955
|
# @return [Array<String>]
|
949
956
|
attr_accessor :mac_address
|
950
957
|
|
958
|
+
# Input only. List of mount points to attach the network to.
|
959
|
+
# Corresponds to the JSON property `mountPoints`
|
960
|
+
# @return [Array<Google::Apis::BaremetalsolutionV2::NetworkMountPoint>]
|
961
|
+
attr_accessor :mount_points
|
962
|
+
|
951
963
|
# Output only. The resource name of this `Network`. Resource names are
|
952
964
|
# schemeless URIs that follow the conventions in https://cloud.google.com/apis/
|
953
965
|
# design/resource_names. Format: `projects/`project`/locations/`location`/
|
@@ -956,6 +968,11 @@ module Google
|
|
956
968
|
# @return [String]
|
957
969
|
attr_accessor :name
|
958
970
|
|
971
|
+
# Output only. Pod name.
|
972
|
+
# Corresponds to the JSON property `pod`
|
973
|
+
# @return [String]
|
974
|
+
attr_accessor :pod
|
975
|
+
|
959
976
|
# List of IP address reservations in this network. When updating this field, an
|
960
977
|
# error will be generated if a reservation conflicts with an IP address already
|
961
978
|
# allocated to a physical server.
|
@@ -997,9 +1014,12 @@ module Google
|
|
997
1014
|
@cidr = args[:cidr] if args.key?(:cidr)
|
998
1015
|
@id = args[:id] if args.key?(:id)
|
999
1016
|
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
1017
|
+
@jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled)
|
1000
1018
|
@labels = args[:labels] if args.key?(:labels)
|
1001
1019
|
@mac_address = args[:mac_address] if args.key?(:mac_address)
|
1020
|
+
@mount_points = args[:mount_points] if args.key?(:mount_points)
|
1002
1021
|
@name = args[:name] if args.key?(:name)
|
1022
|
+
@pod = args[:pod] if args.key?(:pod)
|
1003
1023
|
@reservations = args[:reservations] if args.key?(:reservations)
|
1004
1024
|
@services_cidr = args[:services_cidr] if args.key?(:services_cidr)
|
1005
1025
|
@state = args[:state] if args.key?(:state)
|
@@ -1159,6 +1179,44 @@ module Google
|
|
1159
1179
|
end
|
1160
1180
|
end
|
1161
1181
|
|
1182
|
+
# Mount point for a network.
|
1183
|
+
class NetworkMountPoint
|
1184
|
+
include Google::Apis::Core::Hashable
|
1185
|
+
|
1186
|
+
# Network should be a default gateway.
|
1187
|
+
# Corresponds to the JSON property `defaultGateway`
|
1188
|
+
# @return [Boolean]
|
1189
|
+
attr_accessor :default_gateway
|
1190
|
+
alias_method :default_gateway?, :default_gateway
|
1191
|
+
|
1192
|
+
# Instance to attach network to.
|
1193
|
+
# Corresponds to the JSON property `instance`
|
1194
|
+
# @return [String]
|
1195
|
+
attr_accessor :instance
|
1196
|
+
|
1197
|
+
# Ip address of the server.
|
1198
|
+
# Corresponds to the JSON property `ipAddress`
|
1199
|
+
# @return [String]
|
1200
|
+
attr_accessor :ip_address
|
1201
|
+
|
1202
|
+
# Logical interface to detach from.
|
1203
|
+
# Corresponds to the JSON property `logicalInterface`
|
1204
|
+
# @return [String]
|
1205
|
+
attr_accessor :logical_interface
|
1206
|
+
|
1207
|
+
def initialize(**args)
|
1208
|
+
update!(**args)
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
# Update properties of this object
|
1212
|
+
def update!(**args)
|
1213
|
+
@default_gateway = args[:default_gateway] if args.key?(:default_gateway)
|
1214
|
+
@instance = args[:instance] if args.key?(:instance)
|
1215
|
+
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
1216
|
+
@logical_interface = args[:logical_interface] if args.key?(:logical_interface)
|
1217
|
+
end
|
1218
|
+
end
|
1219
|
+
|
1162
1220
|
# Network with all used IP addresses.
|
1163
1221
|
class NetworkUsage
|
1164
1222
|
include Google::Apis::Core::Hashable
|
@@ -1265,7 +1323,7 @@ module Google
|
|
1265
1323
|
# @return [Hash<String,String>]
|
1266
1324
|
attr_accessor :labels
|
1267
1325
|
|
1268
|
-
#
|
1326
|
+
# Immutable. The name of the NFS share.
|
1269
1327
|
# Corresponds to the JSON property `name`
|
1270
1328
|
# @return [String]
|
1271
1329
|
attr_accessor :name
|
@@ -1281,12 +1339,18 @@ module Google
|
|
1281
1339
|
# @return [Fixnum]
|
1282
1340
|
attr_accessor :requested_size_gib
|
1283
1341
|
|
1284
|
-
# The state of the NFS share.
|
1342
|
+
# Output only. The state of the NFS share.
|
1285
1343
|
# Corresponds to the JSON property `state`
|
1286
1344
|
# @return [String]
|
1287
1345
|
attr_accessor :state
|
1288
1346
|
|
1289
|
-
# The
|
1347
|
+
# Immutable. The storage type of the underlying volume.
|
1348
|
+
# Corresponds to the JSON property `storageType`
|
1349
|
+
# @return [String]
|
1350
|
+
attr_accessor :storage_type
|
1351
|
+
|
1352
|
+
# Output only. The underlying volume of the share. Created automatically during
|
1353
|
+
# provisioning.
|
1290
1354
|
# Corresponds to the JSON property `volume`
|
1291
1355
|
# @return [String]
|
1292
1356
|
attr_accessor :volume
|
@@ -1304,6 +1368,7 @@ module Google
|
|
1304
1368
|
@nfs_share_id = args[:nfs_share_id] if args.key?(:nfs_share_id)
|
1305
1369
|
@requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
|
1306
1370
|
@state = args[:state] if args.key?(:state)
|
1371
|
+
@storage_type = args[:storage_type] if args.key?(:storage_type)
|
1307
1372
|
@volume = args[:volume] if args.key?(:volume)
|
1308
1373
|
end
|
1309
1374
|
end
|
@@ -1913,6 +1978,11 @@ module Google
|
|
1913
1978
|
class VlanAttachment
|
1914
1979
|
include Google::Apis::Core::Hashable
|
1915
1980
|
|
1981
|
+
# Input only. Pairing key.
|
1982
|
+
# Corresponds to the JSON property `pairingKey`
|
1983
|
+
# @return [String]
|
1984
|
+
attr_accessor :pairing_key
|
1985
|
+
|
1916
1986
|
# The peer IP of the attachment.
|
1917
1987
|
# Corresponds to the JSON property `peerIp`
|
1918
1988
|
# @return [String]
|
@@ -1923,6 +1993,11 @@ module Google
|
|
1923
1993
|
# @return [Fixnum]
|
1924
1994
|
attr_accessor :peer_vlan_id
|
1925
1995
|
|
1996
|
+
# QOS policy parameters.
|
1997
|
+
# Corresponds to the JSON property `qosPolicy`
|
1998
|
+
# @return [Google::Apis::BaremetalsolutionV2::QosPolicy]
|
1999
|
+
attr_accessor :qos_policy
|
2000
|
+
|
1926
2001
|
# The router IP of the attachment.
|
1927
2002
|
# Corresponds to the JSON property `routerIp`
|
1928
2003
|
# @return [String]
|
@@ -1934,8 +2009,10 @@ module Google
|
|
1934
2009
|
|
1935
2010
|
# Update properties of this object
|
1936
2011
|
def update!(**args)
|
2012
|
+
@pairing_key = args[:pairing_key] if args.key?(:pairing_key)
|
1937
2013
|
@peer_ip = args[:peer_ip] if args.key?(:peer_ip)
|
1938
2014
|
@peer_vlan_id = args[:peer_vlan_id] if args.key?(:peer_vlan_id)
|
2015
|
+
@qos_policy = args[:qos_policy] if args.key?(:qos_policy)
|
1939
2016
|
@router_ip = args[:router_ip] if args.key?(:router_ip)
|
1940
2017
|
end
|
1941
2018
|
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.22.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220822"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -172,6 +172,12 @@ module Google
|
|
172
172
|
include Google::Apis::Core::JsonObjectSupport
|
173
173
|
end
|
174
174
|
|
175
|
+
class NetworkMountPoint
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
175
181
|
class NetworkUsage
|
176
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
183
|
|
@@ -548,9 +554,13 @@ module Google
|
|
548
554
|
property :cidr, as: 'cidr'
|
549
555
|
property :id, as: 'id'
|
550
556
|
property :ip_address, as: 'ipAddress'
|
557
|
+
property :jumbo_frames_enabled, as: 'jumboFramesEnabled'
|
551
558
|
hash :labels, as: 'labels'
|
552
559
|
collection :mac_address, as: 'macAddress'
|
560
|
+
collection :mount_points, as: 'mountPoints', class: Google::Apis::BaremetalsolutionV2::NetworkMountPoint, decorator: Google::Apis::BaremetalsolutionV2::NetworkMountPoint::Representation
|
561
|
+
|
553
562
|
property :name, as: 'name'
|
563
|
+
property :pod, as: 'pod'
|
554
564
|
collection :reservations, as: 'reservations', class: Google::Apis::BaremetalsolutionV2::NetworkAddressReservation, decorator: Google::Apis::BaremetalsolutionV2::NetworkAddressReservation::Representation
|
555
565
|
|
556
566
|
property :services_cidr, as: 'servicesCidr'
|
@@ -598,6 +608,16 @@ module Google
|
|
598
608
|
end
|
599
609
|
end
|
600
610
|
|
611
|
+
class NetworkMountPoint
|
612
|
+
# @private
|
613
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
614
|
+
property :default_gateway, as: 'defaultGateway'
|
615
|
+
property :instance, as: 'instance'
|
616
|
+
property :ip_address, as: 'ipAddress'
|
617
|
+
property :logical_interface, as: 'logicalInterface'
|
618
|
+
end
|
619
|
+
end
|
620
|
+
|
601
621
|
class NetworkUsage
|
602
622
|
# @private
|
603
623
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -631,6 +651,7 @@ module Google
|
|
631
651
|
property :nfs_share_id, as: 'nfsShareId'
|
632
652
|
property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
|
633
653
|
property :state, as: 'state'
|
654
|
+
property :storage_type, as: 'storageType'
|
634
655
|
property :volume, as: 'volume'
|
635
656
|
end
|
636
657
|
end
|
@@ -803,8 +824,11 @@ module Google
|
|
803
824
|
class VlanAttachment
|
804
825
|
# @private
|
805
826
|
class Representation < Google::Apis::Core::JsonRepresentation
|
827
|
+
property :pairing_key, as: 'pairingKey'
|
806
828
|
property :peer_ip, as: 'peerIp'
|
807
829
|
property :peer_vlan_id, :numeric_string => true, as: 'peerVlanId'
|
830
|
+
property :qos_policy, as: 'qosPolicy', class: Google::Apis::BaremetalsolutionV2::QosPolicy, decorator: Google::Apis::BaremetalsolutionV2::QosPolicy::Representation
|
831
|
+
|
808
832
|
property :router_ip, as: 'routerIp'
|
809
833
|
end
|
810
834
|
end
|
@@ -571,6 +571,69 @@ module Google
|
|
571
571
|
execute_or_queue_command(command, &block)
|
572
572
|
end
|
573
573
|
|
574
|
+
# Create an NFS share.
|
575
|
+
# @param [String] parent
|
576
|
+
# Required. The parent project and location.
|
577
|
+
# @param [Google::Apis::BaremetalsolutionV2::NfsShare] nfs_share_object
|
578
|
+
# @param [String] fields
|
579
|
+
# Selector specifying which fields to include in a partial response.
|
580
|
+
# @param [String] quota_user
|
581
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
582
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
583
|
+
# @param [Google::Apis::RequestOptions] options
|
584
|
+
# Request-specific options
|
585
|
+
#
|
586
|
+
# @yield [result, err] Result & error if block supplied
|
587
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
588
|
+
# @yieldparam err [StandardError] error object if request failed
|
589
|
+
#
|
590
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
591
|
+
#
|
592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
595
|
+
def create_project_location_nfs_share(parent, nfs_share_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
596
|
+
command = make_simple_command(:post, 'v2/{+parent}/nfsShares', options)
|
597
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::NfsShare::Representation
|
598
|
+
command.request_object = nfs_share_object
|
599
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
600
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
601
|
+
command.params['parent'] = parent unless parent.nil?
|
602
|
+
command.query['fields'] = fields unless fields.nil?
|
603
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
604
|
+
execute_or_queue_command(command, &block)
|
605
|
+
end
|
606
|
+
|
607
|
+
# Delete an NFS share. The underlying volume is automatically deleted.
|
608
|
+
# @param [String] name
|
609
|
+
# Required. The name of the NFS share to delete.
|
610
|
+
# @param [String] fields
|
611
|
+
# Selector specifying which fields to include in a partial response.
|
612
|
+
# @param [String] quota_user
|
613
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
614
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
615
|
+
# @param [Google::Apis::RequestOptions] options
|
616
|
+
# Request-specific options
|
617
|
+
#
|
618
|
+
# @yield [result, err] Result & error if block supplied
|
619
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
620
|
+
# @yieldparam err [StandardError] error object if request failed
|
621
|
+
#
|
622
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
623
|
+
#
|
624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
627
|
+
def delete_project_location_nfs_share(name, fields: nil, quota_user: nil, options: nil, &block)
|
628
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
629
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
630
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
631
|
+
command.params['name'] = name unless name.nil?
|
632
|
+
command.query['fields'] = fields unless fields.nil?
|
633
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
634
|
+
execute_or_queue_command(command, &block)
|
635
|
+
end
|
636
|
+
|
574
637
|
# Get details of a single NFS share.
|
575
638
|
# @param [String] name
|
576
639
|
# Required. Name of the resource.
|
@@ -643,10 +706,11 @@ module Google
|
|
643
706
|
|
644
707
|
# Update details of a single NFS share.
|
645
708
|
# @param [String] name
|
646
|
-
#
|
709
|
+
# Immutable. The name of the NFS share.
|
647
710
|
# @param [Google::Apis::BaremetalsolutionV2::NfsShare] nfs_share_object
|
648
711
|
# @param [String] update_mask
|
649
712
|
# The list of fields to update. The only currently supported fields are: `labels`
|
713
|
+
# `allowed_clients`
|
650
714
|
# @param [String] fields
|
651
715
|
# Selector specifying which fields to include in a partial response.
|
652
716
|
# @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.22.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-08-
|
11
|
+
date: 2022-08-29 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.22.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: []
|