google-cloud-os_config-v1alpha 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cbf2a8f476d9c7e7d9508d46e4233c7656cc4a1176f9006ad278346e0b5255d
4
- data.tar.gz: 2571ec7911624a5188d80de6eb0075b09cdec962a6bbf28e0ad339763f275d3c
3
+ metadata.gz: 1096c026279e5243cf3d9068ce967a79cd963bdc6d72af027b877b81b5371b15
4
+ data.tar.gz: dcdf1cb90f2f684ef5f7873276e2c32f6ff017a9f73bebcff41b3d3f62e0bbf1
5
5
  SHA512:
6
- metadata.gz: '08c5c610dd0e419d3d5bdf36bdf58a2bf5d44b1b0888f1184c30ffaa6a19d9c07bf01afb28e9cc9aae9d9aabb0f728738c6dddb76bc470bcb7f5f532f1fcab53'
7
- data.tar.gz: a53f0124a54ad10e666f8a31a3123bb2613a73f27b83a71d7a857f48c9ec7112488386ac3296de83796e35be18c6f5e2d43079a92f0a6cd9f56951d0c23bf0cf
6
+ metadata.gz: 81d782b5f4c3345bd85b54ebeca30620d58897b50e34508836bdcb8e25004a2c0becf8275e428a440dd7dbee3e7e2b9177828194ceb8c664674ca8a4107bdf66
7
+ data.tar.gz: 8a09d742db429598756816156b65435055c56ce77285fbcf16e2f64c9e6d712c585609c8589d4a9e6a078efd461da92789ff8dea354d74319ec456c17ce1e237
@@ -213,6 +213,28 @@ module Google
213
213
  #
214
214
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
215
215
  #
216
+ # @example Basic example
217
+ # require "google/cloud/os_config/v1alpha"
218
+ #
219
+ # # Create a client object. The client can be reused for multiple calls.
220
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
221
+ #
222
+ # # Create a request. To set request fields, pass in keyword arguments.
223
+ # request = Google::Cloud::OsConfig::V1alpha::CreateOSPolicyAssignmentRequest.new
224
+ #
225
+ # # Call the create_os_policy_assignment method.
226
+ # result = client.create_os_policy_assignment request
227
+ #
228
+ # # The returned object is of type Gapic::Operation. You can use this
229
+ # # object to check the status of an operation, cancel it, or wait
230
+ # # for results. Here is how to block until completion:
231
+ # result.wait_until_done! timeout: 60
232
+ # if result.response?
233
+ # p result.response
234
+ # else
235
+ # puts "Error!"
236
+ # end
237
+ #
216
238
  def create_os_policy_assignment request, options = nil
217
239
  raise ::ArgumentError, "request must be provided" if request.nil?
218
240
 
@@ -230,9 +252,11 @@ module Google
230
252
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
231
253
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
254
 
233
- header_params = {
234
- "parent" => request.parent
235
- }
255
+ header_params = {}
256
+ if request.parent
257
+ header_params["parent"] = request.parent
258
+ end
259
+
236
260
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
237
261
  metadata[:"x-goog-request-params"] ||= request_params_header
238
262
 
@@ -292,6 +316,28 @@ module Google
292
316
  #
293
317
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
294
318
  #
319
+ # @example Basic example
320
+ # require "google/cloud/os_config/v1alpha"
321
+ #
322
+ # # Create a client object. The client can be reused for multiple calls.
323
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
324
+ #
325
+ # # Create a request. To set request fields, pass in keyword arguments.
326
+ # request = Google::Cloud::OsConfig::V1alpha::UpdateOSPolicyAssignmentRequest.new
327
+ #
328
+ # # Call the update_os_policy_assignment method.
329
+ # result = client.update_os_policy_assignment request
330
+ #
331
+ # # The returned object is of type Gapic::Operation. You can use this
332
+ # # object to check the status of an operation, cancel it, or wait
333
+ # # for results. Here is how to block until completion:
334
+ # result.wait_until_done! timeout: 60
335
+ # if result.response?
336
+ # p result.response
337
+ # else
338
+ # puts "Error!"
339
+ # end
340
+ #
295
341
  def update_os_policy_assignment request, options = nil
296
342
  raise ::ArgumentError, "request must be provided" if request.nil?
