Package google.cloud.location
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
位置
GetLocation |
rpc GetLocation(GetLocationRequest ) returns (Location )
获取位置相关信息。
- 授权范围
-
需要以下 OAuth 范围:
https://www.googleapis.com/auth/cloud-platform
如需了解详情,请参阅身份验证概览。
|
GetLocationRequest
字段 |
name |
string
位置对应的资源名称。
|
ListLocationsRequest
字段 |
name |
string
包含位置信息集合的资源(如果适用)。
|
filter |
string
用于将结果范围缩小至所需子集的过滤条件。过滤语言接受 "displayName=tokyo" 等字符串,AIP-160 中对此进行了更详细的说明。
|
page_size |
int32
返回的结果数上限。如果未设置,则服务会选择默认值。
|
page_token |
string
从响应中的 next_page_token 字段收到的页面标记。发送该页面标记以接收后续页面。
|
ListLocationsResponse
字段 |
locations[] |
Location
与请求中指定的过滤条件匹配的位置列表。
|
next_page_token |
string
标准列表下一页令牌。
|
位置
字段 |
name |
string
位置对应的资源名称,可能因实现方式而异。例如 "projects/example-project/locations/us-east1"
|
location_id |
string
此位置的规范 ID。例如:"us-east1" 。
|
display_name |
string
此位置的易记名称,通常是附近城市的名称。例如,“Tokyo”。
|
labels |
map<string, string>
此位置的跨服务属性。例如,
{"cloud.googleapis.com/region": "us-east1"}
|
metadata |
Any
服务专属元数据。例如,指定位置的可用容量。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-23。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-05-23。"],[],[],null,["# Package google.cloud.location\n\nIndex\n-----\n\n- [Locations](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.Locations) (interface)\n- [GetLocationRequest](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.GetLocationRequest) (message)\n- [ListLocationsRequest](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.ListLocationsRequest) (message)\n- [ListLocationsResponse](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.ListLocationsResponse) (message)\n- [Location](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.Location) (message)\n\nLocations\n---------\n\nAn abstract interface that provides location-related information for a service. Service-specific metadata is provided through the [Location.metadata](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.Location.FIELDS.google.protobuf.Any.google.cloud.location.Location.metadata) field.\n\nGetLocationRequest\n------------------\n\nThe request message for [Locations.GetLocation](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.Locations.GetLocation).\n\nListLocationsRequest\n--------------------\n\nThe request message for [Locations.ListLocations](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.Locations.ListLocations).\n\nListLocationsResponse\n---------------------\n\nThe response message for [Locations.ListLocations](/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.location#google.cloud.location.Locations.ListLocations).\n\nLocation\n--------\n\nA resource that represents a Google Cloud location."]]