Class: Google::Apis::IamV1::WorkloadIdentityPool

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

Overview

Represents a collection of workload identities. You can define IAM policies to grant these identities access to Google Cloud resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadIdentityPool

Returns a new instance of WorkloadIdentityPool.



2677
2678
2679
# File 'lib/google/apis/iam_v1/classes.rb', line 2677

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

Instance Attribute Details

#descriptionString

A description of the pool. Cannot exceed 256 characters. Corresponds to the JSON property description

Returns:

  • (String)


2646
2647
2648
# File 'lib/google/apis/iam_v1/classes.rb', line 2646

def description
  @description
end

#disabledBoolean Also known as: disabled?

Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


2653
2654
2655
# File 'lib/google/apis/iam_v1/classes.rb', line 2653

def disabled
  @disabled
end

#display_nameString

A display name for the pool. Cannot exceed 32 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


2659
2660
2661
# File 'lib/google/apis/iam_v1/classes.rb', line 2659

def display_name
  @display_name
end

#expire_timeString

Output only. Time after which the workload identity pool will be permanently purged and cannot be recovered. Corresponds to the JSON property expireTime

Returns:

  • (String)


2665
2666
2667
# File 'lib/google/apis/iam_v1/classes.rb', line 2665

def expire_time
  @expire_time
end

#nameString

Output only. The resource name of the pool. Corresponds to the JSON property name

Returns:

  • (String)


2670
2671
2672
# File 'lib/google/apis/iam_v1/classes.rb', line 2670

def name
  @name
end

#stateString

Output only. The state of the pool. Corresponds to the JSON property state

Returns:

  • (String)


2675
2676
2677
# File 'lib/google/apis/iam_v1/classes.rb', line 2675

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2682
2683
2684
2685
2686
2687
2688
2689
# File 'lib/google/apis/iam_v1/classes.rb', line 2682

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @disabled = args[:disabled] if args.key?(:disabled)
  @display_name = args[:display_name] if args.key?(:display_name)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end