google-cloud-vmware_engine-v1 0.1.1 → 0.2.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/README.md +1 -1
- data/lib/google/cloud/vmware_engine/v1/bindings_override.rb +183 -0
- data/lib/google/cloud/vmware_engine/v1/rest.rb +38 -0
- data/lib/google/cloud/vmware_engine/v1/version.rb +1 -1
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/client.rb +92 -106
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/operations.rb +12 -14
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/client.rb +3246 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/operations.rb +793 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest/service_stub.rb +1889 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/rest.rb +54 -0
- data/lib/google/cloud/vmware_engine/v1/vmware_engine.rb +6 -0
- data/lib/google/cloud/vmware_engine/v1.rb +5 -0
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_pb.rb +1 -210
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_resources_pb.rb +232 -0
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine.rb +0 -648
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine_resources.rb +674 -0
- metadata +19 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aefed3f9d5e9129e9c1dbdb6244e247cd430418d0cb32b8eb772e5250db5b3c
|
4
|
+
data.tar.gz: 185b38c971368f93121adf5fc4908b0d7b86ce4954fbc3285fc2634c3752cc89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67aa4ff03849203cabeb82a7f55ef9a6e21e1bad4ce4507ca487a8e794b3eda01cd8efc23e0ccd611e9f40e9dfde82d8981907f497c6123a9a1dc10233a4194e
|
7
|
+
data.tar.gz: ae4be352b7181f5c9ba65ec16cb2920c9aa5f77d4d39046354b555ef5e46156e7aece3ddea1c7983dd7c1206c3149d671fe441b8fb14627b6ac6db2ab3d95b1a
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Google Cloud VMware Engine V1 API
|
2
2
|
|
3
|
-
|
3
|
+
The Google VMware Engine API lets you programmatically manage VMware environments.
|
4
4
|
|
5
5
|
Google Cloud VMware Engine is a fully managed service that lets you run the VMware platform in Google Cloud. VMware Engine provides you with VMware operational continuity so you can benefit from a cloud consumption model and lower your total cost of ownership. VMware Engine also offers on-demand provisioning, pay-as-you-grow, and capacity optimization.
|
6
6
|
|
@@ -0,0 +1,183 @@
|
|
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 VmwareEngine
|
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/vmware_engine/v1/rest"
|
28
|
+
# client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "VmwareEngine"]
|
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: "/v1/{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: "/v1/{name}/locations",
|
61
|
+
matches: [
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
63
|
+
],
|
64
|
+
body: nil
|
65
|
+
)
|
66
|
+
]
|
67
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
|
68
|
+
|
69
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
70
|
+
uri_method: :get,
|
71
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
72
|
+
matches: [
|
73
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/?$}, false]
|
74
|
+
],
|
75
|
+
body: nil
|
76
|
+
),
|
77
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
78
|
+
uri_method: :get,
|
79
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
80
|
+
matches: [
|
81
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/clusters/[^/]+/?$}, false]
|
82
|
+
],
|
83
|
+
body: nil
|
84
|
+
),
|
85
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
86
|
+
uri_method: :get,
|
87
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
88
|
+
matches: [
|
89
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/hcxActivationKeys/[^/]+/?$}, false]
|
90
|
+
],
|
91
|
+
body: nil
|
92
|
+
)
|
93
|
+
]
|
94
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
95
|
+
|
96
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
97
|
+
uri_method: :post,
|
98
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
99
|
+
matches: [
|
100
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/?$}, false]
|
101
|
+
],
|
102
|
+
body: "*"
|
103
|
+
),
|
104
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
105
|
+
uri_method: :post,
|
106
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
107
|
+
matches: [
|
108
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/clusters/[^/]+/?$}, false]
|
109
|
+
],
|
110
|
+
body: "*"
|
111
|
+
),
|
112
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
113
|
+
uri_method: :post,
|
114
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
115
|
+
matches: [
|
116
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/hcxActivationKeys/[^/]+/?$}, false]
|
117
|
+
],
|
118
|
+
body: "*"
|
119
|
+
)
|
120
|
+
]
|
121
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
122
|
+
|
123
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
124
|
+
uri_method: :post,
|
125
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
126
|
+
matches: [
|
127
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/?$}, false]
|
128
|
+
],
|
129
|
+
body: "*"
|
130
|
+
),
|
131
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
132
|
+
uri_method: :post,
|
133
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
134
|
+
matches: [
|
135
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/clusters/[^/]+/?$}, false]
|
136
|
+
],
|
137
|
+
body: "*"
|
138
|
+
),
|
139
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
140
|
+
uri_method: :post,
|
141
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
142
|
+
matches: [
|
143
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/privateClouds/[^/]+/hcxActivationKeys/[^/]+/?$}, false]
|
144
|
+
],
|
145
|
+
body: "*"
|
146
|
+
)
|
147
|
+
]
|
148
|
+
default_config
|
149
|
+
end
|
150
|
+
yield @configure if block_given?
|
151
|
+
@configure
|
152
|
+
end
|
153
|
+
|
154
|
+
##
|
155
|
+
# @private
|
156
|
+
# Configuration class for the google.cloud.vmwareengine.v1 package.
|
157
|
+
#
|
158
|
+
# This class contains common configuration for all services
|
159
|
+
# of the google.cloud.vmwareengine.v1 package.
|
160
|
+
#
|
161
|
+
# This configuration is for internal use of the client library classes,
|
162
|
+
# and it is not intended that the end-users will read or change it.
|
163
|
+
#
|
164
|
+
class Configuration
|
165
|
+
extend ::Gapic::Config
|
166
|
+
|
167
|
+
# @private
|
168
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
169
|
+
# Services in this package should use these when creating clients for the mixin services.
|
170
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
171
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
172
|
+
|
173
|
+
# @private
|
174
|
+
def initialize parent_config = nil
|
175
|
+
@parent_config = parent_config unless parent_config.nil?
|
176
|
+
|
177
|
+
yield self if block_given?
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
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/vmware_engine/v1/vmware_engine/rest"
|
20
|
+
require "google/cloud/vmware_engine/v1/bindings_override"
|
21
|
+
require "google/cloud/vmware_engine/v1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module VmwareEngine
|
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/vmware_engine/v1/rest"
|
32
|
+
# client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|