RegistrationAssignmentsOperations Class

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

Constructor

RegistrationAssignmentsOperations(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 assignment.

begin_delete

Deletes the specified registration assignment.

get

Gets the details of specified registration assignment.

list

Gets a list of the registration assignments.

begin_create_or_update

Creates or updates a registration assignment.

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

Parameters

Name Description
scope
Required
str

Scope of the resource.

registration_assignment_id
Required
str

Guid of the registration assignment.

request_body
Required

The parameters required to create new registration assignment.

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 RegistrationAssignment or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes the specified registration assignment.

begin_delete(scope: str, registration_assignment_id: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
scope
Required
str

Scope of the resource.

registration_assignment_id
Required
str

Guid of the registration assignment.

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 None or the result of cls(response)

Exceptions

Type Description

get

Gets the details of specified registration assignment.

get(scope: str, registration_assignment_id: str, expand_registration_definition: bool | None = None, **kwargs: Any) -> _models.RegistrationAssignment

Parameters

Name Description
scope
Required
str

Scope of the resource.

registration_assignment_id
Required
str

Guid of the registration assignment.

expand_registration_definition

Tells whether to return registration definition details also along with registration assignment details.

Default value: None

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

RegistrationAssignment, or the result of cls(response)

Exceptions

Type Description

list

Gets a list of the registration assignments.

list(scope: str, expand_registration_definition: bool | None = None, **kwargs: Any) -> Iterable['_models.RegistrationAssignmentList']

Parameters

Name Description
scope
Required
str

Scope of the resource.

expand_registration_definition

Tells whether to return registration definition details also along with registration assignment details.

Default value: None

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 RegistrationAssignmentList 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'>