gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $projects = $containerService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Container_Resource_Projects');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
/**
* The "aggregated" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $aggregated = $containerService->projects_aggregated;
* </code>
*/
class ProjectsAggregated extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAggregated::class, 'Google_Service_Container_Resource_ProjectsAggregated');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\ListUsableSubnetworksResponse;
/**
* The "usableSubnetworks" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $usableSubnetworks = $containerService->projects_aggregated_usableSubnetworks;
* </code>
*/
class ProjectsAggregatedUsableSubnetworks extends \Google\Service\Resource
{
/**
* Lists subnetworks that are usable for creating clusters in a project.
* (usableSubnetworks.listProjectsAggregatedUsableSubnetworks)
*
* @param string $parent The parent project where subnetworks are usable.
* Specified in the format `projects`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering currently only supports equality on the
* networkProjectId and must be in the form: "networkProjectId=[PROJECTID]",
* where `networkProjectId` is the project which owns the listed subnetworks.
* This defaults to the parent project ID.
* @opt_param int pageSize The max number of results per page that should be
* returned. If the number of available results is larger than `page_size`, a
* `next_page_token` is returned which can be used to get the next page of
* results in subsequent requests. Acceptable values are 0 to 500, inclusive.
* (Default: 500)
* @opt_param string pageToken Specifies a page token to use. Set this to the
* nextPageToken returned by previous list requests to get the next page of
* results.
* @return ListUsableSubnetworksResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAggregatedUsableSubnetworks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUsableSubnetworksResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAggregatedUsableSubnetworks::class, 'Google_Service_Container_Resource_ProjectsAggregatedUsableSubnetworks');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\ServerConfig;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $locations = $containerService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Returns configuration info about the Google Kubernetes Engine service.
* (locations.getServerConfig)
*
* @param string $name The name (project and location) of the server config to
* get, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) to return
* operations for. This field has been deprecated and replaced by the name
* field.
* @return ServerConfig
* @throws \Google\Service\Exception
*/
public function getServerConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getServerConfig', [$params], ServerConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Container_Resource_ProjectsLocations');
@@ -0,0 +1,427 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\CheckAutopilotCompatibilityResponse;
use Google\Service\Container\Cluster;
use Google\Service\Container\ClusterUpgradeInfo;
use Google\Service\Container\CompleteIPRotationRequest;
use Google\Service\Container\CreateClusterRequest;
use Google\Service\Container\GetJSONWebKeysResponse;
use Google\Service\Container\ListClustersResponse;
use Google\Service\Container\Operation;
use Google\Service\Container\SetAddonsConfigRequest;
use Google\Service\Container\SetLabelsRequest;
use Google\Service\Container\SetLegacyAbacRequest;
use Google\Service\Container\SetLocationsRequest;
use Google\Service\Container\SetLoggingServiceRequest;
use Google\Service\Container\SetMaintenancePolicyRequest;
use Google\Service\Container\SetMasterAuthRequest;
use Google\Service\Container\SetMonitoringServiceRequest;
use Google\Service\Container\SetNetworkPolicyRequest;
use Google\Service\Container\StartIPRotationRequest;
use Google\Service\Container\UpdateClusterRequest;
use Google\Service\Container\UpdateMasterRequest;
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $clusters = $containerService->projects_locations_clusters;
* </code>
*/
class ProjectsLocationsClusters extends \Google\Service\Resource
{
/**
* Checks the cluster compatibility with Autopilot mode, and returns a list of
* compatibility issues. (clusters.checkAutopilotCompatibility)
*
* @param string $name The name (project, location, cluster) of the cluster to
* retrieve. Specified in the format `projects/locations/clusters`.
* @param array $optParams Optional parameters.
* @return CheckAutopilotCompatibilityResponse
* @throws \Google\Service\Exception
*/
public function checkAutopilotCompatibility($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('checkAutopilotCompatibility', [$params], CheckAutopilotCompatibilityResponse::class);
}
/**
* Completes master IP rotation. (clusters.completeIpRotation)
*
* @param string $name The name (project, location, cluster name) of the cluster
* to complete IP rotation. Specified in the format
* `projects/locations/clusters`.
* @param CompleteIPRotationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function completeIpRotation($name, CompleteIPRotationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('completeIpRotation', [$params], Operation::class);
}
/**
* 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](https://cloud.google.com/compute/docs/networks-and-
* firewalls#networks). 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. (clusters.create)
*
* @param string $parent The parent (project and location) where the cluster
* will be created. Specified in the format `projects/locations`.
* @param CreateClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, CreateClusterRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* 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. (clusters.delete)
*
* @param string $name The name (project, location, cluster) of the cluster to
* delete. Specified in the format `projects/locations/clusters`.
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Deprecated. The name of the cluster to delete.
* This field has been deprecated and replaced by the name field.
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Fetch upgrade information of a specific cluster.
* (clusters.fetchClusterUpgradeInfo)
*
* @param string $name Required. The name (project, location, cluster) of the
* cluster to get. Specified in the format `projects/locations/clusters` or
* `projects/zones/clusters`.
* @param array $optParams Optional parameters.
*
* @opt_param string version API request version that initiates this operation.
* @return ClusterUpgradeInfo
* @throws \Google\Service\Exception
*/
public function fetchClusterUpgradeInfo($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('fetchClusterUpgradeInfo', [$params], ClusterUpgradeInfo::class);
}
/**
* Gets the details of a specific cluster. (clusters.get)
*
* @param string $name The name (project, location, cluster) of the cluster to
* retrieve. Specified in the format `projects/locations/clusters`.
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Deprecated. The name of the cluster to retrieve.
* This field has been deprecated and replaced by the name field.
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @return Cluster
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Cluster::class);
}
/**
* Gets the public component of the cluster signing keys in JSON Web Key format.
* (clusters.getJwks)
*
* @param string $parent The cluster (project, location, cluster name) to get
* keys for. Specified in the format `projects/locations/clusters`.
* @param array $optParams Optional parameters.
* @return GetJSONWebKeysResponse
* @throws \Google\Service\Exception
*/
public function getJwks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('getJwks', [$params], GetJSONWebKeysResponse::class);
}
/**
* Lists all clusters owned by a project in either the specified zone or all
* zones. (clusters.listProjectsLocationsClusters)
*
* @param string $parent The parent (project and location) where the clusters
* will be listed. Specified in the format `projects/locations`. Location "-"
* matches all zones and all regions.
* @param array $optParams Optional parameters.
*
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the parent field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides, or "-" for all zones. This field has been deprecated and
* replaced by the parent field.
* @return ListClustersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClusters($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClustersResponse::class);
}
/**
* Sets the addons for a specific cluster. (clusters.setAddons)
*
* @param string $name The name (project, location, cluster) of the cluster to
* set addons. Specified in the format `projects/locations/clusters`.
* @param SetAddonsConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setAddons($name, SetAddonsConfigRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setAddons', [$params], Operation::class);
}
/**
* Enables or disables the ABAC authorization mechanism on a cluster.
* (clusters.setLegacyAbac)
*
* @param string $name The name (project, location, cluster name) of the cluster
* to set legacy abac. Specified in the format `projects/locations/clusters`.
* @param SetLegacyAbacRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setLegacyAbac($name, SetLegacyAbacRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setLegacyAbac', [$params], Operation::class);
}
/**
* Sets the locations for a specific cluster. Deprecated. Use
* [projects.locations.clusters.update](https://cloud.google.com/kubernetes-
* engine/docs/reference/rest/v1/projects.locations.clusters/update) instead.
* (clusters.setLocations)
*
* @param string $name The name (project, location, cluster) of the cluster to
* set locations. Specified in the format `projects/locations/clusters`.
* @param SetLocationsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setLocations($name, SetLocationsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setLocations', [$params], Operation::class);
}
/**
* Sets the logging service for a specific cluster. (clusters.setLogging)
*
* @param string $name The name (project, location, cluster) of the cluster to
* set logging. Specified in the format `projects/locations/clusters`.
* @param SetLoggingServiceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setLogging($name, SetLoggingServiceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setLogging', [$params], Operation::class);
}
/**
* Sets the maintenance policy for a cluster. (clusters.setMaintenancePolicy)
*
* @param string $name The name (project, location, cluster name) of the cluster
* to set maintenance policy. Specified in the format
* `projects/locations/clusters`.
* @param SetMaintenancePolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setMaintenancePolicy($name, SetMaintenancePolicyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setMaintenancePolicy', [$params], Operation::class);
}
/**
* Sets master auth materials. Currently supports changing the admin password or
* a specific cluster, either via password generation or explicitly setting the
* password. (clusters.setMasterAuth)
*
* @param string $name The name (project, location, cluster) of the cluster to
* set auth. Specified in the format `projects/locations/clusters`.
* @param SetMasterAuthRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setMasterAuth($name, SetMasterAuthRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setMasterAuth', [$params], Operation::class);
}
/**
* Sets the monitoring service for a specific cluster. (clusters.setMonitoring)
*
* @param string $name The name (project, location, cluster) of the cluster to
* set monitoring. Specified in the format `projects/locations/clusters`.
* @param SetMonitoringServiceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setMonitoring($name, SetMonitoringServiceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setMonitoring', [$params], Operation::class);
}
/**
* Enables or disables Network Policy for a cluster. (clusters.setNetworkPolicy)
*
* @param string $name The name (project, location, cluster name) of the cluster
* to set networking policy. Specified in the format
* `projects/locations/clusters`.
* @param SetNetworkPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setNetworkPolicy($name, SetNetworkPolicyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setNetworkPolicy', [$params], Operation::class);
}
/**
* Sets labels on a cluster. (clusters.setResourceLabels)
*
* @param string $name The name (project, location, cluster name) of the cluster
* to set labels. Specified in the format `projects/locations/clusters`.
* @param SetLabelsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setResourceLabels($name, SetLabelsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setResourceLabels', [$params], Operation::class);
}
/**
* Starts master IP rotation. (clusters.startIpRotation)
*
* @param string $name The name (project, location, cluster name) of the cluster
* to start IP rotation. Specified in the format `projects/locations/clusters`.
* @param StartIPRotationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function startIpRotation($name, StartIPRotationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('startIpRotation', [$params], Operation::class);
}
/**
* Updates the settings of a specific cluster. (clusters.update)
*
* @param string $name The name (project, location, cluster) of the cluster to
* update. Specified in the format `projects/locations/clusters`.
* @param UpdateClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($name, UpdateClusterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
/**
* Updates the master for a specific cluster. (clusters.updateMaster)
*
* @param string $name The name (project, location, cluster) of the cluster to
* update. Specified in the format `projects/locations/clusters`.
* @param UpdateMasterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateMaster($name, UpdateMasterRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateMaster', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClusters::class, 'Google_Service_Container_Resource_ProjectsLocationsClusters');
@@ -0,0 +1,277 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\CompleteNodePoolUpgradeRequest;
use Google\Service\Container\ContainerEmpty;
use Google\Service\Container\CreateNodePoolRequest;
use Google\Service\Container\ListNodePoolsResponse;
use Google\Service\Container\NodePool;
use Google\Service\Container\NodePoolUpgradeInfo;
use Google\Service\Container\Operation;
use Google\Service\Container\RollbackNodePoolUpgradeRequest;
use Google\Service\Container\SetNodePoolAutoscalingRequest;
use Google\Service\Container\SetNodePoolManagementRequest;
use Google\Service\Container\SetNodePoolSizeRequest;
use Google\Service\Container\UpdateNodePoolRequest;
/**
* The "nodePools" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $nodePools = $containerService->projects_locations_clusters_nodePools;
* </code>
*/
class ProjectsLocationsClustersNodePools extends \Google\Service\Resource
{
/**
* CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
* complete. (nodePools.completeUpgrade)
*
* @param string $name The name (project, location, cluster, node pool id) of
* the node pool to complete upgrade. Specified in the format
* `projects/locations/clusters/nodePools`.
* @param CompleteNodePoolUpgradeRequest $postBody
* @param array $optParams Optional parameters.
* @return ContainerEmpty
* @throws \Google\Service\Exception
*/
public function completeUpgrade($name, CompleteNodePoolUpgradeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('completeUpgrade', [$params], ContainerEmpty::class);
}
/**
* Creates a node pool for a cluster. (nodePools.create)
*
* @param string $parent The parent (project, location, cluster name) where the
* node pool will be created. Specified in the format
* `projects/locations/clusters`.
* @param CreateNodePoolRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, CreateNodePoolRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a node pool from a cluster. (nodePools.delete)
*
* @param string $name The name (project, location, cluster, node pool id) of
* the node pool to delete. Specified in the format
* `projects/locations/clusters/nodePools`.
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Deprecated. The name of the cluster. This field
* has been deprecated and replaced by the name field.
* @opt_param string nodePoolId Deprecated. The name of the node pool to delete.
* This field has been deprecated and replaced by the name field.
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Fetch upgrade information of a specific node pool.
* (nodePools.fetchNodePoolUpgradeInfo)
*
* @param string $name Required. The name (project, location, cluster, node
* pool) of the node pool to get. Specified in the format
* `projects/locations/clusters/nodePools` or
* `projects/zones/clusters/nodePools`.
* @param array $optParams Optional parameters.
*
* @opt_param string version API request version that initiates this operation.
* @return NodePoolUpgradeInfo
* @throws \Google\Service\Exception
*/
public function fetchNodePoolUpgradeInfo($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('fetchNodePoolUpgradeInfo', [$params], NodePoolUpgradeInfo::class);
}
/**
* Retrieves the requested node pool. (nodePools.get)
*
* @param string $name The name (project, location, cluster, node pool id) of
* the node pool to get. Specified in the format
* `projects/locations/clusters/nodePools`.
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Deprecated. The name of the cluster. This field
* has been deprecated and replaced by the name field.
* @opt_param string nodePoolId Deprecated. The name of the node pool. This
* field has been deprecated and replaced by the name field.
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @return NodePool
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], NodePool::class);
}
/**
* Lists the node pools for a cluster.
* (nodePools.listProjectsLocationsClustersNodePools)
*
* @param string $parent The parent (project, location, cluster name) where the
* node pools will be listed. Specified in the format
* `projects/locations/clusters`.
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Deprecated. The name of the cluster. This field
* has been deprecated and replaced by the parent field.
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the parent field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the parent
* field.
* @return ListNodePoolsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsClustersNodePools($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListNodePoolsResponse::class);
}
/**
* Rolls back a previously Aborted or Failed NodePool upgrade. This makes no
* changes if the last upgrade successfully completed. (nodePools.rollback)
*
* @param string $name The name (project, location, cluster, node pool id) of
* the node poll to rollback upgrade. Specified in the format
* `projects/locations/clusters/nodePools`.
* @param RollbackNodePoolUpgradeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function rollback($name, RollbackNodePoolUpgradeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rollback', [$params], Operation::class);
}
/**
* Sets the autoscaling settings for the specified node pool.
* (nodePools.setAutoscaling)
*
* @param string $name The name (project, location, cluster, node pool) of the
* node pool to set autoscaler settings. Specified in the format
* `projects/locations/clusters/nodePools`.
* @param SetNodePoolAutoscalingRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setAutoscaling($name, SetNodePoolAutoscalingRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setAutoscaling', [$params], Operation::class);
}
/**
* Sets the NodeManagement options for a node pool. (nodePools.setManagement)
*
* @param string $name The name (project, location, cluster, node pool id) of
* the node pool to set management properties. Specified in the format
* `projects/locations/clusters/nodePools`.
* @param SetNodePoolManagementRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setManagement($name, SetNodePoolManagementRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setManagement', [$params], Operation::class);
}
/**
* Sets the size for a specific node pool. The new size will be used for all
* replicas, including future replicas created by modifying NodePool.locations.
* (nodePools.setSize)
*
* @param string $name The name (project, location, cluster, node pool id) of
* the node pool to set size. Specified in the format
* `projects/locations/clusters/nodePools`.
* @param SetNodePoolSizeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setSize($name, SetNodePoolSizeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setSize', [$params], Operation::class);
}
/**
* Updates the version and/or image type for the specified node pool.
* (nodePools.update)
*
* @param string $name The name (project, location, cluster, node pool) of the
* node pool to update. Specified in the format
* `projects/locations/clusters/nodePools`.
* @param UpdateNodePoolRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($name, UpdateNodePoolRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClustersNodePools::class, 'Google_Service_Container_Resource_ProjectsLocationsClustersNodePools');
@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\GetOpenIDConfigResponse;
/**
* The "well-known" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $well_known = $containerService->projects_locations_clusters_well_known;
* </code>
*/
class ProjectsLocationsClustersWellKnown extends \Google\Service\Resource
{
/**
* Gets the OIDC discovery document for the cluster. See the [OpenID Connect
* Discovery 1.0 specification](https://openid.net/specs/openid-connect-
* discovery-1_0.html) for details. (well-known.getOpenidConfiguration)
*
* @param string $parent The cluster (project, location, cluster name) to get
* the discovery document for. Specified in the format
* `projects/locations/clusters`.
* @param array $optParams Optional parameters.
* @return GetOpenIDConfigResponse
* @throws \Google\Service\Exception
*/
public function getOpenidConfiguration($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('getOpenid-configuration', [$params], GetOpenIDConfigResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClustersWellKnown::class, 'Google_Service_Container_Resource_ProjectsLocationsClustersWellKnown');
@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\CancelOperationRequest;
use Google\Service\Container\ContainerEmpty;
use Google\Service\Container\ListOperationsResponse;
use Google\Service\Container\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $operations = $containerService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Cancels the specified operation. (operations.cancel)
*
* @param string $name The name (project, location, operation id) of the
* operation to cancel. Specified in the format `projects/locations/operations`.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return ContainerEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], ContainerEmpty::class);
}
/**
* Gets the specified operation. (operations.get)
*
* @param string $name The name (project, location, operation id) of the
* operation to get. Specified in the format `projects/locations/operations`.
* @param array $optParams Optional parameters.
*
* @opt_param string operationId Deprecated. The server-assigned `name` of the
* operation. This field has been deprecated and replaced by the name field.
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists all operations in a project in a specific zone or all zones.
* (operations.listProjectsLocationsOperations)
*
* @param string $parent The parent (project and location) where the operations
* will be listed. Specified in the format `projects/locations`. Location "-"
* matches all zones and all regions.
* @param array $optParams Optional parameters.
*
* @opt_param string projectId Deprecated. The Google Developers Console
* [project ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the parent field.
* @opt_param string zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) to return
* operations for, or `-` for all zones. This field has been deprecated and
* replaced by the parent field.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_Container_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\ServerConfig;
/**
* The "zones" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $zones = $containerService->projects_zones;
* </code>
*/
class ProjectsZones extends \Google\Service\Resource
{
/**
* Returns configuration info about the Google Kubernetes Engine service.
* (zones.getServerconfig)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) to return
* operations for. This field has been deprecated and replaced by the name
* field.
* @param array $optParams Optional parameters.
*
* @opt_param string name The name (project and location) of the server config
* to get, specified in the format `projects/locations`.
* @return ServerConfig
* @throws \Google\Service\Exception
*/
public function getServerconfig($projectId, $zone, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone];
$params = array_merge($params, $optParams);
return $this->call('getServerconfig', [$params], ServerConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsZones::class, 'Google_Service_Container_Resource_ProjectsZones');
@@ -0,0 +1,497 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\Cluster;
use Google\Service\Container\ClusterUpgradeInfo;
use Google\Service\Container\CompleteIPRotationRequest;
use Google\Service\Container\CreateClusterRequest;
use Google\Service\Container\ListClustersResponse;
use Google\Service\Container\Operation;
use Google\Service\Container\SetAddonsConfigRequest;
use Google\Service\Container\SetLabelsRequest;
use Google\Service\Container\SetLegacyAbacRequest;
use Google\Service\Container\SetLocationsRequest;
use Google\Service\Container\SetLoggingServiceRequest;
use Google\Service\Container\SetMaintenancePolicyRequest;
use Google\Service\Container\SetMasterAuthRequest;
use Google\Service\Container\SetMonitoringServiceRequest;
use Google\Service\Container\SetNetworkPolicyRequest;
use Google\Service\Container\StartIPRotationRequest;
use Google\Service\Container\UpdateClusterRequest;
use Google\Service\Container\UpdateMasterRequest;
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $clusters = $containerService->projects_zones_clusters;
* </code>
*/
class ProjectsZonesClusters extends \Google\Service\Resource
{
/**
* Sets the addons for a specific cluster. (clusters.addons)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param SetAddonsConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addons($projectId, $zone, $clusterId, SetAddonsConfigRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addons', [$params], Operation::class);
}
/**
* Completes master IP rotation. (clusters.completeIpRotation)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster. This field has
* been deprecated and replaced by the name field.
* @param CompleteIPRotationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function completeIpRotation($projectId, $zone, $clusterId, CompleteIPRotationRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('completeIpRotation', [$params], Operation::class);
}
/**
* 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](https://cloud.google.com/compute/docs/networks-and-
* firewalls#networks). 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. (clusters.create)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the parent field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the parent
* field.
* @param CreateClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($projectId, $zone, CreateClusterRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* 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. (clusters.delete)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to delete. This
* field has been deprecated and replaced by the name field.
* @param array $optParams Optional parameters.
*
* @opt_param string name The name (project, location, cluster) of the cluster
* to delete. Specified in the format `projects/locations/clusters`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($projectId, $zone, $clusterId, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Fetch upgrade information of a specific cluster.
* (clusters.fetchClusterUpgradeInfo)
*
* @param string $name Required. The name (project, location, cluster) of the
* cluster to get. Specified in the format `projects/locations/clusters` or
* `projects/zones/clusters`.
* @param array $optParams Optional parameters.
*
* @opt_param string version API request version that initiates this operation.
* @return ClusterUpgradeInfo
* @throws \Google\Service\Exception
*/
public function fetchClusterUpgradeInfo($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('fetchClusterUpgradeInfo', [$params], ClusterUpgradeInfo::class);
}
/**
* Gets the details of a specific cluster. (clusters.get)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to retrieve.
* This field has been deprecated and replaced by the name field.
* @param array $optParams Optional parameters.
*
* @opt_param string name The name (project, location, cluster) of the cluster
* to retrieve. Specified in the format `projects/locations/clusters`.
* @return Cluster
* @throws \Google\Service\Exception
*/
public function get($projectId, $zone, $clusterId, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Cluster::class);
}
/**
* Enables or disables the ABAC authorization mechanism on a cluster.
* (clusters.legacyAbac)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to update. This
* field has been deprecated and replaced by the name field.
* @param SetLegacyAbacRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function legacyAbac($projectId, $zone, $clusterId, SetLegacyAbacRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('legacyAbac', [$params], Operation::class);
}
/**
* Lists all clusters owned by a project in either the specified zone or all
* zones. (clusters.listProjectsZonesClusters)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the parent field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides, or "-" for all zones. This field has been deprecated and
* replaced by the parent field.
* @param array $optParams Optional parameters.
*
* @opt_param string parent The parent (project and location) where the clusters
* will be listed. Specified in the format `projects/locations`. Location "-"
* matches all zones and all regions.
* @return ListClustersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsZonesClusters($projectId, $zone, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClustersResponse::class);
}
/**
* Sets the locations for a specific cluster. Deprecated. Use
* [projects.locations.clusters.update](https://cloud.google.com/kubernetes-
* engine/docs/reference/rest/v1/projects.locations.clusters/update) instead.
* (clusters.locations)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param SetLocationsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function locations($projectId, $zone, $clusterId, SetLocationsRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('locations', [$params], Operation::class);
}
/**
* Sets the logging service for a specific cluster. (clusters.logging)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param SetLoggingServiceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function logging($projectId, $zone, $clusterId, SetLoggingServiceRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('logging', [$params], Operation::class);
}
/**
* Updates the master for a specific cluster. (clusters.master)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param UpdateMasterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function master($projectId, $zone, $clusterId, UpdateMasterRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('master', [$params], Operation::class);
}
/**
* Sets the monitoring service for a specific cluster. (clusters.monitoring)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param SetMonitoringServiceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function monitoring($projectId, $zone, $clusterId, SetMonitoringServiceRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('monitoring', [$params], Operation::class);
}
/**
* Sets labels on a cluster. (clusters.resourceLabels)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster. This field has
* been deprecated and replaced by the name field.
* @param SetLabelsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function resourceLabels($projectId, $zone, $clusterId, SetLabelsRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resourceLabels', [$params], Operation::class);
}
/**
* Sets the maintenance policy for a cluster. (clusters.setMaintenancePolicy)
*
* @param string $projectId Required. The Google Developers Console [project ID
* or project number](https://cloud.google.com/resource-manager/docs/creating-
* managing-projects).
* @param string $zone Required. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides.
* @param string $clusterId Required. The name of the cluster to update.
* @param SetMaintenancePolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setMaintenancePolicy($projectId, $zone, $clusterId, SetMaintenancePolicyRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setMaintenancePolicy', [$params], Operation::class);
}
/**
* Sets master auth materials. Currently supports changing the admin password or
* a specific cluster, either via password generation or explicitly setting the
* password. (clusters.setMasterAuth)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param SetMasterAuthRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setMasterAuth($projectId, $zone, $clusterId, SetMasterAuthRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setMasterAuth', [$params], Operation::class);
}
/**
* Enables or disables Network Policy for a cluster. (clusters.setNetworkPolicy)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster. This field has
* been deprecated and replaced by the name field.
* @param SetNetworkPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setNetworkPolicy($projectId, $zone, $clusterId, SetNetworkPolicyRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setNetworkPolicy', [$params], Operation::class);
}
/**
* Starts master IP rotation. (clusters.startIpRotation)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster. This field has
* been deprecated and replaced by the name field.
* @param StartIPRotationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function startIpRotation($projectId, $zone, $clusterId, StartIPRotationRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('startIpRotation', [$params], Operation::class);
}
/**
* Updates the settings of a specific cluster. (clusters.update)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param UpdateClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($projectId, $zone, $clusterId, UpdateClusterRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsZonesClusters::class, 'Google_Service_Container_Resource_ProjectsZonesClusters');
@@ -0,0 +1,309 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\CreateNodePoolRequest;
use Google\Service\Container\ListNodePoolsResponse;
use Google\Service\Container\NodePool;
use Google\Service\Container\NodePoolUpgradeInfo;
use Google\Service\Container\Operation;
use Google\Service\Container\RollbackNodePoolUpgradeRequest;
use Google\Service\Container\SetNodePoolAutoscalingRequest;
use Google\Service\Container\SetNodePoolManagementRequest;
use Google\Service\Container\SetNodePoolSizeRequest;
use Google\Service\Container\UpdateNodePoolRequest;
/**
* The "nodePools" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $nodePools = $containerService->projects_zones_clusters_nodePools;
* </code>
*/
class ProjectsZonesClustersNodePools extends \Google\Service\Resource
{
/**
* Sets the autoscaling settings for the specified node pool.
* (nodePools.autoscaling)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param string $nodePoolId Deprecated. The name of the node pool to upgrade.
* This field has been deprecated and replaced by the name field.
* @param SetNodePoolAutoscalingRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function autoscaling($projectId, $zone, $clusterId, $nodePoolId, SetNodePoolAutoscalingRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('autoscaling', [$params], Operation::class);
}
/**
* Creates a node pool for a cluster. (nodePools.create)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the parent field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the parent
* field.
* @param string $clusterId Deprecated. The name of the cluster. This field has
* been deprecated and replaced by the parent field.
* @param CreateNodePoolRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($projectId, $zone, $clusterId, CreateNodePoolRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a node pool from a cluster. (nodePools.delete)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster. This field has
* been deprecated and replaced by the name field.
* @param string $nodePoolId Deprecated. The name of the node pool to delete.
* This field has been deprecated and replaced by the name field.
* @param array $optParams Optional parameters.
*
* @opt_param string name The name (project, location, cluster, node pool id) of
* the node pool to delete. Specified in the format
* `projects/locations/clusters/nodePools`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($projectId, $zone, $clusterId, $nodePoolId, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Fetch upgrade information of a specific node pool.
* (nodePools.fetchNodePoolUpgradeInfo)
*
* @param string $name Required. The name (project, location, cluster, node
* pool) of the node pool to get. Specified in the format
* `projects/locations/clusters/nodePools` or
* `projects/zones/clusters/nodePools`.
* @param array $optParams Optional parameters.
*
* @opt_param string version API request version that initiates this operation.
* @return NodePoolUpgradeInfo
* @throws \Google\Service\Exception
*/
public function fetchNodePoolUpgradeInfo($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('fetchNodePoolUpgradeInfo', [$params], NodePoolUpgradeInfo::class);
}
/**
* Retrieves the requested node pool. (nodePools.get)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster. This field has
* been deprecated and replaced by the name field.
* @param string $nodePoolId Deprecated. The name of the node pool. This field
* has been deprecated and replaced by the name field.
* @param array $optParams Optional parameters.
*
* @opt_param string name The name (project, location, cluster, node pool id) of
* the node pool to get. Specified in the format
* `projects/locations/clusters/nodePools`.
* @return NodePool
* @throws \Google\Service\Exception
*/
public function get($projectId, $zone, $clusterId, $nodePoolId, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], NodePool::class);
}
/**
* Lists the node pools for a cluster.
* (nodePools.listProjectsZonesClustersNodePools)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the parent field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the parent
* field.
* @param string $clusterId Deprecated. The name of the cluster. This field has
* been deprecated and replaced by the parent field.
* @param array $optParams Optional parameters.
*
* @opt_param string parent The parent (project, location, cluster name) where
* the node pools will be listed. Specified in the format
* `projects/locations/clusters`.
* @return ListNodePoolsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsZonesClustersNodePools($projectId, $zone, $clusterId, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListNodePoolsResponse::class);
}
/**
* Rolls back a previously Aborted or Failed NodePool upgrade. This makes no
* changes if the last upgrade successfully completed. (nodePools.rollback)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to rollback.
* This field has been deprecated and replaced by the name field.
* @param string $nodePoolId Deprecated. The name of the node pool to rollback.
* This field has been deprecated and replaced by the name field.
* @param RollbackNodePoolUpgradeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function rollback($projectId, $zone, $clusterId, $nodePoolId, RollbackNodePoolUpgradeRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rollback', [$params], Operation::class);
}
/**
* Sets the NodeManagement options for a node pool. (nodePools.setManagement)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to update. This
* field has been deprecated and replaced by the name field.
* @param string $nodePoolId Deprecated. The name of the node pool to update.
* This field has been deprecated and replaced by the name field.
* @param SetNodePoolManagementRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setManagement($projectId, $zone, $clusterId, $nodePoolId, SetNodePoolManagementRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setManagement', [$params], Operation::class);
}
/**
* Sets the size for a specific node pool. The new size will be used for all
* replicas, including future replicas created by modifying NodePool.locations.
* (nodePools.setSize)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to update. This
* field has been deprecated and replaced by the name field.
* @param string $nodePoolId Deprecated. The name of the node pool to update.
* This field has been deprecated and replaced by the name field.
* @param SetNodePoolSizeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function setSize($projectId, $zone, $clusterId, $nodePoolId, SetNodePoolSizeRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setSize', [$params], Operation::class);
}
/**
* Updates the version and/or image type for the specified node pool.
* (nodePools.update)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $clusterId Deprecated. The name of the cluster to upgrade. This
* field has been deprecated and replaced by the name field.
* @param string $nodePoolId Deprecated. The name of the node pool to upgrade.
* This field has been deprecated and replaced by the name field.
* @param UpdateNodePoolRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($projectId, $zone, $clusterId, $nodePoolId, UpdateNodePoolRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsZonesClustersNodePools::class, 'Google_Service_Container_Resource_ProjectsZonesClustersNodePools');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Container\Resource;
use Google\Service\Container\CancelOperationRequest;
use Google\Service\Container\ContainerEmpty;
use Google\Service\Container\ListOperationsResponse;
use Google\Service\Container\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google\Service\Container(...);
* $operations = $containerService->projects_zones_operations;
* </code>
*/
class ProjectsZonesOperations extends \Google\Service\Resource
{
/**
* Cancels the specified operation. (operations.cancel)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* operation resides. This field has been deprecated and replaced by the name
* field.
* @param string $operationId Deprecated. The server-assigned `name` of the
* operation. This field has been deprecated and replaced by the name field.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return ContainerEmpty
* @throws \Google\Service\Exception
*/
public function cancel($projectId, $zone, $operationId, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'operationId' => $operationId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], ContainerEmpty::class);
}
/**
* Gets the specified operation. (operations.get)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the name field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
* @param string $operationId Deprecated. The server-assigned `name` of the
* operation. This field has been deprecated and replaced by the name field.
* @param array $optParams Optional parameters.
*
* @opt_param string name The name (project, location, operation id) of the
* operation to get. Specified in the format `projects/locations/operations`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($projectId, $zone, $operationId, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone, 'operationId' => $operationId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists all operations in a project in a specific zone or all zones.
* (operations.listProjectsZonesOperations)
*
* @param string $projectId Deprecated. The Google Developers Console [project
* ID or project number](https://cloud.google.com/resource-
* manager/docs/creating-managing-projects). This field has been deprecated and
* replaced by the parent field.
* @param string $zone Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) to return
* operations for, or `-` for all zones. This field has been deprecated and
* replaced by the parent field.
* @param array $optParams Optional parameters.
*
* @opt_param string parent The parent (project and location) where the
* operations will be listed. Specified in the format `projects/locations`.
* Location "-" matches all zones and all regions.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsZonesOperations($projectId, $zone, $optParams = [])
{
$params = ['projectId' => $projectId, 'zone' => $zone];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsZonesOperations::class, 'Google_Service_Container_Resource_ProjectsZonesOperations');