google-cloud-assured_workloads-v1beta1 0.7.1 → 0.9.1

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: 72ef07a10796f9c323b45f864d27ca2b8f54e6485ae31426afe70fc13825216b
4
- data.tar.gz: 3fc1da1968b381cebed12267ba404238c34c66d20ba0d15bf3b5d5473d1bf56c
3
+ metadata.gz: 6f8de4e4633a698f38df8c706ddda6ba01527ca5e876a104a7b6c1b84b452dc9
4
+ data.tar.gz: 5c476d3b009f3f277d9f0f99b2642989a642cd02c5ab450b5b9aad86ca9d95e5
5
5
  SHA512:
6
- metadata.gz: 577dd42db891db5d39fdf002ae9584fe7ca1bd2437f48bc462a993567c105b6e0233b6cd7921fbc114c6c5c067d9f22fd4a7890f2a16efe63b20c6ac2706dd3a
7
- data.tar.gz: 1282ea17cfa7b4743f0ee62aefa53088ba80ba84085c7f20a01eee5123d4ae2a57cc3a27e6392a0a055fa935d8bda7e16328f0ab81e9d72f1b8c83c2e2cb6e89
6
+ metadata.gz: be7e309d2edfa808b56c12d165420abcb5a84c81c35dd0380b31b61a6919e7c262f6e15e0cd04d12d29fa7c9f423babdea8bc551a4c125a842657bfbf78451a9
7
+ data.tar.gz: 7a3970109e164c258d2006cf812e88ec0952d4dbe0c53af7c83a08ec9ba44192f4089498a208f55fb63466c3a61730b8b0259f288c9ec523b9745da7e9e626e0
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Assured Workloads for Government V1beta1 API
2
+ --title="Assured Workloads for Government V1beta1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
@@ -154,6 +154,7 @@ module Google
154
154
 
155
155
  @operations_client = Operations.new do |config|
156
156
  config.credentials = credentials
157
+ config.quota_project = @quota_project_id
157
158
  config.endpoint = @config.endpoint
158
159
  end
159
160
 
@@ -199,8 +200,8 @@ module Google
199
200
  # @param workload [::Google::Cloud::AssuredWorkloads::V1beta1::Workload, ::Hash]
200
201
  # Required. Assured Workload to create
201
202
  # @param external_id [::String]
202
- # Optional. A identifier associated with the workload and underlying projects which
203
- # allows for the break down of billing costs for a workload. The value
203
+ # Optional. A identifier associated with the workload and underlying projects
204
+ # which allows for the break down of billing costs for a workload. The value
204
205
  # provided for the identifier will add a label to the workload and contained
205
206
  # projects with the identifier as the value.
206
207
  #
@@ -212,6 +213,28 @@ module Google
212
213
  #
213
214
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
214
215
  #
216
+ # @example Basic example
217
+ # require "google/cloud/assured_workloads/v1beta1"
218
+ #
219
+ # # Create a client object. The client can be reused for multiple calls.
220
+ # client = Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
221
+ #
222
+ # # Create a request. To set request fields, pass in keyword arguments.
223
+ # request = Google::Cloud::AssuredWorkloads::V1beta1::CreateWorkloadRequest.new
224
+ #
225
+ # # Call the create_workload method.
226
+ # result = client.create_workload 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
+ #
215
238
  def create_workload request, options = nil
216
239
  raise ::ArgumentError, "request must be provided" if request.nil?
217
240
 
@@ -229,9 +252,11 @@ module Google
229
252
  gapic_version: ::Google::Cloud::AssuredWorkloads::V1beta1::VERSION
230
253
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
231
254
 
232
- header_params = {
233
- "parent" => request.parent
234
- }
255
+ header_params = {}
256
+ if request.parent
257
+ header_params["parent"] = request.parent
258
+ end
259
+
235
260
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
236
261
  metadata[:"x-goog-request-params"] ||= request_params_header
237
262
 
@@ -289,6 +314,21 @@ module Google
289
314
  #
290
315
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
291
316
  #
