Class: Google::Apis::MonitoringV3::GkeNamespace
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::GkeNamespace
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
GKE Namespace. The field names correspond to the resource metadata labels on monitored resources that fall under a namespace (for example, k8s_container or k8s_pod).
Instance Attribute Summary collapse
-
#cluster_name ⇒ String
The name of the parent cluster.
-
#location ⇒ String
The location of the parent cluster.
-
#namespace_name ⇒ String
The name of this namespace.
-
#project_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkeNamespace
constructor
A new instance of GkeNamespace.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GkeNamespace
Returns a new instance of GkeNamespace.
1632 1633 1634 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1632 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_name ⇒ String
The name of the parent cluster.
Corresponds to the JSON property clusterName
1613 1614 1615 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1613 def cluster_name @cluster_name end |
#location ⇒ String
The location of the parent cluster. This may be a zone or region.
Corresponds to the JSON property location
1618 1619 1620 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1618 def location @location end |
#namespace_name ⇒ String
The name of this namespace.
Corresponds to the JSON property namespaceName
1623 1624 1625 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1623 def namespace_name @namespace_name end |
#project_id ⇒ String
Output only. The project this resource lives in. For legacy services migrated
from the Custom type, this may be a distinct project from the one parenting
the service itself.
Corresponds to the JSON property projectId
1630 1631 1632 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1630 def project_id @project_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1637 1638 1639 1640 1641 1642 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1637 def update!(**args) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @location = args[:location] if args.key?(:location) @namespace_name = args[:namespace_name] if args.key?(:namespace_name) @project_id = args[:project_id] if args.key?(:project_id) end |