297
343
 
@@ -309,9 +355,11 @@ module Google
309
355
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
310
356
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
311
357
 
312
- header_params = {
313
- "os_policy_assignment.name" => request.os_policy_assignment.name
314
- }
358
+ header_params = {}
359
+ if request.os_policy_assignment&.name
360
+ header_params["os_policy_assignment.name"] = request.os_policy_assignment.name
361
+ end
362
+
315
363
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
316
364
  metadata[:"x-goog-request-params"] ||= request_params_header
317
365
 
@@ -368,6 +416,21 @@ module Google
368
416
  #
369
417
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
370
418
  #
419
+ # @example Basic example
420
+ # require "google/cloud/os_config/v1alpha"
421
+ #
422
+ # # Create a client object. The client can be reused for multiple calls.
423
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
424
+ #
425
+ # # Create a request. To set request fields, pass in keyword arguments.
426
+ # request = Google::Cloud::OsConfig::V1alpha::GetOSPolicyAssignmentRequest.new
427
+ #
428
+ # # Call the get_os_policy_assignment method.
429
+ # result = client.get_os_policy_assignment request
430
+ #
431
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment.
432
+ # p result
433
+ #
371
434
  def get_os_policy_assignment request, options = nil
372
435
  raise ::ArgumentError, "request must be provided" if request.nil?
373
436
 
@@ -385,9 +448,11 @@ module Google
385
448
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
386
449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
387
450
 
388
- header_params = {
389
- "name" => request.name
390
- }
451
+ header_params = {}
452
+ if request.name
453
+ header_params["name"] = request.name
454
+ end
455
+
391
456
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
392
457
  metadata[:"x-goog-request-params"] ||= request_params_header
393
458
 
@@ -444,6 +509,27 @@ module Google
444
509
  #
445
510
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
511
  #
512
+ # @example Basic example
513
+ # require "google/cloud/os_config/v1alpha"
514
+ #
515
+ # # Create a client object. The client can be reused for multiple calls.
516
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
517
+ #
518
+ # # Create a request. To set request fields, pass in keyword arguments.
519
+ # request = Google::Cloud::OsConfig::V1alpha::ListOSPolicyAssignmentsRequest.new
520
+ #
521
+ # # Call the list_os_policy_assignments method.
522
+ # result = client.list_os_policy_assignments request
523
+ #
524
+ # # The returned object is of type Gapic::PagedEnumerable. You can
525
+ # # iterate over all elements by calling #each, and the enumerable
526
+ # # will lazily make API calls to fetch subsequent pages. Other
527
+ # # methods are also available for managing paging directly.
528
+ # result.each do |response|
529
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment.
530
+ # p response
531
+ # end
532
+ #
447
533
  def list_os_policy_assignments request, options = nil
448
534
  raise ::ArgumentError, "request must be provided" if request.nil?
449
535
 
@@ -461,9 +547,11 @@ module Google
461
547
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
462
548
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
463
549
 
464
- header_params = {
465
- "parent" => request.parent
466
- }
550
+ header_params = {}
551
+ if request.parent
552
+ header_params["parent"] = request.parent
553
+ end
554
+
467
555
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
468
556
  metadata[:"x-goog-request-params"] ||= request_params_header
469
557
 
@@ -519,6 +607,27 @@ module Google
519
607
  #
520
608
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
521
609
  #
610
+ # @example Basic example
611
+ # require "google/cloud/os_config/v1alpha"
612
+ #
613
+ # # Create a client object. The client can be reused for multiple calls.
614
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
615
+ #
616
+ # # Create a request. To set request fields, pass in keyword arguments.
617
+ # request = Google::Cloud::OsConfig::V1alpha::ListOSPolicyAssignmentRevisionsRequest.new
618
+ #
619
+ # # Call the list_os_policy_assignment_revisions method.
620
+ # result = client.list_os_policy_assignment_revisions request
621
+ #
622
+ # # The returned object is of type Gapic::PagedEnumerable. You can
623
+ # # iterate over all elements by calling #each, and the enumerable
624
+ # # will lazily make API calls to fetch subsequent pages. Other
625
+ # # methods are also available for managing paging directly.
626
+ # result.each do |response|
627
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment.
628
+ # p response
629
+ # end
630
+ #
522
631
  def list_os_policy_assignment_revisions request, options = nil
