google-cloud-os_config-v1 0.7.0 → 0.8.0

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: f986ee9799a1cf3c7cfa5337d3e1cef972c15d97a3771ffe1ad5056532d990bb
4
- data.tar.gz: 71da5dec060ab908775c381c8637638b2c907960ccbbddcdae342c9a83b2f23b
3
+ metadata.gz: a6b03ff236fbfb5835f57916a990a462bd860d433eafffcc8be9081a369b5947
4
+ data.tar.gz: 0151f856f131254682fac334325dc74eb64b1a4c0d9b1faff29b9895ea3153a3
5
5
  SHA512:
6
- metadata.gz: 36c489b23ee46c3cda56e460eb3729ccee63f79e34fcc6f05aaf5d8b616091e4e935d8df6df7e8b125a7b41f41787f9e1d4a539b83a92ffb61926f5126a393b1
7
- data.tar.gz: a1bc5ded17b8d06e0b1e42e909e82a3a51ce5aee90275cafa44d6d72ba87de4c79027b267b33b292b8e325289bf21e900e6777cafe99393327aa6f7d60a38488
6
+ metadata.gz: ef9e9f405b617ee99337f00dc2fd82d79cae7b8f64e64b60e4cc1080f89109e5702a61d6bc8096ea2e5b3ebe9ca04c731ec62bea146c7ea39186b03895068111
7
+ data.tar.gz: e5d4d3904564615614f5cb41c2d39c8f2e0d9a3846dd5953ae37ac432b32499bba4309cf5d9571d548c6c1351d32fcd8cc9bf6720ae6cbc3255566e56ecfc04c
@@ -200,6 +200,21 @@ module Google
200
200
  #
201
201
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
202
202
  #
203
+ # @example Basic example
204
+ # require "google/cloud/os_config/v1"
205
+ #
206
+ # # Create a client object. The client can be reused for multiple calls.
207
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
208
+ #
209
+ # # Create a request. To set request fields, pass in keyword arguments.
210
+ # request = Google::Cloud::OsConfig::V1::ExecutePatchJobRequest.new
211
+ #
212
+ # # Call the execute_patch_job method.
213
+ # result = client.execute_patch_job request
214
+ #
215
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
216
+ # p result
217
+ #
203
218
  def execute_patch_job request, options = nil
204
219
  raise ::ArgumentError, "request must be provided" if request.nil?
205
220
 
@@ -217,9 +232,11 @@ module Google
217
232
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
218
233
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
219
234
 
220
- header_params = {
221
- "parent" => request.parent
222
- }
235
+ header_params = {}
236
+ if request.parent
237
+ header_params["parent"] = request.parent
238
+ end
239
+
223
240
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
224
241
  metadata[:"x-goog-request-params"] ||= request_params_header
225
242
 
@@ -269,6 +286,21 @@ module Google
269
286
  #
270
287
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
271
288
  #
289
+ # @example Basic example
290
+ # require "google/cloud/os_config/v1"
291
+ #
292
+ # # Create a client object. The client can be reused for multiple calls.
293
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
294
+ #
295
+ # # Create a request. To set request fields, pass in keyword arguments.
296
+ # request = Google::Cloud::OsConfig::V1::GetPatchJobRequest.new
297
+ #
298
+ # # Call the get_patch_job method.
299
+ # result = client.get_patch_job request
300
+ #
301
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
302
+ # p result
303
+ #
272
304
  def get_patch_job request, options = nil
273
305
  raise ::ArgumentError, "request must be provided" if request.nil?
274
306
 
@@ -286,9 +318,11 @@ module Google
286
318
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
287
319
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
288
320
 
289
- header_params = {
290
- "name" => request.name
291
- }
321
+ header_params = {}
322
+ if request.name
323
+ header_params["name"] = request.name
324
+ end
325
+
292
326
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
293
327
  metadata[:"x-goog-request-params"] ||= request_params_header
294
328
 
@@ -338,6 +372,21 @@ module Google
338
372
  #
339
373
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
340
374
  #
375
+ # @example Basic example
376
+ # require "google/cloud/os_config/v1"
377
+ #
378
+ # # Create a client object. The client can be reused for multiple calls.
379
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
380
+ #
381
+ # # Create a request. To set request fields, pass in keyword arguments.
382
+ # request = Google::Cloud::OsConfig::V1::CancelPatchJobRequest.new
383
+ #
384
+ # # Call the cancel_patch_job method.
385
+ # result = client.cancel_patch_job request
386
+ #
387
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
388
+ # p result
389
+ #
341
390
  def cancel_patch_job request, options = nil
