google-cloud-vmware_engine-v1 0.1.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- 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 +94 -108
- data/lib/google/cloud/vmware_engine/v1/vmware_engine/operations.rb +14 -16
- 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 +28 -406
- data/lib/google/cloud/vmwareengine/v1/vmwareengine_resources_pb.rb +73 -0
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine.rb +0 -648
- data/proto_docs/google/cloud/vmwareengine/v1/vmwareengine_resources.rb +674 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- 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: 4564d92a2602546ce33255bc4479581be8e91321360c729db279d0cd3fe89a18
|
4
|
+
data.tar.gz: 39f599e0ed05cfb292e2d1d18a1e654a4eaa4b756cd2ae3a225c70e79eddabb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16c38d828c732a87cd2aa6f8efe41d91134d3cc3ac3256096c9cc50291e93d1514fadb97a00ee6a6ea21471fd537032e768ebe436e891f9be4a1facd0bf93459
|
7
|
+
data.tar.gz: f71d1146e5247e6729d8efa3833b7cb68860e1d53ef9193db5f001a17e9fbde5321698684f716db5abf09a963f09e798c8f53f9685a02a9005c5833651b7720f
|
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
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -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
|