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>

source

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.
source

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
source

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-assigned name of the operation.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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-assigned name of the operation.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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§

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Typeable for T
where T: Any,

source§

fn get_type(&self) -> TypeId

Get the TypeId of this object.