523
632
  raise ::ArgumentError, "request must be provided" if request.nil?
524
633
 
@@ -536,9 +645,11 @@ module Google
536
645
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
537
646
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
538
647
 
539
- header_params = {
540
- "name" => request.name
541
- }
648
+ header_params = {}
649
+ if request.name
650
+ header_params["name"] = request.name
651
+ end
652
+
542
653
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
543
654
  metadata[:"x-goog-request-params"] ||= request_params_header
544
655
 
@@ -599,6 +710,28 @@ module Google
599
710
  #
600
711
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
601
712
  #
713
+ # @example Basic example
714
+ # require "google/cloud/os_config/v1alpha"
715
+ #
716
+ # # Create a client object. The client can be reused for multiple calls.
717
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
718
+ #
719
+ # # Create a request. To set request fields, pass in keyword arguments.
720
+ # request = Google::Cloud::OsConfig::V1alpha::DeleteOSPolicyAssignmentRequest.new
721
+ #
722
+ # # Call the delete_os_policy_assignment method.
723
+ # result = client.delete_os_policy_assignment request
724
+ #
725
+ # # The returned object is of type Gapic::Operation. You can use this
726
+ # # object to check the status of an operation, cancel it, or wait
727
+ # # for results. Here is how to block until completion:
728
+ # result.wait_until_done! timeout: 60
729
+ # if result.response?
730
+ # p result.response
731
+ # else
732
+ # puts "Error!"
733
+ # end
734
+ #
602
735
  def delete_os_policy_assignment request, options = nil
603
736
  raise ::ArgumentError, "request must be provided" if request.nil?
604
737
 
@@ -616,9 +749,11 @@ module Google
616
749
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
617
750
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
751
 
619
- header_params = {
620
- "name" => request.name
621
- }
752
+ header_params = {}
753
+ if request.name
754
+ header_params["name"] = request.name
755
+ end
756
+
622
757
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
623
758
  metadata[:"x-goog-request-params"] ||= request_params_header
624
759
 
@@ -677,6 +812,21 @@ module Google
677
812
  #
678
813
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
679
814
  #
815
+ # @example Basic example
816
+ # require "google/cloud/os_config/v1alpha"
817
+ #
818
+ # # Create a client object. The client can be reused for multiple calls.
819
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
820
+ #
821
+ # # Create a request. To set request fields, pass in keyword arguments.
822
+ # request = Google::Cloud::OsConfig::V1alpha::GetInstanceOSPoliciesComplianceRequest.new
823
+ #
824
+ # # Call the get_instance_os_policies_compliance method.
825
+ # result = client.get_instance_os_policies_compliance request
826
+ #
827
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance.
828
+ # p result
829
+ #
680
830
  def get_instance_os_policies_compliance request, options = nil
681
831
  raise ::ArgumentError, "request must be provided" if request.nil?
682
832
 
@@ -694,9 +844,11 @@ module Google
694
844
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
695
845
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
696
846
 
697
- header_params = {
698
- "name" => request.name
699
- }
847
+ header_params = {}
848
+ if request.name
849
+ header_params["name"] = request.name
850
+ end
851
+
700
852
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
701
853
  metadata[:"x-goog-request-params"] ||= request_params_header
702
854
 
@@ -760,6 +912,27 @@ module Google
760
912
  #
761
913
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
762
914
  #
915
+ # @example Basic example
916
+ # require "google/cloud/os_config/v1alpha"
917
+ #
918
+ # # Create a client object. The client can be reused for multiple calls.
919
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
920
+ #
921
+ # # Create a request. To set request fields, pass in keyword arguments.
922
+ # request = Google::Cloud::OsConfig::V1alpha::ListInstanceOSPoliciesCompliancesRequest.new
923
+ #
924
+ # # Call the list_instance_os_policies_compliances method.
925
+ # result = client.list_instance_os_policies_compliances request
926
+ #
927
+ # # The returned object is of type Gapic::PagedEnumerable. You can
928
+ # # iterate over all elements by calling #each, and the enumerable
929
+ # # will lazily make API calls to fetch subsequent pages. Other
930
+ # # methods are also available for managing paging directly.
931
+ # result.each do |response|
932
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance.
933
+ # p response
934
+ # end
935
+ #
763
936
  def list_instance_os_policies_compliances request, options = nil
