Class: Google::Apis::IapV1::PolicyName
- Inherits:
-
Object
- Object
- Google::Apis::IapV1::PolicyName
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iap_v1/classes.rb,
lib/google/apis/iap_v1/representations.rb,
lib/google/apis/iap_v1/representations.rb
Overview
An internal name for an IAM policy, based on the resource to which the policy applies. Not to be confused with a resource's external full resource name. For more information on this distinction, see go/iam-full-resource-names.
Instance Attribute Summary collapse
-
#id ⇒ String
Identifies an instance of the type.
-
#region ⇒ String
For Cloud IAM: The location of the Policy.
-
#type ⇒ String
Resource type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyName
constructor
A new instance of PolicyName.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyName
Returns a new instance of PolicyName.
983 984 985 |
# File 'lib/google/apis/iap_v1/classes.rb', line 983 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Identifies an instance of the type. ID format varies by type. The ID format is
defined in the IAM .service file that defines the type, either in path_mapping
or in a comment.
Corresponds to the JSON property id
966 967 968 |
# File 'lib/google/apis/iap_v1/classes.rb', line 966 def id @id end |
#region ⇒ String
For Cloud IAM: The location of the Policy. Must be empty or "global" for
Policies owned by global IAM. Must name a region from prodspec/cloud-iam-
cloudspec for Regional IAM Policies, see go/iam-faq#where-is-iam-currently-
deployed. For Local IAM: This field should be set to "local".
Corresponds to the JSON property region
974 975 976 |
# File 'lib/google/apis/iap_v1/classes.rb', line 974 def region @region end |
#type ⇒ String
Resource type. Types are defined in IAM's .service files. Valid values for
type might be 'storage_buckets', 'compute_instances', '
resourcemanager_customers', 'billing_accounts', etc.
Corresponds to the JSON property type
981 982 983 |
# File 'lib/google/apis/iap_v1/classes.rb', line 981 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
988 989 990 991 992 |
# File 'lib/google/apis/iap_v1/classes.rb', line 988 def update!(**args) @id = args[:id] if args.key?(:id) @region = args[:region] if args.key?(:region) @type = args[:type] if args.key?(:type) end |