google-cloud-vmware_engine-v1 0.1.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 +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/vmware_engine/v1/version.rb +28 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb +4129 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/credentials.rb +47 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/operations.rb +770 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/paths.rb +185 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine.rb +50 -0
- data/lib/google/cloud/vmware_engine/v1.rb +40 -0
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_pb.rb +470 -0
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_services_pb.rb +171 -0
- data/lib/google-cloud-vmware_engine-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine.rb +1774 -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 +34 -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
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +262 -0
@@ -0,0 +1,185 @@
|
|
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 VmwareEngine
|
23
|
+
module V1
|
24
|
+
module VmwareEngine
|
25
|
+
# Path helper methods for the VmwareEngine API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Cluster resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param private_cloud [String]
|
37
|
+
# @param cluster [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def cluster_path project:, location:, private_cloud:, cluster:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "private_cloud cannot contain /" if private_cloud.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/locations/#{location}/privateClouds/#{private_cloud}/clusters/#{cluster}"
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Create a fully-qualified HcxActivationKey resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param private_cloud [String]
|
58
|
+
# @param hcx_activation_key [String]
|
59
|
+
#
|
60
|
+
# @return [::String]
|
61
|
+
def hcx_activation_key_path project:, location:, private_cloud:, hcx_activation_key:
|
62
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
64
|
+
raise ::ArgumentError, "private_cloud cannot contain /" if private_cloud.to_s.include? "/"
|
65
|
+
|
66
|
+
"projects/#{project}/locations/#{location}/privateClouds/#{private_cloud}/hcxActivationKeys/#{hcx_activation_key}"
|
67
|
+
end
|
68
|
+
|
69
|
+
##
|
70
|
+
# Create a fully-qualified Location resource string.
|
71
|
+
#
|
72
|
+
# The resource will be in the following format:
|
73
|
+
#
|
74
|
+
# `projects/{project}/locations/{location}`
|
75
|
+
#
|
76
|
+
# @param project [String]
|
77
|
+
# @param location [String]
|
78
|
+
#
|
79
|
+
# @return [::String]
|
80
|
+
def location_path project:, location:
|
81
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
82
|
+
|
83
|
+
"projects/#{project}/locations/#{location}"
|
84
|
+
end
|
85
|
+
|
86
|
+
##
|
87
|
+
# Create a fully-qualified Network resource string.
|
88
|
+
#
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `projects/{project}/global/networks/{network}`
|
92
|
+
#
|
93
|
+
# @param project [String]
|
94
|
+
# @param network [String]
|
95
|
+
#
|
96
|
+
# @return [::String]
|
97
|
+
def network_path project:, network:
|
98
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/global/networks/#{network}"
|
101
|
+
end
|
102
|
+
|
103
|
+
##
|
104
|
+
# Create a fully-qualified NetworkPolicy resource string.
|
105
|
+
#
|
106
|
+
# The resource will be in the following format:
|
107
|
+
#
|
108
|
+
# `projects/{project}/locations/{location}/networkPolicies/{network_policy}`
|
109
|
+
#
|
110
|
+
# @param project [String]
|
111
|
+
# @param location [String]
|
112
|
+
# @param network_policy [String]
|
113
|
+
#
|
114
|
+
# @return [::String]
|
115
|
+
def network_policy_path project:, location:, network_policy:
|
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}/networkPolicies/#{network_policy}"
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# Create a fully-qualified NodeType resource string.
|
124
|
+
#
|
125
|
+
# The resource will be in the following format:
|
126
|
+
#
|
127
|
+
# `projects/{project}/locations/{location}/nodeTypes/{node_type}`
|
128
|
+
#
|
129
|
+
# @param project [String]
|
130
|
+
# @param location [String]
|
131
|
+
# @param node_type [String]
|
132
|
+
#
|
133
|
+
# @return [::String]
|
134
|
+
def node_type_path project:, location:, node_type:
|
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}/nodeTypes/#{node_type}"
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# Create a fully-qualified PrivateCloud resource string.
|
143
|
+
#
|
144
|
+
# The resource will be in the following format:
|
145
|
+
#
|
146
|
+
# `projects/{project}/locations/{location}/privateClouds/{private_cloud}`
|
147
|
+
#
|
148
|
+
# @param project [String]
|
149
|
+
# @param location [String]
|
150
|
+
# @param private_cloud [String]
|
151
|
+
#
|
152
|
+
# @return [::String]
|
153
|
+
def private_cloud_path project:, location:, private_cloud:
|
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}/privateClouds/#{private_cloud}"
|
158
|
+
end
|
159
|
+
|
160
|
+
##
|
161
|
+
# Create a fully-qualified VmwareEngineNetwork resource string.
|
162
|
+
#
|
163
|
+
# The resource will be in the following format:
|
164
|
+
#
|
165
|
+
# `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}`
|
166
|
+
#
|
167
|
+
# @param project [String]
|
168
|
+
# @param location [String]
|
169
|
+
# @param vmware_engine_network [String]
|
170
|
+
#
|
171
|
+
# @return [::String]
|
172
|
+
def vmware_engine_network_path project:, location:, vmware_engine_network:
|
173
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
174
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
175
|
+
|
176
|
+
"projects/#{project}/locations/#{location}/vmwareEngineNetworks/#{vmware_engine_network}"
|
177
|
+
end
|
178
|
+
|
179
|
+
extend self
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
@@ -0,0 +1,50 @@
|
|
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/vmware_engine/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/vmware_engine/v1/vmware_engine/credentials"
|
26
|
+
require "google/cloud/vmware_engine/v1/vmware_engine/paths"
|
27
|
+
require "google/cloud/vmware_engine/v1/vmware_engine/operations"
|
28
|
+
require "google/cloud/vmware_engine/v1/vmware_engine/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module VmwareEngine
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# VMwareEngine manages VMware's private clusters in the Cloud.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/vmware_engine/v1/vmware_engine"
|
40
|
+
# client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Client.new
|
41
|
+
#
|
42
|
+
module VmwareEngine
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
helper_path = ::File.join __dir__, "vmware_engine", "helpers.rb"
|
50
|
+
require "google/cloud/vmware_engine/v1/vmware_engine/helpers" if ::File.file? helper_path
|
@@ -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/vmware_engine/v1/vmware_engine"
|
20
|
+
require "google/cloud/vmware_engine/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module VmwareEngine
|
25
|
+
##
|
26
|
+
# To load this package, including all its services, and instantiate a client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/vmware_engine/v1"
|
31
|
+
# client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
40
|
+
require "google/cloud/vmware_engine/v1/_helpers" if ::File.file? helper_path
|