317
+ # @example Basic example
318
+ # require "google/cloud/assured_workloads/v1beta1"
319
+ #
320
+ # # Create a client object. The client can be reused for multiple calls.
321
+ # client = Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
322
+ #
323
+ # # Create a request. To set request fields, pass in keyword arguments.
324
+ # request = Google::Cloud::AssuredWorkloads::V1beta1::UpdateWorkloadRequest.new
325
+ #
326
+ # # Call the update_workload method.
327
+ # result = client.update_workload request
328
+ #
329
+ # # The returned object is of type Google::Cloud::AssuredWorkloads::V1beta1::Workload.
330
+ # p result
331
+ #
292
332
  def update_workload request, options = nil
293
333
  raise ::ArgumentError, "request must be provided" if request.nil?
294
334
 
@@ -306,9 +346,11 @@ module Google
306
346
  gapic_version: ::Google::Cloud::AssuredWorkloads::V1beta1::VERSION
307
347
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
308
348
 
309
- header_params = {
310
- "workload.name" => request.workload.name
311
- }
349
+ header_params = {}
350
+ if request.workload&.name
351
+ header_params["workload.name"] = request.workload.name
352
+ end
353
+
312
354
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
313
355
  metadata[:"x-goog-request-params"] ||= request_params_header
314
356
 
@@ -364,6 +406,21 @@ module Google
364
406
  #
365
407
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
408
  #
409
+ # @example Basic example
410
+ # require "google/cloud/assured_workloads/v1beta1"
411
+ #
412
+ # # Create a client object. The client can be reused for multiple calls.
413
+ # client = Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
414
+ #
415
+ # # Create a request. To set request fields, pass in keyword arguments.
416
+ # request = Google::Cloud::AssuredWorkloads::V1beta1::DeleteWorkloadRequest.new
417
+ #
418
+ # # Call the delete_workload method.
419
+ # result = client.delete_workload request
420
+ #
421
+ # # The returned object is of type Google::Protobuf::Empty.
422
+ # p result
423
+ #
367
424
  def delete_workload request, options = nil
368
425
  raise ::ArgumentError, "request must be provided" if request.nil?
369
426
 
@@ -381,9 +438,11 @@ module Google
381
438
  gapic_version: ::Google::Cloud::AssuredWorkloads::V1beta1::VERSION
382
439
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
440
 
384
- header_params = {
385
- "name" => request.name
386
- }
441
+ header_params = {}
442
+ if request.name
443
+ header_params["name"] = request.name
444
+ end
445
+
387
446
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
447
  metadata[:"x-goog-request-params"] ||= request_params_header
389
448
 
@@ -422,8 +481,8 @@ module Google
422
481
  # the default parameter values, pass an empty Hash as a request object (see above).
423
482
  #
424
483
  # @param name [::String]
425
- # Required. The resource name of the Workload to fetch. This is the workloads's
426
- # relative path in the API, formatted as
484
+ # Required. The resource name of the Workload to fetch. This is the
485
+ # workloads's relative path in the API, formatted as
427
486
  # "organizations/\\{organization_id}/locations/\\{location_id}/workloads/\\{workload_id}".
428
487
  # For example,
429
488
  # "organizations/123/locations/us-east1/workloads/assured-workload-1".
@@ -436,6 +495,21 @@ module Google
436
495
  #
437
496
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
438
497
  #
498
+ # @example Basic example
499
+ # require "google/cloud/assured_workloads/v1beta1"
500
+ #
501
+ # # Create a client object. The client can be reused for multiple calls.
502
+ # client = Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
503
+ #
504
+ # # Create a request. To set request fields, pass in keyword arguments.
505
+ # request = Google::Cloud::AssuredWorkloads::V1beta1::GetWorkloadRequest.new
506
+ #
507
+ # # Call the get_workload method.
508
+ # result = client.get_workload request
509
+ #
510
+ # # The returned object is of type Google::Cloud::AssuredWorkloads::V1beta1::Workload.
511
+ # p result
512
+ #
439
513
  def get_workload request, options = nil
440
514
  raise ::ArgumentError, "request must be provided" if request.nil?
441
515
 
@@ -453,9 +527,11 @@ module Google
453
527
  gapic_version: ::Google::Cloud::AssuredWorkloads::V1beta1::VERSION
