Class: Google::Apis::ClouddeployV1::GkeCluster

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb

Overview

Information specifying a GKE Cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeCluster

Returns a new instance of GkeCluster.



1178
1179
1180
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1178

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#clusterString

Information specifying a GKE Cluster. Format is projects/project_id/ locations/location_id/clusters/cluster_id. Corresponds to the JSON propertycluster`

Returns:

  • (String)


1164
1165
1166
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1164

def cluster
  @cluster
end

#internal_ipBoolean Also known as: internal_ip?

Optional. If true, cluster is accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option when cluster is a private GKE cluster. Corresponds to the JSON property internalIp

Returns:

  • (Boolean)


1175
1176
1177
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1175

def internal_ip
  @internal_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1183
1184
1185
1186
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1183

def update!(**args)
  @cluster = args[:cluster] if args.key?(:cluster)
  @internal_ip = args[:internal_ip] if args.key?(:internal_ip)
end