google-cloud-orchestration-airflow-service-v1 0.3.1 → 0.5.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.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb +26 -28
  4. data/lib/google/cloud/orchestration/airflow/service/v1/environments/operations.rb +14 -16
  5. data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/client.rb +945 -0
  6. data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/operations.rb +797 -0
  7. data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/service_stub.rb +469 -0
  8. data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest.rb +57 -0
  9. data/lib/google/cloud/orchestration/airflow/service/v1/environments.rb +6 -0
  10. data/lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb +1 -0
  11. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/client.rb +6 -8
  12. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest/client.rb +354 -0
  13. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest/service_stub.rb +111 -0
  14. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/rest.rb +55 -0
  15. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions.rb +6 -0
  16. data/lib/google/cloud/orchestration/airflow/service/v1/rest.rb +42 -0
  17. data/lib/google/cloud/orchestration/airflow/service/v1/version.rb +1 -1
  18. data/lib/google/cloud/orchestration/airflow/service/v1.rb +5 -0
  19. data/proto_docs/google/api/client.rb +57 -3
  20. data/proto_docs/google/cloud/orchestration/airflow/service/v1/environments.rb +7 -0
  21. metadata +15 -7
@@ -0,0 +1,354 @@
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/errors"
20
+ require "google/cloud/orchestration/airflow/service/v1/image_versions_pb"
21
+ require "google/cloud/orchestration/airflow/service/v1/image_versions/rest/service_stub"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Orchestration
26
+ module Airflow
27
+ module Service
28
+ module V1
29
+ module ImageVersions
30
+ module Rest
31
+ ##
32
+ # REST client for the ImageVersions service.
33
+ #
34
+ # Readonly service to query available ImageVersions.
35
+ #
36
+ class Client
37
+ # @private
38
+ attr_reader :image_versions_stub
39
+
40
+ ##
41
+ # Configure the ImageVersions Client class.
42
+ #
43
+ # See {::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client::Configuration}
44
+ # for a description of the configuration fields.
45
+ #
46
+ # @example
47
+ #
48
+ # # Modify the configuration for all ImageVersions clients
49
+ # ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
52
+ #
53
+ # @yield [config] Configure the Client client.
54
+ # @yieldparam config [Client::Configuration]
55
+ #
56
+ # @return [Client::Configuration]
57
+ #
58
+ def self.configure
59
+ @configure ||= begin
60
+ namespace = ["Google", "Cloud", "Orchestration", "Airflow", "Service", "V1"]
61
+ parent_config = while namespace.any?
62
+ parent_name = namespace.join "::"
63
+ parent_const = const_get parent_name
64
+ break parent_const.configure if parent_const.respond_to? :configure
65
+ namespace.pop
66
+ end
67
+ default_config = Client::Configuration.new parent_config
68
+
69
+ default_config
70
+ end
71
+ yield @configure if block_given?
72
+ @configure
73
+ end
74
+
75
+ ##
76
+ # Configure the ImageVersions Client instance.
77
+ #
78
+ # The configuration is set to the derived mode, meaning that values can be changed,
79
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
80
+ # should be made on {Client.configure}.
81
+ #
82
+ # See {::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client::Configuration}
83
+ # for a description of the configuration fields.
84
+ #
85
+ # @yield [config] Configure the Client client.
86
+ # @yieldparam config [Client::Configuration]
87
+ #
88
+ # @return [Client::Configuration]
89
+ #
90
+ def configure
91
+ yield @config if block_given?
92
+ @config
93
+ end
94
+
95
+ ##
96
+ # Create a new ImageVersions REST client object.
97
+ #
98
+ # @example
99
+ #
100
+ # # Create a client using the default configuration
101
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client.new
102
+ #
103
+ # # Create a client using a custom configuration
104
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client.new do |config|
105
+ # config.timeout = 10.0
106
+ # end
107
+ #
108
+ # @yield [config] Configure the ImageVersions client.
109
+ # @yieldparam config [Client::Configuration]
110
+ #
111
+ def initialize
112
+ # Create the configuration object
113
+ @config = Configuration.new Client.configure
114
+
115
+ # Yield the configuration if needed
116
+ yield @config if block_given?
117
+
118
+ # Create credentials
119
+ credentials = @config.credentials
120
+ # Use self-signed JWT if the endpoint is unchanged from default,
121
+ # but only if the default endpoint does not have a region prefix.
122
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
123
+ !@config.endpoint.split(".").first.include?("-")
124
+ credentials ||= Credentials.default scope: @config.scope,
125
+ enable_self_signed_jwt: enable_self_signed_jwt
126
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
127
+ credentials = Credentials.new credentials, scope: @config.scope
128
+ end
129
+
130
+ @quota_project_id = @config.quota_project
131
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
132
+
133
+ @image_versions_stub = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
134
+ end
135
+
136
+ # Service calls
137
+
138
+ ##
139
+ # List ImageVersions for provided location.
140
+ #
141
+ # @overload list_image_versions(request, options = nil)
142
+ # Pass arguments to `list_image_versions` via a request object, either of type
143
+ # {::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest} or an equivalent Hash.
144
+ #
145
+ # @param request [::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest, ::Hash]
146
+ # A request object representing the call parameters. Required. To specify no
147
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
148
+ # @param options [::Gapic::CallOptions, ::Hash]
149
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
150
+ #
151
+ # @overload list_image_versions(parent: nil, page_size: nil, page_token: nil, include_past_releases: nil)
152
+ # Pass arguments to `list_image_versions` via keyword arguments. Note that at
153
+ # least one keyword argument is required. To specify no parameters, or to keep all
154
+ # the default parameter values, pass an empty Hash as a request object (see above).
155
+ #
156
+ # @param parent [::String]
157
+ # List ImageVersions in the given project and location, in the form:
158
+ # "projects/\\{projectId}/locations/\\{locationId}"
159
+ # @param page_size [::Integer]
160
+ # The maximum number of image_versions to return.
161
+ # @param page_token [::String]
162
+ # The next_page_token value returned from a previous List request, if any.
163
+ # @param include_past_releases [::Boolean]
164
+ # Whether or not image versions from old releases should be included.
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersion>]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersion>]
170
+ #
171
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
172
+ def list_image_versions request, options = nil
173
+ raise ::ArgumentError, "request must be provided" if request.nil?
174
+
175
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest
176
+
177
+ # Converts hash and nil to an options object
178
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
179
+
180
+ # Customize the options with defaults
181
+ call_metadata = @config.rpcs.list_image_versions.metadata.to_h
182
+
183
+ # Set x-goog-api-client and x-goog-user-project headers
184
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
185
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
186
+ gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION,
187
+ transports_version_send: [:rest]
188
+
189
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
190
+
191
+ options.apply_defaults timeout: @config.rpcs.list_image_versions.timeout,
192
+ metadata: call_metadata,
193
+ retry_policy: @config.rpcs.list_image_versions.retry_policy
194
+
195
+ options.apply_defaults timeout: @config.timeout,
196
+ metadata: @config.metadata,
197
+ retry_policy: @config.retry_policy
198
+
199
+ @image_versions_stub.list_image_versions request, options do |result, operation|
200
+ result = ::Gapic::Rest::PagedEnumerable.new @image_versions_stub, :list_image_versions, "image_versions", request, result, options
201
+ yield result, operation if block_given?
202
+ return result
203
+ end
204
+ rescue ::Gapic::Rest::Error => e
205
+ raise ::Google::Cloud::Error.from_error(e)
206
+ end
207
+
208
+ ##
209
+ # Configuration class for the ImageVersions REST API.
210
+ #
211
+ # This class represents the configuration for ImageVersions REST,
212
+ # providing control over timeouts, retry behavior, logging, transport
213
+ # parameters, and other low-level controls. Certain parameters can also be
214
+ # applied individually to specific RPCs. See
215
+ # {::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client::Configuration::Rpcs}
216
+ # for a list of RPCs that can be configured independently.
217
+ #
218
+ # Configuration can be applied globally to all clients, or to a single client
219
+ # on construction.
220
+ #
221
+ # @example
222
+ #
223
+ # # Modify the global config, setting the timeout for
224
+ # # list_image_versions to 20 seconds,
225
+ # # and all remaining timeouts to 10 seconds.
226
+ # ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client.configure do |config|
227
+ # config.timeout = 10.0
228
+ # config.rpcs.list_image_versions.timeout = 20.0
229
+ # end
230
+ #
231
+ # # Apply the above configuration only to a new client.
232
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client.new do |config|
233
+ # config.timeout = 10.0
234
+ # config.rpcs.list_image_versions.timeout = 20.0
235
+ # end
236
+ #
237
+ # @!attribute [rw] endpoint
238
+ # The hostname or hostname:port of the service endpoint.
239
+ # Defaults to `"composer.googleapis.com"`.
240
+ # @return [::String]
241
+ # @!attribute [rw] credentials
242
+ # Credentials to send with calls. You may provide any of the following types:
243
+ # * (`String`) The path to a service account key file in JSON format
244
+ # * (`Hash`) A service account key as a Hash
245
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
246
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
247
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
248
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
249
+ # * (`nil`) indicating no credentials
250
+ # @return [::Object]
251
+ # @!attribute [rw] scope
252
+ # The OAuth scopes
253
+ # @return [::Array<::String>]
254
+ # @!attribute [rw] lib_name
255
+ # The library name as recorded in instrumentation and logging
256
+ # @return [::String]
257
+ # @!attribute [rw] lib_version
258
+ # The library version as recorded in instrumentation and logging
259
+ # @return [::String]
260
+ # @!attribute [rw] timeout
261
+ # The call timeout in seconds.
262
+ # @return [::Numeric]
263
+ # @!attribute [rw] metadata
264
+ # Additional headers to be sent with the call.
265
+ # @return [::Hash{::Symbol=>::String}]
266
+ # @!attribute [rw] retry_policy
267
+ # The retry policy. The value is a hash with the following keys:
268
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
269
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
270
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
271
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
272
+ # trigger a retry.
273
+ # @return [::Hash]
274
+ # @!attribute [rw] quota_project
275
+ # A separate project against which to charge quota.
276
+ # @return [::String]
277
+ #
278
+ class Configuration
279
+ extend ::Gapic::Config
280
+
281
+ config_attr :endpoint, "composer.googleapis.com", ::String
282
+ config_attr :credentials, nil do |value|
283
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
284
+ allowed.any? { |klass| klass === value }
285
+ end
286
+ config_attr :scope, nil, ::String, ::Array, nil
287
+ config_attr :lib_name, nil, ::String, nil
288
+ config_attr :lib_version, nil, ::String, nil
289
+ config_attr :timeout, nil, ::Numeric, nil
290
+ config_attr :metadata, nil, ::Hash, nil
291
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
292
+ config_attr :quota_project, nil, ::String, nil
293
+
294
+ # @private
295
+ def initialize parent_config = nil
296
+ @parent_config = parent_config unless parent_config.nil?
297
+
298
+ yield self if block_given?
299
+ end
300
+
301
+ ##
302
+ # Configurations for individual RPCs
303
+ # @return [Rpcs]
304
+ #
305
+ def rpcs
306
+ @rpcs ||= begin
307
+ parent_rpcs = nil
308
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
309
+ Rpcs.new parent_rpcs
310
+ end
311
+ end
312
+
313
+ ##
314
+ # Configuration RPC class for the ImageVersions API.
315
+ #
316
+ # Includes fields providing the configuration for each RPC in this service.
317
+ # Each configuration object is of type `Gapic::Config::Method` and includes
318
+ # the following configuration fields:
319
+ #
320
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
321
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
322
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
323
+ # include the following keys:
324
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
325
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
326
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
327
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
328
+ # trigger a retry.
329
+ #
330
+ class Rpcs
331
+ ##
332
+ # RPC-specific configuration for `list_image_versions`
333
+ # @return [::Gapic::Config::Method]
334
+ #
335
+ attr_reader :list_image_versions
336
+
337
+ # @private
338
+ def initialize parent_rpcs = nil
339
+ list_image_versions_config = parent_rpcs.list_image_versions if parent_rpcs.respond_to? :list_image_versions
340
+ @list_image_versions = ::Gapic::Config::Method.new list_image_versions_config
341
+
342
+ yield self if block_given?
343
+ end
344
+ end
345
+ end
346
+ end
347
+ end
348
+ end
349
+ end
350
+ end
351
+ end
352
+ end
353
+ end
354
+ end
@@ -0,0 +1,111 @@
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/orchestration/airflow/service/v1/image_versions_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Orchestration
24
+ module Airflow
25
+ module Service
26
+ module V1
27
+ module ImageVersions
28
+ module Rest
29
+ ##
30
+ # REST service stub for the ImageVersions service.
31
+ # Service stub contains baseline method implementations
32
+ # including transcoding, making the REST call, and deserialing the response.
33
+ #
34
+ class ServiceStub
35
+ def initialize endpoint:, credentials:
36
+ # These require statements are intentionally placed here to initialize
37
+ # the REST modules only when it's required.
38
+ require "gapic/rest"
39
+
40
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
41
+ numeric_enums: true,
42
+ raise_faraday_errors: false
43
+ end
44
+
45
+ ##
46
+ # Baseline implementation for the list_image_versions REST call
47
+ #
48
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest]
49
+ # A request object representing the call parameters. Required.
50
+ # @param options [::Gapic::CallOptions]
51
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
52
+ #
53
+ # @yield [result, operation] Access the result along with the TransportOperation object
54
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsResponse]
55
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
56
+ #
57
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsResponse]
58
+ # A result object deserialized from the server's reply
59
+ def list_image_versions request_pb, options = nil
60
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
61
+
62
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_image_versions_request request_pb
63
+ query_string_params = if query_string_params.any?
64
+ query_string_params.to_h { |p| p.split("=", 2) }
65
+ else
66
+ {}
67
+ end
68
+
69
+ response = @client_stub.make_http_request(
70
+ verb,
71
+ uri: uri,
72
+ body: body || "",
73
+ params: query_string_params,
74
+ options: options
75
+ )
76
+ operation = ::Gapic::Rest::TransportOperation.new response
77
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsResponse.decode_json response.body, ignore_unknown_fields: true
78
+
79
+ yield result, operation if block_given?
80
+ result
81
+ end
82
+
83
+ ##
84
+ # @private
85
+ #
86
+ # GRPC transcoding helper method for the list_image_versions REST call
87
+ #
88
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest]
89
+ # A request object representing the call parameters. Required.
90
+ # @return [Array(String, [String, nil], Hash{String => String})]
91
+ # Uri, Body, Query string parameters
92
+ def self.transcode_list_image_versions_request request_pb
93
+ transcoder = Gapic::Rest::GrpcTranscoder.new
94
+ .with_bindings(
95
+ uri_method: :get,
96
+ uri_template: "/v1/{parent}/imageVersions",
97
+ matches: [
98
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
99
+ ]
100
+ )
101
+ transcoder.transcode request_pb
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,55 @@
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/orchestration/airflow/service/v1/version"
24
+
25
+ require "google/cloud/orchestration/airflow/service/v1/image_versions/credentials"
26
+ require "google/cloud/orchestration/airflow/service/v1/image_versions/rest/client"
27
+
28
+ module Google
29
+ module Cloud
30
+ module Orchestration
31
+ module Airflow
32
+ module Service
33
+ module V1
34
+ ##
35
+ # Readonly service to query available ImageVersions.
36
+ #
37
+ # To load this service and instantiate a REST client:
38
+ #
39
+ # require "google/cloud/orchestration/airflow/service/v1/image_versions/rest"
40
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client.new
41
+ #
42
+ module ImageVersions
43
+ # Client for the REST transport
44
+ module Rest
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
55
+ require "google/cloud/orchestration/airflow/service/v1/image_versions/rest/helpers" if ::File.file? helper_path
@@ -24,6 +24,7 @@ require "google/cloud/orchestration/airflow/service/v1/version"
24
24
 
