google-cloud-assured_workloads-v1 0.7.0 → 0.8.0

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: 291fb39aa2ce472ab807ce411c8249f200a2ab372f46dde3caddf7fadfc9b92b
4
- data.tar.gz: fce8f0cdc9854d932311f470411c141270a57ee51a44da9e4c182421dee9bcb8
3
+ metadata.gz: 46fb7051a1efe84e46d8581fe1e4065a7abf5957bd7e6d968b749a08583a1131
4
+ data.tar.gz: '0803c2e56d5dd40779150c7f20be573459d7375598a64355a95842ffcb0ff138'
5
5
  SHA512:
6
- metadata.gz: b529950f99835ae96f490cb7a5239e82fb1d302fda1134b8f7a5563e65e98286af60601fee27767777b2272fd96cbe1842bc886304418f55cb7b32df311af16a
7
- data.tar.gz: 05b17fddf4d80abe14be762d881b9b8c3b9fa90e8660452a4cde8f35afb6cba595b4cd603fbf219cf0bb0db0cb1b37a47b02c5e965faebe726bb53e7609e6e80
6
+ metadata.gz: 0fe62271b7a181ac84f44dbb2e8f588fff8bf967de96d88cdac49851f817cd467dd0cd57dede9779011b31f1b22f41cb734e72dd294b7608939fc8e2dcfb88ef
7
+ data.tar.gz: ee6d915d5cfffdfcde188a3bae7a6c201c19e8de9b3ce176f29c600c9f41bd618c0b579dffd1143aa068fdf54831e05226b03446da705733bae611d0b15c6757
@@ -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
 
@@ -1117,6 +1118,14 @@ module Google
1117
1118
  end
1118
1119
  end
1119
1120
 
1121
+ ##
1122
+ # Configuration for the channel pool
1123
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1124
+ #
1125
+ def channel_pool
1126
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1127
+ end
1128
+
1120
1129
  ##
1121
1130
  # Configuration RPC class for the AssuredWorkloadsService API.
1122
1131
  #
@@ -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
  #
@@ -185,6 +185,29 @@ module Google
185
185
  # @return [::Gapic::Operation]
186
186
  #
187
187
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
188
+ #
189
+ # @example Basic example
190
+ # require "google/cloud/assured_workloads/v1"
191
+ #
192
+ # # Create a client object. The client can be reused for multiple calls.
193
+ # client = Google::Cloud::AssuredWorkloads::V1::AssuredWorkloadsService::Rest::Client.new
194
+ #
195
+ # # Create a request. To set request fields, pass in keyword arguments.
196
+ # request = Google::Cloud::AssuredWorkloads::V1::CreateWorkloadRequest.new
197
+ #
198
+ # # Call the create_workload method.
199
+ # result = client.create_workload request
200
+ #
201
+ # # The returned object is of type Gapic::Operation. You can use it to
202
+ # # check the status of an operation, cancel it, or wait for results.
203
+ # # Here is how to wait for a response.
204
+ # result.wait_until_done! timeout: 60
205
+ # if result.response?
206
+ # p result.response
207
+ # else
208
+ # puts "No response received."
209
+ # end
210
+ #
188
211
  def create_workload request, options = nil
189
212
  raise ::ArgumentError, "request must be provided" if request.nil?
190
213
 
@@ -256,6 +279,22 @@ module Google
256
279
  # @return [::Google::Cloud::AssuredWorkloads::V1::Workload]
257
280
  #
258
281
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
282
+ #
283
+ # @example Basic example
284
+ # require "google/cloud/assured_workloads/v1"
285
+ #
286
+ # # Create a client object. The client can be reused for multiple calls.
287
+ # client = Google::Cloud::AssuredWorkloads::V1::AssuredWorkloadsService::Rest::Client.new
288
+ #
289
+ # # Create a request. To set request fields, pass in keyword arguments.
290
+ # request = Google::Cloud::AssuredWorkloads::V1::UpdateWorkloadRequest.new
291
+ #
292
+ # # Call the update_workload method.
293
+ # result = client.update_workload request
294
+ #
295
+ # # The returned object is of type Google::Cloud::AssuredWorkloads::V1::Workload.
296
+ # p result
297
+ #
259
298
  def update_workload request, options = nil
260
299
  raise ::ArgumentError, "request must be provided" if request.nil?
261
300
 
@@ -329,6 +368,22 @@ module Google
329
368
  # @return [::Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesResponse]
