google-apis-assuredworkloads_v1 0.18.0 → 0.21.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: 38e0ff6f104af0fb0b49934d00e4e4088fd74e60fe99179f82264b447ab0437d
4
- data.tar.gz: 957e8e4000b2af8511608b63b112a4f191e487ea420925c9345d85a1f7120bef
3
+ metadata.gz: 10424c8398c3f56ca47a508222d4fc7b969e9f400a659708945d5634ed4f222e
4
+ data.tar.gz: 90c384509274a4f69091e8b60b73adcf426f1e204de064da5ecf89fc445eebfe
5
5
  SHA512:
6
- metadata.gz: 7cdebc6ad4d2413e4ca8440fab10381804965cc06d20e9970f479a81ffea5bf10014afe85ba00ad299d82b23dc5b244f30a76ac3fb3171f32f6f14f2adbb6555
7
- data.tar.gz: 3f946aac0d2a380ce260635a065b0ae99c68fb0ca056420708d1fa77bc9bc75b5cf4a3846c68ec10c9c313429ebd3ac6e92994956a5011f8f105129f33420694
6
+ metadata.gz: 0df783047c0c38c4726b819f2a8854a39cd3a06c905dcad2d785e03ca64db1cf285ad538286e097b482663ec3035573b8ff1b87f4f2ac1fbe567bac8fdcdb6d9
7
+ data.tar.gz: 222ad92b16ba4c270176cbc0b62fec6d55d8176a387f9011df51b8929592d463236e9b57c5371101b76a52dcda0ee389428fb08b901b73db5b7160541925b902
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.21.0 (2022-07-12)
4
+
5
+ * Regenerated from discovery document revision 20220707
6
+ * Regenerated using generator version 0.9.0
7
+
8
+ ### v0.20.0 (2022-06-30)
9
+
10
+ * Regenerated using generator version 0.8.0
11
+ * Regenerated from discovery document revision 20220623
12
+
13
+ ### v0.19.0 (2022-06-18)
14
+
15
+ * Regenerated using generator version 0.7.0
16
+ * Regenerated from discovery document revision 20220609
17
+
3
18
  ### v0.18.0 (2022-06-04)
4
19
 
5
20
  * Regenerated using generator version 0.5.0
@@ -85,6 +85,39 @@ module Google
85
85
  end
86
86
  end
87
87
 
88
+ # Request for restricting list of available resources in Workload environment.
89
+ class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
90
+ include Google::Apis::Core::Hashable
91
+
92
+ # Required. The type of restriction for using gcp products in the Workload
93
+ # environment.
94
+ # Corresponds to the JSON property `restrictionType`
95
+ # @return [String]
96
+ attr_accessor :restriction_type
97
+
98
+ def initialize(**args)
99
+ update!(**args)
100
+ end
101
+
102
+ # Update properties of this object
103
+ def update!(**args)
104
+ @restriction_type = args[:restriction_type] if args.key?(:restriction_type)
105
+ end
106
+ end
107
+
108
+ # Response for restricting the list of allowed resources.
109
+ class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse
110
+ include Google::Apis::Core::Hashable
111
+
112
+ def initialize(**args)
113
+ update!(**args)
114
+ end
115
+
116
+ # Update properties of this object
117
+ def update!(**args)
118
+ end
119
+ end
120
+
88
121
  # An Workload object for managing highly regulated workloads of cloud customers.
89
122
  class GoogleCloudAssuredworkloadsV1Workload
90
123
  include Google::Apis::Core::Hashable
@@ -759,6 +792,11 @@ module Google
759
792
  # @return [String]
760
793
  attr_accessor :compliance_regime
761
794
 
795
+ # Represents the Compliance Status of this workload
796
+ # Corresponds to the JSON property `complianceStatus`
797
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus]
798
+ attr_accessor :compliance_status
799
+
762
800
  # Output only. Immutable. The Workload creation timestamp.
763
801
  # Corresponds to the JSON property `createTime`
764
802
  # @return [String]
@@ -856,6 +894,7 @@ module Google
856
894
  @billing_account = args[:billing_account] if args.key?(:billing_account)
857
895
  @cjis_settings = args[:cjis_settings] if args.key?(:cjis_settings)
858
896
  @compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime)
897
+ @compliance_status = args[:compliance_status] if args.key?(:compliance_status)
859
898
  @create_time = args[:create_time] if args.key?(:create_time)
860
899
  @display_name = args[:display_name] if args.key?(:display_name)
861
900
  @enable_sovereign_controls = args[:enable_sovereign_controls] if args.key?(:enable_sovereign_controls)
@@ -893,6 +932,25 @@ module Google
893
932
  end
894
933
  end
895
934
 
