google-apis-assuredworkloads_v1 0.17.0 → 0.20.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: 82533e6ac258b95349c67000f3cdaee013e901790736589f0bbd98cfe79f6fc5
4
- data.tar.gz: 40a150027f533d0646591f81818631d776119875b7678aef516921808dcba494
3
+ metadata.gz: b4bc4790180df0342dcdd43f0fcdd7fb3431904a5acb3e6157d80abb6fabdbdb
4
+ data.tar.gz: ac1c8f9a048d36794ac84917ee629b3bbf5af6c3451025565b360b6e459d4416
5
5
  SHA512:
6
- metadata.gz: 057b5a2a5a4c72cc2fc54ea334c978b6a2a0a96fd00f03c41bea9b9f66d00ced6883147868f51fe23cdf2d51150dc7a6677837b759fcb9f74929c3469ffd82b8
7
- data.tar.gz: 5449fe92c808b166392d2359453c6d3b35b72221ba80143c5a3fd4449e5262ee9b31d0762b109eb31250e987a741b091485baa5e16d85ca4f63a0cf4964e70cf
6
+ metadata.gz: 61be4fe371e4c7aa76a3120879cda9ff2133bc26d8814c0cd9aeaae877202d6c3719afc6104d1f2a0f59c5d836432910eedea417195ada39dd8916c902c05549
7
+ data.tar.gz: 23ce1f7fc109bd78973df7287c50695980775e65fd5adeb41d5373b142e0926e07abd1ffa33f21fc0c3d68137dd3913011416c701ee4c1493f7a2f34f19d8ef3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.20.0 (2022-06-30)
4
+
5
+ * Regenerated using generator version 0.8.0
6
+ * Regenerated from discovery document revision 20220623
7
+
8
+ ### v0.19.0 (2022-06-18)
9
+
10
+ * Regenerated using generator version 0.7.0
11
+ * Regenerated from discovery document revision 20220609
12
+
13
+ ### v0.18.0 (2022-06-04)
14
+
15
+ * Regenerated using generator version 0.5.0
16
+
3
17
  ### v0.17.0 (2022-03-22)
4
18
 
5
19
  * Regenerated from discovery document revision 20220317
@@ -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
+ # Optional. 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.17.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.8.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220317"
25
+ REVISION = "20220623"
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.17.0
4
+ version: 0.20.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-07-04 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.4'
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.4'
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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.20.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Assured Workloads API V1