wxc_sdk.licenses package
Licenses
An allowance for features and services that are provided to users on a Webex services subscription. Cisco and its partners manage the amount of licenses provided to administrators and users. This license resource can be accessed only by an admin.
- class wxc_sdk.licenses.SiteType(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
str
,SafeEnum
Webex site type
- control_hub = 'Control Hub managed site'
the site is managed by Webex Control Hub
- linked = 'Linked site'
the site is a linked site
- site_admin = 'Site Admin managed site'
the site is managed by Site Administration
- class wxc_sdk.licenses.License(*, id: str, name: str, totalUnits: int, consumedUnits: int, subscriptionId: str | None = None, siteUrl: str | None = None, siteType: SiteType | None = None)[source]
Bases:
ApiModel
Webex license
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.
- license_id: str
A unique identifier for the license.
- name: str
Name of the licensed feature.
- total_units: int
Total number of license units allocated.
- consumed_units: int
Total number of license units consumed.
- subscription_id: str | None
The subscription ID associated with this license. This ID is used in other systems, such as Webex Control Hub.
- site_url: str | None
The Webex Meetings site associated with this license.
- property webex_calling: bool
is this a Webex Calling license
- property webex_calling_professional: bool
- property webex_calling_basic: bool
- property webex_calling_workspaces: bool
- model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'use_enum_values': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'consumed_units': FieldInfo(annotation=int, required=True, alias='consumedUnits', alias_priority=1), 'license_id': FieldInfo(annotation=str, required=True, alias='id', alias_priority=2), 'name': FieldInfo(annotation=str, required=True, alias='name', alias_priority=1), 'site_type': FieldInfo(annotation=Union[SiteType, NoneType], required=False, alias='siteType', alias_priority=1), 'site_url': FieldInfo(annotation=Union[str, NoneType], required=False, alias='siteUrl', alias_priority=1), 'subscription_id': FieldInfo(annotation=Union[str, NoneType], required=False, alias='subscriptionId', alias_priority=1), 'total_units': FieldInfo(annotation=int, required=True, alias='totalUnits', alias_priority=1)}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- class wxc_sdk.licenses.LicensesApi(*, session: RestSession, base: str | None = None)[source]
Bases:
ApiChild
Licenses
An allowance for features and services that are provided to users on a Webex services subscription. Cisco and its partners manage the amount of licenses provided to administrators and users. This license resource can be accessed only by an admin.
- list(org_id: str | None = None) Generator[License, None, None] [source]
List all licenses for a given organization. If no org_id is specified, the default is the organization of the authenticated user.
Response properties that are not applicable to the license will not be present in the response.
- Parameters:
org_id (str) – List licenses for this organization.
- Returns:
yields
License
instances
- details(license_id) License [source]
Shows details for a license, by ID.
Response properties that are not applicable to the license will not be present in the response.
- Parameters:
license_id (str) – The unique identifier for the license.
- Returns:
license details
- Return type:
- base = 'licenses'
- session: RestSession
REST session