CloudServiceOperatingSystemsOperations Class

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

Constructor

CloudServiceOperatingSystemsOperations(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

get_os_family

Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.

get_os_version

Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service.

list_os_families

Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families.

list_os_versions

Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions.

get_os_family

Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.

async get_os_family(location: str, os_family_name: str, **kwargs: Any) -> azure.mgmt.compute.v2021_03_01.models._models_py3.OSFamily

Parameters

location
str
Required

Name of the location that the OS family pertains to.

os_family_name
str
Required

Name of the OS family.

cls
callable

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

Returns

OSFamily, or the result of cls(response)

Return type

Exceptions

get_os_version

Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service.

async get_os_version(location: str, os_version_name: str, **kwargs: Any) -> azure.mgmt.compute.v2021_03_01.models._models_py3.OSVersion

Parameters

location
str
Required

Name of the location that the OS version pertains to.

os_version_name
str
Required

Name of the OS version.

cls
callable

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

Returns

OSVersion, or the result of cls(response)

Return type

Exceptions

list_os_families

Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families.

list_os_families(location: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_03_01.models._models_py3.OSFamilyListResult]

Parameters

location
str
Required

Name of the location that the OS families pertain to.

cls
callable

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

Returns

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

Return type

Exceptions

list_os_versions

Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions.

list_os_versions(location: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_03_01.models._models_py3.OSVersionListResult]

Parameters

location
str
Required

Name of the location that the OS versions pertain to.

cls
callable

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

Returns

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

Return type

Exceptions

Attributes

models

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