Skip to content

Commit 4ef07ed

Browse files
feat: Automated regeneration of assuredworkloads v1 client (#15475)
Auto-created at 2023-07-16 10:43:55 +0000 using the toys pull request generator.
1 parent 567f20d commit 4ef07ed

File tree

5 files changed

+61
-2
lines changed

5 files changed

+61
-2
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21445,6 +21445,7 @@
2144521445
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ViolationExceptionContext/acknowledgementTime": acknowledgement_time
2144621446
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ViolationExceptionContext/comment": comment
2144721447
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ViolationExceptionContext/principalEmail": principal_email
21448+
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ViolationExceptionContext/userName": user_name
2144821449
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ViolationRemediation": google_cloud_assuredworkloads_v1_violation_remediation
2144921450
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ViolationRemediation/compliantValues": compliant_values
2145021451
"/assuredworkloads:v1/GoogleCloudAssuredworkloadsV1ViolationRemediation/compliantValues/compliant_value": compliant_value

generated/google-apis-assuredworkloads_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-assuredworkloads_v1
22

3+
### v0.42.0 (2023-07-16)
4+
5+
* Regenerated from discovery document revision 20230707
6+
37
### v0.41.0 (2023-07-02)
48

59
* Regenerated from discovery document revision 20230623

generated/google-apis-assuredworkloads_v1/lib/google/apis/assuredworkloads_v1/classes.rb

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ class GoogleCloudAssuredworkloadsV1Violation
269269
# @return [String]
270270
attr_accessor :exception_audit_log_link
271271

272+
# Output only. List of all the exception detail added for the violation.
273+
# Corresponds to the JSON property `exceptionContexts`
274+
# @return [Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationExceptionContext>]
275+
attr_accessor :exception_contexts
276+
272277
# Output only. Immutable. Name of the Violation. Format: organizations/`
273278
# organization`/locations/`location`/workloads/`workload_id`/violations/`
274279
# violations_id`
@@ -319,6 +324,7 @@ def update!(**args)
319324
@category = args[:category] if args.key?(:category)
320325
@description = args[:description] if args.key?(:description)
321326
@exception_audit_log_link = args[:exception_audit_log_link] if args.key?(:exception_audit_log_link)
327+
@exception_contexts = args[:exception_contexts] if args.key?(:exception_contexts)
322328
@name = args[:name] if args.key?(:name)
323329
@non_compliant_org_policy = args[:non_compliant_org_policy] if args.key?(:non_compliant_org_policy)
324330
@remediation = args[:remediation] if args.key?(:remediation)
@@ -328,6 +334,37 @@ def update!(**args)
328334
end
329335
end
330336

337+
# Violation exception detail. Next Id: 6
338+
class GoogleCloudAssuredworkloadsV1ViolationExceptionContext
339+
include Google::Apis::Core::Hashable
340+
341+
# Timestamp when the violation was acknowledged.
342+
# Corresponds to the JSON property `acknowledgementTime`
343+
# @return [String]
344+
attr_accessor :acknowledgement_time
345+
346+
# Business justification provided towards the acknowledgement of the violation.
347+
# Corresponds to the JSON property `comment`
348+
# @return [String]
349+
attr_accessor :comment
350+
351+
# Name of the user (or service account) who acknowledged the violation.
352+
# Corresponds to the JSON property `userName`
353+
# @return [String]
354+
attr_accessor :user_name
355+
356+
def initialize(**args)
357+
update!(**args)
358+
end
359+
360+
# Update properties of this object
361+
def update!(**args)
362+
@acknowledgement_time = args[:acknowledgement_time] if args.key?(:acknowledgement_time)
363+
@comment = args[:comment] if args.key?(:comment)
364+
@user_name = args[:user_name] if args.key?(:user_name)
365+
end
366+
end
367+
331368
# Represents remediation guidance to resolve compliance violation for
332369
# AssuredWorkload
333370
class GoogleCloudAssuredworkloadsV1ViolationRemediation

generated/google-apis-assuredworkloads_v1/lib/google/apis/assuredworkloads_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AssuredworkloadsV1
1818
# Version of the google-apis-assuredworkloads_v1 gem
19-
GEM_VERSION = "0.41.0"
19+
GEM_VERSION = "0.42.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.12.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230623"
25+
REVISION = "20230707"
2626
end
2727
end
2828
end

generated/google-apis-assuredworkloads_v1/lib/google/apis/assuredworkloads_v1/representations.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7676
include Google::Apis::Core::JsonObjectSupport
7777
end
7878

79+
class GoogleCloudAssuredworkloadsV1ViolationExceptionContext
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
7985
class GoogleCloudAssuredworkloadsV1ViolationRemediation
8086
class Representation < Google::Apis::Core::JsonRepresentation; end
8187

@@ -247,6 +253,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
247253
property :category, as: 'category'
248254
property :description, as: 'description'
249255
property :exception_audit_log_link, as: 'exceptionAuditLogLink'
256+
collection :exception_contexts, as: 'exceptionContexts', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationExceptionContext, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationExceptionContext::Representation
257+
250258
property :name, as: 'name'
251259
property :non_compliant_org_policy, as: 'nonCompliantOrgPolicy'
252260
property :remediation, as: 'remediation', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationRemediation, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ViolationRemediation::Representation
@@ -257,6 +265,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
257265
end
258266
end
259267

268+
class GoogleCloudAssuredworkloadsV1ViolationExceptionContext
269+
# @private
270+
class Representation < Google::Apis::Core::JsonRepresentation
271+
property :acknowledgement_time, as: 'acknowledgementTime'
272+
property :comment, as: 'comment'
273+
property :user_name, as: 'userName'
274+
end
275+
end
276+
260277
class GoogleCloudAssuredworkloadsV1ViolationRemediation
261278
# @private
262279
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)