Class: Google::Apis::GkehubV1::Feature

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

Feature represents the settings and status of any Hub Feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Feature

Returns a new instance of Feature.



1522
1523
1524
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1522

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


1457
1458
1459
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1457

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


1462
1463
1464
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1462

def delete_time
  @delete_time
end

#labelsHash<String,String>

GCP labels for this Feature. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1467
1468
1469
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1467

def labels
  @labels
end

#membership_specsHash<String,Google::Apis::GkehubV1::MembershipFeatureSpec>

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: projects/p/locations/l/memberships/m`Wherepis the project,lis a valid location andmis a valid Membership in this project at that location. pWILL match the Feature's project.pwill always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature. Corresponds to the JSON propertymembershipSpecs`



1482
1483
1484
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1482

def membership_specs
  @membership_specs
end

#membership_statesHash<String,Google::Apis::GkehubV1::MembershipFeatureState>

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/p/locations/l/ memberships/m`Wherepis the project number,lis a valid location and mis a valid Membership in this project at that location.pMUST match the Feature's project number. Corresponds to the JSON propertymembershipStates`



1492
1493
1494
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1492

def membership_states
  @membership_states
end

#nameString

Output only. The full, unique name of this Feature resource in the format projects/*/locations/*/features/*. Corresponds to the JSON property name

Returns:

  • (String)


1498
1499
1500
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1498

def name
  @name
end

#resource_stateGoogle::Apis::GkehubV1::FeatureResourceState

FeatureResourceState describes the state of a Feature resource in the GkeHub API. See FeatureState for the "running state" of the Feature in the Hub and across Memberships. Corresponds to the JSON property resourceState



1505
1506
1507
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1505

def resource_state
  @resource_state
end

#specGoogle::Apis::GkehubV1::CommonFeatureSpec

CommonFeatureSpec contains Hub-wide configuration information Corresponds to the JSON property spec



1510
1511
1512
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1510

def spec
  @spec
end

#stateGoogle::Apis::GkehubV1::CommonFeatureState

CommonFeatureState contains Hub-wide Feature status information. Corresponds to the JSON property state



1515
1516
1517
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1515

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


1520
1521
1522
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1520

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1527

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)
  @membership_specs = args[:membership_specs] if args.key?(:membership_specs)
  @membership_states = args[:membership_states] if args.key?(:membership_states)
  @name = args[:name] if args.key?(:name)
  @resource_state = args[:resource_state] if args.key?(:resource_state)
  @spec = args[:spec] if args.key?(:spec)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end