google-cloud-orchestration-airflow-service-v1 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a301bc18e1b84fb96893555048ae0f501cb833bb1479f668f4d699a17ce9351
4
- data.tar.gz: e1aea0395e61ee8adf14d45deda8cce2fe844d303807626a17e74f5c79f325ea
3
+ metadata.gz: 12ece34cc510f6aee7f1b1ad242d9a64416609851a2997cba414a1e68aa9579b
4
+ data.tar.gz: 0aff79acbfc79f6d4986e29424d59e28487cbd3fa5db3692f6c408863dab4ab9
5
5
  SHA512:
6
- metadata.gz: b07b4a6c5da388298f3e426d6bacc25e9dd925b67bbc91b3cee13f79dfda150b51ccaf70a987a8beb15b06f5c99f6aa9a7f7c1e91364c25d392b8cb9b0c17e73
7
- data.tar.gz: 913451bd5e58b56fa202430e6ca3554a1197adbbd5d3f4692dd6341f2d8bdf06ac3903111f9178396ded0ab3219e180ae89119264e0554c283b5c6f4af5f1fab
6
+ metadata.gz: de5793b31cd63bdf8b8f4070f143c9213d18599eb52381c149fc03d4bf205cc227af8143b693460d2a08bf78436fea525ca9c6c08f49396d4105af9cfc6007e3
7
+ data.tar.gz: fc58785cb1e715bcc8cff20dd4f534d7f2309efcc2ae28a810bc814b56fa79718ab82f5989259905c7c8b94bd5a709e46c2328d6adfc97e729ddcf66ee326cc1
@@ -190,6 +190,28 @@ module Google
190
190
  #
191
191
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
192
192
  #
193
+ # @example Basic example
194
+ # require "google/cloud/orchestration/airflow/service/v1"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::Orchestration::Airflow::Service::V1::CreateEnvironmentRequest.new
201
+ #
202
+ # # Call the create_environment method.
203
+ # result = client.create_environment request
204
+ #
205
+ # # The returned object is of type Gapic::Operation. You can use this
206
+ # # object to check the status of an operation, cancel it, or wait
207
+ # # for results. Here is how to block until completion:
208
+ # result.wait_until_done! timeout: 60
209
+ # if result.response?
210
+ # p result.response
211
+ # else
212
+ # puts "Error!"
213
+ # end
214
+ #
193
215
  def create_environment request, options = nil
194
216
  raise ::ArgumentError, "request must be provided" if request.nil?
195
217
 
@@ -207,9 +229,11 @@ module Google
207
229
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
208
230
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
209
231
 
210
- header_params = {
211
- "parent" => request.parent
212
- }
232
+ header_params = {}
233
+ if request.parent
234
+ header_params["parent"] = request.parent
235
+ end
236
+
213
237
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
214
238
  metadata[:"x-goog-request-params"] ||= request_params_header
215
239
 
@@ -260,6 +284,21 @@ module Google
260
284
  #
261
285
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
262
286
  #
287
+ # @example Basic example
288
+ # require "google/cloud/orchestration/airflow/service/v1"
289
+ #
290
+ # # Create a client object. The client can be reused for multiple calls.
291
+ # client = Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Client.new
292
+ #
293
+ # # Create a request. To set request fields, pass in keyword arguments.
294
+ # request = Google::Cloud::Orchestration::Airflow::Service::V1::GetEnvironmentRequest.new
295
+ #
296
+ # # Call the get_environment method.
297
+ # result = client.get_environment request
298
+ #
299
+ # # The returned object is of type Google::Cloud::Orchestration::Airflow::Service::V1::Environment.
300
+ # p result
301
+ #
263
302
  def get_environment request, options = nil
264
303
  raise ::ArgumentError, "request must be provided" if request.nil?
265
304
 
@@ -277,9 +316,11 @@ module Google
277
316
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
278
317
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
318
 
280
- header_params = {
281
- "name" => request.name
282
- }
319
+ header_params = {}
320
+ if request.name
321
+ header_params["name"] = request.name
322
+ end
323
+
283
324
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
284
325
  metadata[:"x-goog-request-params"] ||= request_params_header
285
326
 
@@ -333,6 +374,27 @@ module Google
333
374
  #
334
375
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
335
376
  #
