Class: Google::Apis::CloudidentityV1beta1::Policy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Policy

Returns a new instance of Policy.



3687
3688
3689
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3687

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

Instance Attribute Details

#customerString

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

Returns:

  • (String)


3664
3665
3666
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3664

def customer
  @customer
end

#nameString

Output only. Identifier. The resource name of the Policy. Format: policies/policy. Corresponds to the JSON property name

Returns:

  • (String)


3670
3671
3672
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3670

def name
  @name
end

#policy_queryGoogle::Apis::CloudidentityV1beta1::PolicyQuery

PolicyQuery Corresponds to the JSON property policyQuery



3675
3676
3677
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3675

def policy_query
  @policy_query
end

#settingGoogle::Apis::CloudidentityV1beta1::Setting

Setting Corresponds to the JSON property setting



3680
3681
3682
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3680

def setting
  @setting
end

#typeString

Output only. The type of the policy. Corresponds to the JSON property type

Returns:

  • (String)


3685
3686
3687
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3685

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3692
3693
3694
3695
3696
3697
3698
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3692

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