Struct google_container1::ProjectMethods
source · pub struct ProjectMethods<'a, C, A>where
C: 'a,
A: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the Container hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_container1 as container1;
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use container1::Container;
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
<MemoryStorage as Default>::default(), None);
let mut hub = Container::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `zones_clusters_complete_ip_rotation(...)`, `zones_clusters_create(...)`, `zones_clusters_delete(...)`, `zones_clusters_get(...)`, `zones_clusters_legacy_abac(...)`, `zones_clusters_list(...)`, `zones_clusters_node_pools_create(...)`, `zones_clusters_node_pools_delete(...)`, `zones_clusters_node_pools_get(...)`, `zones_clusters_node_pools_list(...)`, `zones_clusters_node_pools_rollback(...)`, `zones_clusters_node_pools_set_management(...)`, `zones_clusters_resource_labels(...)`, `zones_clusters_set_master_auth(...)`, `zones_clusters_start_ip_rotation(...)`, `zones_clusters_update(...)`, `zones_get_serverconfig(...)`, `zones_operations_cancel(...)`, `zones_operations_get(...)` and `zones_operations_list(...)`
// to build up your call.
let rb = hub.projects();Implementations§
source§impl<'a, C, A> ProjectMethods<'a, C, A>
impl<'a, C, A> ProjectMethods<'a, C, A>
sourcepub fn zones_clusters_get(
&self,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterGetCall<'a, C, A>
pub fn zones_clusters_get( &self, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the details of a specific cluster.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster to retrieve.
sourcepub fn zones_get_serverconfig(
&self,
project_id: &str,
zone: &str,
) -> ProjectZoneGetServerconfigCall<'a, C, A>
pub fn zones_get_serverconfig( &self, project_id: &str, zone: &str, ) -> ProjectZoneGetServerconfigCall<'a, C, A>
Create a builder to help you perform the following task:
Returns configuration info about the Container Engine service.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone to return operations for.
sourcepub fn zones_operations_cancel(
&self,
request: CancelOperationRequest,
project_id: &str,
zone: &str,
operation_id: &str,
) -> ProjectZoneOperationCancelCall<'a, C, A>
pub fn zones_operations_cancel( &self, request: CancelOperationRequest, project_id: &str, zone: &str, operation_id: &str, ) -> ProjectZoneOperationCancelCall<'a, C, A>
Create a builder to help you perform the following task:
Cancels the specified operation.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the operation resides.operationId- The server-assignednameof the operation.
sourcepub fn zones_clusters_node_pools_list(
&self,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterNodePoolListCall<'a, C, A>
pub fn zones_clusters_node_pools_list( &self, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterNodePoolListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists the node pools for a cluster.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster.
sourcepub fn zones_clusters_set_master_auth(
&self,
request: SetMasterAuthRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterSetMasterAuthCall<'a, C, A>
pub fn zones_clusters_set_master_auth( &self, request: SetMasterAuthRequest, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterSetMasterAuthCall<'a, C, A>
Create a builder to help you perform the following task:
Used to set master auth materials. Currently supports :- Changing the admin password of a specific cluster. This can be either via password generation or explicitly set the password.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster to upgrade.
sourcepub fn zones_clusters_delete(
&self,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterDeleteCall<'a, C, A>
pub fn zones_clusters_delete( &self, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
Firewalls and routes that were configured during cluster creation are also deleted.
Other Google Compute Engine resources that might be in use by the cluster (e.g. load balancer resources) will not be deleted if they weren’t present at the initial create time.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster to delete.
sourcepub fn zones_clusters_node_pools_create(
&self,
request: CreateNodePoolRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterNodePoolCreateCall<'a, C, A>
pub fn zones_clusters_node_pools_create( &self, request: CreateNodePoolRequest, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterNodePoolCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a node pool for a cluster.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster.
sourcepub fn zones_clusters_node_pools_get(
&self,
project_id: &str,
zone: &str,
cluster_id: &str,
node_pool_id: &str,
) -> ProjectZoneClusterNodePoolGetCall<'a, C, A>
pub fn zones_clusters_node_pools_get( &self, project_id: &str, zone: &str, cluster_id: &str, node_pool_id: &str, ) -> ProjectZoneClusterNodePoolGetCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves the node pool requested.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster.nodePoolId- The name of the node pool.
sourcepub fn zones_clusters_node_pools_rollback(
&self,
request: RollbackNodePoolUpgradeRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
node_pool_id: &str,
) -> ProjectZoneClusterNodePoolRollbackCall<'a, C, A>
pub fn zones_clusters_node_pools_rollback( &self, request: RollbackNodePoolUpgradeRequest, project_id: &str, zone: &str, cluster_id: &str, node_pool_id: &str, ) -> ProjectZoneClusterNodePoolRollbackCall<'a, C, A>
Create a builder to help you perform the following task:
Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster to rollback.nodePoolId- The name of the node pool to rollback.
sourcepub fn zones_clusters_start_ip_rotation(
&self,
request: StartIPRotationRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterStartIpRotationCall<'a, C, A>
pub fn zones_clusters_start_ip_rotation( &self, request: StartIPRotationRequest, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterStartIpRotationCall<'a, C, A>
Create a builder to help you perform the following task:
Start master IP rotation.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster.
sourcepub fn zones_clusters_complete_ip_rotation(
&self,
request: CompleteIPRotationRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterCompleteIpRotationCall<'a, C, A>
pub fn zones_clusters_complete_ip_rotation( &self, request: CompleteIPRotationRequest, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterCompleteIpRotationCall<'a, C, A>
Create a builder to help you perform the following task:
Completes master IP rotation.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster.
sourcepub fn zones_clusters_node_pools_set_management(
&self,
request: SetNodePoolManagementRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
node_pool_id: &str,
) -> ProjectZoneClusterNodePoolSetManagementCall<'a, C, A>
pub fn zones_clusters_node_pools_set_management( &self, request: SetNodePoolManagementRequest, project_id: &str, zone: &str, cluster_id: &str, node_pool_id: &str, ) -> ProjectZoneClusterNodePoolSetManagementCall<'a, C, A>
Create a builder to help you perform the following task:
Sets the NodeManagement options for a node pool.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster to update.nodePoolId- The name of the node pool to update.
sourcepub fn zones_clusters_legacy_abac(
&self,
request: SetLegacyAbacRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterLegacyAbacCall<'a, C, A>
pub fn zones_clusters_legacy_abac( &self, request: SetLegacyAbacRequest, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterLegacyAbacCall<'a, C, A>
Create a builder to help you perform the following task:
Enables or disables the ABAC authorization mechanism on a cluster.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster to update.
sourcepub fn zones_operations_get(
&self,
project_id: &str,
zone: &str,
operation_id: &str,
) -> ProjectZoneOperationGetCall<'a, C, A>
pub fn zones_operations_get( &self, project_id: &str, zone: &str, operation_id: &str, ) -> ProjectZoneOperationGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the specified operation.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.operationId- The server-assignednameof the operation.
sourcepub fn zones_clusters_resource_labels(
&self,
request: SetLabelsRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterResourceLabelCall<'a, C, A>
pub fn zones_clusters_resource_labels( &self, request: SetLabelsRequest, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterResourceLabelCall<'a, C, A>
Create a builder to help you perform the following task:
Sets labels on a cluster.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster.
sourcepub fn zones_operations_list(
&self,
project_id: &str,
zone: &str,
) -> ProjectZoneOperationListCall<'a, C, A>
pub fn zones_operations_list( &self, project_id: &str, zone: &str, ) -> ProjectZoneOperationListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all operations in a project in a specific zone or all zones.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone to return operations for, or-for all zones.
sourcepub fn zones_clusters_create(
&self,
request: CreateClusterRequest,
project_id: &str,
zone: &str,
) -> ProjectZoneClusterCreateCall<'a, C, A>
pub fn zones_clusters_create( &self, request: CreateClusterRequest, project_id: &str, zone: &str, ) -> ProjectZoneClusterCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.
By default, the cluster is created in the project’s default network.
One firewall is added for the cluster. After cluster creation, the cluster creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.
Finally, an entry is added to the project’s global metadata indicating which CIDR range is being used by the cluster.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.
sourcepub fn zones_clusters_update(
&self,
request: UpdateClusterRequest,
project_id: &str,
zone: &str,
cluster_id: &str,
) -> ProjectZoneClusterUpdateCall<'a, C, A>
pub fn zones_clusters_update( &self, request: UpdateClusterRequest, project_id: &str, zone: &str, cluster_id: &str, ) -> ProjectZoneClusterUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates the settings of a specific cluster.
§Arguments
request- No description provided.projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster to upgrade.
sourcepub fn zones_clusters_list(
&self,
project_id: &str,
zone: &str,
) -> ProjectZoneClusterListCall<'a, C, A>
pub fn zones_clusters_list( &self, project_id: &str, zone: &str, ) -> ProjectZoneClusterListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all clusters owned by a project in either the specified zone or all zones.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides, or “-” for all zones.
sourcepub fn zones_clusters_node_pools_delete(
&self,
project_id: &str,
zone: &str,
cluster_id: &str,
node_pool_id: &str,
) -> ProjectZoneClusterNodePoolDeleteCall<'a, C, A>
pub fn zones_clusters_node_pools_delete( &self, project_id: &str, zone: &str, cluster_id: &str, node_pool_id: &str, ) -> ProjectZoneClusterNodePoolDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes a node pool from a cluster.
§Arguments
projectId- The Google Developers Console project ID or project number.zone- The name of the Google Compute Engine zone in which the cluster resides.clusterId- The name of the cluster.nodePoolId- The name of the node pool to delete.
Trait Implementations§
impl<'a, C, A> MethodsBuilder for ProjectMethods<'a, C, A>
Auto Trait Implementations§
impl<'a, C, A> Freeze for ProjectMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for ProjectMethods<'a, C, A>
impl<'a, C, A> !Send for ProjectMethods<'a, C, A>
impl<'a, C, A> !Sync for ProjectMethods<'a, C, A>
impl<'a, C, A> Unpin for ProjectMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for ProjectMethods<'a, C, A>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more