377
+ # @example Basic example
378
+ # require "google/cloud/orchestration/airflow/service/v1"
379
+ #
380
+ # # Create a client object. The client can be reused for multiple calls.
381
+ # client = Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Client.new
382
+ #
383
+ # # Create a request. To set request fields, pass in keyword arguments.
384
+ # request = Google::Cloud::Orchestration::Airflow::Service::V1::ListEnvironmentsRequest.new
385
+ #
386
+ # # Call the list_environments method.
387
+ # result = client.list_environments request
388
+ #
389
+ # # The returned object is of type Gapic::PagedEnumerable. You can
390
+ # # iterate over all elements by calling #each, and the enumerable
391
+ # # will lazily make API calls to fetch subsequent pages. Other
392
+ # # methods are also available for managing paging directly.
393
+ # result.each do |response|
394
+ # # Each element is of type ::Google::Cloud::Orchestration::Airflow::Service::V1::Environment.
395
+ # p response
396
+ # end
397
+ #
336
398
  def list_environments request, options = nil
337
399
  raise ::ArgumentError, "request must be provided" if request.nil?
338
400
 
@@ -350,9 +412,11 @@ module Google
350
412
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
351
413
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
352
414
 
353
- header_params = {
354
- "parent" => request.parent
355
- }
415
+ header_params = {}
416
+ if request.parent
417
+ header_params["parent"] = request.parent
418
+ end
419
+
356
420
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
357
421
  metadata[:"x-goog-request-params"] ||= request_params_header
358
422
 
@@ -520,6 +584,28 @@ module Google
520
584
  #
521
585
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
522
586
  #
587
+ # @example Basic example
588
+ # require "google/cloud/orchestration/airflow/service/v1"
589
+ #
590
+ # # Create a client object. The client can be reused for multiple calls.
591
+ # client = Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Client.new
592
+ #
593
+ # # Create a request. To set request fields, pass in keyword arguments.
594
+ # request = Google::Cloud::Orchestration::Airflow::Service::V1::UpdateEnvironmentRequest.new
595
+ #
596
+ # # Call the update_environment method.
597
+ # result = client.update_environment request
598
+ #
599
+ # # The returned object is of type Gapic::Operation. You can use this
600
+ # # object to check the status of an operation, cancel it, or wait
601
+ # # for results. Here is how to block until completion:
602
+ # result.wait_until_done! timeout: 60
603
+ # if result.response?
604
+ # p result.response
605
+ # else
606
+ # puts "Error!"
607
+ # end
608
+ #
523
609
  def update_environment request, options = nil
524
610
  raise ::ArgumentError, "request must be provided" if request.nil?
525
611
 
@@ -537,9 +623,11 @@ module Google
537
623
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
538
624
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
625
 
540
- header_params = {
541
- "name" => request.name
542
- }
626
+ header_params = {}
627
+ if request.name
628
+ header_params["name"] = request.name
629
+ end
630
+
543
631
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
544
632
  metadata[:"x-goog-request-params"] ||= request_params_header
545
633
 
@@ -590,6 +678,28 @@ module Google
590
678
  #
591
679
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
592
680
  #
681
+ # @example Basic example
682
+ # require "google/cloud/orchestration/airflow/service/v1"
683
+ #
684
+ # # Create a client object. The client can be reused for multiple calls.
685
+ # client = Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Client.new
686
+ #
687
+ # # Create a request. To set request fields, pass in keyword arguments.
688
+ # request = Google::Cloud::Orchestration::Airflow::Service::V1::DeleteEnvironmentRequest.new
689
+ #
690
+ # # Call the delete_environment method.
691
+ # result = client.delete_environment request
692
+ #
693
+ # # The returned object is of type Gapic::Operation. You can use this
694
+ # # object to check the status of an operation, cancel it, or wait
695
+ # # for results. Here is how to block until completion:
696
+ # result.wait_until_done! timeout: 60
697
+ # if result.response?
698
+ # p result.response
699
+ # else
700
+ # puts "Error!"
701
+ # end
702
+ #
593
703
  def delete_environment request, options = nil
594
704
  raise ::ArgumentError, "request must be provided" if request.nil?
595
705
 
@@ -607,9 +717,11 @@ module Google
607
717
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
608
718
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
609
719
 
610
- header_params = {
611
- "name" => request.name
612
- }
720
+ header_params = {}
721
+ if request.name
722
+ header_params["name"] = request.name
723
+ end
724
+
613
725
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
614
726
  metadata[:"x-goog-request-params"] ||= request_params_header
615
727
 
@@ -145,6 +145,27 @@ module Google
145
145
  #
146
146
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
147
147
  #
