google-cloud-orchestration-airflow-service-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.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +167 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb +818 -0
  7. data/lib/google/cloud/orchestration/airflow/service/v1/environments/credentials.rb +51 -0
  8. data/lib/google/cloud/orchestration/airflow/service/v1/environments/operations.rb +668 -0
  9. data/lib/google/cloud/orchestration/airflow/service/v1/environments/paths.rb +56 -0
  10. data/lib/google/cloud/orchestration/airflow/service/v1/environments.rb +54 -0
  11. data/lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb +173 -0
  12. data/lib/google/cloud/orchestration/airflow/service/v1/environments_services_pb.rb +57 -0
  13. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/client.rb +380 -0
  14. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/credentials.rb +51 -0
  15. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions.rb +52 -0
  16. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions_pb.rb +46 -0
  17. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions_services_pb.rb +49 -0
  18. data/lib/google/cloud/orchestration/airflow/service/v1/operations_pb.rb +50 -0
  19. data/lib/google/cloud/orchestration/airflow/service/v1/version.rb +32 -0
  20. data/lib/google/cloud/orchestration/airflow/service/v1.rb +43 -0
  21. data/lib/google-cloud-orchestration-airflow-service-v1.rb +21 -0
  22. data/proto_docs/README.md +4 -0
  23. data/proto_docs/google/api/field_behavior.rb +71 -0
  24. data/proto_docs/google/api/resource.rb +283 -0
  25. data/proto_docs/google/cloud/orchestration/airflow/service/v1/environments.rb +762 -0
  26. data/proto_docs/google/cloud/orchestration/airflow/service/v1/image_versions.rb +88 -0
  27. data/proto_docs/google/cloud/orchestration/airflow/service/v1/operations.rb +94 -0
  28. data/proto_docs/google/longrunning/operations.rb +164 -0
  29. data/proto_docs/google/protobuf/any.rb +141 -0
  30. data/proto_docs/google/protobuf/duration.rb +98 -0
  31. data/proto_docs/google/protobuf/empty.rb +36 -0
  32. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  33. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  34. data/proto_docs/google/rpc/status.rb +46 -0
  35. data/proto_docs/google/type/date.rb +53 -0
  36. metadata +228 -0
