google-cloud-bare_metal_solution-v2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +2365 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/credentials.rb +47 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +767 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/paths.rb +166 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution.rb +57 -0
- data/lib/google/cloud/bare_metal_solution/v2/version.rb +28 -0
- data/lib/google/cloud/bare_metal_solution/v2.rb +40 -0
- data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +42 -0
- data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_services_pb.rb +92 -0
- data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +113 -0
- data/lib/google/cloud/baremetalsolution/v2/lun_pb.rb +69 -0
- data/lib/google/cloud/baremetalsolution/v2/network_pb.rb +127 -0
- data/lib/google/cloud/baremetalsolution/v2/nfs_share_pb.rb +74 -0
- data/lib/google/cloud/baremetalsolution/v2/volume_pb.rb +93 -0
- data/lib/google-cloud-bare_metal_solution-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/baremetalsolution.rb +62 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/instance.rb +283 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/lun.rb +142 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/network.rb +312 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/nfs_share.rb +169 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/volume.rb +238 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +268 -0
@@ -0,0 +1,166 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module BareMetalSolution
|
23
|
+
module V2
|
24
|
+
module BareMetalSolution
|
25
|
+
# Path helper methods for the BareMetalSolution API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Instance resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/instances/{instance}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param instance [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def instance_path project:, location:, instance:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Location resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
#
|
56
|
+
# @return [::String]
|
57
|
+
def location_path project:, location:
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}"
|
61
|
+
end
|
62
|
+
|
63
|
+
##
|
64
|
+
# Create a fully-qualified Lun resource string.
|
65
|
+
#
|
66
|
+
# The resource will be in the following format:
|
67
|
+
#
|
68
|
+
# `projects/{project}/locations/{location}/volumes/{volume}/luns/{lun}`
|
69
|
+
#
|
70
|
+
# @param project [String]
|
71
|
+
# @param location [String]
|
72
|
+
# @param volume [String]
|
73
|
+
# @param lun [String]
|
74
|
+
#
|
75
|
+
# @return [::String]
|
76
|
+
def lun_path project:, location:, volume:, lun:
|
77
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
78
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
79
|
+
raise ::ArgumentError, "volume cannot contain /" if volume.to_s.include? "/"
|
80
|
+
|
81
|
+
"projects/#{project}/locations/#{location}/volumes/#{volume}/luns/#{lun}"
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Create a fully-qualified NFSShare resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `projects/{project}/locations/{location}/nfsShares/{nfs_share}`
|
90
|
+
#
|
91
|
+
# @param project [String]
|
92
|
+
# @param location [String]
|
93
|
+
# @param nfs_share [String]
|
94
|
+
#
|
95
|
+
# @return [::String]
|
96
|
+
def nfs_share_path project:, location:, nfs_share:
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/locations/#{location}/nfsShares/#{nfs_share}"
|
101
|
+
end
|
102
|
+
|
103
|
+
##
|
104
|
+
# Create a fully-qualified Network resource string.
|
105
|
+
#
|
106
|
+
# The resource will be in the following format:
|
107
|
+
#
|
108
|
+
# `projects/{project}/locations/{location}/networks/{network}`
|
109
|
+
#
|
110
|
+
# @param project [String]
|
111
|
+
# @param location [String]
|
112
|
+
# @param network [String]
|
113
|
+
#
|
114
|
+
# @return [::String]
|
115
|
+
def network_path project:, location:, network:
|
116
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
117
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
118
|
+
|
119
|
+
"projects/#{project}/locations/#{location}/networks/#{network}"
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# Create a fully-qualified ServerNetworkTemplate resource string.
|
124
|
+
#
|
125
|
+
# The resource will be in the following format:
|
126
|
+
#
|
127
|
+
# `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}`
|
128
|
+
#
|
129
|
+
# @param project [String]
|
130
|
+
# @param location [String]
|
131
|
+
# @param server_network_template [String]
|
132
|
+
#
|
133
|
+
# @return [::String]
|
134
|
+
def server_network_template_path project:, location:, server_network_template:
|
135
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
136
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
137
|
+
|
138
|
+
"projects/#{project}/locations/#{location}/serverNetworkTemplate/#{server_network_template}"
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# Create a fully-qualified Volume resource string.
|
143
|
+
#
|
144
|
+
# The resource will be in the following format:
|
145
|
+
#
|
146
|
+
# `projects/{project}/locations/{location}/volumes/{volume}`
|
147
|
+
#
|
148
|
+
# @param project [String]
|
149
|
+
# @param location [String]
|
150
|
+
# @param volume [String]
|
151
|
+
#
|
152
|
+
# @return [::String]
|
153
|
+
def volume_path project:, location:, volume:
|
154
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
155
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
156
|
+
|
157
|
+
"projects/#{project}/locations/#{location}/volumes/#{volume}"
|
158
|
+
end
|
159
|
+
|
160
|
+
extend self
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/bare_metal_solution/v2/version"
|
24
|
+
|
25
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/credentials"
|
26
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/paths"
|
27
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/operations"
|
28
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module BareMetalSolution
|
33
|
+
module V2
|
34
|
+
##
|
35
|
+
# Performs management operations on Bare Metal Solution servers.
|
36
|
+
#
|
37
|
+
# The `baremetalsolution.googleapis.com` service provides management
|
38
|
+
# capabilities for Bare Metal Solution servers. To access the API methods, you
|
39
|
+
# must assign Bare Metal Solution IAM roles containing the desired permissions
|
40
|
+
# to your staff in your Google Cloud project. You must also enable the Bare
|
41
|
+
# Metal Solution API. Once enabled, the methods act
|
42
|
+
# upon specific servers in your Bare Metal Solution environment.
|
43
|
+
#
|
44
|
+
# To load this service and instantiate a client:
|
45
|
+
#
|
46
|
+
# require "google/cloud/bare_metal_solution/v2/bare_metal_solution"
|
47
|
+
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Client.new
|
48
|
+
#
|
49
|
+
module BareMetalSolution
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
helper_path = ::File.join __dir__, "bare_metal_solution", "helpers.rb"
|
57
|
+
require "google/cloud/bare_metal_solution/v2/bare_metal_solution/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module BareMetalSolution
|
23
|
+
module V2
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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"
|
20
|
+
require "google/cloud/bare_metal_solution/v2/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module BareMetalSolution
|
25
|
+
##
|
26
|
+
# To load this package, including all its services, and instantiate a client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/bare_metal_solution/v2"
|
31
|
+
# client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Client.new
|
32
|
+
#
|
33
|
+
module V2
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
helper_path = ::File.join __dir__, "v2", "_helpers.rb"
|
40
|
+
require "google/cloud/bare_metal_solution/v2/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/baremetalsolution/v2/baremetalsolution.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/cloud/baremetalsolution/v2/instance_pb'
|
10
|
+
require 'google/cloud/baremetalsolution/v2/lun_pb'
|
11
|
+
require 'google/cloud/baremetalsolution/v2/network_pb'
|
12
|
+
require 'google/cloud/baremetalsolution/v2/nfs_share_pb'
|
13
|
+
require 'google/cloud/baremetalsolution/v2/volume_pb'
|
14
|
+
require 'google/longrunning/operations_pb'
|
15
|
+
require 'google/protobuf/timestamp_pb'
|
16
|
+
|
17
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
|
+
add_file("google/cloud/baremetalsolution/v2/baremetalsolution.proto", :syntax => :proto3) do
|
19
|
+
add_message "google.cloud.baremetalsolution.v2.OperationMetadata" do
|
20
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
21
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
22
|
+
optional :target, :string, 3
|
23
|
+
optional :verb, :string, 4
|
24
|
+
optional :status_message, :string, 5
|
25
|
+
optional :requested_cancellation, :bool, 6
|
26
|
+
optional :api_version, :string, 7
|
27
|
+
end
|
28
|
+
add_message "google.cloud.baremetalsolution.v2.ResetInstanceResponse" do
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
module Google
|
34
|
+
module Cloud
|
35
|
+
module BareMetalSolution
|
36
|
+
module V2
|
37
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.OperationMetadata").msgclass
|
38
|
+
ResetInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ResetInstanceResponse").msgclass
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto for package 'Google.Cloud.BareMetalSolution.V2'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/baremetalsolution/v2/baremetalsolution_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module BareMetalSolution
|
25
|
+
module V2
|
26
|
+
module BareMetalSolution
|
27
|
+
# Performs management operations on Bare Metal Solution servers.
|
28
|
+
#
|
29
|
+
# The `baremetalsolution.googleapis.com` service provides management
|
30
|
+
# capabilities for Bare Metal Solution servers. To access the API methods, you
|
31
|
+
# must assign Bare Metal Solution IAM roles containing the desired permissions
|
32
|
+
# to your staff in your Google Cloud project. You must also enable the Bare
|
33
|
+
# Metal Solution API. Once enabled, the methods act
|
34
|
+
# upon specific servers in your Bare Metal Solution environment.
|
35
|
+
class Service
|
36
|
+
|
37
|
+
include ::GRPC::GenericService
|
38
|
+
|
39
|
+
self.marshal_class_method = :encode
|
40
|
+
self.unmarshal_class_method = :decode
|
41
|
+
self.service_name = 'google.cloud.baremetalsolution.v2.BareMetalSolution'
|
42
|
+
|
43
|
+
# List servers in a given project and location.
|
44
|
+
rpc :ListInstances, ::Google::Cloud::BareMetalSolution::V2::ListInstancesRequest, ::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse
|
45
|
+
# Get details about a single server.
|
46
|
+
rpc :GetInstance, ::Google::Cloud::BareMetalSolution::V2::GetInstanceRequest, ::Google::Cloud::BareMetalSolution::V2::Instance
|
47
|
+
# Update details of a single server.
|
48
|
+
rpc :UpdateInstance, ::Google::Cloud::BareMetalSolution::V2::UpdateInstanceRequest, ::Google::Longrunning::Operation
|
49
|
+
# Perform an ungraceful, hard reset on a server. Equivalent to shutting the
|
50
|
+
# power off and then turning it back on.
|
51
|
+
rpc :ResetInstance, ::Google::Cloud::BareMetalSolution::V2::ResetInstanceRequest, ::Google::Longrunning::Operation
|
52
|
+
# Starts a server that was shutdown.
|
53
|
+
rpc :StartInstance, ::Google::Cloud::BareMetalSolution::V2::StartInstanceRequest, ::Google::Longrunning::Operation
|
54
|
+
# Stop a running server.
|
55
|
+
rpc :StopInstance, ::Google::Cloud::BareMetalSolution::V2::StopInstanceRequest, ::Google::Longrunning::Operation
|
56
|
+
# Detach LUN from Instance.
|
57
|
+
rpc :DetachLun, ::Google::Cloud::BareMetalSolution::V2::DetachLunRequest, ::Google::Longrunning::Operation
|
58
|
+
# List storage volumes in a given project and location.
|
59
|
+
rpc :ListVolumes, ::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest, ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse
|
60
|
+
# Get details of a single storage volume.
|
61
|
+
rpc :GetVolume, ::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest, ::Google::Cloud::BareMetalSolution::V2::Volume
|
62
|
+
# Update details of a single storage volume.
|
63
|
+
rpc :UpdateVolume, ::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest, ::Google::Longrunning::Operation
|
64
|
+
# Emergency Volume resize.
|
65
|
+
rpc :ResizeVolume, ::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest, ::Google::Longrunning::Operation
|
66
|
+
# List network in a given project and location.
|
67
|
+
rpc :ListNetworks, ::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest, ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse
|
68
|
+
# List all Networks (and used IPs for each Network) in the vendor account
|
69
|
+
# associated with the specified project.
|
70
|
+
rpc :ListNetworkUsage, ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest, ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse
|
71
|
+
# Get details of a single network.
|
72
|
+
rpc :GetNetwork, ::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest, ::Google::Cloud::BareMetalSolution::V2::Network
|
73
|
+
# Update details of a single network.
|
74
|
+
rpc :UpdateNetwork, ::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest, ::Google::Longrunning::Operation
|
75
|
+
# Get details of a single storage logical unit number(LUN).
|
76
|
+
rpc :GetLun, ::Google::Cloud::BareMetalSolution::V2::GetLunRequest, ::Google::Cloud::BareMetalSolution::V2::Lun
|
77
|
+
# List storage volume luns for given storage volume.
|
78
|
+
rpc :ListLuns, ::Google::Cloud::BareMetalSolution::V2::ListLunsRequest, ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse
|
79
|
+
# Get details of a single NFS share.
|
80
|
+
rpc :GetNfsShare, ::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest, ::Google::Cloud::BareMetalSolution::V2::NfsShare
|
81
|
+
# List NFS shares.
|
82
|
+
rpc :ListNfsShares, ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest, ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse
|
83
|
+
# Update details of a single NFS share.
|
84
|
+
rpc :UpdateNfsShare, ::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest, ::Google::Longrunning::Operation
|
85
|
+
end
|
86
|
+
|
87
|
+
Stub = Service.rpc_stub_class
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/baremetalsolution/v2/instance.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/baremetalsolution/v2/lun_pb'
|
9
|
+
require 'google/cloud/baremetalsolution/v2/network_pb'
|
10
|
+
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/baremetalsolution/v2/instance.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.baremetalsolution.v2.Instance" do
|
16
|
+
optional :name, :string, 1
|
17
|
+
optional :id, :string, 11
|
18
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
19
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
20
|
+
optional :machine_type, :string, 4
|
21
|
+
optional :state, :enum, 5, "google.cloud.baremetalsolution.v2.Instance.State"
|
22
|
+
optional :hyperthreading_enabled, :bool, 6
|
23
|
+
map :labels, :string, :string, 7
|
24
|
+
repeated :luns, :message, 8, "google.cloud.baremetalsolution.v2.Lun"
|
25
|
+
repeated :networks, :message, 9, "google.cloud.baremetalsolution.v2.Network"
|
26
|
+
optional :interactive_serial_console_enabled, :bool, 10
|
27
|
+
optional :os_image, :string, 12
|
28
|
+
optional :pod, :string, 13
|
29
|
+
optional :network_template, :string, 14
|
30
|
+
repeated :logical_interfaces, :message, 15, "google.cloud.baremetalsolution.v2.LogicalInterface"
|
31
|
+
end
|
32
|
+
add_enum "google.cloud.baremetalsolution.v2.Instance.State" do
|
33
|
+
value :STATE_UNSPECIFIED, 0
|
34
|
+
value :PROVISIONING, 1
|
35
|
+
value :RUNNING, 2
|
36
|
+
value :DELETED, 3
|
37
|
+
end
|
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
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
module Google
|
92
|
+
module Cloud
|
93
|
+
module BareMetalSolution
|
94
|
+
module V2
|
95
|
+
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.Instance").msgclass
|
96
|
+
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.Instance.State").enummodule
|
97
|
+
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.GetInstanceRequest").msgclass
|
98
|
+
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ListInstancesRequest").msgclass
|
99
|
+
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ListInstancesResponse").msgclass
|
100
|
+
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.UpdateInstanceRequest").msgclass
|
101
|
+
ResetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ResetInstanceRequest").msgclass
|
102
|
+
StartInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.StartInstanceRequest").msgclass
|
103
|
+
StopInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.StopInstanceRequest").msgclass
|
104
|
+
DetachLunRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.DetachLunRequest").msgclass
|
105
|
+
ServerNetworkTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ServerNetworkTemplate").msgclass
|
106
|
+
ServerNetworkTemplate::LogicalInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface").msgclass
|
107
|
+
ServerNetworkTemplate::LogicalInterface::InterfaceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ServerNetworkTemplate.LogicalInterface.InterfaceType").enummodule
|
108
|
+
StartInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.StartInstanceResponse").msgclass
|
109
|
+
StopInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.StopInstanceResponse").msgclass
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/baremetalsolution/v2/lun.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/baremetalsolution/v2/lun.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.baremetalsolution.v2.Lun" do
|
12
|
+
optional :name, :string, 1
|
13
|
+
optional :id, :string, 10
|
14
|
+
optional :state, :enum, 2, "google.cloud.baremetalsolution.v2.Lun.State"
|
15
|
+
optional :size_gb, :int64, 3
|
16
|
+
optional :multiprotocol_type, :enum, 4, "google.cloud.baremetalsolution.v2.Lun.MultiprotocolType"
|
17
|
+
optional :storage_volume, :string, 5
|
18
|
+
optional :shareable, :bool, 6
|
19
|
+
optional :boot_lun, :bool, 7
|
20
|
+
optional :storage_type, :enum, 8, "google.cloud.baremetalsolution.v2.Lun.StorageType"
|
21
|
+
optional :wwid, :string, 9
|
22
|
+
end
|
23
|
+
add_enum "google.cloud.baremetalsolution.v2.Lun.State" do
|
24
|
+
value :STATE_UNSPECIFIED, 0
|
25
|
+
value :CREATING, 1
|
26
|
+
value :UPDATING, 2
|
27
|
+
value :READY, 3
|
28
|
+
value :DELETING, 4
|
29
|
+
end
|
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
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
module Google
|
56
|
+
module Cloud
|
57
|
+
module BareMetalSolution
|
58
|
+
module V2
|
59
|
+
Lun = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.Lun").msgclass
|
60
|
+
Lun::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.Lun.State").enummodule
|
61
|
+
Lun::MultiprotocolType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.Lun.MultiprotocolType").enummodule
|
62
|
+
Lun::StorageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.Lun.StorageType").enummodule
|
63
|
+
GetLunRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.GetLunRequest").msgclass
|
64
|
+
ListLunsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ListLunsRequest").msgclass
|
65
|
+
ListLunsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.baremetalsolution.v2.ListLunsResponse").msgclass
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|