148
+ # @example Basic example
149
+ # require "google/longrunning"
150
+ #
151
+ # # Create a client object. The client can be reused for multiple calls.
152
+ # client = Google::Longrunning::Operations::Client.new
153
+ #
154
+ # # Create a request. To set request fields, pass in keyword arguments.
155
+ # request = Google::Longrunning::ListOperationsRequest.new
156
+ #
157
+ # # Call the list_operations method.
158
+ # result = client.list_operations request
159
+ #
160
+ # # The returned object is of type Gapic::PagedEnumerable. You can
161
+ # # iterate over all elements by calling #each, and the enumerable
162
+ # # will lazily make API calls to fetch subsequent pages. Other
163
+ # # methods are also available for managing paging directly.
164
+ # result.each do |response|
165
+ # # Each element is of type ::Google::Longrunning::Operation.
166
+ # p response
167
+ # end
168
+ #
148
169
  def list_operations request, options = nil
149
170
  raise ::ArgumentError, "request must be provided" if request.nil?
150
171
 
@@ -162,9 +183,11 @@ module Google
162
183
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
163
184
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
164
185
 
165
- header_params = {
166
- "name" => request.name
167
- }
186
+ header_params = {}
187
+ if request.name
188
+ header_params["name"] = request.name
189
+ end
190
+
168
191
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
169
192
  metadata[:"x-goog-request-params"] ||= request_params_header
170
193
 
@@ -217,6 +240,28 @@ module Google
217
240
  #
218
241
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
219
242
  #
243
+ # @example Basic example
244
+ # require "google/longrunning"
245
+ #
246
+ # # Create a client object. The client can be reused for multiple calls.
247
+ # client = Google::Longrunning::Operations::Client.new
248
+ #
249
+ # # Create a request. To set request fields, pass in keyword arguments.
250
+ # request = Google::Longrunning::GetOperationRequest.new
251
+ #
252
+ # # Call the get_operation method.
253
+ # result = client.get_operation request
254
+ #
255
+ # # The returned object is of type Gapic::Operation. You can use this
256
+ # # object to check the status of an operation, cancel it, or wait
257
+ # # for results. Here is how to block until completion:
258
+ # result.wait_until_done! timeout: 60
259
+ # if result.response?
260
+ # p result.response
261
+ # else
262
+ # puts "Error!"
263
+ # end
264
+ #
220
265
  def get_operation request, options = nil
221
266
  raise ::ArgumentError, "request must be provided" if request.nil?
222
267
 
@@ -234,9 +279,11 @@ module Google
234
279
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
235
280
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
236
281
 
237
- header_params = {
238
- "name" => request.name
239
- }
282
+ header_params = {}
283
+ if request.name
284
+ header_params["name"] = request.name
285
+ end
286
+
240
287
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
241
288
  metadata[:"x-goog-request-params"] ||= request_params_header
242
289
 
@@ -289,6 +336,21 @@ module Google
289
336
  #
290
337
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
291
338
  #
339
+ # @example Basic example
340
+ # require "google/longrunning"
341
+ #
342
+ # # Create a client object. The client can be reused for multiple calls.
343
+ # client = Google::Longrunning::Operations::Client.new
344
+ #
345
+ # # Create a request. To set request fields, pass in keyword arguments.
346
+ # request = Google::Longrunning::DeleteOperationRequest.new
347
+ #
348
+ # # Call the delete_operation method.
349
+ # result = client.delete_operation request
350
+ #
351
+ # # The returned object is of type Google::Protobuf::Empty.
352
+ # p result
353
+ #
292
354
  def delete_operation request, options = nil
293
355
  raise ::ArgumentError, "request must be provided" if request.nil?
294
356
 
@@ -306,9 +368,11 @@ module Google
306
368
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
307
369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
308
370
 
309
- header_params = {
310
- "name" => request.name
311
- }
371
+ header_params = {}
372
+ if request.name
373
+ header_params["name"] = request.name
374
+ end
375
+
312
376
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
313
377
  metadata[:"x-goog-request-params"] ||= request_params_header
314
378
 
@@ -366,6 +430,21 @@ module Google
366
430
  #
367
431
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
368
432
  #