764
937
  raise ::ArgumentError, "request must be provided" if request.nil?
765
938
 
@@ -777,9 +950,11 @@ module Google
777
950
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
778
951
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
779
952
 
780
- header_params = {
781
- "parent" => request.parent
782
- }
953
+ header_params = {}
954
+ if request.parent
955
+ header_params["parent"] = request.parent
956
+ end
957
+
783
958
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
784
959
  metadata[:"x-goog-request-params"] ||= request_params_header
785
960
 
@@ -840,6 +1015,21 @@ module Google
840
1015
  #
841
1016
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
842
1017
  #
1018
+ # @example Basic example
1019
+ # require "google/cloud/os_config/v1alpha"
1020
+ #
1021
+ # # Create a client object. The client can be reused for multiple calls.
1022
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
1023
+ #
1024
+ # # Create a request. To set request fields, pass in keyword arguments.
1025
+ # request = Google::Cloud::OsConfig::V1alpha::GetInventoryRequest.new
1026
+ #
1027
+ # # Call the get_inventory method.
1028
+ # result = client.get_inventory request
1029
+ #
1030
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::Inventory.
1031
+ # p result
1032
+ #
843
1033
  def get_inventory request, options = nil
844
1034
  raise ::ArgumentError, "request must be provided" if request.nil?
845
1035
 
@@ -857,9 +1047,11 @@ module Google
857
1047
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
858
1048
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
859
1049
 
860
- header_params = {
861
- "name" => request.name
862
- }
1050
+ header_params = {}
1051
+ if request.name
1052
+ header_params["name"] = request.name
1053
+ end
1054
+
863
1055
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
864
1056
  metadata[:"x-goog-request-params"] ||= request_params_header
865
1057
 
@@ -926,6 +1118,27 @@ module Google
926
1118
  #
927
1119
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
928
1120
  #
1121
+ # @example Basic example
1122
+ # require "google/cloud/os_config/v1alpha"
1123
+ #
1124
+ # # Create a client object. The client can be reused for multiple calls.
1125
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
1126
+ #
1127
+ # # Create a request. To set request fields, pass in keyword arguments.
1128
+ # request = Google::Cloud::OsConfig::V1alpha::ListInventoriesRequest.new
1129
+ #
1130
+ # # Call the list_inventories method.
1131
+ # result = client.list_inventories request
1132
+ #
1133
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1134
+ # # iterate over all elements by calling #each, and the enumerable
1135
+ # # will lazily make API calls to fetch subsequent pages. Other
1136
+ # # methods are also available for managing paging directly.
1137
+ # result.each do |response|
1138
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::Inventory.
1139
+ # p response
1140
+ # end
1141
+ #
929
1142
  def list_inventories request, options = nil
930
1143
  raise ::ArgumentError, "request must be provided" if request.nil?
931
1144
 
@@ -943,9 +1156,11 @@ module Google
943
1156
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
944
1157
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
945
1158
 
946
- header_params = {
947
- "parent" => request.parent
948
- }
1159
+ header_params = {}
1160
+ if request.parent
1161
+ header_params["parent"] = request.parent
1162
+ end
1163
+
949
1164
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
950
1165
  metadata[:"x-goog-request-params"] ||= request_params_header
951
1166
 
@@ -1003,6 +1218,21 @@ module Google
1003
1218
  #
1004
1219
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1005
1220
  #
1221
+ # @example Basic example
1222
+ # require "google/cloud/os_config/v1alpha"
1223
+ #
1224
+ # # Create a client object. The client can be reused for multiple calls.
1225
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
1226
+ #
1227
+ # # Create a request. To set request fields, pass in keyword arguments.
1228
+ # request = Google::Cloud::OsConfig::V1alpha::GetVulnerabilityReportRequest.new
1229
+ #
1230
+ # # Call the get_vulnerability_report method.
1231
+ # result = client.get_vulnerability_report request
1232
+ #
1233
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::VulnerabilityReport.
1234
+ # p result
1235
+ #
1006
1236
  def get_vulnerability_report request, options = nil
1007
1237
  raise ::ArgumentError, "request must be provided" if request.nil?
