google-cloud-os_config-v1 0.13.0 → 0.14.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: 225aed013ae0f215d256ad32a39a6d2e206b6d1bebb3f83dca5a606422bd8ae8
4
- data.tar.gz: 181bbd650bb8b779b186e7e24607a55a2a87c289d849c71e94043cded1f50c08
3
+ metadata.gz: f1f1f02b02c25d64cdfef40d4e92f0edbf6c96c7e753614e5ca500a87df8893b
4
+ data.tar.gz: fb45e2677f6522572cebe77f3348ed92a1c94733a3fc5316fdf8ad166d82df30
5
5
  SHA512:
6
- metadata.gz: 9b7bbc5c74fcc8209fe404e8f3df9a9419fea97ab7c6c953dd9f2fe464417f4b3f8dd9737ea1bb5c2e90e5126cc5866271fc828849850c1bc75dde31f8f6686f
7
- data.tar.gz: 36dccc76c76f08142bce862f9bf1fc2e719944fe70d709e6b6fc8c92a5c80c8390bcbc758dfbd2dd8f41a9a1224c1d4eb37921a828b5b326d8721b380379b009
6
+ metadata.gz: df4026979cfa477cda500603dd160d804233aa393923b427ab3aa36f8363d3160635dc4bb1a9995486c7acc8578967330acc1b96671bfd9e74bc44f4f643a99f
7
+ data.tar.gz: fbe2d97742b141d0b252ce77c50ea213ca86af0c4c00f93cf22b37fb1bfff13aafd96e22b1826762d4e90510c23f68ad378f567cf8f987456bf46cf77fea24dc
@@ -146,7 +146,8 @@ module Google
146
146
  credentials: credentials,
147
147
  endpoint: @config.endpoint,
148
148
  channel_args: @config.channel_args,
149
- interceptors: @config.interceptors
149
+ interceptors: @config.interceptors,
150
+ channel_pool_config: @config.channel_pool
150
151
  )
151
152
  end
152
153
 
@@ -1373,6 +1374,14 @@ module Google
1373
1374
  end
1374
1375
  end
1375
1376
 
1377
+ ##
1378
+ # Configuration for the channel pool
1379
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1380
+ #
1381
+ def channel_pool
1382
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1383
+ end
1384
+
1376
1385
  ##
1377
1386
  # Configuration RPC class for the OsConfigService API.
1378
1387
  #
@@ -189,6 +189,22 @@ module Google
189
189
  # @return [::Google::Cloud::OsConfig::V1::PatchJob]
190
190
  #
191
191
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
192
+ #
193
+ # @example Basic example
194
+ # require "google/cloud/os_config/v1"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::OsConfig::V1::ExecutePatchJobRequest.new
201
+ #
202
+ # # Call the execute_patch_job method.
203
+ # result = client.execute_patch_job request
204
+ #
205
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
206
+ # p result
207
+ #
192
208
  def execute_patch_job request, options = nil
193
209
  raise ::ArgumentError, "request must be provided" if request.nil?
194
210
 
@@ -252,6 +268,22 @@ module Google
252
268
  # @return [::Google::Cloud::OsConfig::V1::PatchJob]
253
269
  #
254
270
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
271
+ #
272
+ # @example Basic example
273
+ # require "google/cloud/os_config/v1"
274
+ #
275
+ # # Create a client object. The client can be reused for multiple calls.
276
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
277
+ #
278
+ # # Create a request. To set request fields, pass in keyword arguments.
279
+ # request = Google::Cloud::OsConfig::V1::GetPatchJobRequest.new
280
+ #
281
+ # # Call the get_patch_job method.
282
+ # result = client.get_patch_job request
283
+ #
284
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
285
+ # p result
286
+ #
255
287
  def get_patch_job request, options = nil
256
288
  raise ::ArgumentError, "request must be provided" if request.nil?
257
289
 
@@ -315,6 +347,22 @@ module Google
315
347
  # @return [::Google::Cloud::OsConfig::V1::PatchJob]
316
348
  #
317
349
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
350
+ #
351
+ # @example Basic example
352
+ # require "google/cloud/os_config/v1"
353
+ #
354
+ # # Create a client object. The client can be reused for multiple calls.
355
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
356
+ #
357
+ # # Create a request. To set request fields, pass in keyword arguments.
358
+ # request = Google::Cloud::OsConfig::V1::CancelPatchJobRequest.new
359
+ #
360
+ # # Call the cancel_patch_job method.
361
+ # result = client.cancel_patch_job request
362
+ #
363
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchJob.
364
+ # p result
365
+ #
318
366
  def cancel_patch_job request, options = nil
