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 external 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.



1893
1894
1895
# File 'lib/google/apis/iam_v1/classes.rb', line 1893

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)


1868
1869
1870
# File 'lib/google/apis/iam_v1/classes.rb', line 1868

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)


1875
1876
1877
# File 'lib/google/apis/iam_v1/classes.rb', line 1875

def disabled
  @disabled
end

#display_nameString

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

Returns:

  • (String)


1881
1882
1883
# File 'lib/google/apis/iam_v1/classes.rb', line 1881

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


1886
1887
1888
# File 'lib/google/apis/iam_v1/classes.rb', line 1886

def name
  @name
end

#stateString

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

Returns:

  • (String)


1891
1892
1893
# File 'lib/google/apis/iam_v1/classes.rb', line 1891

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1898
1899
1900
1901
1902
1903
1904
# File 'lib/google/apis/iam_v1/classes.rb', line 1898

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)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end