Package google.cloud.location

색인

위치

서비스의 위치 관련 정보를 제공하는 추상 인터페이스입니다. Location.metadata 필드를 통해 서비스별 메타데이터가 제공됩니다.

GetLocation

rpc GetLocation(GetLocationRequest) returns (Location)

위치에 대한 정보를 가져옵니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

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

자세한 내용은 인증 개요를 참조하세요.

ListLocations

rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse)

이 서비스에 지원되는 위치 정보를 나열합니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

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

자세한 내용은 인증 개요를 참조하세요.

GetLocationRequest

Locations.GetLocation의 요청 메시지입니다.

입력란
name

string

위치의 리소스 이름입니다.

ListLocationsRequest

Locations.ListLocations의 요청 메시지입니다.

필드
name

string

해당하는 경우 위치 컬렉션을 소유한 리소스입니다.

filter

string

선호하는 하위 집합으로 결과 범위를 좁히는 필터입니다. 필터링 언어는 "displayName=tokyo"와 같은 문자열을 허용하며 AIP-160에 자세히 설명되어 있습니다.

page_size

int32

반환할 최대 결과 수입니다. 설정하지 않으면 서비스가 기본값을 선택합니다.

page_token

string

응답의 next_page_token 필드에서 수신된 페이지 토큰입니다. 다음 페이지를 수신하려면 페이지 토큰을 전송합니다.

ListLocationsResponse

Locations.ListLocations의 응답 메시지입니다.

필드
locations[]

Location

요청에 지정된 필터와 일치하는 위치 목록입니다.

next_page_token

string

표준 목록 다음 페이지 토큰입니다.

위치

Google Cloud 위치를 나타내는 리소스입니다.

입력란
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

서비스별 메타데이터입니다. 예: 특정 위치의 사용 가능한 용량