935
+ # Represents the Compliance Status of this workload
936
+ class GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus
937
+ include Google::Apis::Core::Hashable
938
+
939
+ # Count of active Violations in the Workload.
940
+ # Corresponds to the JSON property `activeViolationCount`
941
+ # @return [Fixnum]
942
+ attr_accessor :active_violation_count
943
+
944
+ def initialize(**args)
945
+ update!(**args)
946
+ end
947
+
948
+ # Update properties of this object
949
+ def update!(**args)
950
+ @active_violation_count = args[:active_violation_count] if args.key?(:active_violation_count)
951
+ end
952
+ end
953
+
896
954
  # Settings specific to resources needed for FedRAMP High.
897
955
  class GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampHighSettings
898
956
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AssuredworkloadsV1
18
18
  # Version of the google-apis-assuredworkloads_v1 gem
19
- GEM_VERSION = "0.18.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.5.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220317"
25
+ REVISION = "20220707"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,18 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class GoogleCloudAssuredworkloadsV1Workload
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
@@ -142,6 +154,12 @@ module Google
142
154
  include Google::Apis::Core::JsonObjectSupport
143
155
  end
144
156
 
157
+ class GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
145
163
  class GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampHighSettings
146
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
165
 
@@ -227,6 +245,19 @@ module Google
227
245
  end
228
246
  end
229
247
 
248
+ class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ property :restriction_type, as: 'restrictionType'
252
+ end
253
+ end
254
+
255
+ class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ end
259
+ end
260
+
230
261
  class GoogleCloudAssuredworkloadsV1Workload
231
262
  # @private
232
263
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -412,6 +443,8 @@ module Google
412
443
  property :cjis_settings, as: 'cjisSettings', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsVersioningV1mainWorkloadCjisSettings, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsVersioningV1mainWorkloadCjisSettings::Representation
413
444
 
414
445
  property :compliance_regime, as: 'complianceRegime'
446
+ property :compliance_status, as: 'complianceStatus', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus::Representation
447
+
415
448
  property :create_time, as: 'createTime'
416
449
  property :display_name, as: 'displayName'
417
450
  property :enable_sovereign_controls, as: 'enableSovereignControls'
@@ -445,6 +478,13 @@ module Google
445
478
  end
446
479
  end
447
480
 
481
+ class GoogleCloudAssuredworkloadsVersioningV1mainWorkloadComplianceStatus
482
+ # @private
483
+ class Representation < Google::Apis::Core::JsonRepresentation
484
+ property :active_violation_count, as: 'activeViolationCount'
485
+ end
486
+ end
487
+
448
488
  class GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampHighSettings
449
489
  # @private
450
490
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -317,6 +317,46 @@ module Google
317
317
  command.query['quotaUser'] = quota_user unless quota_user.nil?
318
318
  execute_or_queue_command(command, &block)
319
319
  end
320
+
321
+ # Restrict the list of resources allowed in the Workload environment. The
322
+ # current list of allowed products can be found at https://cloud.google.com/
323
+ # assured-workloads/docs/supported-products In addition to assuredworkloads.
324
+ # workload.update permission, the user should also have orgpolicy.policy.set
325
+ # permission on the folder resource to use this functionality.
326
+ # @param [String] name
327
+ # Required. The resource name of the Workload. This is the workloads's relative
328
+ # path in the API, formatted as "organizations/`organization_id`/locations/`
329
+ # location_id`/workloads/`workload_id`". For example, "organizations/123/
330
+ # locations/us-east1/workloads/assured-workload-1".
331
+ # @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest] google_cloud_assuredworkloads_v1_restrict_allowed_resources_request_object
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
334
+ # @param [String] quota_user
335
+ # Available to use for quota purposes for server-side applications. Can be any
336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
337
+ # @param [Google::Apis::RequestOptions] options
338
+ # Request-specific options
339
+ #
340
+ # @yield [result, err] Result & error if block supplied
341
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse] parsed result object
342
+ # @yieldparam err [StandardError] error object if request failed
343
+ #
344
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse]
345
+ #
346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
349
+ def restrict_organization_location_workload_allowed_resources(name, google_cloud_assuredworkloads_v1_restrict_allowed_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
350
+ command = make_simple_command(:post, 'v1/{+name}:restrictAllowedResources', options)
351
+ command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest::Representation
352
+ command.request_object = google_cloud_assuredworkloads_v1_restrict_allowed_resources_request_object
353
+ command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse::Representation
354
+ command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse
355
+ command.params['name'] = name unless name.nil?
356
+ command.query['fields'] = fields unless fields.nil?
357
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
358
+ execute_or_queue_command(command, &block)
359
+ end
320
360
 
321
361
  protected
322
362
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-assuredworkloads_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.21.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: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1
63
63
  post_install_message:
64
64
  rdoc_options: []