Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::V1::Scope.
Scope represents a Scope in a Fleet.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the scope was created.
#delete_time
def delete_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the scope was deleted.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels for this Scope.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels for this Scope.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels for this Scope.
#name
def name() -> ::String
Returns
-
(::String) — The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
Returns
-
(::String) — The resource name for the scope
projects/{project}/locations/{location}/scopes/{scope}
#namespace_labels
def namespace_labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
-
(::Google::Protobuf::Map{::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_labelsin the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
#namespace_labels=
def namespace_labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
-
value (::Google::Protobuf::Map{::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_labelsin the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
Returns
-
(::Google::Protobuf::Map{::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_labelsin the Fleet Namespace resource) if they share a key. Keys and values must be Kubernetes-conformant.
#state
def state() -> ::Google::Cloud::GkeHub::V1::ScopeLifecycleState
Returns
- (::Google::Cloud::GkeHub::V1::ScopeLifecycleState) — Output only. State of the scope resource.
#uid
def uid() -> ::String
Returns
- (::String) — 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.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the scope was last updated.