25
25
  require "google/cloud/orchestration/airflow/service/v1/image_versions/credentials"
26
26
  require "google/cloud/orchestration/airflow/service/v1/image_versions/client"
27
+ require "google/cloud/orchestration/airflow/service/v1/image_versions/rest"
27
28
 
28
29
  module Google
29
30
  module Cloud
@@ -39,6 +40,11 @@ module Google
39
40
  # require "google/cloud/orchestration/airflow/service/v1/image_versions"
40
41
  # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client.new
41
42
  #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/orchestration/airflow/service/v1/image_versions/rest"
46
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Rest::Client.new
47
+ #
42
48
  module ImageVersions
43
49
  end
44
50
  end
@@ -0,0 +1,42 @@
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/orchestration/airflow/service/v1/environments/rest"
20
+ require "google/cloud/orchestration/airflow/service/v1/image_versions/rest"
21
+ require "google/cloud/orchestration/airflow/service/v1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Orchestration
26
+ module Airflow
27
+ module Service
28
+ ##
29
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
30
+ #
31
+ # @example
32
+ #
33
+ # require "google/cloud/orchestration/airflow/service/v1/rest"
34
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Rest::Client.new
35
+ #
36
+ module V1
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -23,7 +23,7 @@ module Google
23
23
  module Airflow
24
24
  module Service
25
25
  module V1
26
- VERSION = "0.3.1"
26
+ VERSION = "0.5.0"
27
27
  end
28
28
  end
29
29
  end
@@ -33,6 +33,11 @@ module Google
33
33
  # require "google/cloud/orchestration/airflow/service/v1"
34
34
  # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Client.new
35
35
  #
36
+ # @example Load this package, including all its services, and instantiate a REST client
37
+ #
38
+ # require "google/cloud/orchestration/airflow/service/v1"
39
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Rest::Client.new
40
+ #
36
41
  module V1
37
42
  end
38
43
  end