Class: Google::Apis::GkehubV1alpha2::KubernetesMetadata
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha2::KubernetesMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha2/classes.rb,
lib/google/apis/gkehub_v1alpha2/representations.rb,
lib/google/apis/gkehub_v1alpha2/representations.rb
Overview
KubernetesMetadata provides informational metadata for Memberships that are created from Kubernetes Endpoints (currently, these are equivalent to Kubernetes clusters).
Instance Attribute Summary collapse
-
#kubernetes_api_server_version ⇒ String
Output only.
-
#memory_mb ⇒ Fixnum
Output only.
-
#node_count ⇒ Fixnum
Output only.
-
#node_provider_id ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#vcpu_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KubernetesMetadata
constructor
A new instance of KubernetesMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KubernetesMetadata
Returns a new instance of KubernetesMetadata.
575 576 577 |
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 575 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kubernetes_api_server_version ⇒ String
Output only. Kubernetes API server version string as reported by '/version'.
Corresponds to the JSON property kubernetesApiServerVersion
542 543 544 |
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 542 def kubernetes_api_server_version @kubernetes_api_server_version end |
#memory_mb ⇒ Fixnum
Output only. The total memory capacity as reported by the sum of all
Kubernetes nodes resources, defined in MB.
Corresponds to the JSON property memoryMb
548 549 550 |
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 548 def memory_mb @memory_mb end |
#node_count ⇒ Fixnum
Output only. Node count as reported by Kubernetes nodes resources.
Corresponds to the JSON property nodeCount
553 554 555 |
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 553 def node_count @node_count end |
#node_provider_id ⇒ String
Output only. Node providerID as reported by the first node in the list of
nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-
node clusters (like GKE-on-GCP), the node_count will be zero and the
node_provider_id will be empty.
Corresponds to the JSON property nodeProviderId
561 562 563 |
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 561 def node_provider_id @node_provider_id end |
#update_time ⇒ String
Output only. The time at which these details were last updated. This
update_time is different from the Membership-level update_time since
EndpointDetails are updated internally for API consumers.
Corresponds to the JSON property updateTime
568 569 570 |
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 568 def update_time @update_time end |
#vcpu_count ⇒ Fixnum
Output only. vCPU count as reported by Kubernetes nodes resources.
Corresponds to the JSON property vcpuCount
573 574 575 |
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 573 def vcpu_count @vcpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
580 581 582 583 584 585 586 587 |
# File 'lib/google/apis/gkehub_v1alpha2/classes.rb', line 580 def update!(**args) @kubernetes_api_server_version = args[:kubernetes_api_server_version] if args.key?(:kubernetes_api_server_version) @memory_mb = args[:memory_mb] if args.key?(:memory_mb) @node_count = args[:node_count] if args.key?(:node_count) @node_provider_id = args[:node_provider_id] if args.key?(:node_provider_id) @update_time = args[:update_time] if args.key?(:update_time) @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count) end |