google-cloud-os_config-v1alpha 0.6.0 → 0.7.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: 2267179ebff003f3dbd4ad72a7f0f99fe7fc292897d1a8cbe9748c9b6a0a58a2
4
- data.tar.gz: ffdd3389c1c4ca0bf0f86ebd8699db4de939a02a6544adfb08c007a0b21c30b1
3
+ metadata.gz: 580a69d08f49e600cbb665015764f7cd8bd0aae1335f74afbc0dd1c69917d7ab
4
+ data.tar.gz: 5b096cdee08c96502d56e7eb0cfb1f4bb111596c29fd6567859022df14229887
5
5
  SHA512:
6
- metadata.gz: df49cdacad6f3708e058b0caf864ca5cf705a9f10bd6a5bc4a4c0f6daada991c68907051e209956b6c53815deeb8586bebdd6c2d485f6062f3d6526ea3acad14
7
- data.tar.gz: 1d0cc61ea52c6bff0bb138e9ea57bb2eadfb3ba5b95279fda8a91a7ce35a04a18927ee47f854bac20570fdd125203c40baecb7df9a3d1c4cfffa1eafae594009
6
+ metadata.gz: 14f25ab42ba6ae9c5c80d74406d0996d7e5217a3aec316007d547df140e6a15192310b2c17a58246b5415a01588918dcb2110afadebec6bb1917af6ad079cead
7
+ data.tar.gz: 5f893370a9eb6f11a28b4dba61dd6b2a7a82ef22906d91a23559aa64109b8d089f272beff498a38fc3967bbae06d1661824dffc54bcd1943236ae305ff2bed1c
@@ -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
 
@@ -1705,6 +1706,14 @@ module Google
1705
1706
  end
1706
1707
  end
1707
1708
 
1709
+ ##
1710
+ # Configuration for the channel pool
1711
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1712
+ #
1713
+ def channel_pool
1714
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1715
+ end
1716
+
1708
1717
  ##
1709
1718
  # Configuration RPC class for the OsConfigZonalService API.
1710
1719
  #
@@ -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/v1alpha"
209
+ #
210
+ # # Create a client object. The client can be reused for multiple calls.
211
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
212
+ #
213
+ # # Create a request. To set request fields, pass in keyword arguments.
214
+ # request = Google::Cloud::OsConfig::V1alpha::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
 
@@ -276,6 +299,29 @@ module Google
276
299
  # @return [::Gapic::Operation]
277
300
  #
278
301
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
302
+ #
303
+ # @example Basic example
304
+ # require "google/cloud/os_config/v1alpha"
305
+ #
306
+ # # Create a client object. The client can be reused for multiple calls.
307
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
308
+ #
309
+ # # Create a request. To set request fields, pass in keyword arguments.
310
+ # request = Google::Cloud::OsConfig::V1alpha::UpdateOSPolicyAssignmentRequest.new
311
+ #
312
+ # # Call the update_os_policy_assignment method.
313
+ # result = client.update_os_policy_assignment request
314
+ #
315
+ # # The returned object is of type Gapic::Operation. You can use it to
316
+ # # check the status of an operation, cancel it, or wait for results.
317
+ # # Here is how to wait for a response.
318
+ # result.wait_until_done! timeout: 60
319
+ # if result.response?
320
+ # p result.response
321
+ # else
322
+ # puts "No response received."
323
+ # end
324
+ #
279
325
  def update_os_policy_assignment request, options = nil
280
326
  raise ::ArgumentError, "request must be provided" if request.nil?
281
327
 
@@ -346,6 +392,22 @@ module Google
346
392
  # @return [::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment]
347
393
  #