319
367
  raise ::ArgumentError, "request must be provided" if request.nil?
320
368
 
@@ -386,6 +434,26 @@ module Google
386
434
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::PatchJob>]
387
435
  #
388
436
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
437
+ #
438
+ # @example Basic example
439
+ # require "google/cloud/os_config/v1"
440
+ #
441
+ # # Create a client object. The client can be reused for multiple calls.
442
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
443
+ #
444
+ # # Create a request. To set request fields, pass in keyword arguments.
445
+ # request = Google::Cloud::OsConfig::V1::ListPatchJobsRequest.new
446
+ #
447
+ # # Call the list_patch_jobs method.
448
+ # result = client.list_patch_jobs request
449
+ #
450
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
451
+ # # over elements, and API calls will be issued to fetch pages as needed.
452
+ # result.each do |item|
453
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchJob.
454
+ # p item
455
+ # end
456
+ #
389
457
  def list_patch_jobs request, options = nil
390
458
  raise ::ArgumentError, "request must be provided" if request.nil?
391
459
 
@@ -459,6 +527,26 @@ module Google
459
527
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::PatchJobInstanceDetails>]
460
528
  #
461
529
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
530
+ #
531
+ # @example Basic example
532
+ # require "google/cloud/os_config/v1"
533
+ #
534
+ # # Create a client object. The client can be reused for multiple calls.
535
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
536
+ #
537
+ # # Create a request. To set request fields, pass in keyword arguments.
538
+ # request = Google::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsRequest.new
539
+ #
540
+ # # Call the list_patch_job_instance_details method.
541
+ # result = client.list_patch_job_instance_details request
542
+ #
543
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
544
+ # # over elements, and API calls will be issued to fetch pages as needed.
545
+ # result.each do |item|
546
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchJobInstanceDetails.
547
+ # p item
548
+ # end
549
+ #
462
550
  def list_patch_job_instance_details request, options = nil
463
551
  raise ::ArgumentError, "request must be provided" if request.nil?
464
552
 
@@ -533,6 +621,22 @@ module Google
533
621
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
534
622
  #
535
623
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
624
+ #
625
+ # @example Basic example
626
+ # require "google/cloud/os_config/v1"
627
+ #
628
+ # # Create a client object. The client can be reused for multiple calls.
629
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
630
+ #
631
+ # # Create a request. To set request fields, pass in keyword arguments.
632
+ # request = Google::Cloud::OsConfig::V1::CreatePatchDeploymentRequest.new
633
+ #
634
+ # # Call the create_patch_deployment method.
635
+ # result = client.create_patch_deployment request
636
+ #
637
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
638
+ # p result
639
+ #
536
640
  def create_patch_deployment request, options = nil
537
641
  raise ::ArgumentError, "request must be provided" if request.nil?
538
642
 
@@ -596,6 +700,22 @@ module Google
596
700
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
597
701
  #
598
702
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
703
+ #
704
+ # @example Basic example
705
+ # require "google/cloud/os_config/v1"
706
+ #
707
+ # # Create a client object. The client can be reused for multiple calls.
708
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
709
+ #
710
+ # # Create a request. To set request fields, pass in keyword arguments.
711
+ # request = Google::Cloud::OsConfig::V1::GetPatchDeploymentRequest.new
712
+ #
713
+ # # Call the get_patch_deployment method.
714
+ # result = client.get_patch_deployment request
715
+ #
716
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
717
+ # p result
718
+ #
599
719
  def get_patch_deployment request, options = nil
600
720
  raise ::ArgumentError, "request must be provided" if request.nil?
601
721
 
@@ -665,6 +785,26 @@ module Google
665
785
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::PatchDeployment>]
666
786
  #
