google-apis-assuredworkloads_v1 0.4.0 → 0.5.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: 5c19ea5ed3a33ac9ed53246c7df3cac600b2e6c70985da419a5dd72171fcfc93
4
- data.tar.gz: d8e6bee2b6dafb6c41f2668f6571ccf2861407c1eb4036b8a5dff35dd7c38f3e
3
+ metadata.gz: 7c3166e9e445d9889799e1c6263f823295009f9cc03031d2c6e752677e146ff3
4
+ data.tar.gz: 8384bc0692a5933471f4dc929b8ee73dd18bb060f3ae4db99949dcada3c436fe
5
5
  SHA512:
6
- metadata.gz: d0ab7811a71c7c1fdc29c4826fbb7c9a978d25a388541f8e2c60dd27a8d187e537065b03d7a2083211c52f198e405133cb9d2dbe65adb2d9e0b5af0b1c53e7fe
7
- data.tar.gz: 38605ad9d3500f0e6421151a8ca539a3ef73960f09fe0dbb35ebab5ab1a4c1f4c4f04cdb5c5b72a2752d5335588d65b3c45e864600dc7a1c2732206e38a3fd67
6
+ metadata.gz: fddb8d5cc4003a7b91f457e6e814b7d114a62e5d44572911af2d030aca43ac531cc277c84eab54531b354fcc14f4f320281c689b7144118444da36761476a8eb
7
+ data.tar.gz: 277ecb9556b8f50bd19d747ade1c2b04d4001eb6d7be7b76faa917aca61db727f69969aae8eb383625e54e42a983e7ad884cb86957a2d09cda415acff1876f80
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.5.0 (2021-05-11)
4
+
5
+ * Regenerated from discovery document revision 20210506
6
+
3
7
  ### v0.4.0 (2021-03-31)
4
8
 
5
9
  * Regenerated from discovery document revision 20210325
@@ -147,6 +147,13 @@ module Google
147
147
  # @return [String]
148
148
  attr_accessor :provisioned_resources_parent
149
149
 
150
+ # Input only. Resource properties that are used to customize workload resources.
151
+ # These properties (such as custom project id) will be used to create workload
152
+ # resources if possible. This field is optional.
153
+ # Corresponds to the JSON property `resourceSettings`
154
+ # @return [Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceSettings>]
155
+ attr_accessor :resource_settings
156
+
150
157
  # Output only. The resources associated with this workload. These resources will
151
158
  # be created when creating the workload. If any of the projects already exist,
152
159
  # the workload creation will fail. Always read only.
@@ -169,6 +176,7 @@ module Google
169
176
  @labels = args[:labels] if args.key?(:labels)
170
177
  @name = args[:name] if args.key?(:name)
171
178
  @provisioned_resources_parent = args[:provisioned_resources_parent] if args.key?(:provisioned_resources_parent)
179
+ @resource_settings = args[:resource_settings] if args.key?(:resource_settings)
172
180
  @resources = args[:resources] if args.key?(:resources)
173
181
  end
174
182
  end
@@ -227,6 +235,40 @@ module Google
227
235
  end
228
236
  end
229
237
 
238
+ # Represent the custom settings for the resources to be created.
239
+ class GoogleCloudAssuredworkloadsV1WorkloadResourceSettings
240
+ include Google::Apis::Core::Hashable
241
+
242
+ # User-assigned resource display name. If not empty it will be used to create a
243
+ # resource with the specified name.
244
+ # Corresponds to the JSON property `displayName`
245
+ # @return [String]
246
+ attr_accessor :display_name
247
+
248
+ # Resource identifier. For a project this represents project_id. If the project
249
+ # is already taken, the workload creation will fail.
250
+ # Corresponds to the JSON property `resourceId`
251
+ # @return [String]
252
+ attr_accessor :resource_id
253
+
254
+ # Indicates the type of resource. This field should be specified to correspond
255
+ # the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
256
+ # Corresponds to the JSON property `resourceType`
257
+ # @return [String]
258
+ attr_accessor :resource_type
259
+
260
+ def initialize(**args)
261
+ update!(**args)
262
+ end
263
+
264
+ # Update properties of this object
265
+ def update!(**args)
266
+ @display_name = args[:display_name] if args.key?(:display_name)
267
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
268
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
269
+ end
270
+ end
271
+
230
272
  # Operation metadata to give request details of CreateWorkload.
