Client

pub struct Client(/* private fields */);

Implementations§

Source§

impl Client

Source

pub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder

Get a list of container groups in the specified subscription. Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
Source

pub fn list_by_resource_group( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, ) -> RequestBuilder

Get a list of container groups in the specified subscription and resource group. Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
Source

pub fn get( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, container_group_name: impl Into<String>, ) -> RequestBuilder

Get the properties of the specified container group. Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
  • container_group_name: The name of the container group.
Source

pub fn create_or_update( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, container_group_name: impl Into<String>, container_group: impl Into<ContainerGroup>, ) -> RequestBuilder

Create or update container groups. Create or update container groups with specified configurations.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
  • container_group_name: The name of the container group.
  • container_group: The properties of the container group to be created or updated.
Source

pub fn update( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, container_group_name: impl Into<String>, resource: impl Into<Resource>, ) -> RequestBuilder

Update container groups. Updates container group tags with specified values.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
  • container_group_name: The name of the container group.
  • resource: The container group resource with just the tags to be updated.
Source

pub fn delete( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, container_group_name: impl Into<String>, ) -> RequestBuilder

Delete the specified container group. Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
  • container_group_name: The name of the container group.
Source

pub fn restart( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, container_group_name: impl Into<String>, ) -> RequestBuilder

Restarts all containers in a container group. Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
  • container_group_name: The name of the container group.
Source

pub fn stop( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, container_group_name: impl Into<String>, ) -> RequestBuilder

Stops all containers in a container group. Stops all containers in a container group. Compute resources will be deallocated and billing will stop.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
  • container_group_name: The name of the container group.
Source

pub fn start( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, container_group_name: impl Into<String>, ) -> RequestBuilder

Starts all containers in a container group. Starts all containers in a container group. Compute resources will be allocated and billing will start.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
  • container_group_name: The name of the container group.
Source

pub fn get_outbound_network_dependencies_endpoints( &self, subscription_id: impl Into<String>, resource_group_name: impl Into<String>, container_group_name: impl Into<String>, ) -> RequestBuilder

Get all network dependencies for container group. Gets all the network dependencies for this container group to allow complete control of network setting and configuration. For container groups, this will always be an empty list.

Arguments:

  • subscription_id: The ID of the target subscription. The value must be an UUID.
  • resource_group_name: The name of the resource group. The name is case insensitive.
  • container_group_name: The name of the container group.

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

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>,

Source§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more