667
787
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
788
+ #
789
+ # @example Basic example
790
+ # require "google/cloud/os_config/v1"
791
+ #
792
+ # # Create a client object. The client can be reused for multiple calls.
793
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
794
+ #
795
+ # # Create a request. To set request fields, pass in keyword arguments.
796
+ # request = Google::Cloud::OsConfig::V1::ListPatchDeploymentsRequest.new
797
+ #
798
+ # # Call the list_patch_deployments method.
799
+ # result = client.list_patch_deployments request
800
+ #
801
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
802
+ # # over elements, and API calls will be issued to fetch pages as needed.
803
+ # result.each do |item|
804
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchDeployment.
805
+ # p item
806
+ # end
807
+ #
668
808
  def list_patch_deployments request, options = nil
669
809
  raise ::ArgumentError, "request must be provided" if request.nil?
670
810
 
@@ -729,6 +869,22 @@ module Google
729
869
  # @return [::Google::Protobuf::Empty]
730
870
  #
731
871
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
872
+ #
873
+ # @example Basic example
874
+ # require "google/cloud/os_config/v1"
875
+ #
876
+ # # Create a client object. The client can be reused for multiple calls.
877
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
878
+ #
879
+ # # Create a request. To set request fields, pass in keyword arguments.
880
+ # request = Google::Cloud::OsConfig::V1::DeletePatchDeploymentRequest.new
881
+ #
882
+ # # Call the delete_patch_deployment method.
883
+ # result = client.delete_patch_deployment request
884
+ #
885
+ # # The returned object is of type Google::Protobuf::Empty.
886
+ # p result
887
+ #
732
888
  def delete_patch_deployment request, options = nil
733
889
  raise ::ArgumentError, "request must be provided" if request.nil?
734
890
 
@@ -794,6 +950,22 @@ module Google
794
950
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
795
951
  #
796
952
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
953
+ #
954
+ # @example Basic example
955
+ # require "google/cloud/os_config/v1"
956
+ #
957
+ # # Create a client object. The client can be reused for multiple calls.
958
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
959
+ #
960
+ # # Create a request. To set request fields, pass in keyword arguments.
961
+ # request = Google::Cloud::OsConfig::V1::UpdatePatchDeploymentRequest.new
962
+ #
963
+ # # Call the update_patch_deployment method.
964
+ # result = client.update_patch_deployment request
965
+ #
966
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
967
+ # p result
968
+ #
797
969
  def update_patch_deployment request, options = nil
798
970
  raise ::ArgumentError, "request must be provided" if request.nil?
799
971
 
@@ -858,6 +1030,22 @@ module Google
858
1030
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
859
1031
  #
860
1032
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1033
+ #
1034
+ # @example Basic example
1035
+ # require "google/cloud/os_config/v1"
1036
+ #
1037
+ # # Create a client object. The client can be reused for multiple calls.
1038
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
1039
+ #
1040
+ # # Create a request. To set request fields, pass in keyword arguments.
1041
+ # request = Google::Cloud::OsConfig::V1::PausePatchDeploymentRequest.new
1042
+ #
1043
+ # # Call the pause_patch_deployment method.
1044
+ # result = client.pause_patch_deployment request
1045
+ #
1046
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
1047
+ # p result
1048
+ #
861
1049
  def pause_patch_deployment request, options = nil
862
1050
  raise ::ArgumentError, "request must be provided" if request.nil?
863
1051
 
@@ -922,6 +1110,22 @@ module Google
922
1110
  # @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
923
1111
  #
924
1112
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1113
+ #
1114
+ # @example Basic example
1115
+ # require "google/cloud/os_config/v1"
1116
+ #
1117
+ # # Create a client object. The client can be reused for multiple calls.
1118
+ # client = Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
1119
+ #
1120
+ # # Create a request. To set request fields, pass in keyword arguments.
1121
+ # request = Google::Cloud::OsConfig::V1::ResumePatchDeploymentRequest.new
1122
+ #
1123
+ # # Call the resume_patch_deployment method.
1124
+ # result = client.resume_patch_deployment request
1125
+ #
1126
+ # # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
1127
+ # p result
1128
+ #
925
1129
  def resume_patch_deployment request, options = nil
926
1130
  raise ::ArgumentError, "request must be provided" if request.nil?
927
1131
 
@@ -152,7 +152,8 @@ module Google
152
152
  credentials: credentials,
153
153
  endpoint: @config.endpoint,
154
154
  channel_args: @config.channel_args,
155
- interceptors: @config.interceptors
155
+ interceptors: @config.interceptors,
156
+ channel_pool_config: @config.channel_pool
156
157
  )
157
158
  end
158
159
 