231
273
  class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
232
274
  include Google::Apis::Core::Hashable
@@ -252,6 +294,12 @@ module Google
252
294
  # @return [String]
253
295
  attr_accessor :parent
254
296
 
297
+ # Optional. Resource properties in the input that are used for creating/
298
+ # customizing workload resources.
299
+ # Corresponds to the JSON property `resourceSettings`
300
+ # @return [Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings>]
301
+ attr_accessor :resource_settings
302
+
255
303
  def initialize(**args)
256
304
  update!(**args)
257
305
  end
@@ -262,6 +310,7 @@ module Google
262
310
  @create_time = args[:create_time] if args.key?(:create_time)
263
311
  @display_name = args[:display_name] if args.key?(:display_name)
264
312
  @parent = args[:parent] if args.key?(:parent)
313
+ @resource_settings = args[:resource_settings] if args.key?(:resource_settings)
265
314
  end
266
315
  end
267
316
 
@@ -519,6 +568,12 @@ module Google
519
568
  class GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings
520
569
  include Google::Apis::Core::Hashable
521
570
 
571
+ # User-assigned resource display name. If not empty it will be used to create a
572
+ # resource with the specified name.
573
+ # Corresponds to the JSON property `displayName`
574
+ # @return [String]
575
+ attr_accessor :display_name
576
+
522
577
  # Resource identifier. For a project this represents project_id. If the project
523
578
  # is already taken, the workload creation will fail.
524
579
  # Corresponds to the JSON property `resourceId`
@@ -537,6 +592,7 @@ module Google
537
592
 
538
593
  # Update properties of this object
539
594
  def update!(**args)
595
+ @display_name = args[:display_name] if args.key?(:display_name)
540
596
  @resource_id = args[:resource_id] if args.key?(:resource_id)
541
597
  @resource_type = args[:resource_type] if args.key?(:resource_type)
542
598
  end
@@ -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.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210325"
25
+ REVISION = "20210506"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class GoogleCloudAssuredworkloadsV1WorkloadResourceSettings
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -162,6 +168,8 @@ module Google
162
168
  hash :labels, as: 'labels'
163
169
  property :name, as: 'name'
164
170
  property :provisioned_resources_parent, as: 'provisionedResourcesParent'
171
+ collection :resource_settings, as: 'resourceSettings', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceSettings, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceSettings::Representation
172
+
165
173
  collection :resources, as: 'resources', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceInfo, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceInfo::Representation
166
174
 
167
175
  end
@@ -183,6 +191,15 @@ module Google
183
191
  end
184
192
  end
185
193
 
194
+ class GoogleCloudAssuredworkloadsV1WorkloadResourceSettings
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ property :display_name, as: 'displayName'
198
+ property :resource_id, as: 'resourceId'
199
+ property :resource_type, as: 'resourceType'
200
+ end
201
+ end
202
+
186
203
  class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata
187
204
  # @private
188
205
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -190,6 +207,8 @@ module Google
190
207
  property :create_time, as: 'createTime'
191
208
  property :display_name, as: 'displayName'
192
209
  property :parent, as: 'parent'
210
+ collection :resource_settings, as: 'resourceSettings', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings::Representation
211
+
193
212
  end
194
213
  end
195
214
 
@@ -272,6 +291,7 @@ module Google
272
291
  class GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings
273
292
  # @private
274
293
  class Representation < Google::Apis::Core::JsonRepresentation
294
+ property :display_name, as: 'displayName'
275
295
  property :resource_id, as: 'resourceId'
276
296
  property :resource_type, as: 'resourceType'
277
297
  end
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.0
4
+ version: 0.5.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: 2021-04-05 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-assuredworkloads_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.4.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.5.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-assuredworkloads_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Assured Workloads API V1