454
528
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
455
529
 
456
- header_params = {
457
- "name" => request.name
458
- }
530
+ header_params = {}
531
+ if request.name
532
+ header_params["name"] = request.name
533
+ end
534
+
459
535
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
460
536
  metadata[:"x-goog-request-params"] ||= request_params_header
461
537
 
@@ -514,6 +590,27 @@ module Google
514
590
  #
515
591
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
516
592
  #
593
+ # @example Basic example
594
+ # require "google/cloud/assured_workloads/v1beta1"
595
+ #
596
+ # # Create a client object. The client can be reused for multiple calls.
597
+ # client = Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
598
+ #
599
+ # # Create a request. To set request fields, pass in keyword arguments.
600
+ # request = Google::Cloud::AssuredWorkloads::V1beta1::ListWorkloadsRequest.new
601
+ #
602
+ # # Call the list_workloads method.
603
+ # result = client.list_workloads request
604
+ #
605
+ # # The returned object is of type Gapic::PagedEnumerable. You can
606
+ # # iterate over all elements by calling #each, and the enumerable
607
+ # # will lazily make API calls to fetch subsequent pages. Other
608
+ # # methods are also available for managing paging directly.
609
+ # result.each do |response|
610
+ # # Each element is of type ::Google::Cloud::AssuredWorkloads::V1beta1::Workload.
611
+ # p response
612
+ # end
613
+ #
517
614
  def list_workloads request, options = nil
518
615
  raise ::ArgumentError, "request must be provided" if request.nil?
519
616
 
@@ -531,9 +628,11 @@ module Google
531
628
  gapic_version: ::Google::Cloud::AssuredWorkloads::V1beta1::VERSION
532
629
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
533
630
 
534
- header_params = {
535
- "parent" => request.parent
536
- }
631
+ header_params = {}
632
+ if request.parent
633
+ header_params["parent"] = request.parent
634
+ end
635
+
537
636
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
538
637
  metadata[:"x-goog-request-params"] ||= request_params_header
539
638
 
@@ -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::AssuredWorkloads::V1beta1::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::AssuredWorkloads::V1beta1::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::AssuredWorkloads::V1beta1::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::AssuredWorkloads::V1beta1::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 AssuredWorkloads
23
23
  module V1beta1
24
- VERSION = "0.7.1"
24
+ VERSION = "0.9.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/assuredworkloads/v1beta1/assuredworkloads_v1beta1.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/field_behavior_pb'
@@ -12,6 +10,8 @@ require 'google/protobuf/duration_pb'
12
10
  require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
14
12
  require 'google/protobuf/timestamp_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/assuredworkloads/v1beta1/assuredworkloads_v1beta1.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest" do
@@ -52,6 +52,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
52
52
  optional :provisioned_resources_parent, :string, 13
53
53
  optional :kms_settings, :message, 14, "google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings"
54
54
  repeated :resource_settings, :message, 15, "google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings"
55
+ optional :kaj_enrollment_state, :enum, 17, "google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState"
56
+ optional :enable_sovereign_controls, :bool, 18
57
+ optional :saa_enrollment_response, :message, 20, "google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse"
55
58
  oneof :compliance_regime_settings do
56
59
  optional :il4_settings, :message, 7, "google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings"
57
60
  optional :cjis_settings, :message, 8, "google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings"
@@ -66,7 +69,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
66
69
  add_enum "google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType" do
67
70
  value :RESOURCE_TYPE_UNSPECIFIED, 0
68
71
  value :CONSUMER_PROJECT, 1
72
+ value :CONSUMER_FOLDER, 4
69
73
  value :ENCRYPTION_KEYS_PROJECT, 2
74
+ value :KEYRING, 3
70
75
  end
71
76
  add_message "google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings" do
72
77
  optional :next_rotation_time, :message, 1, "google.protobuf.Timestamp"
@@ -87,6 +92,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
87
92
  add_message "google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings" do
88
93
  optional :resource_id, :string, 1
89
94
  optional :resource_type, :enum, 2, "google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType"
