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

@azure-rest/maps-timezone package

接口

ConvertWindowsTimezoneToIana
CountryRecordOutput

国家/地区记录。

ErrorAdditionalInfoOutput

资源管理错误附加信息。

ErrorDetailOutput

错误详细信息。

ErrorResponseOutput

所有 Azure 资源管理器 API 的常见错误响应,以返回失败操作的错误详细信息。 (这也遵循 OData 错误响应格式)。

GetIanaTimezoneIds
GetIanaVersion
GetTimeZoneByCoordinates
GetTimeZoneByID
GetWindowsTimezoneIds
IanaIdOutput
MapsTimeZoneClientOptions

客户端的可选参数

ReferenceTimeOutput

当地时间生效的详细信息。

RepresentativePointOutput

代表点属性

Routes
TimeTransitionOutput
TimeZoneConvertWindowsTimezoneToIana200Response

Get Windows to IANA Time Zone API 是一个 HTTP GET 请求,在给定有效的 Windows 时区 ID 的情况下返回相应的 Internet 分配号码颁发机构(IANA)ID。 单个 Windows ID 可能会返回多个 IANA ID。 可以通过添加可选区域参数来缩小这些结果的范围。

TimeZoneConvertWindowsTimezoneToIanaDefaultResponse

Get Windows to IANA Time Zone API 是一个 HTTP GET 请求,在给定有效的 Windows 时区 ID 的情况下返回相应的 Internet 分配号码颁发机构(IANA)ID。 单个 Windows ID 可能会返回多个 IANA ID。 可以通过添加可选区域参数来缩小这些结果的范围。

TimeZoneConvertWindowsTimezoneToIanaQueryParam
TimeZoneConvertWindowsTimezoneToIanaQueryParamProperties
TimeZoneGetIanaTimezoneIds200Response

Get IANA Time Zones API 是一个 HTTP GET 请求,它返回 Internet 分配号码颁发机构(IANA)时区 ID 的完整列表。 IANA 服务的更新将在一天内反映在系统中。

TimeZoneGetIanaTimezoneIdsDefaultResponse

Get IANA Time Zones API 是一个 HTTP GET 请求,它返回 Internet 分配号码颁发机构(IANA)时区 ID 的完整列表。 IANA 服务的更新将在一天内反映在系统中。

TimeZoneGetIanaVersion200Response

Get Time Zone IANA Version API 是一个 HTTP GET 请求,该请求将当前的 Internet 分配号码颁发机构 (IANA) 版本号作为元数据返回。

TimeZoneGetIanaVersionDefaultResponse

Get Time Zone IANA Version API 是一个 HTTP GET 请求,该请求将当前的 Internet 分配号码颁发机构 (IANA) 版本号作为元数据返回。

TimeZoneGetTimeZoneByCoordinates200Response

Get Timezone By Coordinates API 是一个 HTTP GET 请求,该请求返回指定纬度-经度对的当前、历史和未来的时区信息。 此外,API 为给定位置提供日落和日出时间,除了观测太阳天的区域。

TimeZoneGetTimeZoneByCoordinatesDefaultResponse

Get Timezone By Coordinates API 是一个 HTTP GET 请求,该请求返回指定纬度-经度对的当前、历史和未来的时区信息。 此外,API 为给定位置提供日落和日出时间,除了观测太阳天的区域。

TimeZoneGetTimeZoneByCoordinatesHeaderParam
TimeZoneGetTimeZoneByCoordinatesHeaders
TimeZoneGetTimeZoneByCoordinatesQueryParam
TimeZoneGetTimeZoneByCoordinatesQueryParamProperties
TimeZoneGetTimeZoneByID200Response

Get Timezone By ID API 是一个 HTTP GET 请求,它返回指定 IANA 时区 ID 的当前、历史时区和将来时区信息。

TimeZoneGetTimeZoneByIDDefaultResponse

Get Timezone By ID API 是一个 HTTP GET 请求,它返回指定 IANA 时区 ID 的当前、历史时区和将来时区信息。

TimeZoneGetTimeZoneByIDHeaderParam
TimeZoneGetTimeZoneByIDHeaders
TimeZoneGetTimeZoneByIDQueryParam
TimeZoneGetTimeZoneByIDQueryParamProperties
TimeZoneGetWindowsTimezoneIds200Response

Get Windows Time Zones API 是一个 HTTP GET 请求,它返回 Windows 时区 ID 的完整列表。

TimeZoneGetWindowsTimezoneIdsDefaultResponse

Get Windows Time Zones API 是一个 HTTP GET 请求,它返回 Windows 时区 ID 的完整列表。

TimeZoneIanaVersionResultOutput

此对象是从成功的时区 IANA 版本调用返回的

TimeZoneIdOutput
TimeZoneNamesOutput

时区名称对象。

TimeZoneResultOutput

此对象是从成功的时区按 ID 调用或按坐标调用返回的

WindowsTimeZoneOutput

类型别名

MapsTimeZoneClient
TimeZoneConvertWindowsTimezoneToIanaParameters
TimeZoneGetIanaTimezoneIdsParameters
TimeZoneGetIanaVersionParameters
TimeZoneGetTimeZoneByCoordinatesParameters
TimeZoneGetTimeZoneByIDParameters
TimeZoneGetWindowsTimezoneIdsParameters

函数

default(AzureKeyCredential, ClientOptions)

从订阅密钥创建 MapsTimeZoneClient 的实例。

示例

import MapsTimeZone from "@azure-rest/maps-timezone";