@@ -1503,6 +1504,14 @@ module Google
1503
1504
  end
1504
1505
  end
1505
1506
 
1507
+ ##
1508
+ # Configuration for the channel pool
1509
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1510
+ #
1511
+ def channel_pool
1512
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1513
+ end
1514
+
1506
1515
  ##
1507
1516
  # Configuration RPC class for the OsConfigZonalService API.
1508
1517
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -203,6 +203,29 @@ module Google
203
203
  # @return [::Gapic::Operation]
204
204
  #
205
205
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
206
+ #
207
+ # @example Basic example
208
+ # require "google/cloud/os_config/v1"
209
+ #
210
+ # # Create a client object. The client can be reused for multiple calls.
211
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
212
+ #
213
+ # # Create a request. To set request fields, pass in keyword arguments.
214
+ # request = Google::Cloud::OsConfig::V1::CreateOSPolicyAssignmentRequest.new
215
+ #
216
+ # # Call the create_os_policy_assignment method.
217
+ # result = client.create_os_policy_assignment request
218
+ #
219
+ # # The returned object is of type Gapic::Operation. You can use it to
220
+ # # check the status of an operation, cancel it, or wait for results.
221
+ # # Here is how to wait for a response.
222
+ # result.wait_until_done! timeout: 60
223
+ # if result.response?
224
+ # p result.response
225
+ # else
226
+ # puts "No response received."
227
+ # end
228
+ #
206
229
  def create_os_policy_assignment request, options = nil
207
230
  raise ::ArgumentError, "request must be provided" if request.nil?
208
231
 
@@ -277,6 +300,29 @@ module Google
277
300
  # @return [::Gapic::Operation]
278
301
  #
279
302
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
303
+ #
304
+ # @example Basic example
305
+ # require "google/cloud/os_config/v1"
306
+ #
307
+ # # Create a client object. The client can be reused for multiple calls.
308
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
309
+ #
310
+ # # Create a request. To set request fields, pass in keyword arguments.
311
+ # request = Google::Cloud::OsConfig::V1::UpdateOSPolicyAssignmentRequest.new
312
+ #
313
+ # # Call the update_os_policy_assignment method.
314
+ # result = client.update_os_policy_assignment request
315
+ #
316
+ # # The returned object is of type Gapic::Operation. You can use it to
317
+ # # check the status of an operation, cancel it, or wait for results.
318
+ # # Here is how to wait for a response.
319
+ # result.wait_until_done! timeout: 60
320
+ # if result.response?
321
+ # p result.response
322
+ # else
323
+ # puts "No response received."
324
+ # end
325
+ #
280
326
  def update_os_policy_assignment request, options = nil
281
327
  raise ::ArgumentError, "request must be provided" if request.nil?
282
328
 
@@ -347,6 +393,22 @@ module Google
347
393
  # @return [::Google::Cloud::OsConfig::V1::OSPolicyAssignment]
348
394
  #
349
395
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
396
+ #
397
+ # @example Basic example
398
+ # require "google/cloud/os_config/v1"
399
+ #
400
+ # # Create a client object. The client can be reused for multiple calls.
401
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
402
+ #
403
+ # # Create a request. To set request fields, pass in keyword arguments.
404
+ # request = Google::Cloud::OsConfig::V1::GetOSPolicyAssignmentRequest.new
405
+ #
406
+ # # Call the get_os_policy_assignment method.
407
+ # result = client.get_os_policy_assignment request
408
+ #
409
+ # # The returned object is of type Google::Cloud::OsConfig::V1::OSPolicyAssignment.
410
+ # p result
411
+ #
350
412
  def get_os_policy_assignment request, options = nil
351
413
  raise ::ArgumentError, "request must be provided" if request.nil?
352
414
 
@@ -417,6 +479,26 @@ module Google
417
479
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::OSPolicyAssignment>]
418
480
  #
419
481
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
482
+ #
483
+ # @example Basic example
484
+ # require "google/cloud/os_config/v1"
485
+ #
486
+ # # Create a client object. The client can be reused for multiple calls.
487
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
488
+ #
489
+ # # Create a request. To set request fields, pass in keyword arguments.
490
+ # request = Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentsRequest.new
491
+ #
492
+ # # Call the list_os_policy_assignments method.
493
+ # result = client.list_os_policy_assignments request
494
+ #
495
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
496
+ # # over elements, and API calls will be issued to fetch pages as needed.
497
+ # result.each do |item|
498
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::OSPolicyAssignment.
499
+ # p item
500
+ # end
501
+ #
420
502
  def list_os_policy_assignments request, options = nil
