Class: Google::Apis::CloudidentityV1beta1::Policy
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1beta1::Policy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudidentity_v1beta1/classes.rb,
lib/google/apis/cloudidentity_v1beta1/representations.rb,
lib/google/apis/cloudidentity_v1beta1/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::CloudidentityV1beta1::PolicyQuery
PolicyQuery Corresponds to the JSON property
policyQuery. -
#setting ⇒ Google::Apis::CloudidentityV1beta1::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.
3881 3882 3883 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3881 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
3858 3859 3860 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3858 def customer @customer end |
#name ⇒ String
Output only. Identifier. The resource name of the Policy. Format: policies/policy.
Corresponds to the JSON property name
3864 3865 3866 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3864 def name @name end |
#policy_query ⇒ Google::Apis::CloudidentityV1beta1::PolicyQuery
PolicyQuery
Corresponds to the JSON property policyQuery
3869 3870 3871 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3869 def policy_query @policy_query end |
#setting ⇒ Google::Apis::CloudidentityV1beta1::Setting
Setting
Corresponds to the JSON property setting
3874 3875 3876 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3874 def setting @setting end |
#type ⇒ String
Output only. The type of the policy.
Corresponds to the JSON property type
3879 3880 3881 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3879 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3886 3887 3888 3889 3890 3891 3892 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3886 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 |