google-apis-assuredworkloads_v1 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/assuredworkloads_v1/classes.rb +33 -0
- data/lib/google/apis/assuredworkloads_v1/gem_version.rb +3 -3
- data/lib/google/apis/assuredworkloads_v1/representations.rb +25 -0
- data/lib/google/apis/assuredworkloads_v1/service.rb +40 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17201101919116e111c6499266451881f17d75ff215e4db66e8e477ffa1af8d2
|
4
|
+
data.tar.gz: ed495ff483c438dccb9ffca7ce57dd563b429d32f66a371353251baac5ee0d11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46d72a87d304334bc14811da37e8309b4c057eae5d47cbcbad3c7892a1f1becf15fe26e4f25ce4aca378ef1b2f696c4be8f9a2deeefea040de25f0d2ccef9f44
|
7
|
+
data.tar.gz: 2ea9596c73dfd979124855f9d7a45feca7b8e7fa27d5b4ff34b303b613ea014b13d6782ac3221a3015c1a2ba7ec9e9e61e44c2327bf671cad5f69460bd2aebd2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-assuredworkloads_v1
|
2
2
|
|
3
|
+
### v0.19.0 (2022-06-18)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.7.0
|
6
|
+
* Regenerated from discovery document revision 20220609
|
7
|
+
|
3
8
|
### v0.18.0 (2022-06-04)
|
4
9
|
|
5
10
|
* 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
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.7.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220609"
|
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
|
|
@@ -227,6 +239,19 @@ module Google
|
|
227
239
|
end
|
228
240
|
end
|
229
241
|
|
242
|
+
class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
|
243
|
+
# @private
|
244
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
245
|
+
property :restriction_type, as: 'restrictionType'
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
class GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse
|
250
|
+
# @private
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
230
255
|
class GoogleCloudAssuredworkloadsV1Workload
|
231
256
|
# @private
|
232
257
|
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.
|
4
|
+
version: 0.19.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-
|
11
|
+
date: 2022-06-20 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.
|
19
|
+
version: '0.6'
|
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.
|
29
|
+
version: '0.6'
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.19.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: []
|