azure.mgmt.web.v2018_11_01.operations module

class azure.mgmt.web.v2018_11_01.operations.CertificatesOperations(client, config, serializer, deserializer)[source]

Bases: object

CertificatesOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

Variables

api_version – API Version. Constant value: “2018-11-01”.

create_or_update(resource_group_name, name, certificate_envelope, custom_headers=None, raw=False, **operation_config)[source]

Create or update a certificate.

Create or update a certificate.

Parameters
  • resource_group_name (str) – Name of the resource group to which the resource belongs.

  • name (str) – Name of the certificate.

  • certificate_envelope (Certificate) – Details of certificate, if it exists already.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

Certificate or ClientRawResponse if raw=true

Return type

Certificate or ClientRawResponse

Raises

DefaultErrorResponseException

delete(resource_group_name, name, custom_headers=None, raw=False, **operation_config)[source]

Delete a certificate.

Delete a certificate.

Parameters
  • resource_group_name (str) – Name of the resource group to which the resource belongs.

  • name (str) – Name of the certificate.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

None or ClientRawResponse if raw=true

Return type

None or ClientRawResponse

Raises

CloudError

get(resource_group_name, name, custom_headers=None, raw=False, **operation_config)[source]

Get a certificate.

Get a certificate.

Parameters
  • resource_group_name (str) – Name of the resource group to which the resource belongs.

  • name (str) – Name of the certificate.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

Certificate or ClientRawResponse if raw=true

Return type

Certificate or ClientRawResponse

Raises

DefaultErrorResponseException

list(custom_headers=None, raw=False, **operation_config)[source]

Get all certificates for a subscription.

Get all certificates for a subscription.

Parameters
  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

An iterator like instance of Certificate

Return type

CertificatePaged[Certificate]

Raises

DefaultErrorResponseException

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Get all certificates in a resource group.

Get all certificates in a resource group.

Parameters
  • resource_group_name (str) – Name of the resource group to which the resource belongs.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

An iterator like instance of Certificate

Return type

CertificatePaged[Certificate]

Raises

DefaultErrorResponseException

update(resource_group_name, name, certificate_envelope, custom_headers=None, raw=False, **operation_config)[source]

Create or update a certificate.

Create or update a certificate.

Parameters
  • resource_group_name (str) – Name of the resource group to which the resource belongs.

  • name (str) – Name of the certificate.

  • certificate_envelope (CertificatePatchResource) – Details of certificate, if it exists already.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

Certificate or ClientRawResponse if raw=true

Return type

Certificate or ClientRawResponse

Raises

DefaultErrorResponseException

models = <module 'azure.mgmt.web.v2018_11_01.models' from '/home/vsts/work/1/s/sdk/appservice/azure-mgmt-web/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/web/v2018_11_01/models/__init__.py'>