套件 google.cloud.location

索引

位置

一種抽象介面,提供服務適用的位置相關資訊。服務專用的中繼資料是透過 Location.metadata 欄位提供。

GetLocation

rpc GetLocation(GetLocationRequest) returns (Location)

取得位置相關資訊。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱驗證指南

ListLocations

rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse)

列出這項服務支援位置的相關資訊。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱驗證指南

GetLocationRequest

Locations.GetLocation 的要求訊息。

欄位
name

string

位置的資源名稱。

ListLocationsRequest

Locations.ListLocations 的要求訊息。

欄位
name

string

擁有位置集合的資源 (如果適用)。

filter

string

標準清單篩選器。

page_size

int32

標準清單頁面大小。

page_token

string

標準清單頁面符記。

ListLocationsResponse

Locations.ListLocations 的回應訊息。

欄位
locations[]

Location

符合要求中指定篩選器的位置清單。

next_page_token

string

標準清單下一頁符記。

位置

代表 Google Cloud Platform 位置的一種資源。

欄位
name

string

位置的資源名稱,可以隨不同的實作而改變。例如:"projects/example-project/locations/us-east1"

location_id

string

這個位置的標準 ID,例如:"us-east1"

display_name

string

這個位置的易記名稱,通常是附近的城市名稱,例如「東京」。

labels

map<string, string>

位置的跨服務屬性。例如


{"cloud.googleapis.com/region": "us-east1"}

metadata

Any

服務專用的中繼資料,例如指定位置的可用容量。