Class: Google::Apis::CloudidentityV1::Policy
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1::Policy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudidentity_v1/classes.rb,
lib/google/apis/cloudidentity_v1/representations.rb,
lib/google/apis/cloudidentity_v1/representations.rb
Overview
A Policy resource binds an instance of a single Setting with the scope of a PolicyQuery. The Setting instance will be applied to all entities that satisfy the query.
Instance Attribute Summary collapse
-
#customer ⇒ String
Immutable.
-
#name ⇒ String
Output only.
-
#policy_query ⇒ Google::Apis::CloudidentityV1::PolicyQuery
PolicyQuery Corresponds to the JSON property
policyQuery. -
#setting ⇒ Google::Apis::CloudidentityV1::Setting
Setting Corresponds to the JSON property
setting. -
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy.
2763 2764 2765 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2763 def initialize(**args) update!(**args) end |
Instance Attribute Details
#customer ⇒ String
Immutable. Customer that the Policy belongs to. The value is in the format '
customers/customerId'. The customerId must begin with "C" To find your
customer ID in Admin Console see https://support.google.com/a/answer/10070793.
Corresponds to the JSON property customer
2740 2741 2742 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2740 def customer @customer end |
#name ⇒ String
Output only. Identifier. The resource name of the Policy. Format: policies/policy.
Corresponds to the JSON property name
2746 2747 2748 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2746 def name @name end |
#policy_query ⇒ Google::Apis::CloudidentityV1::PolicyQuery
PolicyQuery
Corresponds to the JSON property policyQuery
2751 2752 2753 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2751 def policy_query @policy_query end |
#setting ⇒ Google::Apis::CloudidentityV1::Setting
Setting
Corresponds to the JSON property setting
2756 2757 2758 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2756 def setting @setting end |
#type ⇒ String
Output only. The type of the policy.
Corresponds to the JSON property type
2761 2762 2763 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2761 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2768 2769 2770 2771 2772 2773 2774 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 2768 def update!(**args) @customer = args[:customer] if args.key?(:customer) @name = args[:name] if args.key?(:name) @policy_query = args[:policy_query] if args.key?(:policy_query) @setting = args[:setting] if args.key?(:setting) @type = args[:type] if args.key?(:type) end |