RegistrationDefinitionsOperations Class

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

Constructor

RegistrationDefinitionsOperations(client, config, serializer, deserializer)

Parameters

Name Description
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

Name Description
models

Alias to model classes used in this operation group.

Methods

begin_create_or_update

Creates or updates a registration definition.

delete

Deletes the registration definition.

get

Gets the registration definition details.

list

Gets a list of the registration definitions.

begin_create_or_update

Creates or updates a registration definition.

begin_create_or_update(registration_definition_id: str, scope: str, request_body: '_models.RegistrationDefinition', **kwargs: Any) -> LROPoller['_models.RegistrationDefinition']

Parameters

Name Description
registration_definition_id
Required
str

Guid of the registration definition.

scope
Required
str

Scope of the resource.

request_body
Required

The parameters required to create new registration definition.

Keyword-Only Parameters

Name Description
cls

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

Pass in True if you'd like the ARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either RegistrationDefinition or the result of cls(response)

Exceptions

Type Description

delete

Deletes the registration definition.

delete(registration_definition_id: str, scope: str, **kwargs: Any) -> None

Parameters

Name Description
registration_definition_id
Required
str

Guid of the registration definition.

scope
Required
str

Scope of the resource.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

None, or the result of cls(response)

Exceptions

Type Description

get

Gets the registration definition details.

get(scope: str, registration_definition_id: str, **kwargs: Any) -> _models.RegistrationDefinition

Parameters

Name Description
scope
Required
str

Scope of the resource.

registration_definition_id
Required
str

Guid of the registration definition.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

RegistrationDefinition, or the result of cls(response)

Exceptions

Type Description

list

Gets a list of the registration definitions.

list(scope: str, **kwargs: Any) -> Iterable['_models.RegistrationDefinitionList']

Parameters

Name Description
scope
Required
str

Scope of the resource.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.managedservices.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\managedservices\\models\\__init__.py'>