1008
1238
 
@@ -1020,9 +1250,11 @@ module Google
1020
1250
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
1021
1251
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1022
1252
 
1023
- header_params = {
1024
- "name" => request.name
1025
- }
1253
+ header_params = {}
1254
+ if request.name
1255
+ header_params["name"] = request.name
1256
+ end
1257
+
1026
1258
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1027
1259
  metadata[:"x-goog-request-params"] ||= request_params_header
1028
1260
 
@@ -1086,6 +1318,27 @@ module Google
1086
1318
  #
1087
1319
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1088
1320
  #
1321
+ # @example Basic example
1322
+ # require "google/cloud/os_config/v1alpha"
1323
+ #
1324
+ # # Create a client object. The client can be reused for multiple calls.
1325
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
1326
+ #
1327
+ # # Create a request. To set request fields, pass in keyword arguments.
1328
+ # request = Google::Cloud::OsConfig::V1alpha::ListVulnerabilityReportsRequest.new
1329
+ #
1330
+ # # Call the list_vulnerability_reports method.
1331
+ # result = client.list_vulnerability_reports request
1332
+ #
1333
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1334
+ # # iterate over all elements by calling #each, and the enumerable
1335
+ # # will lazily make API calls to fetch subsequent pages. Other
1336
+ # # methods are also available for managing paging directly.
1337
+ # result.each do |response|
1338
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::VulnerabilityReport.
1339
+ # p response
1340
+ # end
1341
+ #
1089
1342
  def list_vulnerability_reports request, options = nil
1090
1343
  raise ::ArgumentError, "request must be provided" if request.nil?
1091
1344
 
@@ -1103,9 +1356,11 @@ module Google
1103
1356
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
1104
1357
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1105
1358
 
1106
- header_params = {
1107
- "parent" => request.parent
1108
- }
1359
+ header_params = {}
1360
+ if request.parent
1361
+ header_params["parent"] = request.parent
1362
+ end
1363
+
1109
1364
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1110
1365
  metadata[:"x-goog-request-params"] ||= request_params_header
1111
1366
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::OsConfig::V1alpha::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1alpha
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/cloud/osconfig/v1alpha/config_common_pb'
9
7
  require 'google/protobuf/timestamp_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto", :syntax => :proto3) do
12
12
  add_message "google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance" do
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1alpha/inventory.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/timestamp_pb'
9
7
  require 'google/type/date_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/osconfig/v1alpha/inventory.proto", :syntax => :proto3) do
12
12
  add_message "google.cloud.osconfig.v1alpha.Inventory" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1alpha/os_policy_assignments.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/cloud/osconfig/v1alpha/os_policy_pb'
@@ -10,6 +8,8 @@ require 'google/cloud/osconfig/v1alpha/osconfig_common_pb'
10
8
  require 'google/protobuf/duration_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/osconfig/v1alpha/os_policy_assignments.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.osconfig.v1alpha.OSPolicyAssignment" do
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1alpha/os_policy.proto
3
3
 
4
+ require 'google/api/field_behavior_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/field_behavior_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/cloud/osconfig/v1alpha/os_policy.proto", :syntax => :proto3) do
9
9
  add_message "google.cloud.osconfig.v1alpha.OSPolicy" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1alpha/osconfig_zonal_service.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/resource_pb'
@@ -11,6 +9,8 @@ require 'google/cloud/osconfig/v1alpha/inventory_pb'
11
9
  require 'google/cloud/osconfig/v1alpha/os_policy_assignments_pb'
12
10
  require 'google/cloud/osconfig/v1alpha/vulnerability_pb'
13
11
  require 'google/longrunning/operations_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto", :syntax => :proto3) do
16
16
  end
@@ -30,7 +30,7 @@ module Google
30
30
  # manage package installations and patch jobs for Compute Engine VM instances.
31
31
  class Service
32
32
 
33
- include GRPC::GenericService
33
+ include ::GRPC::GenericService
34
34
 
35
35
  self.marshal_class_method = :encode
36
36
  self.unmarshal_class_method = :decode
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1alpha/vulnerability.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/timestamp_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/osconfig/v1alpha/vulnerability.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.osconfig.v1alpha.VulnerabilityReport" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-os_config-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.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-08-31 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