433
+ # @example Basic example
434
+ # require "google/longrunning"
435
+ #
436
+ # # Create a client object. The client can be reused for multiple calls.
437
+ # client = Google::Longrunning::Operations::Client.new
438
+ #
439
+ # # Create a request. To set request fields, pass in keyword arguments.
440
+ # request = Google::Longrunning::CancelOperationRequest.new
441
+ #
442
+ # # Call the cancel_operation method.
443
+ # result = client.cancel_operation request
444
+ #
445
+ # # The returned object is of type Google::Protobuf::Empty.
446
+ # p result
447
+ #
369
448
  def cancel_operation request, options = nil
370
449
  raise ::ArgumentError, "request must be provided" if request.nil?
371
450
 
@@ -383,9 +462,11 @@ module Google
383
462
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
384
463
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
385
464
 
386
- header_params = {
387
- "name" => request.name
388
- }
465
+ header_params = {}
466
+ if request.name
467
+ header_params["name"] = request.name
468
+ end
469
+
389
470
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
390
471
  metadata[:"x-goog-request-params"] ||= request_params_header
391
472
 
@@ -446,6 +527,28 @@ module Google
446
527
  #
447
528
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
448
529
  #
530
+ # @example Basic example
531
+ # require "google/longrunning"
532
+ #
533
+ # # Create a client object. The client can be reused for multiple calls.
534
+ # client = Google::Longrunning::Operations::Client.new
535
+ #
536
+ # # Create a request. To set request fields, pass in keyword arguments.
537
+ # request = Google::Longrunning::WaitOperationRequest.new
538
+ #
539
+ # # Call the wait_operation method.
540
+ # result = client.wait_operation request
541
+ #
542
+ # # The returned object is of type Gapic::Operation. You can use this
543
+ # # object to check the status of an operation, cancel it, or wait
544
+ # # for results. Here is how to block until completion:
545
+ # result.wait_until_done! timeout: 60
546
+ # if result.response?
547
+ # p result.response
548
+ # else
549
+ # puts "Error!"
550
+ # end
551
+ #
449
552
  def wait_operation request, options = nil
450
553
  raise ::ArgumentError, "request must be provided" if request.nil?
451
554
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/orchestration/airflow/service/v1/environments.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/longrunning/operations_pb'
11
9
  require 'google/protobuf/field_mask_pb'
12
10
  require 'google/protobuf/timestamp_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/orchestration/airflow/service/v1/environments.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest" do
@@ -180,6 +180,27 @@ module Google
180
180
  #
181
181
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
182
182
  #
183
+ # @example Basic example
184
+ # require "google/cloud/orchestration/airflow/service/v1"
185
+ #
186
+ # # Create a client object. The client can be reused for multiple calls.
187
+ # client = Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersions::Client.new
188
+ #
189
+ # # Create a request. To set request fields, pass in keyword arguments.
190
+ # request = Google::Cloud::Orchestration::Airflow::Service::V1::ListImageVersionsRequest.new
191
+ #
192
+ # # Call the list_image_versions method.
193
+ # result = client.list_image_versions request
194
+ #
195
+ # # The returned object is of type Gapic::PagedEnumerable. You can
196
+ # # iterate over all elements by calling #each, and the enumerable
197
+ # # will lazily make API calls to fetch subsequent pages. Other
198
+ # # methods are also available for managing paging directly.
199
+ # result.each do |response|
200
+ # # Each element is of type ::Google::Cloud::Orchestration::Airflow::Service::V1::ImageVersion.
201
+ # p response
202
+ # end
203
+ #
183
204
  def list_image_versions request, options = nil
184
205
  raise ::ArgumentError, "request must be provided" if request.nil?
185
206
 
@@ -197,9 +218,11 @@ module Google
197
218
  gapic_version: ::Google::Cloud::Orchestration::Airflow::Service::V1::VERSION
198
219
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
220
 
200
- header_params = {
201
- "parent" => request.parent
202
- }
221
+ header_params = {}
222
+ if request.parent
223
+ header_params["parent"] = request.parent
224
+ end
225
+
203
226
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
204
227
  metadata[:"x-goog-request-params"] ||= request_params_header
205
228
 
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/orchestration/airflow/service/v1/image_versions.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/type/date_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/orchestration/airflow/service/v1/image_versions.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/orchestration/airflow/service/v1/operations.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/timestamp_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/orchestration/airflow/service/v1/operations.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.orchestration.airflow.service.v1.OperationMetadata" do
@@ -23,7 +23,7 @@ module Google
23
23
  module Airflow
24
24
  module Service
25
25
  module V1
26
- VERSION = "0.1.0"
26
+ VERSION = "0.1.1"
27
27
  end
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-orchestration-airflow-service-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-27 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common