Constructor
new ClusterManagerClient(optionsopt)
Construct an instance of ClusterManagerClient.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
The configuration object. See the subsequent parameters for more details. Properties
|
- Source:
Members
(static) apiEndpoint
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
- Source:
(static) port
The port for this API service.
- Source:
(static) scopes
The scopes needed to make gRPC calls for every method defined in this service.
- Source:
(static) servicePath
The DNS address for this API service.
- Source:
Methods
cancelOperation(request, optionsopt, callbackopt) → {Promise}
Cancels the specified operation.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const operationId = '';
const request = {
projectId: projectId,
zone: zone,
operationId: operationId,
};
client.cancelOperation(request).catch(err => {
console.error(err);
});
completeIPRotation(request, optionsopt, callbackopt) → {Promise}
Completes master IP rotation.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
};
client.completeIPRotation(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
createCluster(request, optionsopt, callbackopt) → {Promise}
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 cluster 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 is being used by the cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const cluster = {};
const request = {
projectId: projectId,
zone: zone,
cluster: cluster,
};
client.createCluster(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
createNodePool(request, optionsopt, callbackopt) → {Promise}
Creates a node pool for a cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const nodePool = {};
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
nodePool: nodePool,
};
client.createNodePool(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
deleteCluster(request, optionsopt, callbackopt) → {Promise}
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 (e.g. load balancer resources) will not be deleted if they weren't present at the initial create time.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
};
client.deleteCluster(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
deleteNodePool(request, optionsopt, callbackopt) → {Promise}
Deletes a node pool from a cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const nodePoolId = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
nodePoolId: nodePoolId,
};
client.deleteNodePool(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
getCluster(request, optionsopt, callbackopt) → {Promise}
Gets the details of a specific cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Cluster. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
};
client.getCluster(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
getNodePool(request, optionsopt, callbackopt) → {Promise}
Retrieves the node pool requested.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing NodePool. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const nodePoolId = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
nodePoolId: nodePoolId,
};
client.getNodePool(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
getOperation(request, optionsopt, callbackopt) → {Promise}
Gets the specified operation.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const operationId = '';
const request = {
projectId: projectId,
zone: zone,
operationId: operationId,
};
client.getOperation(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
getProjectId(callback)
Return the project ID used by this class.
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function |
the callback to be called with the current project Id. |
- Source:
getServerConfig(request, optionsopt, callbackopt) → {Promise}
Returns configuration info about the Kubernetes Engine service.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing ServerConfig. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const request = {
projectId: projectId,
zone: zone,
};
client.getServerConfig(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
listClusters(request, optionsopt, callbackopt) → {Promise}
Lists all clusters owned by a project in either the specified zone or all zones.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing ListClustersResponse. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const request = {
projectId: projectId,
zone: zone,
};
client.listClusters(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
listNodePools(request, optionsopt, callbackopt) → {Promise}
Lists the node pools for a cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing ListNodePoolsResponse. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
};
client.listNodePools(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
listOperations(request, optionsopt, callbackopt) → {Promise}
Lists all operations in a project in a specific zone or all zones.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing ListOperationsResponse. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const request = {
projectId: projectId,
zone: zone,
};
client.listOperations(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
rollbackNodePoolUpgrade(request, optionsopt, callbackopt) → {Promise}
Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const nodePoolId = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
nodePoolId: nodePoolId,
};
client.rollbackNodePoolUpgrade(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setAddonsConfig(request, optionsopt, callbackopt) → {Promise}
Sets the addons for a specific cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const addonsConfig = {};
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
addonsConfig: addonsConfig,
};
client.setAddonsConfig(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setLabels(request, optionsopt, callbackopt) → {Promise}
Sets labels on a cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const resourceLabels = {};
const labelFingerprint = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
resourceLabels: resourceLabels,
labelFingerprint: labelFingerprint,
};
client.setLabels(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setLegacyAbac(request, optionsopt, callbackopt) → {Promise}
Enables or disables the ABAC authorization mechanism on a cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const enabled = false;
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
enabled: enabled,
};
client.setLegacyAbac(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setLocations(request, optionsopt, callbackopt) → {Promise}
Sets the locations for a specific cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const locations = [];
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
locations: locations,
};
client.setLocations(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setLoggingService(request, optionsopt, callbackopt) → {Promise}
Sets the logging service for a specific cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const loggingService = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
loggingService: loggingService,
};
client.setLoggingService(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setMaintenancePolicy(request, optionsopt, callbackopt) → {Promise}
Sets the maintenance policy for a cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const maintenancePolicy = {};
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
maintenancePolicy: maintenancePolicy,
};
client.setMaintenancePolicy(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setMasterAuth(request, optionsopt, callbackopt) → {Promise}
Used to set master auth materials. Currently supports :- Changing the admin password for a specific cluster. This can be either via password generation or explicitly set the password.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const action = 'UNKNOWN';
const update = {};
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
action: action,
update: update,
};
client.setMasterAuth(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setMonitoringService(request, optionsopt, callbackopt) → {Promise}
Sets the monitoring service for a specific cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const monitoringService = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
monitoringService: monitoringService,
};
client.setMonitoringService(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setNetworkPolicy(request, optionsopt, callbackopt) → {Promise}
Enables/Disables Network Policy for a cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const networkPolicy = {};
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
networkPolicy: networkPolicy,
};
client.setNetworkPolicy(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setNodePoolAutoscaling(request, optionsopt, callbackopt) → {Promise}
Sets the autoscaling settings for a specific node pool.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const nodePoolId = '';
const autoscaling = {};
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
nodePoolId: nodePoolId,
autoscaling: autoscaling,
};
client.setNodePoolAutoscaling(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setNodePoolManagement(request, optionsopt, callbackopt) → {Promise}
Sets the NodeManagement options for a node pool.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const nodePoolId = '';
const management = {};
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
nodePoolId: nodePoolId,
management: management,
};
client.setNodePoolManagement(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
setNodePoolSize(request, optionsopt, callbackopt) → {Promise}
Sets the size for a specific node pool.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const nodePoolId = '';
const nodeCount = 0;
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
nodePoolId: nodePoolId,
nodeCount: nodeCount,
};
client.setNodePoolSize(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
startIPRotation(request, optionsopt, callbackopt) → {Promise}
Start master IP rotation.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
};
client.startIPRotation(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
updateCluster(request, optionsopt, callbackopt) → {Promise}
Updates the settings of a specific cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const update = {};
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
update: update,
};
client.updateCluster(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
updateMaster(request, optionsopt, callbackopt) → {Promise}
Updates the master for a specific cluster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const masterVersion = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
masterVersion: masterVersion,
};
client.updateMaster(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});
updateNodePool(request, optionsopt, callbackopt) → {Promise}
Updates the version and/or image type for a specific node pool.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||||||||||||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Operation. |
- Source:
Example
const container = require('@google-cloud/container');
const client = new container.v1.ClusterManagerClient({
// optional auth parameters.
});
const projectId = '';
const zone = '';
const clusterId = '';
const nodePoolId = '';
const nodeVersion = '';
const imageType = '';
const request = {
projectId: projectId,
zone: zone,
clusterId: clusterId,
nodePoolId: nodePoolId,
nodeVersion: nodeVersion,
imageType: imageType,
};
client.updateNodePool(request)
.then(responses => {
const response = responses[0];
// doThingsWith(response)
})
.catch(err => {
console.error(err);
});