330
369
  #
331
370
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
371
+ #
372
+ # @example Basic example
373
+ # require "google/cloud/assured_workloads/v1"
374
+ #
375
+ # # Create a client object. The client can be reused for multiple calls.
376
+ # client = Google::Cloud::AssuredWorkloads::V1::AssuredWorkloadsService::Rest::Client.new
377
+ #
378
+ # # Create a request. To set request fields, pass in keyword arguments.
379
+ # request = Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesRequest.new
380
+ #
381
+ # # Call the restrict_allowed_resources method.
382
+ # result = client.restrict_allowed_resources request
383
+ #
384
+ # # The returned object is of type Google::Cloud::AssuredWorkloads::V1::RestrictAllowedResourcesResponse.
385
+ # p result
386
+ #
332
387
  def restrict_allowed_resources request, options = nil
333
388
  raise ::ArgumentError, "request must be provided" if request.nil?
334
389
 
@@ -398,6 +453,22 @@ module Google
398
453
  # @return [::Google::Protobuf::Empty]
399
454
  #
400
455
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
456
+ #
457
+ # @example Basic example
458
+ # require "google/cloud/assured_workloads/v1"
459
+ #
460
+ # # Create a client object. The client can be reused for multiple calls.
461
+ # client = Google::Cloud::AssuredWorkloads::V1::AssuredWorkloadsService::Rest::Client.new
462
+ #
463
+ # # Create a request. To set request fields, pass in keyword arguments.
464
+ # request = Google::Cloud::AssuredWorkloads::V1::DeleteWorkloadRequest.new
465
+ #
466
+ # # Call the delete_workload method.
467
+ # result = client.delete_workload request
468
+ #
469
+ # # The returned object is of type Google::Protobuf::Empty.
470
+ # p result
471
+ #
401
472
  def delete_workload request, options = nil
402
473
  raise ::ArgumentError, "request must be provided" if request.nil?
403
474
 
@@ -464,6 +535,22 @@ module Google
464
535
  # @return [::Google::Cloud::AssuredWorkloads::V1::Workload]
465
536
  #
466
537
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
538
+ #
539
+ # @example Basic example
540
+ # require "google/cloud/assured_workloads/v1"
541
+ #
542
+ # # Create a client object. The client can be reused for multiple calls.
543
+ # client = Google::Cloud::AssuredWorkloads::V1::AssuredWorkloadsService::Rest::Client.new
544
+ #
545
+ # # Create a request. To set request fields, pass in keyword arguments.
546
+ # request = Google::Cloud::AssuredWorkloads::V1::GetWorkloadRequest.new
547
+ #
548
+ # # Call the get_workload method.
549
+ # result = client.get_workload request
550
+ #
551
+ # # The returned object is of type Google::Cloud::AssuredWorkloads::V1::Workload.
552
+ # p result
553
+ #
467
554
  def get_workload request, options = nil
468
555
  raise ::ArgumentError, "request must be provided" if request.nil?
469
556
 
@@ -536,6 +623,26 @@ module Google
536
623
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AssuredWorkloads::V1::Workload>]
537
624
  #
538
625
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
626
+ #
627
+ # @example Basic example
628
+ # require "google/cloud/assured_workloads/v1"
629
+ #
630
+ # # Create a client object. The client can be reused for multiple calls.
631
+ # client = Google::Cloud::AssuredWorkloads::V1::AssuredWorkloadsService::Rest::Client.new
632
+ #
633
+ # # Create a request. To set request fields, pass in keyword arguments.
634
+ # request = Google::Cloud::AssuredWorkloads::V1::ListWorkloadsRequest.new
635
+ #
636
+ # # Call the list_workloads method.
637
+ # result = client.list_workloads request
638
+ #
639
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
640
+ # # over elements, and API calls will be issued to fetch pages as needed.
641
+ # result.each do |item|
642
+ # # Each element is of type ::Google::Cloud::AssuredWorkloads::V1::Workload.
643
+ # p item
644
+ # end
645
+ #
539
646
  def list_workloads request, options = nil
540
647
  raise ::ArgumentError, "request must be provided" if request.nil?
541
648
 
@@ -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 AssuredWorkloads
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.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-assured_workloads-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.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
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  requirements: []
220
- rubygems_version: 3.4.2
220
+ rubygems_version: 3.4.19
221
221
  signing_key:
222
222
  specification_version: 4
223
223
  summary: API Client library for the Assured Workloads for Government V1 API