Show / Hide Table of Contents

Class ProjectsResource.ZonesResource.ClustersResource

The "clusters" collection of methods.

Inheritance
object
ProjectsResource.ZonesResource.ClustersResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Container.v1beta1
Assembly: Google.Apis.Container.v1beta1.dll
Syntax
public class ProjectsResource.ZonesResource.ClustersResource

Constructors

ClustersResource(IClientService)

Constructs a new resource.

Declaration
public ClustersResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

NodePools

Gets the NodePools resource.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.NodePoolsResource NodePools { get; }
Property Value
Type Description
ProjectsResource.ZonesResource.ClustersResource.NodePoolsResource

Methods

Addons(SetAddonsConfigRequest, string, string, string)

Sets the addons for a specific cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.AddonsRequest Addons(SetAddonsConfigRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetAddonsConfigRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.AddonsRequest

CompleteIpRotation(CompleteIPRotationRequest, string, string, string)

Completes master IP rotation.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.CompleteIpRotationRequest CompleteIpRotation(CompleteIPRotationRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
CompleteIPRotationRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.CompleteIpRotationRequest

Create(CreateClusterRequest, string, string)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's default network. One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.CreateRequest Create(CreateClusterRequest body, string projectId, string zone)
Parameters
Type Name Description
CreateClusterRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.CreateRequest

Delete(string, string, string)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.DeleteRequest Delete(string projectId, string zone, string clusterId)
Parameters
Type Name Description
string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to delete. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.DeleteRequest

FetchClusterUpgradeInfo(string)

Fetch upgrade information of a specific cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.FetchClusterUpgradeInfoRequest FetchClusterUpgradeInfo(string name)
Parameters
Type Name Description
string name

Required. The name (project, location, cluster) of the cluster to get. Specified in the format projects/*/locations/*/clusters/* or projects/*/zones/*/clusters/*.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.FetchClusterUpgradeInfoRequest

Get(string, string, string)

Gets the details for a specific cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.GetRequest Get(string projectId, string zone, string clusterId)
Parameters
Type Name Description
string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to retrieve. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.GetRequest

LegacyAbac(SetLegacyAbacRequest, string, string, string)

Enables or disables the ABAC authorization mechanism on a cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.LegacyAbacRequest LegacyAbac(SetLegacyAbacRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetLegacyAbacRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.LegacyAbacRequest

List(string, string)

Lists all clusters owned by a project in either the specified zone or all zones.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.ListRequest List(string projectId, string zone)
Parameters
Type Name Description
string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides, or "-" for all zones. This field has been deprecated and replaced by the parent field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.ListRequest

Locations(SetLocationsRequest, string, string, string)

Sets the locations for a specific cluster. Deprecated. Use projects.locations.clusters.update instead.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.LocationsRequest Locations(SetLocationsRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetLocationsRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.LocationsRequest

Logging(SetLoggingServiceRequest, string, string, string)

Sets the logging service for a specific cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.LoggingRequest Logging(SetLoggingServiceRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetLoggingServiceRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.LoggingRequest

Master(UpdateMasterRequest, string, string, string)

Updates the master for a specific cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.MasterRequest Master(UpdateMasterRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
UpdateMasterRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.MasterRequest

Monitoring(SetMonitoringServiceRequest, string, string, string)

Sets the monitoring service for a specific cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.MonitoringRequest Monitoring(SetMonitoringServiceRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetMonitoringServiceRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.MonitoringRequest

ResourceLabels(SetLabelsRequest, string, string, string)

Sets labels on a cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.ResourceLabelsRequest ResourceLabels(SetLabelsRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetLabelsRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.ResourceLabelsRequest

SetMaintenancePolicy(SetMaintenancePolicyRequest, string, string, string)

Sets the maintenance policy for a cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.SetMaintenancePolicyRequest SetMaintenancePolicy(SetMaintenancePolicyRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetMaintenancePolicyRequest body

The body of the request.

string projectId

Required. The Google Developers Console project ID or project number.

string zone

Required. The name of the Google Compute Engine zone in which the cluster resides.

string clusterId

Required. The name of the cluster to update.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.SetMaintenancePolicyRequest

SetMasterAuth(SetMasterAuthRequest, string, string, string)

Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.SetMasterAuthRequest SetMasterAuth(SetMasterAuthRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetMasterAuthRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.SetMasterAuthRequest

SetNetworkPolicy(SetNetworkPolicyRequest, string, string, string)

Enables or disables Network Policy for a cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.SetNetworkPolicyRequest SetNetworkPolicy(SetNetworkPolicyRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
SetNetworkPolicyRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.SetNetworkPolicyRequest

StartIpRotation(StartIPRotationRequest, string, string, string)

Starts master IP rotation.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.StartIpRotationRequest StartIpRotation(StartIPRotationRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
StartIPRotationRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.StartIpRotationRequest

Update(UpdateClusterRequest, string, string, string)

Updates the settings for a specific cluster.

Declaration
public virtual ProjectsResource.ZonesResource.ClustersResource.UpdateRequest Update(UpdateClusterRequest body, string projectId, string zone, string clusterId)
Parameters
Type Name Description
UpdateClusterRequest body

The body of the request.

string projectId

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string zone

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string clusterId

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

Returns
Type Description
ProjectsResource.ZonesResource.ClustersResource.UpdateRequest
In this article
Back to top Generated by DocFX