Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/google/apis/assuredworkloads_v1/representations.rb
Overview
Request for acknowledging the violation
Instance Attribute Summary collapse
-
#acknowledge_type ⇒ String
Optional.
-
#comment ⇒ String
Required.
-
#non_compliant_org_policy ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest
constructor
A new instance of GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest
Returns a new instance of GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest.
49 50 51 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 49 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acknowledge_type ⇒ String
Optional. Acknowledge type of specified violation.
Corresponds to the JSON property acknowledgeType
32 33 34 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 32 def acknowledge_type @acknowledge_type end |
#comment ⇒ String
Required. Business justification explaining the need for violation
acknowledgement
Corresponds to the JSON property comment
38 39 40 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 38 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
47 48 49 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 47 def non_compliant_org_policy @non_compliant_org_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
54 55 56 57 58 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 54 def update!(**args) @acknowledge_type = args[:acknowledge_type] if args.key?(:acknowledge_type) @comment = args[:comment] if args.key?(:comment) @non_compliant_org_policy = args[:non_compliant_org_policy] if args.key?(:non_compliant_org_policy) end |