Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1beta1/classes.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb
Overview
Request for acknowledging the violation Next Id: 5
Instance Attribute Summary collapse
-
#comment ⇒ String
Required.
-
#non_compliant_org_policy ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest
constructor
A new instance of GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest
Returns a new instance of GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest.
44 45 46 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 44 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comment ⇒ String
Required. Business justification explaining the need for violation
acknowledgement
Corresponds to the JSON property comment
33 34 35 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 33 def comment @comment end |
#non_compliant_org_policy ⇒ String
Optional. This field is deprecated and will be removed in future version of
the API. Name of the OrgPolicy which was modified with non-compliant change
and resulted in this violation. Format: projects/project_number/policies/
constraint_name folders/folder_id/policies/constraint_name organizations/
organization_id/policies/constraint_name
Corresponds to the JSON property nonCompliantOrgPolicy
42 43 44 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 42 def non_compliant_org_policy @non_compliant_org_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
49 50 51 52 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 49 def update!(**args) @comment = args[:comment] if args.key?(:comment) @non_compliant_org_policy = args[:non_compliant_org_policy] if args.key?(:non_compliant_org_policy) end |