Class: Google::Apis::IamV2::GoogleIamV2Policy
- Inherits:
-
Object
- Object
- Google::Apis::IamV2::GoogleIamV2Policy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iam_v2/classes.rb,
lib/google/apis/iam_v2/representations.rb,
lib/google/apis/iam_v2/representations.rb
Overview
Data for an IAM policy.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
A key-value map to store arbitrary metadata for the
Policy. -
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#display_name ⇒ String
A user-specified description of the
Policy. -
#etag ⇒ String
An opaque tag that identifies the current version of the
Policy. -
#kind ⇒ String
Output only.
-
#name ⇒ String
Immutable.
-
#rules ⇒ Array<Google::Apis::IamV2::GoogleIamV2PolicyRule>
A list of rules that specify the behavior of the
Policy. -
#uid ⇒ String
Immutable.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIamV2Policy
constructor
A new instance of GoogleIamV2Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleIamV2Policy
Returns a new instance of GoogleIamV2Policy.
428 429 430 |
# File 'lib/google/apis/iam_v2/classes.rb', line 428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
A key-value map to store arbitrary metadata for the Policy. Keys can be up
to 63 characters. Values can be up to 255 characters.
Corresponds to the JSON property annotations
367 368 369 |
# File 'lib/google/apis/iam_v2/classes.rb', line 367 def annotations @annotations end |
#create_time ⇒ String
Output only. The time when the Policy was created.
Corresponds to the JSON property createTime
372 373 374 |
# File 'lib/google/apis/iam_v2/classes.rb', line 372 def create_time @create_time end |
#delete_time ⇒ String
Output only. The time when the Policy was deleted. Empty if the policy is
not deleted.
Corresponds to the JSON property deleteTime
378 379 380 |
# File 'lib/google/apis/iam_v2/classes.rb', line 378 def delete_time @delete_time end |
#display_name ⇒ String
A user-specified description of the Policy. This value can be up to 63
characters.
Corresponds to the JSON property displayName
384 385 386 |
# File 'lib/google/apis/iam_v2/classes.rb', line 384 def display_name @display_name end |
#etag ⇒ String
An opaque tag that identifies the current version of the Policy. IAM uses
this value to help manage concurrent updates, so they do not cause one update
to be overwritten by another. If this field is present in a
CreatePolicyRequest, the value is ignored.
Corresponds to the JSON property etag
392 393 394 |
# File 'lib/google/apis/iam_v2/classes.rb', line 392 def etag @etag end |
#kind ⇒ String
Output only. The kind of the Policy. Always contains the value DenyPolicy.
Corresponds to the JSON property kind
397 398 399 |
# File 'lib/google/apis/iam_v2/classes.rb', line 397 def kind @kind end |
#name ⇒ String
Immutable. The resource name of the Policy, which must be unique. Format:
policies/attachment_point/denypolicies/policy_id`The attachment point is
identified by its URL-encoded full resource name, which means that the forward-
slash character,/, must be written as%2F. For example,policies/
cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-
deny-policy. For organizations and folders, use the numeric ID in the full
resource name. For projects, requests can use the alphanumeric or the numeric
ID. Responses always contain the numeric ID.
Corresponds to the JSON propertyname`
409 410 411 |
# File 'lib/google/apis/iam_v2/classes.rb', line 409 def name @name end |
#rules ⇒ Array<Google::Apis::IamV2::GoogleIamV2PolicyRule>
A list of rules that specify the behavior of the Policy. All of the rules
should be of the kind specified in the Policy.
Corresponds to the JSON property rules
415 416 417 |
# File 'lib/google/apis/iam_v2/classes.rb', line 415 def rules @rules end |
#uid ⇒ String
Immutable. The globally unique ID of the Policy. Assigned automatically when
the Policy is created.
Corresponds to the JSON property uid
421 422 423 |
# File 'lib/google/apis/iam_v2/classes.rb', line 421 def uid @uid end |
#update_time ⇒ String
Output only. The time when the Policy was last updated.
Corresponds to the JSON property updateTime
426 427 428 |
# File 'lib/google/apis/iam_v2/classes.rb', line 426 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
433 434 435 436 437 438 439 440 441 442 443 444 |
# File 'lib/google/apis/iam_v2/classes.rb', line 433 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |