Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::V1::Feature.
Feature represents the settings and status of any Fleet Feature.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. When the Feature resource was created.
#delete_time
def delete_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. When the Feature resource was deleted.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}- (::Google::Protobuf::Map{::String => ::String}) — Labels for this Feature.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}- value (::Google::Protobuf::Map{::String => ::String}) — Labels for this Feature.
- (::Google::Protobuf::Map{::String => ::String}) — Labels for this Feature.
#membership_specs
def membership_specs() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::MembershipFeatureSpec}-
(::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::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}Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.
{p} will 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.
#membership_specs=
def membership_specs=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::MembershipFeatureSpec}-
value (::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::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}Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.
{p} will 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.
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::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}Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.
{p} will 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.
#membership_states
def membership_states() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::MembershipFeatureState}-
(::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::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}Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.
#name
def name() -> ::String-
(::String) — Output only. The full, unique name of this Feature resource in the format
projects/*/locations/*/features/*.
#resource_state
def resource_state() -> ::Google::Cloud::GkeHub::V1::FeatureResourceState- (::Google::Cloud::GkeHub::V1::FeatureResourceState) — Output only. State of the Feature resource itself.
#scope_specs
def scope_specs() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::ScopeFeatureSpec}-
(::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::ScopeFeatureSpec}) — Optional. Scope-specific configuration for this Feature. If this Feature
does not support any per-Scope configuration, this field may be unused.
The keys indicate which Scope the configuration is for, in the form:
projects/{p}/locations/global/scopes/{s}Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.
{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope 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.
#scope_specs=
def scope_specs=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::ScopeFeatureSpec}-
value (::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::ScopeFeatureSpec}) — Optional. Scope-specific configuration for this Feature. If this Feature
does not support any per-Scope configuration, this field may be unused.
The keys indicate which Scope the configuration is for, in the form:
projects/{p}/locations/global/scopes/{s}Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.
{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope 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.
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::ScopeFeatureSpec}) — Optional. Scope-specific configuration for this Feature. If this Feature
does not support any per-Scope configuration, this field may be unused.
The keys indicate which Scope the configuration is for, in the form:
projects/{p}/locations/global/scopes/{s}Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.
{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope 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.
#scope_states
def scope_states() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::ScopeFeatureState}-
(::Google::Protobuf::Map{::String => ::Google::Cloud::GkeHub::V1::ScopeFeatureState}) — Output only. Scope-specific Feature status. If this Feature does
report any per-Scope status, this field may be unused.
The keys indicate which Scope the state is for, in the form:
projects/{p}/locations/global/scopes/{s}Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.
#spec
def spec() -> ::Google::Cloud::GkeHub::V1::CommonFeatureSpec- (::Google::Cloud::GkeHub::V1::CommonFeatureSpec) — Optional. Fleet-wide Feature configuration. If this Feature does not support any Fleet-wide configuration, this field may be unused.
#spec=
def spec=(value) -> ::Google::Cloud::GkeHub::V1::CommonFeatureSpec- value (::Google::Cloud::GkeHub::V1::CommonFeatureSpec) — Optional. Fleet-wide Feature configuration. If this Feature does not support any Fleet-wide configuration, this field may be unused.
- (::Google::Cloud::GkeHub::V1::CommonFeatureSpec) — Optional. Fleet-wide Feature configuration. If this Feature does not support any Fleet-wide configuration, this field may be unused.
#state
def state() -> ::Google::Cloud::GkeHub::V1::CommonFeatureState- (::Google::Cloud::GkeHub::V1::CommonFeatureState) — Output only. The Fleet-wide Feature state.
#unreachable
def unreachable() -> ::Array<::String>- (::Array<::String>) — Output only. List of locations that could not be reached while fetching this feature.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. When the Feature resource was last updated.