你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloudServiceOperatingSystemsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:cloud_service_operating_systems> attribute.

Constructor

CloudServiceOperatingSystemsOperations(*args, **kwargs)

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.

get_os_family(___location: str, os_family_name: str, **kwargs: Any) -> OSFamily

Parameters

Name Description
___location
Required
str

Name of the ___location that the OS family pertains to. Required.

os_family_name
Required
str

Name of the OS family. Required.

Returns

Type Description

OSFamily or the result of cls(response)

Exceptions

Type Description

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.

get_os_version(___location: str, os_version_name: str, **kwargs: Any) -> OSVersion

Parameters

Name Description
___location
Required
str

Name of the ___location that the OS version pertains to. Required.

os_version_name
Required
str

Name of the OS version. Required.

Returns

Type Description

OSVersion or the result of cls(response)

Exceptions

Type Description

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) -> Iterable[OSFamily]

Parameters

Name Description
___location
Required
str

Name of the ___location that the OS families pertain to. Required.

Returns

Type Description

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

Exceptions

Type Description

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) -> Iterable[OSVersion]

Parameters

Name Description
___location
Required
str

Name of the ___location that the OS versions pertain to. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.compute.v2024_11_04.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv86\\Lib\\site-packages\\azure\\mgmt\\compute\\v2024_11_04\\models\\__init__.py'>