348
394
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
395
+ #
396
+ # @example Basic example
397
+ # require "google/cloud/os_config/v1alpha"
398
+ #
399
+ # # Create a client object. The client can be reused for multiple calls.
400
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
401
+ #
402
+ # # Create a request. To set request fields, pass in keyword arguments.
403
+ # request = Google::Cloud::OsConfig::V1alpha::GetOSPolicyAssignmentRequest.new
404
+ #
405
+ # # Call the get_os_policy_assignment method.
406
+ # result = client.get_os_policy_assignment request
407
+ #
408
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment.
409
+ # p result
410
+ #
349
411
  def get_os_policy_assignment request, options = nil
350
412
  raise ::ArgumentError, "request must be provided" if request.nil?
351
413
 
@@ -416,6 +478,26 @@ module Google
416
478
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment>]
417
479
  #
418
480
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
481
+ #
482
+ # @example Basic example
483
+ # require "google/cloud/os_config/v1alpha"
484
+ #
485
+ # # Create a client object. The client can be reused for multiple calls.
486
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
487
+ #
488
+ # # Create a request. To set request fields, pass in keyword arguments.
489
+ # request = Google::Cloud::OsConfig::V1alpha::ListOSPolicyAssignmentsRequest.new
490
+ #
491
+ # # Call the list_os_policy_assignments method.
492
+ # result = client.list_os_policy_assignments request
493
+ #
494
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
495
+ # # over elements, and API calls will be issued to fetch pages as needed.
496
+ # result.each do |item|
497
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment.
498
+ # p item
499
+ # end
500
+ #
419
501
  def list_os_policy_assignments request, options = nil
420
502
  raise ::ArgumentError, "request must be provided" if request.nil?
421
503
 
@@ -485,6 +567,26 @@ module Google
485
567
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment>]
486
568
  #
487
569
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
570
+ #
571
+ # @example Basic example
572
+ # require "google/cloud/os_config/v1alpha"
573
+ #
574
+ # # Create a client object. The client can be reused for multiple calls.
575
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
576
+ #
577
+ # # Create a request. To set request fields, pass in keyword arguments.
578
+ # request = Google::Cloud::OsConfig::V1alpha::ListOSPolicyAssignmentRevisionsRequest.new
579
+ #
580
+ # # Call the list_os_policy_assignment_revisions method.
581
+ # result = client.list_os_policy_assignment_revisions request
582
+ #
583
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
584
+ # # over elements, and API calls will be issued to fetch pages as needed.
585
+ # result.each do |item|
586
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment.
587
+ # p item
588
+ # end
589
+ #
488
590
  def list_os_policy_assignment_revisions request, options = nil
489
591
  raise ::ArgumentError, "request must be provided" if request.nil?
490
592
 
@@ -559,6 +661,29 @@ module Google
559
661
  # @return [::Gapic::Operation]
560
662
  #
561
663
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
664
+ #
665
+ # @example Basic example
666
+ # require "google/cloud/os_config/v1alpha"
667
+ #
668
+ # # Create a client object. The client can be reused for multiple calls.
669
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
670
+ #
671
+ # # Create a request. To set request fields, pass in keyword arguments.
672
+ # request = Google::Cloud::OsConfig::V1alpha::DeleteOSPolicyAssignmentRequest.new
673
+ #
674
+ # # Call the delete_os_policy_assignment method.
675
+ # result = client.delete_os_policy_assignment request
676
+ #
677
+ # # The returned object is of type Gapic::Operation. You can use it to
678
+ # # check the status of an operation, cancel it, or wait for results.
679
+ # # Here is how to wait for a response.
680
+ # result.wait_until_done! timeout: 60
681
+ # if result.response?
682
+ # p result.response
683
+ # else
684
+ # puts "No response received."
685
+ # end
686
+ #
562
687
  def delete_os_policy_assignment request, options = nil
563
688
  raise ::ArgumentError, "request must be provided" if request.nil?
564
689
 
@@ -631,6 +756,22 @@ module Google
631
756
  # @return [::Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance]
632
757
  #