95
+ optional :display_name, :string, 3
96
+ end
97
+ add_message "google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse" do
98
+ proto3_optional :setup_status, :enum, 1, "google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState"
99
+ repeated :setup_errors, :enum, 2, "google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError"
100
+ end
101
+ add_enum "google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState" do
102
+ value :SETUP_STATE_UNSPECIFIED, 0
103
+ value :STATUS_PENDING, 1
104
+ value :STATUS_COMPLETE, 2
105
+ end
106
+ add_enum "google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError" do
107
+ value :SETUP_ERROR_UNSPECIFIED, 0
108
+ value :ERROR_INVALID_BASE_SETUP, 1
109
+ value :ERROR_MISSING_EXTERNAL_SIGNING_KEY, 2
110
+ value :ERROR_NOT_ALL_SERVICES_ENROLLED, 3
111
+ value :ERROR_SETUP_CHECK_FAILED, 4
90
112
  end
91
113
  add_enum "google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime" do
92
114
  value :COMPLIANCE_REGIME_UNSPECIFIED, 0
@@ -98,12 +120,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
98
120
  value :HIPAA, 6
99
121
  value :HITRUST, 7
100
122
  value :EU_REGIONS_AND_SUPPORT, 8
123
+ value :CA_REGIONS_AND_SUPPORT, 9
124
+ end
125
+ add_enum "google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState" do
126
+ value :KAJ_ENROLLMENT_STATE_UNSPECIFIED, 0
127
+ value :KAJ_ENROLLMENT_STATE_PENDING, 1
128
+ value :KAJ_ENROLLMENT_STATE_COMPLETE, 2
101
129
  end
102
130
  add_message "google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata" do
103
131
  optional :create_time, :message, 1, "google.protobuf.Timestamp"
104
132
  optional :display_name, :string, 2
105
133
  optional :parent, :string, 3
106
134
  optional :compliance_regime, :enum, 4, "google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime"
135
+ repeated :resource_settings, :message, 5, "google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings"
107
136
  end
108
137
  end
109
138
  end
@@ -127,7 +156,11 @@ module Google
127
156
  Workload::FedrampHighSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings").msgclass
128
157
  Workload::FedrampModerateSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings").msgclass
129
158
  Workload::ResourceSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings").msgclass
159
+ Workload::SaaEnrollmentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse").msgclass
160
+ Workload::SaaEnrollmentResponse::SetupState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState").enummodule
161
+ Workload::SaaEnrollmentResponse::SetupError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError").enummodule
130
162
  Workload::ComplianceRegime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime").enummodule
163
+ Workload::KajEnrollmentState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState").enummodule
131
164
  CreateWorkloadOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata").msgclass
132
165
  end
133
166
  end
@@ -27,7 +27,7 @@ module Google
27
27
  # Service to manage AssuredWorkloads.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -31,8 +31,8 @@ module Google
31
31
  # Required. Assured Workload to create
32
32
  # @!attribute [rw] external_id
33
33
  # @return [::String]
34
- # Optional. A identifier associated with the workload and underlying projects which
35
- # allows for the break down of billing costs for a workload. The value
34
+ # Optional. A identifier associated with the workload and underlying projects
35
+ # which allows for the break down of billing costs for a workload. The value
36
36
  # provided for the identifier will add a label to the workload and contained
37
37
  # projects with the identifier as the value.
38
38
  class CreateWorkloadRequest
@@ -73,8 +73,8 @@ module Google
73
73
  # Request for fetching a workload.
74
74
  # @!attribute [rw] name
75
75
  # @return [::String]
76
- # Required. The resource name of the Workload to fetch. This is the workloads's
77
- # relative path in the API, formatted as
76
+ # Required. The resource name of the Workload to fetch. This is the
77
+ # workloads's relative path in the API, formatted as
78
78
  # "organizations/\\{organization_id}/locations/\\{location_id}/workloads/\\{workload_id}".
79
79
  # For example,
80
80
  # "organizations/123/locations/us-east1/workloads/assured-workload-1".
@@ -148,7 +148,7 @@ module Google
148
148
  # Output only. Immutable. The Workload creation timestamp.
149
149
  # @!attribute [rw] billing_account
150
150
  # @return [::String]
