Skip to main content

CommonAreaPhones

Struct CommonAreaPhones 

Source
pub struct CommonAreaPhones {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

Source§

impl CommonAreaPhones

Source

pub async fn list( &self, page_size: i64, next_page_token: &str, ) -> Result<Response<Vec<CommonAreaPhones>>, ClientError>

List common area phones.

This function performs a GET to the /phone/common_area_phones endpoint.

Use this API to list all of an account’s common area phones.

A common area phone can be provisioned by a Zoom account owner or a Zoom admin so that anyone in an organization can use it. For example, if your office has shared desks that don’t belong to a specific employees, you could add a common area phone so that any person can use it.

Scopes: phone:read:admin
Rate Limit Label: Medium

Prerequisites:

  • Pro or a higher account with Zoom Phone license.
  • Account owner or admin permissions.
  • A supported device

Parameters:

  • page_size: i64 – The total number of records returned from a single API call.
  • next_page_token: &str – The next page token is used to paginate through large result sets. A next page token will be returned whenever the set of available results exceeds the current page size. The expiration period for this token is 15 minutes.
Source

pub async fn list_all( &self, ) -> Result<Response<Vec<CommonAreaPhones>>, ClientError>

List common area phones.

This function performs a GET to the /phone/common_area_phones endpoint.

As opposed to list, this function returns all the pages of the request at once.

Use this API to list all of an account’s common area phones.

A common area phone can be provisioned by a Zoom account owner or a Zoom admin so that anyone in an organization can use it. For example, if your office has shared desks that don’t belong to a specific employees, you could add a common area phone so that any person can use it.

Scopes: phone:read:admin
Rate Limit Label: Medium

Prerequisites:

  • Pro or a higher account with Zoom Phone license.
  • Account owner or admin permissions.
  • A supported device
Source

pub async fn add( &self, body: &AddCommonAreaPhoneRequest, ) -> Result<Response<AddCommonAreaPhoneResponse>, ClientError>

Add a common area phone.

This function performs a POST to the /phone/common_area_phones endpoint.

Use this API to add a common area phone.

A common area phone can be provisioned by a Zoom account owner or a Zoom admin so that anyone in an organization can use it. For example, if your office has shared desks that don’t belong to a specific employees, you could add a common area phone so that any person can use it.

Scopes: phone:write:admin
Rate Limit Label: Light

Prerequisites:

  • Pro or a higher account with Zoom Phone license
  • Account owner or admin permissions
  • A supported device
Source

pub async fn get( &self, common_area_phone_id: &str, ) -> Result<Response<GetCommonAreaPhoneResponse>, ClientError>

Get common area phone details.

This function performs a GET to the /phone/common_area_phones/{commonAreaPhoneId} endpoint.

Use this API to get details on a specific common area phone in an account.

A common area phone can be provisioned by a Zoom account owner or a Zoom admin so that anyone in an organization can use it. For example, if your office has shared desks that don’t belong to a specific employees, you could add a common area phone so that any person can use it.

Scopes: phone:read:admin
Rate Limit Label: Light

Prerequisites:

  • Pro or a higher account with Zoom Phone license
  • Account owner or admin permissions
  • A supported device

Parameters:

  • common_area_phone_id: &str – Unique Identifier of the Common Area Phone. Use the unique identifier or the Mac address of the common area phone. The Mac address can be in hyphenated (00-04-f2-5e-ec-3c) or not hyphenated (0004f25eec3c) format. You can get this value from the List Common Area Phones API.
Source

pub async fn delete( &self, common_area_phone_id: &str, ) -> Result<Response<()>, ClientError>

Delete a common area phone.

This function performs a DELETE to the /phone/common_area_phones/{commonAreaPhoneId} endpoint.

A common area phone can be provisioned by a Zoom account owner or a Zoom admin so that anyone in an organization can use it. For example, if your office has shared desks that don’t belong to a specific employees, you could add a common area phone so that any person can use it.
Use this API to remove the common area phone from Zoom Phone System in an account.

Prerequisites:

  • Pro or a higher account with Zoom Phone license.
  • Account owner or admin permissions.
  • Supported device
    Scopes: phone:write:admin

Rate Limit Label: Light

Parameters:

  • common_area_phone_id: &str – Unique Identifier of the common area phone.
Source

pub async fn update( &self, common_area_phone_id: &str, body: &UpdateCommonAreaPhoneRequest, ) -> Result<Response<()>, ClientError>

Update common area phone.

This function performs a PATCH to the /phone/common_area_phones/{commonAreaPhoneId} endpoint.

Use this API to update details on a specific common area phone in an account.

A common area phone can be provisioned by a Zoom account owner or a Zoom admin so that anyone in an organization can use it. For example, if your office has shared desks that don’t belong to a specific employees, you could add a common area phone so that any person can use it.

Scopes: phone:write:admin
Rate Limit Label: Light

Prerequisites:

  • Pro or a higher account with Zoom Phone license
  • Account owner or admin permissions
  • A supported device
Source

pub async fn assign_phone_numbers_common_area( &self, common_area_phone_id: &str, body: &AssignPhoneNumbersCommonAreaRequest, ) -> Result<Response<AssignPhoneNumbersCommonAreaResponseData>, ClientError>

Assign phone numbers to common area phone.

This function performs a POST to the /phone/common_area_phones/{commonAreaPhoneId}/phone_numbers endpoint.

Assign phone numbers to common area phone.

Prerequisites:

  • Pro or a higher account with Zoom Phone license.
  • Account owner or admin permissions. Scope: phone:write:admin

Rate Limit Label: Light

Source

pub async fn unassign_phone_numbers_from_common_area( &self, common_area_phone_id: &str, phone_number_id: &str, ) -> Result<Response<()>, ClientError>

Unassign phone numbers from a common area phone.

This function performs a DELETE to the /phone/common_area_phones/{commonAreaPhoneId}/phone_numbers/{phoneNumberId} endpoint.

Use this API to unassign a phone number from a common Area phone.

Scopes: phone:write:admin
Rate Limit Label: Light

Prerequisites:

  • A Pro or a higher account with a Zoom Phone license
  • An account owner or admin permissions

Parameters:

  • common_area_phone_id: &str – The common area phone’s unique ID.
  • phone_number_id: &str – The phone number or the phone number’s unique ID.
Source

pub async fn assign_calling_plans( &self, common_area_phone_id: &str, body: &AssignCallingPlansCommonAreaPhoneRequestData, ) -> Result<Response<AssignCallingPlansCommonAreaPhoneResponseData>, ClientError>

Assign calling plans to common area phone.

This function performs a POST to the /phone/common_area_phones/{commonAreaPhoneId}/calling_plans endpoint.

Assign calling plans to common area phone.

Prerequisites:

  • Pro or a higher account with Zoom Phone license.
  • Account owner or admin permissions. Scope: phone:write:admin

Rate Limit Label: Light

Source

pub async fn unassign_calling_plans_from( &self, common_area_phone_id: &str, type_: &str, ) -> Result<Response<()>, ClientError>

Unassign calling plan from a common area phone.

This function performs a DELETE to the /phone/common_area_phones/{commonAreaPhoneId}/calling_plans/{type} endpoint.

Use this API to unassign a calling plan from a common area phone.

Scopes: phone:write:admin
Rate Limit Label: Light

Prerequisites:

  • A Pro or higher account with a Zoom Phone license
  • An account owner or admin permissions

Parameters:

  • common_area_phone_id: &str – The common area phone’s unique ID.
  • type_: &str – The calling plan to remove.

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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: Sized + 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: Sized + 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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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