633
758
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
759
+ #
760
+ # @example Basic example
761
+ # require "google/cloud/os_config/v1alpha"
762
+ #
763
+ # # Create a client object. The client can be reused for multiple calls.
764
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
765
+ #
766
+ # # Create a request. To set request fields, pass in keyword arguments.
767
+ # request = Google::Cloud::OsConfig::V1alpha::GetInstanceOSPoliciesComplianceRequest.new
768
+ #
769
+ # # Call the get_instance_os_policies_compliance method.
770
+ # result = client.get_instance_os_policies_compliance request
771
+ #
772
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance.
773
+ # p result
774
+ #
634
775
  def get_instance_os_policies_compliance request, options = nil
635
776
  raise ::ArgumentError, "request must be provided" if request.nil?
636
777
 
@@ -708,6 +849,26 @@ module Google
708
849
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance>]
709
850
  #
710
851
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
852
+ #
853
+ # @example Basic example
854
+ # require "google/cloud/os_config/v1alpha"
855
+ #
856
+ # # Create a client object. The client can be reused for multiple calls.
857
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
858
+ #
859
+ # # Create a request. To set request fields, pass in keyword arguments.
860
+ # request = Google::Cloud::OsConfig::V1alpha::ListInstanceOSPoliciesCompliancesRequest.new
861
+ #
862
+ # # Call the list_instance_os_policies_compliances method.
863
+ # result = client.list_instance_os_policies_compliances request
864
+ #
865
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
866
+ # # over elements, and API calls will be issued to fetch pages as needed.
867
+ # result.each do |item|
868
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance.
869
+ # p item
870
+ # end
871
+ #
711
872
  def list_instance_os_policies_compliances request, options = nil
712
873
  raise ::ArgumentError, "request must be provided" if request.nil?
713
874
 
@@ -780,6 +941,22 @@ module Google
780
941
  # @return [::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport]
781
942
  #
782
943
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
944
+ #
945
+ # @example Basic example
946
+ # require "google/cloud/os_config/v1alpha"
947
+ #
948
+ # # Create a client object. The client can be reused for multiple calls.
949
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
950
+ #
951
+ # # Create a request. To set request fields, pass in keyword arguments.
952
+ # request = Google::Cloud::OsConfig::V1alpha::GetOSPolicyAssignmentReportRequest.new
953
+ #
954
+ # # Call the get_os_policy_assignment_report method.
955
+ # result = client.get_os_policy_assignment_report request
956
+ #
957
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport.
958
+ # p result
959
+ #
783
960
  def get_os_policy_assignment_report request, options = nil
784
961
  raise ::ArgumentError, "request must be provided" if request.nil?
785
962
 
@@ -872,6 +1049,26 @@ module Google
872
1049
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport>]
873
1050
  #
874
1051
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1052
+ #
1053
+ # @example Basic example
1054
+ # require "google/cloud/os_config/v1alpha"
1055
+ #
1056
+ # # Create a client object. The client can be reused for multiple calls.
1057
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
1058
+ #
1059
+ # # Create a request. To set request fields, pass in keyword arguments.
1060
+ # request = Google::Cloud::OsConfig::V1alpha::ListOSPolicyAssignmentReportsRequest.new
1061
+ #
1062
+ # # Call the list_os_policy_assignment_reports method.
1063
+ # result = client.list_os_policy_assignment_reports request
1064
+ #
1065
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1066
+ # # over elements, and API calls will be issued to fetch pages as needed.
1067
+ # result.each do |item|
1068
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport.
1069
+ # p item
1070
+ # end
1071
+ #
875
1072
  def list_os_policy_assignment_reports request, options = nil
876
1073
  raise ::ArgumentError, "request must be provided" if request.nil?
877
1074
 
@@ -946,6 +1143,22 @@ module Google
946
1143
  # @return [::Google::Cloud::OsConfig::V1alpha::Inventory]
947
1144
  #