151
- # Required. Input only. The billing account used for the resources which are
151
+ # Input only. The billing account used for the resources which are
152
152
  # direct children of workload. This billing account is initially associated
153
153
  # with the resources created as part of Workload creation.
154
154
  # After the initial creation of these resources, the customer can change
@@ -158,16 +158,20 @@ module Google
158
158
  # `billingAccounts/012345-567890-ABCDEF`.
159
159
  # @!attribute [rw] il4_settings
160
160
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::IL4Settings]
161
- # Required. Input only. Immutable. Settings specific to resources needed for IL4.
161
+ # Required. Input only. Immutable. Settings specific to resources needed
162
+ # for IL4.
162
163
  # @!attribute [rw] cjis_settings
163
164
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::CJISSettings]
164
- # Required. Input only. Immutable. Settings specific to resources needed for CJIS.
165
+ # Required. Input only. Immutable. Settings specific to resources needed
166
+ # for CJIS.
165
167
  # @!attribute [rw] fedramp_high_settings
166
168
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::FedrampHighSettings]
167
- # Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High.
169
+ # Required. Input only. Immutable. Settings specific to resources needed
170
+ # for FedRAMP High.
168
171
  # @!attribute [rw] fedramp_moderate_settings
169
172
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::FedrampModerateSettings]
170
- # Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
173
+ # Required. Input only. Immutable. Settings specific to resources needed
174
+ # for FedRAMP Moderate.
171
175
  # @!attribute [rw] etag
172
176
  # @return [::String]
173
177
  # Optional. ETag of the workload, it is calculated on the basis
@@ -177,23 +181,34 @@ module Google
177
181
  # Optional. Labels applied to the workload.
178
182
  # @!attribute [rw] provisioned_resources_parent
179
183
  # @return [::String]
180
- # Input only. The parent resource for the resources managed by this Assured Workload. May
181
- # be either an organization or a folder. Must be the same or a child of the
184
+ # Input only. The parent resource for the resources managed by this Assured
185
+ # Workload. May be either empty or a folder resource which is a child of the
182
186
  # Workload parent. If not specified all resources are created under the
183
- # Workload parent.
184
- # Formats:
187
+ # parent organization.
188
+ # Format:
185
189
  # folders/\\{folder_id}
186
- # organizations/\\{organization_id}
187
190
  # @!attribute [rw] kms_settings
188
191
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::KMSSettings]
189
- # Input only. Settings used to create a CMEK crypto key. When set a project with a KMS
190
- # CMEK key is provisioned. This field is mandatory for a subset of Compliance
191
- # Regimes.
192
+ # Input only. Settings used to create a CMEK crypto key. When set a project
193
+ # with a KMS CMEK key is provisioned. This field is mandatory for a subset of
194
+ # Compliance Regimes.
192
195
  # @!attribute [rw] resource_settings
193
196
  # @return [::Array<::Google::Cloud::AssuredWorkloads::V1beta1::Workload::ResourceSettings>]
194
- # Input only. Resource properties that are used to customize workload resources.
195
- # These properties (such as custom project id) will be used to create
196
- # workload resources if possible. This field is optional.
197
+ # Input only. Resource properties that are used to customize workload
198
+ # resources. These properties (such as custom project id) will be used to
199
+ # create workload resources if possible. This field is optional.
200
+ # @!attribute [r] kaj_enrollment_state
201
+ # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::KajEnrollmentState]
202
+ # Output only. Represents the KAJ enrollment state of the given workload.
203
+ # @!attribute [rw] enable_sovereign_controls
204
+ # @return [::Boolean]
205
+ # Optional. Indicates the sovereignty status of the given workload.
206
+ # Currently meant to be used by Europe/Canada customers.
207
+ # @!attribute [r] saa_enrollment_response
208
+ # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::SaaEnrollmentResponse]
209
+ # Output only. Represents the SAA enrollment response of the given workload.
210
+ # SAA enrollment response is queried during GetWorkload call.
211
+ # In failure cases, user friendly error message is shown in SAA details page.
197
212
  class Workload
198
213
  include ::Google::Protobuf::MessageExts
