Class: Google::Apis::IamV1::WorkforcePool

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 workforces. Provides namespaces for federated users that can be referenced in IAM policies.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkforcePool

Returns a new instance of WorkforcePool.



2448
2449
2450
# File 'lib/google/apis/iam_v1/classes.rb', line 2448

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


2400
2401
2402
# File 'lib/google/apis/iam_v1/classes.rb', line 2400

def description
  @description
end

#disabledBoolean Also known as: disabled?

Disables the workforce pool. 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)


2407
2408
2409
# File 'lib/google/apis/iam_v1/classes.rb', line 2407

def disabled
  @disabled
end

#display_nameString

A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


2414
2415
2416
# File 'lib/google/apis/iam_v1/classes.rb', line 2414

def display_name
  @display_name
end

#expire_timeString

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

Returns:

  • (String)


2420
2421
2422
# File 'lib/google/apis/iam_v1/classes.rb', line 2420

def expire_time
  @expire_time
end

#nameString

Output only. The resource name of the pool. Format: locations/location/ workforcePools/workforce_pool_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


2426
2427
2428
# File 'lib/google/apis/iam_v1/classes.rb', line 2426

def name
  @name
end

#parentString

Immutable. The resource name of the parent. Format: organizations/org-id`. Corresponds to the JSON propertyparent`

Returns:

  • (String)


2431
2432
2433
# File 'lib/google/apis/iam_v1/classes.rb', line 2431

def parent
  @parent
end

#session_durationString

Duration that the Google Cloud access tokens, console sign-in sessions, and gcloud sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If session_duration is not configured, minted credentials have a default duration of one hour (3600s). For SAML providers, the lifetime of the token is the minimum of the session_duration and the SessionNotOnOrAfter claim in the SAML assertion. Corresponds to the JSON property sessionDuration

Returns:

  • (String)


2441
2442
2443
# File 'lib/google/apis/iam_v1/classes.rb', line 2441

def session_duration
  @session_duration
end

#stateString

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

Returns:

  • (String)


2446
2447
2448
# File 'lib/google/apis/iam_v1/classes.rb', line 2446

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
# File 'lib/google/apis/iam_v1/classes.rb', line 2453

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