Class: Google::Apis::GkehubV1alpha::ValidateCreateMembershipRequest

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

Overview

Request message for the GkeHub.ValidateCreateMembership method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValidateCreateMembershipRequest

Returns a new instance of ValidateCreateMembershipRequest.



6378
6379
6380
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6378

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

Instance Attribute Details

#membershipGoogle::Apis::GkehubV1alpha::Membership

Membership contains information about a member cluster. Corresponds to the JSON property membership



6371
6372
6373
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6371

def membership
  @membership
end

#membership_idString

Required. Client chosen membership id. Corresponds to the JSON property membershipId

Returns:

  • (String)


6376
6377
6378
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6376

def membership_id
  @membership_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6383
6384
6385
6386
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6383

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