199
214
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -215,24 +230,32 @@ module Google
215
230
  # Unknown resource type.
216
231
  RESOURCE_TYPE_UNSPECIFIED = 0
217
232
 
218
- # Consumer project.
233
+ # Deprecated. Existing workloads will continue to support this, but new
234
+ # CreateWorkloadRequests should not specify this as an input value.
219
235
  CONSUMER_PROJECT = 1
220
236
 
237
+ # Consumer Folder.
238
+ CONSUMER_FOLDER = 4
239
+
221
240
  # Consumer project containing encryption keys.
222
241
  ENCRYPTION_KEYS_PROJECT = 2
242
+
243
+ # Keyring resource that hosts encryption keys.
244
+ KEYRING = 3
223
245
  end
224
246
  end
225
247
 
226
248
  # Settings specific to the Key Management Service.
227
249
  # @!attribute [rw] next_rotation_time
228
250
  # @return [::Google::Protobuf::Timestamp]
229
- # Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
230
- # new version of the crypto key and mark it as the primary.
251
+ # Required. Input only. Immutable. The time at which the Key Management
252
+ # Service will automatically create a new version of the crypto key and
253
+ # mark it as the primary.
231
254
  # @!attribute [rw] rotation_period
232
255
  # @return [::Google::Protobuf::Duration]
233
- # Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
234
- # Management Service automatically rotates a key. Must be at least 24 hours
235
- # and at most 876,000 hours.
256
+ # Required. Input only. Immutable. [next_rotation_time] will be advanced by
257
+ # this period when the Key Management Service automatically rotates a key.
258
+ # Must be at least 24 hours and at most 876,000 hours.
236
259
  class KMSSettings
237
260
  include ::Google::Protobuf::MessageExts
238
261
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -241,7 +264,8 @@ module Google
241
264
  # Settings specific to resources needed for IL4.
242
265
  # @!attribute [rw] kms_settings
243
266
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::KMSSettings]
244
- # Required. Input only. Immutable. Settings used to create a CMEK crypto key.
267
+ # Required. Input only. Immutable. Settings used to create a CMEK crypto
268
+ # key.
245
269
  class IL4Settings
246
270
  include ::Google::Protobuf::MessageExts
247
271
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -250,7 +274,8 @@ module Google
250
274
  # Settings specific to resources needed for CJIS.
251
275
  # @!attribute [rw] kms_settings
252
276
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::KMSSettings]
253
- # Required. Input only. Immutable. Settings used to create a CMEK crypto key.
277
+ # Required. Input only. Immutable. Settings used to create a CMEK crypto
278
+ # key.
254
279
  class CJISSettings
255
280
  include ::Google::Protobuf::MessageExts
256
281
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -259,7 +284,8 @@ module Google
259
284
  # Settings specific to resources needed for FedRAMP High.
260
285
  # @!attribute [rw] kms_settings
261
286
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::KMSSettings]
262
- # Required. Input only. Immutable. Settings used to create a CMEK crypto key.
287
+ # Required. Input only. Immutable. Settings used to create a CMEK crypto
288
+ # key.
263
289
  class FedrampHighSettings
264
290
  include ::Google::Protobuf::MessageExts
265
291
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -268,7 +294,8 @@ module Google
268
294
  # Settings specific to resources needed for FedRAMP Moderate.
269
295
  # @!attribute [rw] kms_settings
270
296
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::KMSSettings]
271
- # Required. Input only. Immutable. Settings used to create a CMEK crypto key.
297
+ # Required. Input only. Immutable. Settings used to create a CMEK crypto
298
+ # key.
272
299
  class FedrampModerateSettings
273
300
  include ::Google::Protobuf::MessageExts
274
301
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -285,11 +312,61 @@ module Google
285
312
  # Indicates the type of resource. This field should be specified to
286
313
  # correspond the id to the right project type (CONSUMER_PROJECT or
287
314
  # ENCRYPTION_KEYS_PROJECT)
315
+ # @!attribute [rw] display_name
316
+ # @return [::String]
317
+ # User-assigned resource display name.
318
+ # If not empty it will be used to create a resource with the specified
319
+ # name.
288
320
  class ResourceSettings
