google-cloud-batch-v1 0.6.0 → 0.8.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 +2 -2
- data/lib/google/cloud/batch/v1/batch_pb.rb +1 -0
- data/lib/google/cloud/batch/v1/batch_service/client.rb +18 -36
- data/lib/google/cloud/batch/v1/batch_service/operations.rb +14 -16
- data/lib/google/cloud/batch/v1/batch_service/rest/client.rb +810 -0
- data/lib/google/cloud/batch/v1/batch_service/rest/operations.rb +793 -0
- data/lib/google/cloud/batch/v1/batch_service/rest/service_stub.rb +403 -0
- data/lib/google/cloud/batch/v1/batch_service/rest.rb +56 -0
- data/lib/google/cloud/batch/v1/batch_service.rb +6 -0
- data/lib/google/cloud/batch/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/batch/v1/job_pb.rb +6 -0
- data/lib/google/cloud/batch/v1/rest.rb +38 -0
- data/lib/google/cloud/batch/v1/task_pb.rb +3 -0
- data/lib/google/cloud/batch/v1/version.rb +1 -1
- data/lib/google/cloud/batch/v1.rb +5 -0
- data/lib/google/iam/v1/bindings_override.rb +100 -0
- data/lib/google/iam/v1/iam_policy/client.rb +639 -0
- data/lib/google/iam/v1/iam_policy/credentials.rb +42 -0
- data/lib/google/iam/v1/iam_policy/rest/client.rb +558 -0
- data/lib/google/iam/v1/iam_policy/rest/service_stub.rb +226 -0
- data/lib/google/iam/v1/iam_policy/rest.rb +75 -0
- data/lib/google/iam/v1/iam_policy.rb +77 -0
- data/lib/google/iam/v1/rest.rb +36 -0
- data/lib/google/iam/v1.rb +43 -0
- data/lib/google-cloud-batch-v1.rb +1 -0
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/batch/v1/batch.rb +4 -4
- data/proto_docs/google/cloud/batch/v1/job.rb +53 -16
- data/proto_docs/google/cloud/batch/v1/task.rb +46 -10
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +422 -0
- metadata +32 -20
@@ -0,0 +1,226 @@
|
|
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/iam/v1/iam_policy_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Iam
|
23
|
+
module V1
|
24
|
+
module IAMPolicy
|
25
|
+
module Rest
|
26
|
+
##
|
27
|
+
# REST service stub for the IAMPolicy service.
|
28
|
+
# Service stub contains baseline method implementations
|
29
|
+
# including transcoding, making the REST call, and deserialing the response.
|
30
|
+
#
|
31
|
+
class ServiceStub
|
32
|
+
def initialize endpoint:, credentials:
|
33
|
+
# These require statements are intentionally placed here to initialize
|
34
|
+
# the REST modules only when it's required.
|
35
|
+
require "gapic/rest"
|
36
|
+
|
37
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
38
|
+
numeric_enums: true,
|
39
|
+
raise_faraday_errors: false
|
40
|
+
end
|
41
|
+
|
42
|
+
##
|
43
|
+
# Baseline implementation for the set_iam_policy REST call
|
44
|
+
#
|
45
|
+
# @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
|
46
|
+
# A request object representing the call parameters. Required.
|
47
|
+
# @param options [::Gapic::CallOptions]
|
48
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
49
|
+
#
|
50
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
51
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
52
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
53
|
+
#
|
54
|
+
# @return [::Google::Iam::V1::Policy]
|
55
|
+
# A result object deserialized from the server's reply
|
56
|
+
def set_iam_policy request_pb, options = nil
|
57
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
58
|
+
|
59
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
60
|
+
query_string_params = if query_string_params.any?
|
61
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
62
|
+
else
|
63
|
+
{}
|
64
|
+
end
|
65
|
+
|
66
|
+
response = @client_stub.make_http_request(
|
67
|
+
verb,
|
68
|
+
uri: uri,
|
69
|
+
body: body || "",
|
70
|
+
params: query_string_params,
|
71
|
+
options: options
|
72
|
+
)
|
73
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
74
|
+
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
75
|
+
|
76
|
+
yield result, operation if block_given?
|
77
|
+
result
|
78
|
+
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# Baseline implementation for the get_iam_policy REST call
|
82
|
+
#
|
83
|
+
# @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
|
84
|
+
# A request object representing the call parameters. Required.
|
85
|
+
# @param options [::Gapic::CallOptions]
|
86
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
87
|
+
#
|
88
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
89
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
90
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
91
|
+
#
|
92
|
+
# @return [::Google::Iam::V1::Policy]
|
93
|
+
# A result object deserialized from the server's reply
|
94
|
+
def get_iam_policy request_pb, options = nil
|
95
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
96
|
+
|
97
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
98
|
+
query_string_params = if query_string_params.any?
|
99
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
100
|
+
else
|
101
|
+
{}
|
102
|
+
end
|
103
|
+
|
104
|
+
response = @client_stub.make_http_request(
|
105
|
+
verb,
|
106
|
+
uri: uri,
|
107
|
+
body: body || "",
|
108
|
+
params: query_string_params,
|
109
|
+
options: options
|
110
|
+
)
|
111
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
112
|
+
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
113
|
+
|
114
|
+
yield result, operation if block_given?
|
115
|
+
result
|
116
|
+
end
|
117
|
+
|
118
|
+
##
|
119
|
+
# Baseline implementation for the test_iam_permissions REST call
|
120
|
+
#
|
121
|
+
# @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
|
122
|
+
# A request object representing the call parameters. Required.
|
123
|
+
# @param options [::Gapic::CallOptions]
|
124
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
125
|
+
#
|
126
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
127
|
+
# @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
|
128
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
129
|
+
#
|
130
|
+
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
131
|
+
# A result object deserialized from the server's reply
|
132
|
+
def test_iam_permissions request_pb, options = nil
|
133
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
134
|
+
|
135
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
136
|
+
query_string_params = if query_string_params.any?
|
137
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
138
|
+
else
|
139
|
+
{}
|
140
|
+
end
|
141
|
+
|
142
|
+
response = @client_stub.make_http_request(
|
143
|
+
verb,
|
144
|
+
uri: uri,
|
145
|
+
body: body || "",
|
146
|
+
params: query_string_params,
|
147
|
+
options: options
|
148
|
+
)
|
149
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
150
|
+
result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
151
|
+
|
152
|
+
yield result, operation if block_given?
|
153
|
+
result
|
154
|
+
end
|
155
|
+
|
156
|
+
##
|
157
|
+
# @private
|
158
|
+
#
|
159
|
+
# GRPC transcoding helper method for the set_iam_policy REST call
|
160
|
+
#
|
161
|
+
# @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
|
162
|
+
# A request object representing the call parameters. Required.
|
163
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
164
|
+
# Uri, Body, Query string parameters
|
165
|
+
def self.transcode_set_iam_policy_request request_pb
|
166
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
167
|
+
.with_bindings(
|
168
|
+
uri_method: :post,
|
169
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
170
|
+
body: "*",
|
171
|
+
matches: [
|
172
|
+
["resource", %r{^.*$}, true]
|
173
|
+
]
|
174
|
+
)
|
175
|
+
transcoder.transcode request_pb
|
176
|
+
end
|
177
|
+
|
178
|
+
##
|
179
|
+
# @private
|
180
|
+
#
|
181
|
+
# GRPC transcoding helper method for the get_iam_policy REST call
|
182
|
+
#
|
183
|
+
# @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
|
184
|
+
# A request object representing the call parameters. Required.
|
185
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
186
|
+
# Uri, Body, Query string parameters
|
187
|
+
def self.transcode_get_iam_policy_request request_pb
|
188
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
189
|
+
.with_bindings(
|
190
|
+
uri_method: :post,
|
191
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
192
|
+
body: "*",
|
193
|
+
matches: [
|
194
|
+
["resource", %r{^.*$}, true]
|
195
|
+
]
|
196
|
+
)
|
197
|
+
transcoder.transcode request_pb
|
198
|
+
end
|
199
|
+
|
200
|
+
##
|
201
|
+
# @private
|
202
|
+
#
|
203
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
204
|
+
#
|
205
|
+
# @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
|
206
|
+
# A request object representing the call parameters. Required.
|
207
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
208
|
+
# Uri, Body, Query string parameters
|
209
|
+
def self.transcode_test_iam_permissions_request request_pb
|
210
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
211
|
+
.with_bindings(
|
212
|
+
uri_method: :post,
|
213
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
214
|
+
body: "*",
|
215
|
+
matches: [
|
216
|
+
["resource", %r{^.*$}, true]
|
217
|
+
]
|
218
|
+
)
|
219
|
+
transcoder.transcode request_pb
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
@@ -0,0 +1,75 @@
|
|
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/batch/v1/version"
|
24
|
+
require "google/iam/v1/bindings_override"
|
25
|
+
|
26
|
+
require "google/iam/v1/iam_policy/credentials"
|
27
|
+
require "google/iam/v1/iam_policy/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Iam
|
31
|
+
module V1
|
32
|
+
##
|
33
|
+
# API Overview
|
34
|
+
#
|
35
|
+
#
|
36
|
+
# Manages Identity and Access Management (IAM) policies.
|
37
|
+
#
|
38
|
+
# Any implementation of an API that offers access control features
|
39
|
+
# implements the google.iam.v1.IAMPolicy interface.
|
40
|
+
#
|
41
|
+
# ## Data model
|
42
|
+
#
|
43
|
+
# Access control is applied when a principal (user or service account), takes
|
44
|
+
# some action on a resource exposed by a service. Resources, identified by
|
45
|
+
# URI-like names, are the unit of access control specification. Service
|
46
|
+
# implementations can choose the granularity of access control and the
|
47
|
+
# supported permissions for their resources.
|
48
|
+
# For example one database service may allow access control to be
|
49
|
+
# specified only at the Table level, whereas another might allow access control
|
50
|
+
# to also be specified at the Column level.
|
51
|
+
#
|
52
|
+
# ## Policy Structure
|
53
|
+
#
|
54
|
+
# See google.iam.v1.Policy
|
55
|
+
#
|
56
|
+
# This is intentionally not a CRUD style API because access control policies
|
57
|
+
# are created and deleted implicitly with the resources to which they are
|
58
|
+
# attached.
|
59
|
+
#
|
60
|
+
# To load this service and instantiate a REST client:
|
61
|
+
#
|
62
|
+
# require "google/iam/v1/iam_policy/rest"
|
63
|
+
# client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
|
64
|
+
#
|
65
|
+
module IAMPolicy
|
66
|
+
# Client for the REST transport
|
67
|
+
module Rest
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
75
|
+
require "google/iam/v1/iam_policy/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,77 @@
|
|
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/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/batch/v1/version"
|
24
|
+
|
25
|
+
require "google/iam/v1/iam_policy/credentials"
|
26
|
+
require "google/iam/v1/iam_policy/client"
|
27
|
+
require "google/iam/v1/iam_policy/rest"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Iam
|
31
|
+
module V1
|
32
|
+
##
|
33
|
+
# API Overview
|
34
|
+
#
|
35
|
+
#
|
36
|
+
# Manages Identity and Access Management (IAM) policies.
|
37
|
+
#
|
38
|
+
# Any implementation of an API that offers access control features
|
39
|
+
# implements the google.iam.v1.IAMPolicy interface.
|
40
|
+
#
|
41
|
+
# ## Data model
|
42
|
+
#
|
43
|
+
# Access control is applied when a principal (user or service account), takes
|
44
|
+
# some action on a resource exposed by a service. Resources, identified by
|
45
|
+
# URI-like names, are the unit of access control specification. Service
|
46
|
+
# implementations can choose the granularity of access control and the
|
47
|
+
# supported permissions for their resources.
|
48
|
+
# For example one database service may allow access control to be
|
49
|
+
# specified only at the Table level, whereas another might allow access control
|
50
|
+
# to also be specified at the Column level.
|
51
|
+
#
|
52
|
+
# ## Policy Structure
|
53
|
+
#
|
54
|
+
# See google.iam.v1.Policy
|
55
|
+
#
|
56
|
+
# This is intentionally not a CRUD style API because access control policies
|
57
|
+
# are created and deleted implicitly with the resources to which they are
|
58
|
+
# attached.
|
59
|
+
#
|
60
|
+
# @example Load this service and instantiate a gRPC client
|
61
|
+
#
|
62
|
+
# require "google/iam/v1/iam_policy"
|
63
|
+
# client = ::Google::Iam::V1::IAMPolicy::Client.new
|
64
|
+
#
|
65
|
+
# @example Load this service and instantiate a REST client
|
66
|
+
#
|
67
|
+
# require "google/iam/v1/iam_policy/rest"
|
68
|
+
# client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
|
69
|
+
#
|
70
|
+
module IAMPolicy
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
helper_path = ::File.join __dir__, "iam_policy", "helpers.rb"
|
77
|
+
require "google/iam/v1/iam_policy/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,36 @@
|
|
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/iam/v1/iam_policy/rest"
|
20
|
+
require "google/iam/v1/bindings_override"
|
21
|
+
require "google/cloud/batch/v1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Iam
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/iam/v1/rest"
|
31
|
+
# client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,43 @@
|
|
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/iam/v1/iam_policy"
|
20
|
+
require "google/cloud/batch/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Iam
|
24
|
+
##
|
25
|
+
# API client module.
|
26
|
+
#
|
27
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
28
|
+
#
|
29
|
+
# require "google/iam/v1"
|
30
|
+
# client = ::Google::Iam::V1::IAMPolicy::Client.new
|
31
|
+
#
|
32
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
33
|
+
#
|
34
|
+
# require "google/iam/v1"
|
35
|
+
# client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
|
36
|
+
#
|
37
|
+
module V1
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
43
|
+
require "google/iam/v1/_helpers" if ::File.file? helper_path
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -47,8 +47,8 @@ module Google
|
|
47
47
|
# ignore the request if it has already been completed. The server will
|
48
48
|
# guarantee that for at least 60 minutes since the first request.
|
49
49
|
#
|
50
|
-
# For example, consider a situation where you make an initial request and
|
51
|
-
#
|
50
|
+
# For example, consider a situation where you make an initial request and
|
51
|
+
# the request times out. If you make the request again with the same request
|
52
52
|
# ID, the server can check if original operation with the same request ID
|
53
53
|
# was received, and if so, will ignore the second request. This prevents
|
54
54
|
# clients from accidentally creating duplicate commitments.
|
@@ -83,8 +83,8 @@ module Google
|
|
83
83
|
# ignore the request if it has already been completed. The server will
|
84
84
|
# guarantee that for at least 60 minutes after the first request.
|
85
85
|
#
|
86
|
-
# For example, consider a situation where you make an initial request and
|
87
|
-
#
|
86
|
+
# For example, consider a situation where you make an initial request and
|
87
|
+
# the request times out. If you make the request again with the same request
|
88
88
|
# ID, the server can check if original operation with the same request ID
|
89
89
|
# was received, and if so, will ignore the second request. This prevents
|
90
90
|
# clients from accidentally creating duplicate commitments.
|