google-apis-assuredworkloads_v1 0.16.0 → 0.19.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: fb1236c8d64a832ef026edef590af5e680b9937fca272793436cd7d1773ffa40
4
- data.tar.gz: 3c2c08c0a10fb96f57b41cf81eb664fa038a6d1c7ca98bbbba11c23e1b1150cf
3
+ metadata.gz: 17201101919116e111c6499266451881f17d75ff215e4db66e8e477ffa1af8d2
4
+ data.tar.gz: ed495ff483c438dccb9ffca7ce57dd563b429d32f66a371353251baac5ee0d11
5
5
  SHA512:
6
- metadata.gz: f8adc4080bd2b6291fb8c50474cf0a1b19f73e5b590d2bed16d9ae3bb4db942af782554482907bf2e08c48874599f2acd82613f57b0afdd98e771fe95365f514
7
- data.tar.gz: 72c59a43fa6a70597546bdeeeec3c349b2c5e631fead2a056ed5d63d981a0b126f965f2d72d6cd8c9b148cf59b3193992328db1919815dbec407210800f09d3b
6
+ metadata.gz: 46d72a87d304334bc14811da37e8309b4c057eae5d47cbcbad3c7892a1f1becf15fe26e4f25ce4aca378ef1b2f696c4be8f9a2deeefea040de25f0d2ccef9f44
7
+ data.tar.gz: 2ea9596c73dfd979124855f9d7a45feca7b8e7fa27d5b4ff34b303b613ea014b13d6782ac3221a3015c1a2ba7ec9e9e61e44c2327bf671cad5f69460bd2aebd2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
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
+
8
+ ### v0.18.0 (2022-06-04)
9
+
10
+ * Regenerated using generator version 0.5.0
11
+
12
+ ### v0.17.0 (2022-03-22)
13
+
14
+ * Regenerated from discovery document revision 20220317
15
+
3
16
  ### v0.16.0 (2022-03-01)
4
17
 
5
18
  * Regenerated from discovery document revision 20220224
@@ -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
@@ -1155,8 +1188,7 @@ module Google
1155
1188
  # A generic empty message that you can re-use to avoid defining duplicated empty
1156
1189
  # messages in your APIs. A typical example is to use it as the request or the
1157
1190
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
1158
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
1159
- # `Empty` is empty JSON object ````.
1191
+ # protobuf.Empty) returns (google.protobuf.Empty); `
1160
1192
  class GoogleProtobufEmpty
1161
1193
  include Google::Apis::Core::Hashable
1162
1194
 
@@ -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.16.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.4.1"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220224"
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.16.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-03-07 00:00:00.000000000 Z
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.4'
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.4'
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.16.0
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: []
@@ -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