google-cloud-bare_metal_solution-v2 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +59 -69
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +14 -16
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +1795 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +793 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +1237 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest.rb +61 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution.rb +7 -1
- data/lib/google/cloud/bare_metal_solution/v2/bindings_override.rb +102 -0
- data/lib/google/cloud/bare_metal_solution/v2/rest.rb +38 -0
- data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
- data/lib/google/cloud/bare_metal_solution/v2.rb +7 -2
- data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +25 -12
- data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +28 -74
- data/lib/google/cloud/baremetalsolution/v2/lun_pb.rb +24 -42
- data/lib/google/cloud/baremetalsolution/v2/network_pb.rb +25 -89
- data/lib/google/cloud/baremetalsolution/v2/nfs_share_pb.rb +25 -45
- data/lib/google/cloud/baremetalsolution/v2/volume_pb.rb +25 -62
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +21 -12
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/bare_metal_solution/v2/version"
|
24
|
+
require "google/cloud/bare_metal_solution/v2/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/credentials"
|
27
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/paths"
|
28
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations"
|
29
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module BareMetalSolution
|
34
|
+
module V2
|
35
|
+
##
|
36
|
+
# Performs management operations on Bare Metal Solution servers.
|
37
|
+
#
|
38
|
+
# The `baremetalsolution.googleapis.com` service provides management
|
39
|
+
# capabilities for Bare Metal Solution servers. To access the API methods, you
|
40
|
+
# must assign Bare Metal Solution IAM roles containing the desired permissions
|
41
|
+
# to your staff in your Google Cloud project. You must also enable the Bare
|
42
|
+
# Metal Solution API. Once enabled, the methods act
|
43
|
+
# upon specific servers in your Bare Metal Solution environment.
|
44
|
+
#
|
45
|
+
# To load this service and instantiate a REST client:
|
46
|
+
#
|
47
|
+
# require "google/cloud/bare_metal_solution/v2/bare_metal_solution/rest"
|
48
|
+
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
49
|
+
#
|
50
|
+
module BareMetalSolution
|
51
|
+
# Client for the REST transport
|
52
|
+
module Rest
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
61
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/bare_metal_solution/v2/bare_metal_solution/credentials"
|
|
26
26
|
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/paths"
|
27
27
|
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/operations"
|
28
28
|
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/client"
|
29
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -41,11 +42,16 @@ module Google
|
|
41
42
|
# Metal Solution API. Once enabled, the methods act
|
42
43
|
# upon specific servers in your Bare Metal Solution environment.
|
43
44
|
#
|
44
|
-
#
|
45
|
+
# @example Load this service and instantiate a gRPC client
|
45
46
|
#
|
46
47
|
# require "google/cloud/bare_metal_solution/v2/bare_metal_solution"
|
47
48
|
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Client.new
|
48
49
|
#
|
50
|
+
# @example Load this service and instantiate a REST client
|
51
|
+
#
|
52
|
+
# require "google/cloud/bare_metal_solution/v2/bare_metal_solution/rest"
|
53
|
+
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
54
|
+
#
|
49
55
|
module BareMetalSolution
|
50
56
|
end
|
51
57
|
end
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module BareMetalSolution
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/bare_metal_solution/v2/rest"
|
28
|
+
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V2
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "BareMetalSolution"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :get,
|
49
|
+
uri_template: "/v2/{name}",
|
50
|
+
matches: [
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: nil
|
54
|
+
)
|
55
|
+
]
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
57
|
+
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
59
|
+
uri_method: :get,
|
60
|
+
uri_template: "/v2/{name}/locations",
|
61
|
+
matches: [
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
63
|
+
],
|
64
|
+
body: nil
|
65
|
+
)
|
66
|
+
]
|
67
|
+
default_config
|
68
|
+
end
|
69
|
+
yield @configure if block_given?
|
70
|
+
@configure
|
71
|
+
end
|
72
|
+
|
73
|
+
##
|
74
|
+
# @private
|
75
|
+
# Configuration class for the google.cloud.baremetalsolution.v2 package.
|
76
|
+
#
|
77
|
+
# This class contains common configuration for all services
|
78
|
+
# of the google.cloud.baremetalsolution.v2 package.
|
79
|
+
#
|
80
|
+
# This configuration is for internal use of the client library classes,
|
81
|
+
# and it is not intended that the end-users will read or change it.
|
82
|
+
#
|
83
|
+
class Configuration
|
84
|
+
extend ::Gapic::Config
|
85
|
+
|
86
|
+
# @private
|
87
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
88
|
+
# Services in this package should use these when creating clients for the mixin services.
|
89
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
90
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
91
|
+
|
92
|
+
# @private
|
93
|
+
def initialize parent_config = nil
|
94
|
+
@parent_config = parent_config unless parent_config.nil?
|
95
|
+
|
96
|
+
yield self if block_given?
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/rest"
|
20
|
+
require "google/cloud/bare_metal_solution/v2/bindings_override"
|
21
|
+
require "google/cloud/bare_metal_solution/v2/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module BareMetalSolution
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/bare_metal_solution/v2/rest"
|
32
|
+
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V2
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -23,13 +23,18 @@ module Google
|
|
23
23
|
module Cloud
|
24
24
|
module BareMetalSolution
|
25
25
|
##
|
26
|
-
#
|
26
|
+
# API client module.
|
27
27
|
#
|
28
|
-
# @example
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
29
|
#
|
30
30
|
# require "google/cloud/bare_metal_solution/v2"
|
31
31
|
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/bare_metal_solution/v2"
|
36
|
+
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V2
|
34
39
|
end
|
35
40
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/baremetalsolution/v2/baremetalsolution.proto
|
3
4
|
|
@@ -14,20 +15,32 @@ require 'google/cloud/baremetalsolution/v2/volume_pb'
|
|
14
15
|
require 'google/longrunning/operations_pb'
|
15
16
|
require 'google/protobuf/timestamp_pb'
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
18
|
+
|
19
|
+
descriptor_data = "\n9google/cloud/baremetalsolution/v2/baremetalsolution.proto\x12!google.cloud.baremetalsolution.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x30google/cloud/baremetalsolution/v2/instance.proto\x1a+google/cloud/baremetalsolution/v2/lun.proto\x1a/google/cloud/baremetalsolution/v2/network.proto\x1a\x31google/cloud/baremetalsolution/v2/nfs_share.proto\x1a.google/cloud/baremetalsolution/v2/volume.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\x17\n\x15ResetInstanceResponse2\xdd \n\x11\x42\x61reMetalSolution\x12\xc2\x01\n\rListInstances\x12\x37.google.cloud.baremetalsolution.v2.ListInstancesRequest\x1a\x38.google.cloud.baremetalsolution.v2.ListInstancesResponse\">\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/instances\xda\x41\x06parent\x12\xaf\x01\n\x0bGetInstance\x12\x35.google.cloud.baremetalsolution.v2.GetInstanceRequest\x1a+.google.cloud.baremetalsolution.v2.Instance\"<\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\x12\xea\x01\n\x0eUpdateInstance\x12\x38.google.cloud.baremetalsolution.v2.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x42\x32\x36/v2/{instance.name=projects/*/locations/*/instances/*}:\x08instance\xda\x41\x14instance,update_mask\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xdb\x01\n\rResetInstance\x12\x37.google.cloud.baremetalsolution.v2.ResetInstanceRequest\x1a\x1d.google.longrunning.Operation\"r\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/locations/*/instances/*}:reset:\x01*\xda\x41\x04name\xca\x41*\n\x15ResetInstanceResponse\x12\x11OperationMetadata\x12\xdb\x01\n\rStartInstance\x12\x37.google.cloud.baremetalsolution.v2.StartInstanceRequest\x1a\x1d.google.longrunning.Operation\"r\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/locations/*/instances/*}:start:\x01*\xda\x41\x04name\xca\x41*\n\x15StartInstanceResponse\x12\x11OperationMetadata\x12\xd7\x01\n\x0cStopInstance\x12\x36.google.cloud.baremetalsolution.v2.StopInstanceRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02\x37\"2/v2/{name=projects/*/locations/*/instances/*}:stop:\x01*\xda\x41\x04name\xca\x41)\n\x14StopInstanceResponse\x12\x11OperationMetadata\x12\xd6\x01\n\tDetachLun\x12\x33.google.cloud.baremetalsolution.v2.DetachLunRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02@\";/v2/{instance=projects/*/locations/*/instances/*}:detachLun:\x01*\xda\x41\x0cinstance,lun\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xba\x01\n\x0bListVolumes\x12\x35.google.cloud.baremetalsolution.v2.ListVolumesRequest\x1a\x36.google.cloud.baremetalsolution.v2.ListVolumesResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v2/{parent=projects/*/locations/*}/volumes\xda\x41\x06parent\x12\xa7\x01\n\tGetVolume\x12\x33.google.cloud.baremetalsolution.v2.GetVolumeRequest\x1a).google.cloud.baremetalsolution.v2.Volume\":\x82\xd3\xe4\x93\x02-\x12+/v2/{name=projects/*/locations/*/volumes/*}\xda\x41\x04name\x12\xdc\x01\n\x0cUpdateVolume\x12\x36.google.cloud.baremetalsolution.v2.UpdateVolumeRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02<22/v2/{volume.name=projects/*/locations/*/volumes/*}:\x06volume\xda\x41\x12volume,update_mask\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\x12\xd6\x01\n\x0cResizeVolume\x12\x36.google.cloud.baremetalsolution.v2.ResizeVolumeRequest\x1a\x1d.google.longrunning.Operation\"o\x82\xd3\xe4\x93\x02\x39\"4/v2/{volume=projects/*/locations/*/volumes/*}:resize:\x01*\xda\x41\x0fvolume,size_gib\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\x12\xbe\x01\n\x0cListNetworks\x12\x36.google.cloud.baremetalsolution.v2.ListNetworksRequest\x1a\x37.google.cloud.baremetalsolution.v2.ListNetworksResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/networks\xda\x41\x06parent\x12\xdf\x01\n\x10ListNetworkUsage\x12:.google.cloud.baremetalsolution.v2.ListNetworkUsageRequest\x1a;.google.cloud.baremetalsolution.v2.ListNetworkUsageResponse\"R\x82\xd3\xe4\x93\x02\x41\x12?/v2/{location=projects/*/locations/*}/networks:listNetworkUsage\xda\x41\x08location\x12\xab\x01\n\nGetNetwork\x12\x34.google.cloud.baremetalsolution.v2.GetNetworkRequest\x1a*.google.cloud.baremetalsolution.v2.Network\";\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/locations/*/networks/*}\xda\x41\x04name\x12\xe3\x01\n\rUpdateNetwork\x12\x37.google.cloud.baremetalsolution.v2.UpdateNetworkRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02?24/v2/{network.name=projects/*/locations/*/networks/*}:\x07network\xda\x41\x13network,update_mask\xca\x41\x1c\n\x07Network\x12\x11OperationMetadata\x12\xa5\x01\n\x06GetLun\x12\x30.google.cloud.baremetalsolution.v2.GetLunRequest\x1a&.google.cloud.baremetalsolution.v2.Lun\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v2/{name=projects/*/locations/*/volumes/*/luns/*}\xda\x41\x04name\x12\xb8\x01\n\x08ListLuns\x12\x32.google.cloud.baremetalsolution.v2.ListLunsRequest\x1a\x33.google.cloud.baremetalsolution.v2.ListLunsResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v2/{parent=projects/*/locations/*/volumes/*}/luns\xda\x41\x06parent\x12\xaf\x01\n\x0bGetNfsShare\x12\x35.google.cloud.baremetalsolution.v2.GetNfsShareRequest\x1a+.google.cloud.baremetalsolution.v2.NfsShare\"<\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/nfsShares/*}\xda\x41\x04name\x12\xc2\x01\n\rListNfsShares\x12\x37.google.cloud.baremetalsolution.v2.ListNfsSharesRequest\x1a\x38.google.cloud.baremetalsolution.v2.ListNfsSharesResponse\">\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/nfsShares\xda\x41\x06parent\x12\xee\x01\n\x0eUpdateNfsShare\x12\x38.google.cloud.baremetalsolution.v2.UpdateNfsShareRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\x82\xd3\xe4\x93\x02\x44\x32\x37/v2/{nfs_share.name=projects/*/locations/*/nfsShares/*}:\tnfs_share\xda\x41\x15nfs_share,update_mask\xca\x41\x1d\n\x08NfsShare\x12\x11OperationMetadata\x1aT\xca\x41 baremetalsolution.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x85\x02\n%com.google.cloud.baremetalsolution.v2B\x16\x42\x61reMetalSolutionProtoP\x01ZScloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb\xaa\x02!Google.Cloud.BareMetalSolution.V2\xca\x02!Google\\Cloud\\BareMetalSolution\\V2\xea\x02$Google::Cloud::BareMetalSolution::V2b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
29
40
|
end
|
30
41
|
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
31
44
|
end
|
32
45
|
|
33
46
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/baremetalsolution/v2/instance.proto
|
3
4
|
|
@@ -10,82 +11,35 @@ require 'google/cloud/baremetalsolution/v2/network_pb'
|
|
10
11
|
require 'google/protobuf/field_mask_pb'
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
add_message "google.cloud.baremetalsolution.v2.GetInstanceRequest" do
|
39
|
-
optional :name, :string, 1
|
40
|
-
end
|
41
|
-
add_message "google.cloud.baremetalsolution.v2.ListInstancesRequest" do
|
42
|
-
optional :parent, :string, 1
|
43
|
-
optional :page_size, :int32, 2
|
44
|
-
optional :page_token, :string, 3
|
45
|
-
optional :filter, :string, 4
|
46
|
-
end
|
47
|
-
add_message "google.cloud.baremetalsolution.v2.ListInstancesResponse" do
|
48
|
-
repeated :instances, :message, 1, "google.cloud.baremetalsolution.v2.Instance"
|
49
|
-
optional :next_page_token, :string, 2
|
50
|
-
repeated :unreachable, :string, 3
|
51
|
-
end
|
52
|
-
add_message "google.cloud.baremetalsolution.v2.UpdateInstanceRequest" do
|
53
|
-
optional :instance, :message, 1, "google.cloud.baremetalsolution.v2.Instance"
|
54
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
55
|
-
end
|
56
|
-
add_message "google.cloud.baremetalsolution.v2.ResetInstanceRequest" do
|
57
|
-
optional :name, :string, 1
|
58
|
-
end
|
59
|
-
add_message "google.cloud.baremetalsolution.v2.StartInstanceRequest" do
|
60
|
-
optional :name, :string, 1
|
61
|
-
end
|
62
|
-
add_message "google.cloud.baremetalsolution.v2.StopInstanceRequest" do
|
63
|
-
optional :name, :string, 1
|
64
|
-
end
|
65
|
-
add_message "google.cloud.baremetalsolution.v2.DetachLunRequest" do
|
66
|
-
optional :instance, :string, 1
|
67
|
-
optional :lun, :string, 2
|
68
|
-
end
|
69
|
-
add_message "google.cloud.baremetalsolution.v2.ServerNetworkTemplate" do
|
70
|
-
optional :name, :string, 1
|
71
|
-
repeated :applicable_instance_types, :string, 2
|
72
|
-
repeated :logical_interfaces, :message, 3, "google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface"
|
73
|
-
end
|
74
|
-
add_message "google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface" do
|
75
|
-
optional :name, :string, 1
|
76
|
-
optional :type, :enum, 2, "google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType"
|
77
|
-
optional :required, :bool, 3
|
78
|
-
end
|
79
|
-
add_enum "google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType" do
|
80
|
-
value :INTERFACE_TYPE_UNSPECIFIED, 0
|
81
|
-
value :BOND, 1
|
82
|
-
value :NIC, 2
|
83
|
-
end
|
84
|
-
add_message "google.cloud.baremetalsolution.v2.StartInstanceResponse" do
|
85
|
-
end
|
86
|
-
add_message "google.cloud.baremetalsolution.v2.StopInstanceResponse" do
|
14
|
+
|
15
|
+
descriptor_data = "\n0google/cloud/baremetalsolution/v2/instance.proto\x12!google.cloud.baremetalsolution.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/baremetalsolution/v2/lun.proto\x1a/google/cloud/baremetalsolution/v2/network.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x07\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\n\n\x02id\x18\x0b \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x0cmachine_type\x18\x04 \x01(\t\x12@\n\x05state\x18\x05 \x01(\x0e\x32\x31.google.cloud.baremetalsolution.v2.Instance.State\x12\x1e\n\x16hyperthreading_enabled\x18\x06 \x01(\x08\x12G\n\x06labels\x18\x07 \x03(\x0b\x32\x37.google.cloud.baremetalsolution.v2.Instance.LabelsEntry\x12\x34\n\x04luns\x18\x08 \x03(\x0b\x32&.google.cloud.baremetalsolution.v2.Lun\x12<\n\x08networks\x18\t \x03(\x0b\x32*.google.cloud.baremetalsolution.v2.Network\x12*\n\"interactive_serial_console_enabled\x18\n \x01(\x08\x12\x10\n\x08os_image\x18\x0c \x01(\t\x12\x10\n\x03pod\x18\r \x01(\tB\x03\xe0\x41\x05\x12U\n\x10network_template\x18\x0e \x01(\tB;\xfa\x41\x38\n6baremetalsolution.googleapis.com/ServerNetworkTemplate\x12O\n\x12logical_interfaces\x18\x0f \x03(\x0b\x32\x33.google.cloud.baremetalsolution.v2.LogicalInterface\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"J\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03:l\xea\x41i\n)baremetalsolution.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}\"U\n\x12GetInstanceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)baremetalsolution.googleapis.com/Instance\"\x88\x01\n\x14ListInstancesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x85\x01\n\x15ListInstancesResponse\x12>\n\tinstances\x18\x01 \x03(\x0b\x32+.google.cloud.baremetalsolution.v2.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x8c\x01\n\x15UpdateInstanceRequest\x12\x42\n\x08instance\x18\x01 \x01(\x0b\x32+.google.cloud.baremetalsolution.v2.InstanceB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"W\n\x14ResetInstanceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)baremetalsolution.googleapis.com/Instance\"W\n\x14StartInstanceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)baremetalsolution.googleapis.com/Instance\"V\n\x13StopInstanceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)baremetalsolution.googleapis.com/Instance\"\x92\x01\n\x10\x44\x65tachLunRequest\x12\x43\n\x08instance\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)baremetalsolution.googleapis.com/Instance\x12\x39\n\x03lun\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$baremetalsolution.googleapis.com/Lun\"\xac\x04\n\x15ServerNetworkTemplate\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12!\n\x19\x61pplicable_instance_types\x18\x02 \x03(\t\x12\x65\n\x12logical_interfaces\x18\x03 \x03(\x0b\x32I.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface\x1a\xdd\x01\n\x10LogicalInterface\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x65\n\x04type\x18\x02 \x01(\x0e\x32W.google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType\x12\x10\n\x08required\x18\x03 \x01(\x08\"B\n\rInterfaceType\x12\x1e\n\x1aINTERFACE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OND\x10\x01\x12\x07\n\x03NIC\x10\x02:\x95\x01\xea\x41\x91\x01\n6baremetalsolution.googleapis.com/ServerNetworkTemplate\x12Wprojects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}\"\x17\n\x15StartInstanceResponse\"\x16\n\x14StopInstanceResponseB\xfc\x01\n%com.google.cloud.baremetalsolution.v2B\rInstanceProtoP\x01ZScloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb\xaa\x02!Google.Cloud.BareMetalSolution.V2\xca\x02!Google\\Cloud\\BareMetalSolution\\V2\xea\x02$Google::Cloud::BareMetalSolution::V2b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.cloud.baremetalsolution.v2.Lun", "google/cloud/baremetalsolution/v2/lun.proto"],
|
32
|
+
["google.cloud.baremetalsolution.v2.Network", "google/cloud/baremetalsolution/v2/network.proto"],
|
33
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
34
|
+
]
|
35
|
+
imports.each do |type_name, expected_filename|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
37
|
+
if import_file.name != expected_filename
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
87
39
|
end
|
88
40
|
end
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
+
warn "This will become an error in the next major version."
|
89
43
|
end
|
90
44
|
|
91
45
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/baremetalsolution/v2/lun.proto
|
3
4
|
|
@@ -6,50 +7,31 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
add_enum "google.cloud.baremetalsolution.v2.Lun.MultiprotocolType" do
|
31
|
-
value :MULTIPROTOCOL_TYPE_UNSPECIFIED, 0
|
32
|
-
value :LINUX, 1
|
33
|
-
end
|
34
|
-
add_enum "google.cloud.baremetalsolution.v2.Lun.StorageType" do
|
35
|
-
value :STORAGE_TYPE_UNSPECIFIED, 0
|
36
|
-
value :SSD, 1
|
37
|
-
value :HDD, 2
|
38
|
-
end
|
39
|
-
add_message "google.cloud.baremetalsolution.v2.GetLunRequest" do
|
40
|
-
optional :name, :string, 1
|
41
|
-
end
|
42
|
-
add_message "google.cloud.baremetalsolution.v2.ListLunsRequest" do
|
43
|
-
optional :parent, :string, 1
|
44
|
-
optional :page_size, :int32, 2
|
45
|
-
optional :page_token, :string, 3
|
46
|
-
end
|
47
|
-
add_message "google.cloud.baremetalsolution.v2.ListLunsResponse" do
|
48
|
-
repeated :luns, :message, 1, "google.cloud.baremetalsolution.v2.Lun"
|
49
|
-
optional :next_page_token, :string, 2
|
50
|
-
repeated :unreachable, :string, 3
|
10
|
+
|
11
|
+
descriptor_data = "\n+google/cloud/baremetalsolution/v2/lun.proto\x12!google.cloud.baremetalsolution.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd3\x05\n\x03Lun\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\n\n\x02id\x18\n \x01(\t\x12;\n\x05state\x18\x02 \x01(\x0e\x32,.google.cloud.baremetalsolution.v2.Lun.State\x12\x0f\n\x07size_gb\x18\x03 \x01(\x03\x12T\n\x12multiprotocol_type\x18\x04 \x01(\x0e\x32\x38.google.cloud.baremetalsolution.v2.Lun.MultiprotocolType\x12\x44\n\x0estorage_volume\x18\x05 \x01(\tB,\xfa\x41)\n\'baremetalsolution.googleapis.com/Volume\x12\x11\n\tshareable\x18\x06 \x01(\x08\x12\x10\n\x08\x62oot_lun\x18\x07 \x01(\x08\x12H\n\x0cstorage_type\x18\x08 \x01(\x0e\x32\x32.google.cloud.baremetalsolution.v2.Lun.StorageType\x12\x0c\n\x04wwid\x18\t \x01(\t\"S\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0c\n\x08UPDATING\x10\x02\x12\t\n\x05READY\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\"B\n\x11MultiprotocolType\x12\"\n\x1eMULTIPROTOCOL_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05LINUX\x10\x01\"=\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03SSD\x10\x01\x12\x07\n\x03HDD\x10\x02:n\xea\x41k\n$baremetalsolution.googleapis.com/Lun\x12\x43projects/{project}/locations/{location}/volumes/{volume}/luns/{lun}\"K\n\rGetLunRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$baremetalsolution.googleapis.com/Lun\"y\n\x0fListLunsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'baremetalsolution.googleapis.com/Volume\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"v\n\x10ListLunsResponse\x12\x34\n\x04luns\x18\x01 \x03(\x0b\x32&.google.cloud.baremetalsolution.v2.Lun\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\tB\xf7\x01\n%com.google.cloud.baremetalsolution.v2B\x08LunProtoP\x01ZScloud.google.com/go/baremetalsolution/apiv2/baremetalsolutionpb;baremetalsolutionpb\xaa\x02!Google.Cloud.BareMetalSolution.V2\xca\x02!Google\\Cloud\\BareMetalSolution\\V2\xea\x02$Google::Cloud::BareMetalSolution::V2b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
51
31
|
end
|
52
32
|
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
53
35
|
end
|
54
36
|
|
55
37
|
module Google
|