Class: Google::Apis::GkehubV1alpha::MembershipBinding

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

MembershipBinding is a subresource of a Membership, representing what Fleet Scopes (or other, future Fleet resources) a Membership is bound to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipBinding

Returns a new instance of MembershipBinding.



3591
3592
3593
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3591

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

Instance Attribute Details

#create_timeString

Output only. When the membership binding was created. Corresponds to the JSON property createTime

Returns:

  • (String)


3544
3545
3546
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3544

def create_time
  @create_time
end

#delete_timeString

Output only. When the membership binding was deleted. Corresponds to the JSON property deleteTime

Returns:

  • (String)


3549
3550
3551
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3549

def delete_time
  @delete_time
end

#fleetBoolean Also known as: fleet?

Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet. Corresponds to the JSON property fleet

Returns:

  • (Boolean)


3555
3556
3557
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3555

def fleet
  @fleet
end

#labelsHash<String,String>

Optional. Labels for this MembershipBinding. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


3561
3562
3563
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3561

def labels
  @labels
end

#nameString

The resource name for the membershipbinding itself projects/project/ locations/location/memberships/membership/bindings/membershipbinding` Corresponds to the JSON propertyname`

Returns:

  • (String)


3567
3568
3569
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3567

def name
  @name
end

#scopeString

A Scope resource name in the format projects/*/locations/*/scopes/*. Corresponds to the JSON property scope

Returns:

  • (String)


3572
3573
3574
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3572

def scope
  @scope
end

#stateGoogle::Apis::GkehubV1alpha::MembershipBindingLifecycleState

MembershipBindingLifecycleState describes the state of a Binding resource. Corresponds to the JSON property state



3577
3578
3579
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3577

def state
  @state
end

#uidString

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid. Corresponds to the JSON property uid

Returns:

  • (String)


3584
3585
3586
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3584

def uid
  @uid
end

#update_timeString

Output only. When the membership binding was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


3589
3590
3591
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3589

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3596

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @fleet = args[:fleet] if args.key?(:fleet)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @scope = args[:scope] if args.key?(:scope)
  @state = args[:state] if args.key?(:state)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end