Method: resources.buildings.insert
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
HTTP リクエスト
POST https://admin.googleapis.com/admin/directory/v1/customer/{customer}/resources/buildings
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
customer |
string
お客様の Google Workspace アカウントの一意の ID。アカウント管理者は、アカウントのお客様 ID を表す my_customer エイリアスを使用することもできます。
|
クエリ パラメータ
パラメータ |
coordinatesSource |
enum (CoordinatesSource )
Building.coordinates の取得元。
|
リクエストの本文
リクエストの本文には Building
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された Building
のインスタンスが含まれます。
認可スコープ
以下のいずれかの OAuth スコープが必要です。
https://apps-apis.google.com/a/feeds/calendar/resource/
https://www.googleapis.com/auth/admin.directory.resource.calendar
詳しくは、認可ガイドをご覧ください。
CoordinatesSource
列挙型 |
CLIENT_SPECIFIED |
Building.coordinates は、リクエストに含まれる座標に設定されます。 |
RESOLVED_FROM_ADDRESS |
Building.coordinates は、郵便番号に基づいて自動的に入力されます。 |
SOURCE_UNSPECIFIED |
郵便番号が指定されている場合のデフォルトは RESOLVED_FROM_ADDRESS です。それ以外の場合は、座標が指定されている場合、デフォルトは CLIENT_SPECIFIED です。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],null,["# Method: resources.buildings.insert\n\nInserts a building.\n\n### HTTP request\n\n`POST https://admin.googleapis.com/admin/directory/v1/customer/{customer}/resources/buildings`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customer` | `string` The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID. |\n\n### Query parameters\n\n| Parameters ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinatesSource` | `enum (`[CoordinatesSource](/workspace/admin/directory/reference/rest/v1/resources.buildings/insert#CoordinatesSource)`)` Source from which Building.coordinates are derived. |\n\n### Request body\n\nThe request body contains an instance of [Building](/workspace/admin/directory/reference/rest/v1/resources.buildings#Building).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Building](/workspace/admin/directory/reference/rest/v1/resources.buildings#Building).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://apps-apis.google.com/a/feeds/calendar/resource/`\n- `\n https://www.googleapis.com/auth/admin.directory.resource.calendar`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nCoordinatesSource\n-----------------\n\n| Enums ||\n|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| `CLIENT_SPECIFIED` | Building.coordinates are set to the coordinates included in the request. |\n| `RESOLVED_FROM_ADDRESS` | Building.coordinates are automatically populated based on the postal address. |\n| `SOURCE_UNSPECIFIED` | Defaults to `RESOLVED_FROM_ADDRESS` if postal address is provided. Otherwise, defaults to `CLIENT_SPECIFIED` if coordinates are provided. |"]]