Class: Google::Apis::ServicecontrolV2::OrgPolicyViolationInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicecontrol_v2/classes.rb,
lib/google/apis/servicecontrol_v2/representations.rb,
lib/google/apis/servicecontrol_v2/representations.rb

Overview

Represents OrgPolicy Violation information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrgPolicyViolationInfo

Returns a new instance of OrgPolicyViolationInfo.



610
611
612
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 610

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#payloadHash<String,Object>

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content. Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


588
589
590
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 588

def payload
  @payload
end

#resource_tagsHash<String,String>

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes. Corresponds to the JSON property resourceTags

Returns:

  • (Hash<String,String>)


597
598
599
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 597

def resource_tags
  @resource_tags
end

#resource_typeString

Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket Corresponds to the JSON property resourceType

Returns:

  • (String)


603
604
605
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 603

def resource_type
  @resource_type
end

#violation_infoArray<Google::Apis::ServicecontrolV2::ViolationInfo>

Optional. Policy violations Corresponds to the JSON property violationInfo



608
609
610
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 608

def violation_info
  @violation_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



615
616
617
618
619
620
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 615

def update!(**args)
  @payload = args[:payload] if args.key?(:payload)
  @resource_tags = args[:resource_tags] if args.key?(:resource_tags)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
  @violation_info = args[:violation_info] if args.key?(:violation_info)
end