421
503
  raise ::ArgumentError, "request must be provided" if request.nil?
422
504
 
@@ -486,6 +568,26 @@ module Google
486
568
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::OSPolicyAssignment>]
487
569
  #
488
570
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
571
+ #
572
+ # @example Basic example
573
+ # require "google/cloud/os_config/v1"
574
+ #
575
+ # # Create a client object. The client can be reused for multiple calls.
576
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
577
+ #
578
+ # # Create a request. To set request fields, pass in keyword arguments.
579
+ # request = Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentRevisionsRequest.new
580
+ #
581
+ # # Call the list_os_policy_assignment_revisions method.
582
+ # result = client.list_os_policy_assignment_revisions request
583
+ #
584
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
585
+ # # over elements, and API calls will be issued to fetch pages as needed.
586
+ # result.each do |item|
587
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::OSPolicyAssignment.
588
+ # p item
589
+ # end
590
+ #
489
591
  def list_os_policy_assignment_revisions request, options = nil
490
592
  raise ::ArgumentError, "request must be provided" if request.nil?
491
593
 
@@ -560,6 +662,29 @@ module Google
560
662
  # @return [::Gapic::Operation]
561
663
  #
562
664
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
665
+ #
666
+ # @example Basic example
667
+ # require "google/cloud/os_config/v1"
668
+ #
669
+ # # Create a client object. The client can be reused for multiple calls.
670
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
671
+ #
672
+ # # Create a request. To set request fields, pass in keyword arguments.
673
+ # request = Google::Cloud::OsConfig::V1::DeleteOSPolicyAssignmentRequest.new
674
+ #
675
+ # # Call the delete_os_policy_assignment method.
676
+ # result = client.delete_os_policy_assignment request
677
+ #
678
+ # # The returned object is of type Gapic::Operation. You can use it to
679
+ # # check the status of an operation, cancel it, or wait for results.
680
+ # # Here is how to wait for a response.
681
+ # result.wait_until_done! timeout: 60
682
+ # if result.response?
683
+ # p result.response
684
+ # else
685
+ # puts "No response received."
686
+ # end
687
+ #
563
688
  def delete_os_policy_assignment request, options = nil
564
689
  raise ::ArgumentError, "request must be provided" if request.nil?
565
690
 
@@ -632,6 +757,22 @@ module Google
632
757
  # @return [::Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport]
633
758
  #
634
759
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
760
+ #
761
+ # @example Basic example
762
+ # require "google/cloud/os_config/v1"
763
+ #
764
+ # # Create a client object. The client can be reused for multiple calls.
765
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
766
+ #
767
+ # # Create a request. To set request fields, pass in keyword arguments.
768
+ # request = Google::Cloud::OsConfig::V1::GetOSPolicyAssignmentReportRequest.new
769
+ #
770
+ # # Call the get_os_policy_assignment_report method.
771
+ # result = client.get_os_policy_assignment_report request
772
+ #
773
+ # # The returned object is of type Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport.
774
+ # p result
775
+ #
635
776
  def get_os_policy_assignment_report request, options = nil
636
777
  raise ::ArgumentError, "request must be provided" if request.nil?
637
778
 
@@ -724,6 +865,26 @@ module Google
724
865
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport>]
725
866
  #
726
867
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
868
+ #
869
+ # @example Basic example
870
+ # require "google/cloud/os_config/v1"
871
+ #
872
+ # # Create a client object. The client can be reused for multiple calls.
873
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
874
+ #
875
+ # # Create a request. To set request fields, pass in keyword arguments.
876
+ # request = Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentReportsRequest.new
877
+ #
878
+ # # Call the list_os_policy_assignment_reports method.
879
+ # result = client.list_os_policy_assignment_reports request
880
+ #
881
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
882
+ # # over elements, and API calls will be issued to fetch pages as needed.
883
+ # result.each do |item|
884
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport.
885
+ # p item
886
+ # end
887
+ #
727
888
  def list_os_policy_assignment_reports request, options = nil
728
889
  raise ::ArgumentError, "request must be provided" if request.nil?
729
890
 
