Class: Google::Apis::GameservicesV1beta::Rule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gameservices_v1beta/classes.rb,
lib/google/apis/gameservices_v1beta/representations.rb,
lib/google/apis/gameservices_v1beta/representations.rb

Overview

A rule to be applied in a Policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Rule

Returns a new instance of Rule.



1835
1836
1837
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1835

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

Instance Attribute Details

#actionString

Required Corresponds to the JSON property action

Returns:

  • (String)


1795
1796
1797
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1795

def action
  @action
end

#conditionsArray<Google::Apis::GameservicesV1beta::Condition>

Additional restrictions that must be met. All conditions must pass for the rule to match. Corresponds to the JSON property conditions



1801
1802
1803
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1801

def conditions
  @conditions
end

#descriptionString

Human-readable description of the rule. Corresponds to the JSON property description

Returns:

  • (String)


1806
1807
1808
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1806

def description
  @description
end

#inArray<String>

If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/ AUTHORITY_SELECTOR is in at least one of these entries. Corresponds to the JSON property in

Returns:

  • (Array<String>)


1812
1813
1814
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1812

def in
  @in
end

#log_configArray<Google::Apis::GameservicesV1beta::LogConfig>

The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action. Corresponds to the JSON property logConfig



1818
1819
1820
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1818

def log_config
  @log_config
end

#not_inArray<String>

If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format for in and not_in entries can be found at in the Local IAM documentation (see go/local- iam#features). Corresponds to the JSON property notIn

Returns:

  • (Array<String>)


1826
1827
1828
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1826

def not_in
  @not_in
end

#permissionsArray<String>

A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '' matches all permissions, and a verb part of '' (e.g., 'storage.buckets. *') matches all verbs. Corresponds to the JSON property permissions

Returns:

  • (Array<String>)


1833
1834
1835
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1833

def permissions
  @permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1840
1841
1842
1843
1844
1845
1846
1847
1848
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1840

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @conditions = args[:conditions] if args.key?(:conditions)
  @description = args[:description] if args.key?(:description)
  @in = args[:in] if args.key?(:in)
  @log_config = args[:log_config] if args.key?(:log_config)
  @not_in = args[:not_in] if args.key?(:not_in)
  @permissions = args[:permissions] if args.key?(:permissions)
end