const credential = new AzureKeyCredential("<subscription-key>");
const client = MapsTimeZone(credential);
default(TokenCredential, string, ClientOptions)

从 Azure 标识 TokenCredential创建 MapsTimeZone 实例。

示例

import MapsTimeZoneClient from "@azure-rest/maps-timezone";
import { DefaultAzureCredential } from "@azure/identity";

const credential = new DefaultAzureCredential();
const client = MapsTimeZone(credential, "<maps-account-client-id>");
default(AzureSASCredential, ClientOptions)

从 Azure 标识 AzureSASCredential创建 MapsTimeZone 实例。

示例

import MapsTimeZone from "@azure-rest/maps-timezone";
import { AzureSASCredential } from "@azure/core-auth";

const credential = new AzureSASCredential("<SAS Token>");
const client = MapsTimeZone(credential);
isUnexpected(TimeZoneGetTimeZoneByID200Response | TimeZoneGetTimeZoneByIDDefaultResponse)
isUnexpected(TimeZoneGetTimeZoneByCoordinates200Response | TimeZoneGetTimeZoneByCoordinatesDefaultResponse)
isUnexpected(TimeZoneGetWindowsTimezoneIds200Response | TimeZoneGetWindowsTimezoneIdsDefaultResponse)
isUnexpected(TimeZoneGetIanaTimezoneIds200Response | TimeZoneGetIanaTimezoneIdsDefaultResponse)
isUnexpected(TimeZoneGetIanaVersion200Response | TimeZoneGetIanaVersionDefaultResponse)
isUnexpected(TimeZoneConvertWindowsTimezoneToIana200Response | TimeZoneConvertWindowsTimezoneToIanaDefaultResponse)

函数详细信息

default(AzureKeyCredential, ClientOptions)

从订阅密钥创建 MapsTimeZoneClient 的实例。

示例

import MapsTimeZone from "@azure-rest/maps-timezone";

const credential = new AzureKeyCredential("<subscription-key>");
const client = MapsTimeZone(credential);
function default(credential: AzureKeyCredential, options?: ClientOptions): MapsTimeZoneClient

参数

credential
AzureKeyCredential

用于对服务请求进行身份验证的 AzureKeyCredential 实例

options
ClientOptions

用于配置 TimeZone 客户端的选项

返回

default(TokenCredential, string, ClientOptions)

从 Azure 标识 TokenCredential创建 MapsTimeZone 实例。

示例

import MapsTimeZoneClient from "@azure-rest/maps-timezone";
import { DefaultAzureCredential } from "@azure/identity";

const credential = new DefaultAzureCredential();
const client = MapsTimeZone(credential, "<maps-account-client-id>");
function default(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsTimeZoneClient

参数

credential
TokenCredential

用于对服务的请求进行身份验证的 TokenCredential 实例

mapsAccountClientId

string

特定地图资源的 Azure Maps 客户端 ID

options
ClientOptions

用于配置 TimeZone 客户端的选项

返回

default(AzureSASCredential, ClientOptions)

从 Azure 标识 AzureSASCredential创建 MapsTimeZone 实例。

示例

import MapsTimeZone from "@azure-rest/maps-timezone";
import { AzureSASCredential } from "@azure/core-auth";

const credential = new AzureSASCredential("<SAS Token>");
const client = MapsTimeZone(credential);
function default(credential: AzureSASCredential, options?: ClientOptions): MapsTimeZoneClient

参数

credential
AzureSASCredential

用于对服务的请求进行身份验证的 AzureSASCredential 实例

options
ClientOptions

用于配置 TimeZone 客户端的选项

返回

isUnexpected(TimeZoneGetTimeZoneByID200Response | TimeZoneGetTimeZoneByIDDefaultResponse)

function isUnexpected(response: TimeZoneGetTimeZoneByID200Response | TimeZoneGetTimeZoneByIDDefaultResponse): response

参数

返回

response

isUnexpected(TimeZoneGetTimeZoneByCoordinates200Response | TimeZoneGetTimeZoneByCoordinatesDefaultResponse)

function isUnexpected(response: TimeZoneGetTimeZoneByCoordinates200Response | TimeZoneGetTimeZoneByCoordinatesDefaultResponse): response

参数

返回

response

isUnexpected(TimeZoneGetWindowsTimezoneIds200Response | TimeZoneGetWindowsTimezoneIdsDefaultResponse)

function isUnexpected(response: TimeZoneGetWindowsTimezoneIds200Response | TimeZoneGetWindowsTimezoneIdsDefaultResponse): response

参数

返回

response

isUnexpected(TimeZoneGetIanaTimezoneIds200Response | TimeZoneGetIanaTimezoneIdsDefaultResponse)

function isUnexpected(response: TimeZoneGetIanaTimezoneIds200Response | TimeZoneGetIanaTimezoneIdsDefaultResponse): response

参数

返回

response

isUnexpected(TimeZoneGetIanaVersion200Response | TimeZoneGetIanaVersionDefaultResponse)

function isUnexpected(response: TimeZoneGetIanaVersion200Response | TimeZoneGetIanaVersionDefaultResponse): response

参数

返回

response

isUnexpected(TimeZoneConvertWindowsTimezoneToIana200Response | TimeZoneConvertWindowsTimezoneToIanaDefaultResponse)

function isUnexpected(response: TimeZoneConvertWindowsTimezoneToIana200Response | TimeZoneConvertWindowsTimezoneToIanaDefaultResponse): response

参数

返回

response