Class: Google::Apis::GkehubV1::Scope

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

Overview

Scope represents a Scope in a Fleet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Scope

Returns a new instance of Scope.



3811
3812
3813
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3811

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

Instance Attribute Details

#all_membershipsBoolean Also known as: all_memberships?

If true, all Memberships in the Fleet bind to this Scope. Corresponds to the JSON property allMemberships

Returns:

  • (Boolean)


3761
3762
3763
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3761

def all_memberships
  @all_memberships
end

#create_timeString

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

Returns:

  • (String)


3767
3768
3769
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3767

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


3772
3773
3774
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3772

def delete_time
  @delete_time
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


3777
3778
3779
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3777

def labels
  @labels
end

#nameString

The resource name for the scope projects/project/locations/location/ scopes/scope` Corresponds to the JSON propertyname`

Returns:

  • (String)


3783
3784
3785
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3783

def name
  @name
end

#namespace_labelsHash<String,String>

Optional. Scope-level cluster namespace labels. For the member clusters bound to the Scope, these labels are applied to each namespace under the Scope. Scope-level labels take precedence over Namespace-level labels ( namespace_labels in the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant. Corresponds to the JSON property namespaceLabels

Returns:

  • (Hash<String,String>)


3792
3793
3794
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3792

def namespace_labels
  @namespace_labels
end

#stateGoogle::Apis::GkehubV1::ScopeLifecycleState

ScopeLifecycleState describes the state of a Scope resource. Corresponds to the JSON property state



3797
3798
3799
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3797

def state
  @state
end

#uidString

Output only. Google-generated UUID for this resource. This is unique across all scope resources. If a scope 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)


3804
3805
3806
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3804

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


3809
3810
3811
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3809

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3816

def update!(**args)
  @all_memberships = args[:all_memberships] if args.key?(:all_memberships)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
  @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