Class: Google::Apis::MlV1beta1::GoogleIamV1Rule
- Inherits:
-
Object
- Object
- Google::Apis::MlV1beta1::GoogleIamV1Rule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1beta1/classes.rb,
generated/google/apis/ml_v1beta1/representations.rb,
generated/google/apis/ml_v1beta1/representations.rb
Overview
A rule to be applied in a Policy.
Instance Attribute Summary collapse
-
#action ⇒ String
Required Corresponds to the JSON property
action
. -
#conditions ⇒ Array<Google::Apis::MlV1beta1::GoogleIamV1Condition>
Additional restrictions that must be met Corresponds to the JSON property
conditions
. -
#description ⇒ String
Human-readable description of the rule.
-
#in ⇒ Array<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.
-
#log_config ⇒ Array<Google::Apis::MlV1beta1::GoogleIamV1LogConfig>
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
-
#not_in ⇒ Array<String>
If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
-
#permissions ⇒ Array<String>
A permission is a string of form '
. . ' (e.g., 'storage.buckets.list').
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIamV1Rule
constructor
A new instance of GoogleIamV1Rule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleIamV1Rule
Returns a new instance of GoogleIamV1Rule
2023 2024 2025 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 2023 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required
Corresponds to the JSON property action
1984 1985 1986 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1984 def action @action end |
#conditions ⇒ Array<Google::Apis::MlV1beta1::GoogleIamV1Condition>
Additional restrictions that must be met
Corresponds to the JSON property conditions
1989 1990 1991 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1989 def conditions @conditions end |
#description ⇒ String
Human-readable description of the rule.
Corresponds to the JSON property description
1994 1995 1996 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1994 def description @description end |
#in ⇒ Array<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
2000 2001 2002 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 2000 def in @in end |
#log_config ⇒ Array<Google::Apis::MlV1beta1::GoogleIamV1LogConfig>
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
that match the LOG action.
Corresponds to the JSON property logConfig
2006 2007 2008 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 2006 def log_config @log_config end |
#not_in ⇒ Array<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 is the same as for members in a
Binding (see google/iam/v1/policy.proto).
Corresponds to the JSON property notIn
2014 2015 2016 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 2014 def not_in @not_in end |
#permissions ⇒ Array<String>
A permission is a string of form 'permissions
2021 2022 2023 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 2021 def @permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2028 2029 2030 2031 2032 2033 2034 2035 2036 |
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 2028 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 |