@@ -0,0 +1,380 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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
+
22
+ module Google
23
+ module Cloud
24
+ module Orchestration
25
+ module Airflow
26
+ module Service
27
+ module V1
28
+ module ImageVersions
29
+ ##
30
+ # Client for the ImageVersions service.
31
+ #
32
+ # Readonly service to query available ImageVersions.
33
+ #
34
+ class Client
35
+ # @private
36
+ attr_reader :image_versions_stub
37
+
38
+ ##
39
+ # Configure the ImageVersions Client class.
40
+ #
41
+ # See {::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # @example
45
+ #
46
+ # # Modify the configuration for all ImageVersions clients
47
+ # ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
50
+ #
51
+ # @yield [config] Configure the Client client.
52
+ # @yieldparam config [Client::Configuration]
53
+ #
54
+ # @return [Client::Configuration]
55
+ #
56
+ def self.configure
57
+ @configure ||= begin
58
+ namespace = ["Google", "Cloud", "Orchestration", "Airflow", "Service", "V1"]
59
+ parent_config = while namespace.any?
60
+ parent_name = namespace.join "::"
61
+ parent_const = const_get parent_name
62
+ break parent_const.configure if parent_const.respond_to? :configure
63
+ namespace.pop
64
+ end
65
+ default_config = Client::Configuration.new parent_config
66
+
67
+ default_config
68
+ end
69
+ yield @configure if block_given?
70
+ @configure
71
+ end
72
+
73
+ ##
74
+ # Configure the ImageVersions Client instance.
75
+ #
76
+ # The configuration is set to the derived mode, meaning that values can be changed,
77
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
78
+ # should be made on {Client.configure}.
79
+ #
80
+ # See {::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client::Configuration}
81
+ # for a description of the configuration fields.
82
+ #
83
+ # @yield [config] Configure the Client client.
84
+ # @yieldparam config [Client::Configuration]
85
+ #
86
+ # @return [Client::Configuration]
87
+ #
88
+ def configure
89
+ yield @config if block_given?
90
+ @config
91
+ end
92
+
93
+ ##
94
+ # Create a new ImageVersions client object.
95
+ #
96
+ # @example
97
+ #
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client.new
100
+ #
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
105
+ #
106
+ # @yield [config] Configure the ImageVersions client.
107
+ # @yieldparam config [Client::Configuration]
108
+ #
109
+ def initialize
110
+ # These require statements are intentionally placed here to initialize
111
+ # the gRPC module only when it's required.
112
+ # See https://github.com/googleapis/toolkit/issues/446
113
+ require "gapic/grpc"
114
+ require "google/cloud/orchestration/airflow/service/v1/image_versions_services_pb"
115
+
116
+ # Create the configuration object
117
+ @config = Configuration.new Client.configure
118
+
119
+ # Yield the configuration if needed
120
+ yield @config if block_given?
121
+
122
+ # Create credentials
123
+ credentials = @config.credentials
124
+ # Use self-signed JWT if the endpoint is unchanged from default,
125
+ # but only if the default endpoint does not have a region prefix.
126
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ !@config.endpoint.split(".").first.include?("-")
128
+ credentials ||= Credentials.default scope: @config.scope,
129
+ enable_self_signed_jwt: enable_self_signed_jwt
130
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
131
+ credentials = Credentials.new credentials, scope: @config.scope
132
+ end
133
+ @quota_project_id = @config.quota_project
134
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
135
+
136
+ @image_versions_stub = ::Gapic::ServiceStub.new(
137
+ ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Stub,
138
+ credentials: credentials,
139
+ endpoint: @config.endpoint,
140
+ channel_args: @config.channel_args,
141
+ interceptors: @config.interceptors
142
+ )
143
+ end
144
+
145
+ # Service calls
146
+
147
+ ##
148
+ # List ImageVersions for provided location.
149
+ #
150
+ # @overload list_image_versions(request, options = nil)
151
+ # Pass arguments to `list_image_versions` via a request object, either of type
152
+ # {::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest} or an equivalent Hash.
153
+ #
154
+ # @param request [::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest, ::Hash]
155
+ # A request object representing the call parameters. Required. To specify no
156
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
157
+ # @param options [::Gapic::CallOptions, ::Hash]
158
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
159
+ #
160
+ # @overload list_image_versions(parent: nil, page_size: nil, page_token: nil, include_past_releases: nil)
161
+ # Pass arguments to `list_image_versions` via keyword arguments. Note that at
162
+ # least one keyword argument is required. To specify no parameters, or to keep all
163
+ # the default parameter values, pass an empty Hash as a request object (see above).
164
+ #
165
+ # @param parent [::String]
166
+ # List ImageVersions in the given project and location, in the form:
167
+ # "projects/\\{projectId}/locations/\\{locationId}"
168
+ # @param page_size [::Integer]
169
+ # The maximum number of image_versions to return.
170
+ # @param page_token [::String]
171
+ # The next_page_token value returned from a previous List request, if any.
172
+ # @param include_past_releases [::Boolean]
173
+ # Whether or not image versions from old releases should be included.
174
+ #
175
+ # @yield [response, operation] Access the result along with the RPC operation
176
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersion>]
177
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
178
+ #
179
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersion>]
180
+ #
181
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
182
+ #
183
+ def list_image_versions request, options = nil
184
+ raise ::ArgumentError, "request must be provided" if request.nil?
185
+
186
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest
187
+
188
+ # Converts hash and nil to an options object
189
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
190
+
191
+ # Customize the options with defaults
192
+ metadata = @config.rpcs.list_image_versions.metadata.to_h
193
+
194
+ # Set x-goog-api-client and x-goog-user-project headers
195
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
197
+ gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
198
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
+
200
+ header_params = {
201
+ "parent" => request.parent
202
+ }
203
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
204
+ metadata[:"x-goog-request-params"] ||= request_params_header
205
+
206
+ options.apply_defaults timeout: @config.rpcs.list_image_versions.timeout,
207
+ metadata: metadata,
208
+ retry_policy: @config.rpcs.list_image_versions.retry_policy
209
+
210
+ options.apply_defaults timeout: @config.timeout,
211
+ metadata: @config.metadata,
212
+ retry_policy: @config.retry_policy
213
+
214
+ @image_versions_stub.call_rpc :list_image_versions, request, options: options do |response, operation|
215
+ response = ::Gapic::PagedEnumerable.new @image_versions_stub, :list_image_versions, request, response, operation, options
216
+ yield response, operation if block_given?
217
+ return response
218
+ end
219
+ rescue ::GRPC::BadStatus => e
220
+ raise ::Google::Cloud::Error.from_error(e)
221
+ end
222
+
223
+ ##
224
+ # Configuration class for the ImageVersions API.
225
+ #
226
+ # This class represents the configuration for ImageVersions,
227
+ # providing control over timeouts, retry behavior, logging, transport
228
+ # parameters, and other low-level controls. Certain parameters can also be
229
+ # applied individually to specific RPCs. See
230
+ # {::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client::Configuration::Rpcs}
231
+ # for a list of RPCs that can be configured independently.
232
+ #
233
+ # Configuration can be applied globally to all clients, or to a single client
234
+ # on construction.
235
+ #
236
+ # @example
237
+ #
238
+ # # Modify the global config, setting the timeout for
239
+ # # list_image_versions to 20 seconds,
240
+ # # and all remaining timeouts to 10 seconds.
241
+ # ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client.configure do |config|
242
+ # config.timeout = 10.0
243
+ # config.rpcs.list_image_versions.timeout = 20.0
244
+ # end
245
+ #
246
+ # # Apply the above configuration only to a new client.
247
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client.new do |config|
248
+ # config.timeout = 10.0
249
+ # config.rpcs.list_image_versions.timeout = 20.0
250
+ # end
251
+ #
252
+ # @!attribute [rw] endpoint
253
+ # The hostname or hostname:port of the service endpoint.
254
+ # Defaults to `"composer.googleapis.com"`.
255
+ # @return [::String]
256
+ # @!attribute [rw] credentials
257
+ # Credentials to send with calls. You may provide any of the following types:
258
+ # * (`String`) The path to a service account key file in JSON format
259
+ # * (`Hash`) A service account key as a Hash
260
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
261
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
262
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
263
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
264
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
265
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
266
+ # * (`nil`) indicating no credentials
267
+ # @return [::Object]
268
+ # @!attribute [rw] scope
269
+ # The OAuth scopes
270
+ # @return [::Array<::String>]
271
+ # @!attribute [rw] lib_name
272
+ # The library name as recorded in instrumentation and logging
273
+ # @return [::String]
274
+ # @!attribute [rw] lib_version
275
+ # The library version as recorded in instrumentation and logging
276
+ # @return [::String]
277
+ # @!attribute [rw] channel_args
278
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
279
+ # `GRPC::Core::Channel` object is provided as the credential.
280
+ # @return [::Hash]
281
+ # @!attribute [rw] interceptors
282
+ # An array of interceptors that are run before calls are executed.
283
+ # @return [::Array<::GRPC::ClientInterceptor>]
284
+ # @!attribute [rw] timeout
285
+ # The call timeout in seconds.
286
+ # @return [::Numeric]
287
+ # @!attribute [rw] metadata
288
+ # Additional gRPC headers to be sent with the call.
289
+ # @return [::Hash{::Symbol=>::String}]
290
+ # @!attribute [rw] retry_policy
291
+ # The retry policy. The value is a hash with the following keys:
292
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
293
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
294
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
295
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
296
+ # trigger a retry.
297
+ # @return [::Hash]
298
+ # @!attribute [rw] quota_project
299
+ # A separate project against which to charge quota.
300
+ # @return [::String]
301
+ #
302
+ class Configuration
303
+ extend ::Gapic::Config
304
+
305
+ config_attr :endpoint, "composer.googleapis.com", ::String
306
+ config_attr :credentials, nil do |value|
307
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
308
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
309
+ allowed.any? { |klass| klass === value }
310
+ end
311
+ config_attr :scope, nil, ::String, ::Array, nil
312
+ config_attr :lib_name, nil, ::String, nil
313
+ config_attr :lib_version, nil, ::String, nil
314
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
315
+ config_attr :interceptors, nil, ::Array, nil
316
+ config_attr :timeout, nil, ::Numeric, nil
317
+ config_attr :metadata, nil, ::Hash, nil
318
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
319
+ config_attr :quota_project, nil, ::String, nil
320
+
321
+ # @private
322
+ def initialize parent_config = nil
323
+ @parent_config = parent_config unless parent_config.nil?
324
+
325
+ yield self if block_given?
326
+ end
327
+
328
+ ##
329
+ # Configurations for individual RPCs
330
+ # @return [Rpcs]
331
+ #
332
+ def rpcs
333
+ @rpcs ||= begin
334
+ parent_rpcs = nil
335
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
336
+ Rpcs.new parent_rpcs
337
+ end
338
+ end
339
+
340
+ ##
341
+ # Configuration RPC class for the ImageVersions API.
342
+ #
343
+ # Includes fields providing the configuration for each RPC in this service.
344
+ # Each configuration object is of type `Gapic::Config::Method` and includes
345
+ # the following configuration fields:
346
+ #
347
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
348
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
349
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
350
+ # include the following keys:
351
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
352
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
353
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
354
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
355
+ # trigger a retry.
356
+ #
357
+ class Rpcs
358
+ ##
359
+ # RPC-specific configuration for `list_image_versions`
360
+ # @return [::Gapic::Config::Method]
361
+ #
362
+ attr_reader :list_image_versions
363
+
364
+ # @private
365
+ def initialize parent_rpcs = nil
366
+ list_image_versions_config = parent_rpcs.list_image_versions if parent_rpcs.respond_to? :list_image_versions
367
+ @list_image_versions = ::Gapic::Config::Method.new list_image_versions_config
368
+
369
+ yield self if block_given?
370
+ end
371
+ end
372
+ end
373
+ end
374
+ end
375
+ end
376
+ end
377
+ end
378
+ end
379
+ end
380
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Orchestration
24
+ module Airflow
25
+ module Service
26
+ module V1
27
+ module ImageVersions
28
+ # Credentials for the ImageVersions API.
29
+ class Credentials < ::Google::Auth::Credentials
30
+ self.scope = [
31
+ "https://www.googleapis.com/auth/cloud-platform"
32
+ ]
33
+ self.env_vars = [
34
+ "GOOGLE_CLOUD_CREDENTIALS",
35
+ "GOOGLE_CLOUD_KEYFILE",
36
+ "GCLOUD_KEYFILE",
37
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
38
+ "GOOGLE_CLOUD_KEYFILE_JSON",
39
+ "GCLOUD_KEYFILE_JSON"
40
+ ]
41
+ self.paths = [
42
+ "~/.config/google_cloud/application_default_credentials.json"
43
+ ]
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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/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/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 client:
38
+ #
39
+ # require "google/cloud/orchestration/airflow/service/v1/image_versions"
40
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client.new
41
+ #
42
+ module ImageVersions
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ helper_path = ::File.join __dir__, "image_versions", "helpers.rb"
52
+ require "google/cloud/orchestration/airflow/service/v1/image_versions/helpers" if ::File.file? helper_path
@@ -0,0 +1,46 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/orchestration/airflow/service/v1/image_versions.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/type/date_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/orchestration/airflow/service/v1/image_versions.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest" do
12
+ optional :parent, :string, 1
13
+ optional :page_size, :int32, 2
14
+ optional :page_token, :string, 3
15
+ optional :include_past_releases, :bool, 4
16
+ end
17
+ add_message "google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse" do
18
+ repeated :image_versions, :message, 1, "google.cloud.orchestration.airflow.service.v1.ImageVersion"
19
+ optional :next_page_token, :string, 2
20
+ end
21
+ add_message "google.cloud.orchestration.airflow.service.v1.ImageVersion" do
22
+ optional :image_version_id, :string, 1
23
+ optional :is_default, :bool, 2
24
+ repeated :supported_python_versions, :string, 3
25
+ optional :release_date, :message, 4, "google.type.Date"
26
+ optional :creation_disabled, :bool, 5
27
+ optional :upgrade_disabled, :bool, 6
28
+ end
29
+ end
30
+ end
31
+
32
+ module Google
33
+ module Cloud
34
+ module Orchestration
35
+ module Airflow
36
+ module Service
37
+ module V1
38
+ ListImageVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest").msgclass
39
+ ListImageVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse").msgclass
40
+ ImageVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.ImageVersion").msgclass
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/orchestration/airflow/service/v1/image_versions.proto for package 'google.cloud.orchestration.airflow.service.v1'
3
+ # Original file comments:
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/orchestration/airflow/service/v1/image_versions_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Orchestration
25
+ module Airflow
26
+ module Service
27
+ module V1
28
+ module ImageVersions
29
+ # Readonly service to query available ImageVersions.
30
+ class Service
31
+
32
+ include ::GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.cloud.orchestration.airflow.service.v1.ImageVersions'
37
+
38
+ # List ImageVersions for provided location.
39
+ rpc :ListImageVersions, ::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest, ::Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsResponse
40
+ end
41
+
42
+ Stub = Service.rpc_stub_class
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,50 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/orchestration/airflow/service/v1/operations.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/cloud/orchestration/airflow/service/v1/operations.proto", :syntax => :proto3) do
10
+ add_message "google.cloud.orchestration.airflow.service.v1.OperationMetadata" do
11
+ optional :state, :enum, 1, "google.cloud.orchestration.airflow.service.v1.OperationMetadata.State"
12
+ optional :operation_type, :enum, 2, "google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type"
13
+ optional :resource, :string, 3
14
+ optional :resource_uuid, :string, 4
15
+ optional :create_time, :message, 5, "google.protobuf.Timestamp"
16
+ optional :end_time, :message, 6, "google.protobuf.Timestamp"
17
+ end
18
+ add_enum "google.cloud.orchestration.airflow.service.v1.OperationMetadata.State" do
19
+ value :STATE_UNSPECIFIED, 0
20
+ value :PENDING, 1
21
+ value :RUNNING, 2
22
+ value :SUCCEEDED, 3
23
+ value :SUCCESSFUL, 3
24
+ value :FAILED, 4
25
+ end
26
+ add_enum "google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type" do
27
+ value :TYPE_UNSPECIFIED, 0
28
+ value :CREATE, 1
29
+ value :DELETE, 2
30
+ value :UPDATE, 3
31
+ value :CHECK, 4
32
+ end
33
+ end
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module Orchestration
39
+ module Airflow
40
+ module Service
41
+ module V1
42
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.OperationMetadata").msgclass
43
+ OperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.OperationMetadata.State").enummodule
44
+ OperationMetadata::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type").enummodule
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 Orchestration
23
+ module Airflow
24
+ module Service
25
+ module V1
26
+ VERSION = "0.1.0"
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end