19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_CONTAINER_V1_CLUSTER_MANAGER_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_CONTAINER_V1_CLUSTER_MANAGER_CLIENT_H
22#include "google/cloud/container/v1/cluster_manager_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
34GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
80 return a.connection_ == b.connection_;
115 std::string
const& parent,
Options opts
= {});
147 google::container::v1::ListClustersRequest
const& request,
174 StatusOr<
google::container::v1::Cluster>
GetCluster(std::string
const& name,
206 google::container::v1::GetClusterRequest
const& request,
249 std::string
const& parent,
google::container::v1::Cluster
const& cluster,
294 google::container::v1::CreateClusterRequest
const& request,
323 std::string
const& name,
355 google::container::v1::UpdateClusterRequest
const& request,
387 google::container::v1::UpdateNodePoolRequest
const& request,
419 google::container::v1::SetNodePoolAutoscalingRequest
const& request,
458 std::string
const& name, std::string
const& logging_service,
490 google::container::v1::SetLoggingServiceRequest
const& request,
529 std::string
const& name, std::string
const& monitoring_service,
561 google::container::v1::SetMonitoringServiceRequest
const& request,
591 std::string
const& name,
592 google::container::v1::AddonsConfig
const& addons_config,
624 google::container::v1::SetAddonsConfigRequest
const& request,
662 std::string
const& name, std::vector<std::string>
const& locations,
697 google::container::v1::SetLocationsRequest
const& request,
735 std::string
const& name, std::string
const& master_version,
767 google::container::v1::UpdateMasterRequest
const& request,
801 google::container::v1::SetMasterAuthRequest
const& request,
876 google::container::v1::DeleteClusterRequest
const& request,
908 google::container::v1::ListOperationsRequest
const& request,
967 google::container::v1::GetOperationRequest
const& request,
1019 google::container::v1::CancelOperationRequest
const& request,
1078 google::container::v1::GetServerConfigRequest
const& request,
1113 google::container::v1::GetJSONWebKeysRequest
const& request,
1141 std::string
const& parent,
Options opts
= {});
1172 google::container::v1::ListNodePoolsRequest
const& request,
1232 google::container::v1::GetNodePoolRequest
const& request,
1262 std::string
const& parent,
1294 google::container::v1::CreateNodePoolRequest
const& request,
1354 google::container::v1::DeleteNodePoolRequest
const& request,
1384 google::container::v1::CompleteNodePoolUpgradeRequest
const& request,
1446 google::container::v1::RollbackNodePoolUpgradeRequest
const& request,
1478 google::container::v1::SetNodePoolManagementRequest
const& request,
1510 google::container::v1::SetLabelsRequest
const& request,
1539 std::string
const& name,
bool enabled,
Options opts
= {});
1570 google::container::v1::SetLegacyAbacRequest
const& request,
1629 google::container::v1::StartIPRotationRequest
const& request,
1688 google::container::v1::CompleteIPRotationRequest
const& request,
1723 google::container::v1::SetNodePoolSizeRequest
const& request,
1752 std::string
const& name,
1753 google::container::v1::NetworkPolicy
const& network_policy,
1785 google::container::v1::SetNetworkPolicyRequest
const& request,
1819 std::string
const& project_id, std::string
const& zone,
1820 std::string
const& cluster_id,
1821 google::container::v1::MaintenancePolicy
const& maintenance_policy,
1852 std::string
const& name,
1853 google::container::v1::MaintenancePolicy
const& maintenance_policy,
1885 google::container::v1::SetMaintenancePolicyRequest
const& request,
1926 google::container::v1::ListUsableSubnetworksRequest request,
1958 StatusOr<
google::container::v1::CheckAutopilotCompatibilityResponse>
1960 google::container::v1::CheckAutopilotCompatibilityRequest
const& request,
1968GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Google Kubernetes Engine Cluster Manager v1.
Definition: cluster_manager_client.h:62
StatusOr< google::container::v1::Operation > UpdateCluster(google::container::v1::UpdateClusterRequest const &request, Options opts={})
Updates the settings of a specific cluster.
StatusOr< google::container::v1::Operation > CreateCluster(google::container::v1::CreateClusterRequest const &request, Options opts={})
Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.
StatusOr< google::container::v1::Operation > DeleteCluster(std::string const &name, Options opts={})
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
ClusterManagerClient(std::shared_ptr< ClusterManagerConnection > connection, Options opts={})
StatusOr< google::container::v1::Operation > StartIPRotation(std::string const &name, Options opts={})
Starts master IP rotation.
StatusOr< google::container::v1::Cluster > GetCluster(google::container::v1::GetClusterRequest const &request, Options opts={})
Gets the details of a specific cluster.
friend bool operator!=(ClusterManagerClient const &a, ClusterManagerClient const &b)
Definition: cluster_manager_client.h:82
StatusOr< google::container::v1::Operation > UpdateMaster(google::container::v1::UpdateMasterRequest const &request, Options opts={})
Updates the master for a specific cluster.
friend bool operator==(ClusterManagerClient const &a, ClusterManagerClient const &b)
Definition: cluster_manager_client.h:78
StatusOr< google::container::v1::Operation > SetMonitoringService(std::string const &name, std::string const &monitoring_service, Options opts={})
Sets the monitoring service for a specific cluster.
StatusOr< google::container::v1::Operation > CreateCluster(std::string const &parent, google::container::v1::Cluster const &cluster, Options opts={})
Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.
StatusOr< google::container::v1::Operation > SetLocations(google::container::v1::SetLocationsRequest const &request, Options opts={})
Sets the locations for a specific cluster.
ClusterManagerClient & operator=(ClusterManagerClient const &)=default
StatusOr< google::container::v1::Operation > SetNetworkPolicy(google::container::v1::SetNetworkPolicyRequest const &request, Options opts={})
Enables or disables Network Policy for a cluster.
ClusterManagerClient(ClusterManagerClient const &)=default
Status CancelOperation(std::string const &name, Options opts={})
Cancels the specified operation.
StatusOr< google::container::v1::Operation > SetNodePoolSize(google::container::v1::SetNodePoolSizeRequest const &request, Options opts={})
Sets the size for a specific node pool.
StatusOr< google::container::v1::Operation > UpdateNodePool(google::container::v1::UpdateNodePoolRequest const &request, Options opts={})
Updates the version and/or image type for the specified node pool.
StatusOr< google::container::v1::Operation > DeleteNodePool(google::container::v1::DeleteNodePoolRequest const &request, Options opts={})
Deletes a node pool from a cluster.
StatusOr< google::container::v1::Operation > CreateNodePool(std::string const &parent, google::container::v1::NodePool const &node_pool, Options opts={})
Creates a node pool for a cluster.
StatusOr< google::container::v1::ServerConfig > GetServerConfig(google::container::v1::GetServerConfigRequest const &request, Options opts={})
Returns configuration info about the Google Kubernetes Engine service.
StatusOr< google::container::v1::Operation > CreateNodePool(google::container::v1::CreateNodePoolRequest const &request, Options opts={})
Creates a node pool for a cluster.
StatusOr< google::container::v1::Operation > SetLoggingService(std::string const &name, std::string const &logging_service, Options opts={})
Sets the logging service for a specific cluster.
StatusOr< google::container::v1::ListClustersResponse > ListClusters(google::container::v1::ListClustersRequest const &request, Options opts={})
Lists all clusters owned by a project in either the specified zone or all zones.
StatusOr< google::container::v1::Operation > DeleteCluster(google::container::v1::DeleteClusterRequest const &request, Options opts={})
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
StatusOr< google::container::v1::Operation > SetMonitoringService(google::container::v1::SetMonitoringServiceRequest const &request, Options opts={})
Sets the monitoring service for a specific cluster.
StatusOr< google::container::v1::ListClustersResponse > ListClusters(std::string const &parent, Options opts={})
Lists all clusters owned by a project in either the specified zone or all zones.
StatusOr< google::container::v1::Operation > GetOperation(google::container::v1::GetOperationRequest const &request, Options opts={})
Gets the specified operation.
StatusOr< google::container::v1::Operation > UpdateMaster(std::string const &name, std::string const &master_version, Options opts={})
Updates the master for a specific cluster.
StreamRange< google::container::v1::UsableSubnetwork > ListUsableSubnetworks(google::container::v1::ListUsableSubnetworksRequest request, Options opts={})
Lists subnetworks that are usable for creating clusters in a project.
StatusOr< google::container::v1::Operation > CompleteIPRotation(std::string const &name, Options opts={})
Completes master IP rotation.
ClusterManagerClient & operator=(ClusterManagerClient &&)=default
StatusOr< google::container::v1::Operation > SetNodePoolAutoscaling(google::container::v1::SetNodePoolAutoscalingRequest const &request, Options opts={})
Sets the autoscaling settings for the specified node pool.
StatusOr< google::container::v1::Operation > SetAddonsConfig(google::container::v1::SetAddonsConfigRequest const &request, Options opts={})
Sets the addons for a specific cluster.
StatusOr< google::container::v1::Operation > SetMaintenancePolicy(std::string const &project_id, std::string const &zone, std::string const &cluster_id, google::container::v1::MaintenancePolicy const &maintenance_policy, Options opts={})
Sets the maintenance policy for a cluster.
StatusOr< google::container::v1::ListNodePoolsResponse > ListNodePools(std::string const &parent, Options opts={})
Lists the node pools for a cluster.
Status CancelOperation(google::container::v1::CancelOperationRequest const &request, Options opts={})
Cancels the specified operation.
StatusOr< google::container::v1::Operation > GetOperation(std::string const &name, Options opts={})
Gets the specified operation.
StatusOr< google::container::v1::Operation > SetLocations(std::string const &name, std::vector< std::string > const &locations, Options opts={})
Sets the locations for a specific cluster.
StatusOr< google::container::v1::ListOperationsResponse > ListOperations(google::container::v1::ListOperationsRequest const &request, Options opts={})
Lists all operations in a project in a specific zone or all zones.
StatusOr< google::container::v1::Operation > SetMaintenancePolicy(std::string const &name, google::container::v1::MaintenancePolicy const &maintenance_policy, Options opts={})
Sets the maintenance policy for a cluster.
StatusOr< google::container::v1::Operation > SetLabels(google::container::v1::SetLabelsRequest const &request, Options opts={})
Sets labels on a cluster.
StatusOr< google::container::v1::NodePool > GetNodePool(google::container::v1::GetNodePoolRequest const &request, Options opts={})
Retrieves the requested node pool.
StatusOr< google::container::v1::CheckAutopilotCompatibilityResponse > CheckAutopilotCompatibility(google::container::v1::CheckAutopilotCompatibilityRequest const &request, Options opts={})
Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.
StatusOr< google::container::v1::ListNodePoolsResponse > ListNodePools(google::container::v1::ListNodePoolsRequest const &request, Options opts={})
Lists the node pools for a cluster.
StatusOr< google::container::v1::Operation > SetAddonsConfig(std::string const &name, google::container::v1::AddonsConfig const &addons_config, Options opts={})
Sets the addons for a specific cluster.
StatusOr< google::container::v1::Operation > SetNetworkPolicy(std::string const &name, google::container::v1::NetworkPolicy const &network_policy, Options opts={})
Enables or disables Network Policy for a cluster.
StatusOr< google::container::v1::Cluster > GetCluster(std::string const &name, Options opts={})
Gets the details of a specific cluster.
Status CompleteNodePoolUpgrade(google::container::v1::CompleteNodePoolUpgradeRequest const &request, Options opts={})
CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.
StatusOr< google::container::v1::ServerConfig > GetServerConfig(std::string const &name, Options opts={})
Returns configuration info about the Google Kubernetes Engine service.
StatusOr< google::container::v1::Operation > RollbackNodePoolUpgrade(google::container::v1::RollbackNodePoolUpgradeRequest const &request, Options opts={})
Rolls back a previously Aborted or Failed NodePool upgrade.
StatusOr< google::container::v1::Operation > SetLegacyAbac(google::container::v1::SetLegacyAbacRequest const &request, Options opts={})
Enables or disables the ABAC authorization mechanism on a cluster.
StatusOr< google::container::v1::Operation > StartIPRotation(google::container::v1::StartIPRotationRequest const &request, Options opts={})
Starts master IP rotation.
StatusOr< google::container::v1::GetJSONWebKeysResponse > GetJSONWebKeys(google::container::v1::GetJSONWebKeysRequest const &request, Options opts={})
Gets the public component of the cluster signing keys in JSON Web Key format.
StatusOr< google::container::v1::Operation > SetLoggingService(google::container::v1::SetLoggingServiceRequest const &request, Options opts={})
Sets the logging service for a specific cluster.
StatusOr< google::container::v1::Operation > SetLegacyAbac(std::string const &name, bool enabled, Options opts={})
Enables or disables the ABAC authorization mechanism on a cluster.
StatusOr< google::container::v1::Operation > SetNodePoolManagement(google::container::v1::SetNodePoolManagementRequest const &request, Options opts={})
Sets the NodeManagement options for a node pool.
StatusOr< google::container::v1::Operation > CompleteIPRotation(google::container::v1::CompleteIPRotationRequest const &request, Options opts={})
Completes master IP rotation.
StatusOr< google::container::v1::Operation > SetMaintenancePolicy(google::container::v1::SetMaintenancePolicyRequest const &request, Options opts={})
Sets the maintenance policy for a cluster.
StatusOr< google::container::v1::Operation > DeleteNodePool(std::string const &name, Options opts={})
Deletes a node pool from a cluster.
ClusterManagerClient(ClusterManagerClient &&)=default
StatusOr< google::container::v1::Operation > SetMasterAuth(google::container::v1::SetMasterAuthRequest const &request, Options opts={})
Sets master auth materials.
StatusOr< google::container::v1::NodePool > GetNodePool(std::string const &name, Options opts={})
Retrieves the requested node pool.
StatusOr< google::container::v1::Operation > UpdateCluster(std::string const &name, google::container::v1::ClusterUpdate const &update, Options opts={})
Updates the settings of a specific cluster.
StatusOr< google::container::v1::Operation > RollbackNodePoolUpgrade(std::string const &name, Options opts={})
Rolls back a previously Aborted or Failed NodePool upgrade.
The ClusterManagerConnection object for ClusterManagerClient.
Definition: cluster_manager_connection.h:61
Definition: cluster_manager_client.h:33