google-apis-baremetalsolution_v2 0.14.0 → 0.15.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 +5 -0
- data/lib/google/apis/baremetalsolution_v2/classes.rb +52 -1
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +3 -3
- data/lib/google/apis/baremetalsolution_v2/representations.rb +18 -0
- data/lib/google/apis/baremetalsolution_v2/service.rb +34 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96929cf9fc110bffd2261677409f1159a6d1ac18867b042863f36145588918d1
|
4
|
+
data.tar.gz: 49e7c297c09867f74604017e044303601369f13b945e0962a1a65c38c7abe62b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07af8ea319d6e3b6bfb9a3066bb52bc0ce466bf3c4e625d1b04fe0bc5298cab0430bf227996e888d02f74ceadbf510a19610a8d4e42d0e792610cd74bdf3750d
|
7
|
+
data.tar.gz: 0254e6269714dbbcb6335202cae3348894d67b468780139badf998e0a9067e6e4629b4f719cb6667885df92be3c45f642d7033bdf473266678840c66b09938d7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-baremetalsolution_v2
|
2
2
|
|
3
|
+
### v0.15.0 (2022-06-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220603
|
6
|
+
* Regenerated using generator version 0.5.0
|
7
|
+
|
3
8
|
### v0.14.0 (2022-05-29)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20220524
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
include Google::Apis::Core::Hashable
|
129
129
|
|
130
130
|
# The index of the logical interface mapping to the index of the hardware bond
|
131
|
-
# or nic on the chosen network template.
|
131
|
+
# or nic on the chosen network template. This field is deprecated.
|
132
132
|
# Corresponds to the JSON property `interfaceIndex`
|
133
133
|
# @return [Fixnum]
|
134
134
|
attr_accessor :interface_index
|
@@ -1066,6 +1066,12 @@ module Google
|
|
1066
1066
|
# @return [String]
|
1067
1067
|
attr_accessor :id
|
1068
1068
|
|
1069
|
+
# The JumboFramesEnabled option for customer to set.
|
1070
|
+
# Corresponds to the JSON property `jumboFramesEnabled`
|
1071
|
+
# @return [Boolean]
|
1072
|
+
attr_accessor :jumbo_frames_enabled
|
1073
|
+
alias_method :jumbo_frames_enabled?, :jumbo_frames_enabled
|
1074
|
+
|
1069
1075
|
# Output only. The name of the network config.
|
1070
1076
|
# Corresponds to the JSON property `name`
|
1071
1077
|
# @return [String]
|
@@ -1109,6 +1115,7 @@ module Google
|
|
1109
1115
|
@cidr = args[:cidr] if args.key?(:cidr)
|
1110
1116
|
@gcp_service = args[:gcp_service] if args.key?(:gcp_service)
|
1111
1117
|
@id = args[:id] if args.key?(:id)
|
1118
|
+
@jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled)
|
1112
1119
|
@name = args[:name] if args.key?(:name)
|
1113
1120
|
@service_cidr = args[:service_cidr] if args.key?(:service_cidr)
|
1114
1121
|
@type = args[:type] if args.key?(:type)
|
@@ -1228,6 +1235,11 @@ module Google
|
|
1228
1235
|
# @return [String]
|
1229
1236
|
attr_accessor :nfs_share_id
|
1230
1237
|
|
1238
|
+
# The requested size, in GiB.
|
1239
|
+
# Corresponds to the JSON property `requestedSizeGib`
|
1240
|
+
# @return [Fixnum]
|
1241
|
+
attr_accessor :requested_size_gib
|
1242
|
+
|
1231
1243
|
# The state of the NFS share.
|
1232
1244
|
# Corresponds to the JSON property `state`
|
1233
1245
|
# @return [String]
|
@@ -1248,6 +1260,7 @@ module Google
|
|
1248
1260
|
@labels = args[:labels] if args.key?(:labels)
|
1249
1261
|
@name = args[:name] if args.key?(:name)
|
1250
1262
|
@nfs_share_id = args[:nfs_share_id] if args.key?(:nfs_share_id)
|
1263
|
+
@requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
|
1251
1264
|
@state = args[:state] if args.key?(:state)
|
1252
1265
|
@volume = args[:volume] if args.key?(:volume)
|
1253
1266
|
end
|
@@ -1421,6 +1434,12 @@ module Google
|
|
1421
1434
|
# @return [Array<Google::Apis::BaremetalsolutionV2::VolumeConfig>]
|
1422
1435
|
attr_accessor :volumes
|
1423
1436
|
|
1437
|
+
# If true, VPC SC is enabled for the cluster.
|
1438
|
+
# Corresponds to the JSON property `vpcScEnabled`
|
1439
|
+
# @return [Boolean]
|
1440
|
+
attr_accessor :vpc_sc_enabled
|
1441
|
+
alias_method :vpc_sc_enabled?, :vpc_sc_enabled
|
1442
|
+
|
1424
1443
|
def initialize(**args)
|
1425
1444
|
update!(**args)
|
1426
1445
|
end
|
@@ -1438,6 +1457,7 @@ module Google
|
|
1438
1457
|
@ticket_id = args[:ticket_id] if args.key?(:ticket_id)
|
1439
1458
|
@update_time = args[:update_time] if args.key?(:update_time)
|
1440
1459
|
@volumes = args[:volumes] if args.key?(:volumes)
|
1460
|
+
@vpc_sc_enabled = args[:vpc_sc_enabled] if args.key?(:vpc_sc_enabled)
|
1441
1461
|
end
|
1442
1462
|
end
|
1443
1463
|
|
@@ -1540,6 +1560,25 @@ module Google
|
|
1540
1560
|
end
|
1541
1561
|
end
|
1542
1562
|
|
1563
|
+
# Request for emergency resize Volume.
|
1564
|
+
class ResizeVolumeRequest
|
1565
|
+
include Google::Apis::Core::Hashable
|
1566
|
+
|
1567
|
+
# New Volume size, in GiB.
|
1568
|
+
# Corresponds to the JSON property `sizeGib`
|
1569
|
+
# @return [Fixnum]
|
1570
|
+
attr_accessor :size_gib
|
1571
|
+
|
1572
|
+
def initialize(**args)
|
1573
|
+
update!(**args)
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
# Update properties of this object
|
1577
|
+
def update!(**args)
|
1578
|
+
@size_gib = args[:size_gib] if args.key?(:size_gib)
|
1579
|
+
end
|
1580
|
+
end
|
1581
|
+
|
1543
1582
|
# Network template.
|
1544
1583
|
class ServerNetworkTemplate
|
1545
1584
|
include Google::Apis::Core::Hashable
|
@@ -1827,6 +1866,11 @@ module Google
|
|
1827
1866
|
# @return [Hash<String,String>]
|
1828
1867
|
attr_accessor :labels
|
1829
1868
|
|
1869
|
+
# Maximum size volume can be expanded to in case of evergency, in GiB.
|
1870
|
+
# Corresponds to the JSON property `maxSizeGib`
|
1871
|
+
# @return [Fixnum]
|
1872
|
+
attr_accessor :max_size_gib
|
1873
|
+
|
1830
1874
|
# Output only. The resource name of this `Volume`. Resource names are schemeless
|
1831
1875
|
# URIs that follow the conventions in https://cloud.google.com/apis/design/
|
1832
1876
|
# resource_names. Format: `projects/`project`/locations/`location`/volumes/`
|
@@ -1835,6 +1879,11 @@ module Google
|
|
1835
1879
|
# @return [String]
|
1836
1880
|
attr_accessor :name
|
1837
1881
|
|
1882
|
+
# Originally requested size, in GiB.
|
1883
|
+
# Corresponds to the JSON property `originallyRequestedSizeGib`
|
1884
|
+
# @return [Fixnum]
|
1885
|
+
attr_accessor :originally_requested_size_gib
|
1886
|
+
|
1838
1887
|
# Immutable. Pod name.
|
1839
1888
|
# Corresponds to the JSON property `pod`
|
1840
1889
|
# @return [String]
|
@@ -1893,7 +1942,9 @@ module Google
|
|
1893
1942
|
@emergency_size_gib = args[:emergency_size_gib] if args.key?(:emergency_size_gib)
|
1894
1943
|
@id = args[:id] if args.key?(:id)
|
1895
1944
|
@labels = args[:labels] if args.key?(:labels)
|
1945
|
+
@max_size_gib = args[:max_size_gib] if args.key?(:max_size_gib)
|
1896
1946
|
@name = args[:name] if args.key?(:name)
|
1947
|
+
@originally_requested_size_gib = args[:originally_requested_size_gib] if args.key?(:originally_requested_size_gib)
|
1897
1948
|
@pod = args[:pod] if args.key?(:pod)
|
1898
1949
|
@remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
|
1899
1950
|
@requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
|
@@ -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.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.5.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220603"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -226,6 +226,12 @@ module Google
|
|
226
226
|
include Google::Apis::Core::JsonObjectSupport
|
227
227
|
end
|
228
228
|
|
229
|
+
class ResizeVolumeRequest
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
229
235
|
class ServerNetworkTemplate
|
230
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
237
|
|
@@ -569,6 +575,7 @@ module Google
|
|
569
575
|
property :cidr, as: 'cidr'
|
570
576
|
property :gcp_service, as: 'gcpService'
|
571
577
|
property :id, as: 'id'
|
578
|
+
property :jumbo_frames_enabled, as: 'jumboFramesEnabled'
|
572
579
|
property :name, as: 'name'
|
573
580
|
property :service_cidr, as: 'serviceCidr'
|
574
581
|
property :type, as: 'type'
|
@@ -609,6 +616,7 @@ module Google
|
|
609
616
|
hash :labels, as: 'labels'
|
610
617
|
property :name, as: 'name'
|
611
618
|
property :nfs_share_id, as: 'nfsShareId'
|
619
|
+
property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
|
612
620
|
property :state, as: 'state'
|
613
621
|
property :volume, as: 'volume'
|
614
622
|
end
|
@@ -655,6 +663,7 @@ module Google
|
|
655
663
|
property :update_time, as: 'updateTime'
|
656
664
|
collection :volumes, as: 'volumes', class: Google::Apis::BaremetalsolutionV2::VolumeConfig, decorator: Google::Apis::BaremetalsolutionV2::VolumeConfig::Representation
|
657
665
|
|
666
|
+
property :vpc_sc_enabled, as: 'vpcScEnabled'
|
658
667
|
end
|
659
668
|
end
|
660
669
|
|
@@ -687,6 +696,13 @@ module Google
|
|
687
696
|
end
|
688
697
|
end
|
689
698
|
|
699
|
+
class ResizeVolumeRequest
|
700
|
+
# @private
|
701
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
702
|
+
property :size_gib, :numeric_string => true, as: 'sizeGib'
|
703
|
+
end
|
704
|
+
end
|
705
|
+
|
690
706
|
class ServerNetworkTemplate
|
691
707
|
# @private
|
692
708
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -774,7 +790,9 @@ module Google
|
|
774
790
|
property :emergency_size_gib, :numeric_string => true, as: 'emergencySizeGib'
|
775
791
|
property :id, as: 'id'
|
776
792
|
hash :labels, as: 'labels'
|
793
|
+
property :max_size_gib, :numeric_string => true, as: 'maxSizeGib'
|
777
794
|
property :name, as: 'name'
|
795
|
+
property :originally_requested_size_gib, :numeric_string => true, as: 'originallyRequestedSizeGib'
|
778
796
|
property :pod, as: 'pod'
|
779
797
|
property :remaining_space_gib, :numeric_string => true, as: 'remainingSpaceGib'
|
780
798
|
property :requested_size_gib, :numeric_string => true, as: 'requestedSizeGib'
|
@@ -901,8 +901,7 @@ module Google
|
|
901
901
|
# @param [String] update_mask
|
902
902
|
# The list of fields to update. The only currently supported fields are: `
|
903
903
|
# snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' '
|
904
|
-
#
|
905
|
-
# reserved_space_percent'
|
904
|
+
# snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'
|
906
905
|
# @param [String] fields
|
907
906
|
# Selector specifying which fields to include in a partial response.
|
908
907
|
# @param [String] quota_user
|
@@ -933,6 +932,39 @@ module Google
|
|
933
932
|
execute_or_queue_command(command, &block)
|
934
933
|
end
|
935
934
|
|
935
|
+
# Emergency Volume resize.
|
936
|
+
# @param [String] volume
|
937
|
+
# Required. Volume to resize.
|
938
|
+
# @param [Google::Apis::BaremetalsolutionV2::ResizeVolumeRequest] resize_volume_request_object
|
939
|
+
# @param [String] fields
|
940
|
+
# Selector specifying which fields to include in a partial response.
|
941
|
+
# @param [String] quota_user
|
942
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
943
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
944
|
+
# @param [Google::Apis::RequestOptions] options
|
945
|
+
# Request-specific options
|
946
|
+
#
|
947
|
+
# @yield [result, err] Result & error if block supplied
|
948
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
949
|
+
# @yieldparam err [StandardError] error object if request failed
|
950
|
+
#
|
951
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
952
|
+
#
|
953
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
954
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
955
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
956
|
+
def resize_volume(volume, resize_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
957
|
+
command = make_simple_command(:post, 'v2/{+volume}:resize', options)
|
958
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::ResizeVolumeRequest::Representation
|
959
|
+
command.request_object = resize_volume_request_object
|
960
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
961
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
962
|
+
command.params['volume'] = volume unless volume.nil?
|
963
|
+
command.query['fields'] = fields unless fields.nil?
|
964
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
965
|
+
execute_or_queue_command(command, &block)
|
966
|
+
end
|
967
|
+
|
936
968
|
# Get details of a single storage logical unit number(LUN).
|
937
969
|
# @param [String] name
|
938
970
|
# Required. Name of the resource.
|
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.15.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-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.5'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.5'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.15.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: []
|