948
1145
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1146
+ #
1147
+ # @example Basic example
1148
+ # require "google/cloud/os_config/v1alpha"
1149
+ #
1150
+ # # Create a client object. The client can be reused for multiple calls.
1151
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
1152
+ #
1153
+ # # Create a request. To set request fields, pass in keyword arguments.
1154
+ # request = Google::Cloud::OsConfig::V1alpha::GetInventoryRequest.new
1155
+ #
1156
+ # # Call the get_inventory method.
1157
+ # result = client.get_inventory request
1158
+ #
1159
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::Inventory.
1160
+ # p result
1161
+ #
949
1162
  def get_inventory request, options = nil
950
1163
  raise ::ArgumentError, "request must be provided" if request.nil?
951
1164
 
@@ -1024,6 +1237,26 @@ module Google
1024
1237
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1alpha::Inventory>]
1025
1238
  #
1026
1239
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1240
+ #
1241
+ # @example Basic example
1242
+ # require "google/cloud/os_config/v1alpha"
1243
+ #
1244
+ # # Create a client object. The client can be reused for multiple calls.
1245
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
1246
+ #
1247
+ # # Create a request. To set request fields, pass in keyword arguments.
1248
+ # request = Google::Cloud::OsConfig::V1alpha::ListInventoriesRequest.new
1249
+ #
1250
+ # # Call the list_inventories method.
1251
+ # result = client.list_inventories request
1252
+ #
1253
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1254
+ # # over elements, and API calls will be issued to fetch pages as needed.
1255
+ # result.each do |item|
1256
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::Inventory.
1257
+ # p item
1258
+ # end
1259
+ #
1027
1260
  def list_inventories request, options = nil
1028
1261
  raise ::ArgumentError, "request must be provided" if request.nil?
1029
1262
 
@@ -1095,6 +1328,22 @@ module Google
1095
1328
  # @return [::Google::Cloud::OsConfig::V1alpha::VulnerabilityReport]
1096
1329
  #
1097
1330
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1331
+ #
1332
+ # @example Basic example
1333
+ # require "google/cloud/os_config/v1alpha"
1334
+ #
1335
+ # # Create a client object. The client can be reused for multiple calls.
1336
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
1337
+ #
1338
+ # # Create a request. To set request fields, pass in keyword arguments.
1339
+ # request = Google::Cloud::OsConfig::V1alpha::GetVulnerabilityReportRequest.new
1340
+ #
1341
+ # # Call the get_vulnerability_report method.
1342
+ # result = client.get_vulnerability_report request
1343
+ #
1344
+ # # The returned object is of type Google::Cloud::OsConfig::V1alpha::VulnerabilityReport.
1345
+ # p result
1346
+ #
1098
1347
  def get_vulnerability_report request, options = nil
1099
1348
  raise ::ArgumentError, "request must be provided" if request.nil?
1100
1349
 
@@ -1170,6 +1419,26 @@ module Google
1170
1419
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OsConfig::V1alpha::VulnerabilityReport>]
1171
1420
  #
1172
1421
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1422
+ #
1423
+ # @example Basic example
1424
+ # require "google/cloud/os_config/v1alpha"
1425
+ #
1426
+ # # Create a client object. The client can be reused for multiple calls.
1427
+ # client = Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Rest::Client.new
1428
+ #
1429
+ # # Create a request. To set request fields, pass in keyword arguments.
1430
+ # request = Google::Cloud::OsConfig::V1alpha::ListVulnerabilityReportsRequest.new
1431
+ #
1432
+ # # Call the list_vulnerability_reports method.
1433
+ # result = client.list_vulnerability_reports request
1434
+ #
1435
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1436
+ # # over elements, and API calls will be issued to fetch pages as needed.
1437
+ # result.each do |item|
1438
+ # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::VulnerabilityReport.
1439
+ # p item
1440
+ # end
1441
+ #
1173
1442
  def list_vulnerability_reports request, options = nil
1174
1443
  raise ::ArgumentError, "request must be provided" if request.nil?
1175
1444
 
@@ -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 V1alpha
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.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-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.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
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.4.2
236
+ rubygems_version: 3.4.19
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: OS management tools that can be used for patch management, patch compliance,