289
321
  include ::Google::Protobuf::MessageExts
290
322
  extend ::Google::Protobuf::MessageExts::ClassMethods
291
323
  end
292
324
 
325
+ # Signed Access Approvals (SAA) enrollment response.
326
+ # @!attribute [rw] setup_status
327
+ # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::SaaEnrollmentResponse::SetupState]
328
+ # Indicates SAA enrollment status of a given workload.
329
+ # @!attribute [rw] setup_errors
330
+ # @return [::Array<::Google::Cloud::AssuredWorkloads::V1beta1::Workload::SaaEnrollmentResponse::SetupError>]
331
+ # Indicates SAA enrollment setup error if any.
332
+ class SaaEnrollmentResponse
333
+ include ::Google::Protobuf::MessageExts
334
+ extend ::Google::Protobuf::MessageExts::ClassMethods
335
+
336
+ # Setup state of SAA enrollment.
337
+ module SetupState
338
+ # Unspecified.
339
+ SETUP_STATE_UNSPECIFIED = 0
340
+
341
+ # SAA enrollment pending.
342
+ STATUS_PENDING = 1
343
+
344
+ # SAA enrollment comopleted.
345
+ STATUS_COMPLETE = 2
346
+ end
347
+
348
+ # Setup error of SAA enrollment.
349
+ module SetupError
350
+ # Unspecified.
351
+ SETUP_ERROR_UNSPECIFIED = 0
352
+
353
+ # Invalid states for all customers, to be redirected to AA UI for
354
+ # additional details.
355
+ ERROR_INVALID_BASE_SETUP = 1
356
+
357
+ # Returned when there is not an EKM key configured.
358
+ ERROR_MISSING_EXTERNAL_SIGNING_KEY = 2
359
+
360
+ # Returned when there are no enrolled services or the customer is
361
+ # enrolled in CAA only for a subset of services.
362
+ ERROR_NOT_ALL_SERVICES_ENROLLED = 3
363
+
364
+ # Returned when exception was encountered during evaluation of other
365
+ # criteria.
366
+ ERROR_SETUP_CHECK_FAILED = 4
367
+ end
368
+ end
369
+
293
370
  # @!attribute [rw] key
294
371
  # @return [::String]
295
372
  # @!attribute [rw] value
@@ -327,6 +404,21 @@ module Google
327
404
 
328
405
  # Assured Workloads For EU Regions and Support controls
329
406
  EU_REGIONS_AND_SUPPORT = 8
407
+
408
+ # Assured Workloads For Canada Regions and Support controls
409
+ CA_REGIONS_AND_SUPPORT = 9
410
+ end
411
+
412
+ # Key Access Justifications(KAJ) Enrollment State.
413
+ module KajEnrollmentState
414
+ # Default State for KAJ Enrollment.
415
+ KAJ_ENROLLMENT_STATE_UNSPECIFIED = 0
416
+
417
+ # Pending State for KAJ Enrollment.
418
+ KAJ_ENROLLMENT_STATE_PENDING = 1
419
+
420
+ # Complete State for KAJ Enrollment.
421
+ KAJ_ENROLLMENT_STATE_COMPLETE = 2
330
422
  end
331
423
  end
332
424
 
@@ -342,8 +434,12 @@ module Google
342
434
  # Optional. The parent of the workload.
343
435
  # @!attribute [rw] compliance_regime
344
436
  # @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::ComplianceRegime]
345
- # Optional. Compliance controls that should be applied to the resources managed by
346
- # the workload.
437
+ # Optional. Compliance controls that should be applied to the resources
438
+ # managed by the workload.
439
+ # @!attribute [rw] resource_settings
440
+ # @return [::Array<::Google::Cloud::AssuredWorkloads::V1beta1::Workload::ResourceSettings>]
441
+ # Optional. Resource properties in the input that are used for
442
+ # creating/customizing workload resources.
347
443
  class CreateWorkloadOperationMetadata
348
444
  include ::Google::Protobuf::MessageExts
349
445
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-assured_workloads-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.9.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-11 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.2.17
213
+ rubygems_version: 3.3.4
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: API Client library for the Assured Workloads for Government V1beta1 API