342
391
  raise ::ArgumentError, "request must be provided" if request.nil?
343
392
 
@@ -355,9 +404,11 @@ module Google
355
404
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
356
405
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
357
406
 
358
- header_params = {
359
- "name" => request.name
360
- }
407
+ header_params = {}
408
+ if request.name
409
+ header_params["name"] = request.name
410
+ end
411
+
361
412
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
362
413
  metadata[:"x-goog-request-params"] ||= request_params_header
363
414
 
@@ -415,6 +466,27 @@ module Google
415
466
  #
416
467
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
417
468
  #
469
+ # @example Basic example
470
+ # require "google/cloud/os_config/v1"
471
+ #
472
+ # # Create a client object. The client can be reused for multiple calls.
473
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
474
+ #
475
+ # # Create a request. To set request fields, pass in keyword arguments.
476
+ # request = Google::Cloud::OsConfig::V1::ListPatchJobsRequest.new
477
+ #
478
+ # # Call the list_patch_jobs method.
479
+ # result = client.list_patch_jobs request
480
+ #
481
+ # # The returned object is of type Gapic::PagedEnumerable. You can
482
+ # # iterate over all elements by calling #each, and the enumerable
483
+ # # will lazily make API calls to fetch subsequent pages. Other
484
+ # # methods are also available for managing paging directly.
485
+ # result.each do |response|
486
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchJob.
487
+ # p response
488
+ # end
489
+ #
418
490
  def list_patch_jobs request, options = nil
419
491
  raise ::ArgumentError, "request must be provided" if request.nil?
420
492
 
@@ -432,9 +504,11 @@ module Google
432
504
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
433
505
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
434
506
 
435
- header_params = {
436
- "parent" => request.parent
437
- }
507
+ header_params = {}
508
+ if request.parent
509
+ header_params["parent"] = request.parent
510
+ end
511
+
438
512
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
439
513
  metadata[:"x-goog-request-params"] ||= request_params_header
440
514
 
@@ -494,6 +568,27 @@ module Google
494
568
  #
495
569
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
496
570
  #
571
+ # @example Basic example
572
+ # require "google/cloud/os_config/v1"
573
+ #
574
+ # # Create a client object. The client can be reused for multiple calls.
575
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
576
+ #
577
+ # # Create a request. To set request fields, pass in keyword arguments.
578
+ # request = Google::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsRequest.new
579
+ #
580
+ # # Call the list_patch_job_instance_details method.
581
+ # result = client.list_patch_job_instance_details request
582
+ #
583
+ # # The returned object is of type Gapic::PagedEnumerable. You can
584
+ # # iterate over all elements by calling #each, and the enumerable
585
+ # # will lazily make API calls to fetch subsequent pages. Other
586
+ # # methods are also available for managing paging directly.
587
+ # result.each do |response|
588
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchJobInstanceDetails.
589
+ # p response
590
+ # end
591
+ #
497
592
  def list_patch_job_instance_details request, options = nil
498
593
  raise ::ArgumentError, "request must be provided" if request.nil?
499
594
 
@@ -511,9 +606,11 @@ module Google
511
606
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
512
607
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
608
 
514
- header_params = {
515
- "parent" => request.parent
516
- }
609
+ header_params = {}
610
+ if request.parent
611
+ header_params["parent"] = request.parent
612
+ end
613
+
517
614
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
518
615
  metadata[:"x-goog-request-params"] ||= request_params_header
519
616
 
@@ -574,6 +671,21 @@ module Google
574
671
  #
575
672
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
576
673
  #
674
+ # @example Basic example
675
+ # require "google/cloud/os_config/v1"
676
+ #
677
+ # # Create a client object. The client can be reused for multiple calls.
678
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
679
+ #
680
+ # # Create a request. To set request fields, pass in keyword arguments.
681
+ # request = Google::Cloud::OsConfig::V1::CreatePatchDeploymentRequest.new
682
+ #
683
+ # # Call the create_patch_deployment method.
684
+ # result = client.create_patch_deployment request
685
+ #
686
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
687
+ # p result
688
+ #
577
689
  def create_patch_deployment request, options = nil
