google.cloud.forseti.common.gcp_type.ke_cluster module

A Kubernetes Engine Cluster object.

See: https://cloud.google.com/kubernetes-engine/docs/

class KeCluster(cluster_id, parent=None, full_name=None, locations=None, description=None, initial_node_count=None, node_config=None, logging_service=None, monitoring_service=None, network=None, cluster_ipv4_cidr=None, addons_config=None, subnetwork=None, node_pools=None, enable_kubernetes_alpha=None, resource_labels=None, label_fingerprint=None, legacy_abac=None, network_policy=None, ip_allocation_policy=None, master_authorized_networks_config=None, maintenance_policy=None, endpoint=None, initial_cluster_version=None, current_master_version=None, current_node_version=None, create_time=None, status=None, status_message=None, node_ipv4_cidr_size=None, instance_group_urls=None, current_node_count=None, expire_time=None, server_config=None, data=None, cluster_name=None)[source]

Bases: google.cloud.forseti.common.gcp_type.resource.Resource

Represents KE Cluster resource.

RESOURCE_NAME_FMT = 'kubernetes_cluster/%s'
_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 199
_abc_registry = <_weakrefset.WeakSet object>
as_dict

Return the dictionary representation of the cluster.

Returns:deserialized json object
Return type:dict
classmethod from_json(parent, json_string)[source]

Returns a new ForwardingRule object from json data.

Parameters:
  • parent (Resource) – resource this cluster belongs to.
  • json_string (str) – JSON string of a cluster GCP API response.
Returns:

A new KeCluster object.

Return type:

KeCluster