Class: DatadogAPIClient::V2::RestrictionPolicyBinding

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/restriction_policy_binding.rb

Overview

Specifies which principals are associated with a relation.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



33
34
35
# File 'lib/datadog_api_client/v2/models/restriction_policy_binding.rb', line 33

def additional_properties
  @additional_properties
end

#principalsObject

An array of principals. A principal is a subject or group of subjects. Each principal is formatted as ‘type:id`. Supported types: `role`, `team`, `user`, and `org`. The org ID can be obtained through the api/v2/current_user API. The user principal type accepts service account IDs.



28
29
30
# File 'lib/datadog_api_client/v2/models/restriction_policy_binding.rb', line 28

def principals
  @principals
end

#relationObject

The role/level of access.



31
32
33
# File 'lib/datadog_api_client/v2/models/restriction_policy_binding.rb', line 31

def relation
  @relation
end