Class: Google::Apis::GkehubV1alpha2::InitializeHubResponse

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

Overview

Response message for the InitializeHub method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InitializeHubResponse

Returns a new instance of InitializeHubResponse.



522
523
524
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 522

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

Instance Attribute Details

#service_identityString

Name of the Hub default service identity, in the format: service-@gcp-sa- gkehub.iam.gserviceaccount.com The service account has roles/gkehub. serviceAgent in the Hub project. Corresponds to the JSON property serviceIdentity

Returns:

  • (String)


514
515
516
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 514

def service_identity
  @service_identity
end

#workload_identity_poolString

The Workload Identity Pool used for Workload Identity-enabled clusters registered with this Hub. Format: .hub.id.goog Corresponds to the JSON property workloadIdentityPool

Returns:

  • (String)


520
521
522
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 520

def workload_identity_pool
  @workload_identity_pool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



527
528
529
530
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 527

def update!(**args)
  @service_identity = args[:service_identity] if args.key?(:service_identity)
  @workload_identity_pool = args[:workload_identity_pool] if args.key?(:workload_identity_pool)
end