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.



3881
3882
3883
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3881

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)


3858
3859
3860
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3858

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)


3864
3865
3866
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3864

def name
  @name
end

#policy_queryGoogle::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

#settingGoogle::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

#typeString

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

Returns:

  • (String)


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