Class: Google::Apis::GkehubV1::Namespace

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

Namespace represents a namespace across the Fleet

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Namespace

Returns a new instance of Namespace.



3282
3283
3284
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3282

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


3233
3234
3235
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3233

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


3238
3239
3240
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3238

def delete_time
  @delete_time
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


3243
3244
3245
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3243

def labels
  @labels
end

#nameString

The resource name for the namespace projects/project/locations/location/ namespaces/namespace` Corresponds to the JSON propertyname`

Returns:

  • (String)


3249
3250
3251
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3249

def name
  @name
end

#namespace_labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


3258
3259
3260
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3258

def namespace_labels
  @namespace_labels
end

#scopeString

Required. Scope associated with the namespace Corresponds to the JSON property scope

Returns:

  • (String)


3263
3264
3265
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3263

def scope
  @scope
end

#stateGoogle::Apis::GkehubV1::NamespaceLifecycleState

NamespaceLifecycleState describes the state of a Namespace resource. Corresponds to the JSON property state



3268
3269
3270
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3268

def state
  @state
end

#uidString

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


3275
3276
3277
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3275

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


3280
3281
3282
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3280

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3287

def update!(**args)
  @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)
  @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