578
690
  raise ::ArgumentError, "request must be provided" if request.nil?
579
691
 
@@ -591,9 +703,11 @@ module Google
591
703
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
592
704
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
593
705
 
594
- header_params = {
595
- "parent" => request.parent
596
- }
706
+ header_params = {}
707
+ if request.parent
708
+ header_params["parent"] = request.parent
709
+ end
710
+
597
711
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
598
712
  metadata[:"x-goog-request-params"] ||= request_params_header
599
713
 
@@ -643,6 +757,21 @@ module Google
643
757
  #
644
758
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
645
759
  #
760
+ # @example Basic example
761
+ # require "google/cloud/os_config/v1"
762
+ #
763
+ # # Create a client object. The client can be reused for multiple calls.
764
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
765
+ #
766
+ # # Create a request. To set request fields, pass in keyword arguments.
767
+ # request = Google::Cloud::OsConfig::V1::GetPatchDeploymentRequest.new
768
+ #
769
+ # # Call the get_patch_deployment method.
770
+ # result = client.get_patch_deployment request
771
+ #
772
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
773
+ # p result
774
+ #
646
775
  def get_patch_deployment request, options = nil
647
776
  raise ::ArgumentError, "request must be provided" if request.nil?
648
777
 
@@ -660,9 +789,11 @@ module Google
660
789
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
661
790
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
662
791
 
663
- header_params = {
664
- "name" => request.name
665
- }
792
+ header_params = {}
793
+ if request.name
794
+ header_params["name"] = request.name
795
+ end
796
+
666
797
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
667
798
  metadata[:"x-goog-request-params"] ||= request_params_header
668
799
 
@@ -718,6 +849,27 @@ module Google
718
849
  #
719
850
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
720
851
  #
852
+ # @example Basic example
853
+ # require "google/cloud/os_config/v1"
854
+ #
855
+ # # Create a client object. The client can be reused for multiple calls.
856
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
857
+ #
858
+ # # Create a request. To set request fields, pass in keyword arguments.
859
+ # request = Google::Cloud::OsConfig::V1::ListPatchDeploymentsRequest.new
860
+ #
861
+ # # Call the list_patch_deployments method.
862
+ # result = client.list_patch_deployments request
863
+ #
864
+ # # The returned object is of type Gapic::PagedEnumerable. You can
865
+ # # iterate over all elements by calling #each, and the enumerable
866
+ # # will lazily make API calls to fetch subsequent pages. Other
867
+ # # methods are also available for managing paging directly.
868
+ # result.each do |response|
869
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchDeployment.
870
+ # p response
871
+ # end
872
+ #
721
873
  def list_patch_deployments request, options = nil
722
874
  raise ::ArgumentError, "request must be provided" if request.nil?
723
875
 
@@ -735,9 +887,11 @@ module Google
735
887
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
736
888
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
737
889
 
738
- header_params = {
739
- "parent" => request.parent
740
- }
890
+ header_params = {}
891
+ if request.parent
892
+ header_params["parent"] = request.parent
893
+ end
894
+
741
895
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
742
896
  metadata[:"x-goog-request-params"] ||= request_params_header
743
897
 
@@ -788,6 +942,21 @@ module Google
788
942
  #
789
943
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
790
944
  #
945
+ # @example Basic example
946
+ # require "google/cloud/os_config/v1"
947
+ #
948
+ # # Create a client object. The client can be reused for multiple calls.
949
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
950
+ #
951
+ # # Create a request. To set request fields, pass in keyword arguments.
952
+ # request = Google::Cloud::OsConfig::V1::DeletePatchDeploymentRequest.new
953
+ #
954
+ # # Call the delete_patch_deployment method.
955
+ # result = client.delete_patch_deployment request
956
+ #
957
+ # # The returned object is of type Google::Protobuf::Empty.
958
+ # p result
959
+ #
791
960
  def delete_patch_deployment request, options = nil
792
961
  raise ::ArgumentError, "request must be provided" if request.nil?
793
962
 
@@ -805,9 +974,11 @@ module Google
805
974
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
806
975
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
807
976
 
808
- header_params = {
809
- "name" => request.name
810
- }
977
+ header_params = {}
978
+ if request.name
979
+ header_params["name"] = request.name
980
+ end
981
+
811
982
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
812
983
  metadata[:"x-goog-request-params"] ||= request_params_header
813
984