@@ -798,6 +959,22 @@ module Google
798
959
  # @return [::Google::Cloud::OsConfig::V1::Inventory]
799
960
  #
800
961
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
962
+ #
963
+ # @example Basic example
964
+ # require "google/cloud/os_config/v1"
965
+ #
966
+ # # Create a client object. The client can be reused for multiple calls.
967
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
968
+ #
969
+ # # Create a request. To set request fields, pass in keyword arguments.
970
+ # request = Google::Cloud::OsConfig::V1::GetInventoryRequest.new
971
+ #
972
+ # # Call the get_inventory method.
973
+ # result = client.get_inventory request
974
+ #
975
+ # # The returned object is of type Google::Cloud::OsConfig::V1::Inventory.
976
+ # p result
977
+ #
801
978
  def get_inventory request, options = nil
802
979
  raise ::ArgumentError, "request must be provided" if request.nil?
803
980
 
@@ -876,6 +1053,26 @@ module Google
876
1053
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::Inventory>]
877
1054
  #
878
1055
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1056
+ #
1057
+ # @example Basic example
1058
+ # require "google/cloud/os_config/v1"
1059
+ #
1060
+ # # Create a client object. The client can be reused for multiple calls.
1061
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
1062
+ #
1063
+ # # Create a request. To set request fields, pass in keyword arguments.
1064
+ # request = Google::Cloud::OsConfig::V1::ListInventoriesRequest.new
1065
+ #
1066
+ # # Call the list_inventories method.
1067
+ # result = client.list_inventories request
1068
+ #
1069
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1070
+ # # over elements, and API calls will be issued to fetch pages as needed.
1071
+ # result.each do |item|
1072
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::Inventory.
1073
+ # p item
1074
+ # end
1075
+ #
879
1076
  def list_inventories request, options = nil
880
1077
  raise ::ArgumentError, "request must be provided" if request.nil?
881
1078
 
@@ -947,6 +1144,22 @@ module Google
947
1144
  # @return [::Google::Cloud::OsConfig::V1::VulnerabilityReport]
948
1145
  #
949
1146
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1147
+ #
1148
+ # @example Basic example
1149
+ # require "google/cloud/os_config/v1"
1150
+ #
1151
+ # # Create a client object. The client can be reused for multiple calls.
1152
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
1153
+ #
1154
+ # # Create a request. To set request fields, pass in keyword arguments.
1155
+ # request = Google::Cloud::OsConfig::V1::GetVulnerabilityReportRequest.new
1156
+ #
1157
+ # # Call the get_vulnerability_report method.
1158
+ # result = client.get_vulnerability_report request
1159
+ #
1160
+ # # The returned object is of type Google::Cloud::OsConfig::V1::VulnerabilityReport.
1161
+ # p result
1162
+ #
950
1163
  def get_vulnerability_report request, options = nil
951
1164
  raise ::ArgumentError, "request must be provided" if request.nil?
952
1165
 
@@ -1022,6 +1235,26 @@ module Google
1022
1235
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1::VulnerabilityReport>]
1023
1236
  #
1024
1237
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1238
+ #
1239
+ # @example Basic example
1240
+ # require "google/cloud/os_config/v1"
1241
+ #
1242
+ # # Create a client object. The client can be reused for multiple calls.
1243
+ # client = Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
1244
+ #
1245
+ # # Create a request. To set request fields, pass in keyword arguments.
1246
+ # request = Google::Cloud::OsConfig::V1::ListVulnerabilityReportsRequest.new
1247
+ #
1248
+ # # Call the list_vulnerability_reports method.
1249
+ # result = client.list_vulnerability_reports request
1250
+ #
1251
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1252
+ # # over elements, and API calls will be issued to fetch pages as needed.
1253
+ # result.each do |item|
1254
+ # # Each element is of type ::Google::Cloud::OsConfig::V1::VulnerabilityReport.
1255
+ # p item
1256
+ # end
1257
+ #
1025
1258
  def list_vulnerability_reports request, options = nil
1026
1259
  raise ::ArgumentError, "request must be provided" if request.nil?
1027
1260
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1
24
- VERSION = "0.13.0"
24
+ VERSION = "0.14.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-os_config-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
247
  requirements: []
248
- rubygems_version: 3.4.2
248
+ rubygems_version: 3.4.19
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: OS management tools that can be used for patch management, patch compliance,