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.



3109
3110
3111
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3109

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


3079
3080
3081
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3079

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


3084
3085
3086
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3084

def delete_time
  @delete_time
end

#nameString

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

Returns:

  • (String)


3090
3091
3092
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3090

def name
  @name
end

#stateGoogle::Apis::GkehubV1::ScopeLifecycleState

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



3095
3096
3097
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3095

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)


3102
3103
3104
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3102

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


3107
3108
3109
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3107

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3114
3115
3116
3117
3118
3119
3120
3121
# File 'lib/google/apis/gkehub_v1/classes.rb', line 3114

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