CertificatesOperations Class

CertificatesOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
CertificatesOperations

Constructor

CertificatesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Create or update a certificate.

Description for Create or update a certificate.

delete

Delete a certificate.

Description for Delete a certificate.

get

Get a certificate.

Description for Get a certificate.

list

Get all certificates for a subscription.

Description for Get all certificates for a subscription.

list_by_resource_group

Get all certificates in a resource group.

Description for Get all certificates in a resource group.

update

Create or update a certificate.

Description for Create or update a certificate.

create_or_update

Create or update a certificate.

Description for Create or update a certificate.

async create_or_update(resource_group_name: str, name: str, certificate_envelope: azure.mgmt.web.v2021_01_15.models._models_py3.Certificate, **kwargs: Any) -> azure.mgmt.web.v2021_01_15.models._models_py3.Certificate

Parameters

resource_group_name
str
Required

Name of the resource group to which the resource belongs.

name
str
Required

Name of the certificate.

certificate_envelope
Certificate
Required

Details of certificate, if it exists already.

cls
callable

A custom type or function that will be passed the direct response

Returns

Certificate, or the result of cls(response)

Return type

Exceptions

delete

Delete a certificate.

Description for Delete a certificate.

async delete(resource_group_name: str, name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

Name of the resource group to which the resource belongs.

name
str
Required

Name of the certificate.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Get a certificate.

Description for Get a certificate.

async get(resource_group_name: str, name: str, **kwargs: Any) -> azure.mgmt.web.v2021_01_15.models._models_py3.Certificate

Parameters

resource_group_name
str
Required

Name of the resource group to which the resource belongs.

name
str
Required

Name of the certificate.

cls
callable

A custom type or function that will be passed the direct response

Returns

Certificate, or the result of cls(response)

Return type

Exceptions

list

Get all certificates for a subscription.

Description for Get all certificates for a subscription.

list(filter: Optional[str] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.web.v2021_01_15.models._models_py3.CertificateCollection]

Parameters

filter
str
default value: None

Return only information specified in the filter (using OData syntax). For example: $filter=KeyVaultId eq 'KeyVaultId'.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either CertificateCollection or the result of cls(response)

Return type

Exceptions

list_by_resource_group

Get all certificates in a resource group.

Description for Get all certificates in a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.web.v2021_01_15.models._models_py3.CertificateCollection]

Parameters

resource_group_name
str
Required

Name of the resource group to which the resource belongs.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either CertificateCollection or the result of cls(response)

Return type

Exceptions

update

Create or update a certificate.

Description for Create or update a certificate.

async update(resource_group_name: str, name: str, certificate_envelope: azure.mgmt.web.v2021_01_15.models._models_py3.CertificatePatchResource, **kwargs: Any) -> azure.mgmt.web.v2021_01_15.models._models_py3.Certificate

Parameters

resource_group_name
str
Required

Name of the resource group to which the resource belongs.

name
str
Required

Name of the certificate.

certificate_envelope
CertificatePatchResource
Required

Details of certificate, if it exists already.

cls
callable

A custom type or function that will be passed the direct response

Returns

Certificate, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.web.v2021_01_15.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\web\\v2021_01_15\\models\\__init__.py'>