会話型アクションのサポートは 2023 年 6 月 13 日に終了しました。詳細については、
会話型アクションの廃止をご覧ください。
Method: projects.versions.create
モデルに基づいてプロジェクト バージョンを作成し、指定されたリリース チャンネルへのデプロイをトリガーします。
HTTP リクエスト
POST https://actions.googleapis.com/v2/{parent=projects/*}/versions:create
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。projects/{project} 形式の親リソース名。{project} は、プロジェクトに関連付けられた Cloud プロジェクト ID です。
|
リクエスト本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"files": {
object (Files )
},
"releaseChannel": string
} |
フィールド |
files |
object (Files )
必須。一度にサーバーに送信されるファイルのリスト。これは構成ファイルまたはデータファイルのリストです。1. 最初のリクエストは ConfigFiles である必要があります。2. 最初のリクエストには、「settings」を含む ConfigFile が必要です。3. 最初のリクエストには、「manifest」が指定された ConfigFile が必要です。4. インラインの Cloud Functions の関数に対応する Webhook ConfigFile は、ソースコードに対応する DataFile の前にストリーミングする必要があります。
|
releaseChannel |
string
省略可。バージョンをデプロイするリリース チャンネル(指定されている場合)。サポートされている組み込みリリース チャンネルは、actions.channels.Production、actions.channels.ClosedBeta、actions.channels.Alpha です。.
|
レスポンスの本文
成功した場合、レスポンスの本文には Version
のインスタンスが含まれます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 2024-08-22 UTC。"],[[["Creates a new project version and optionally deploys it to a specified release channel."],["Requires a POST request to the provided URL with project ID in the path."],["The request body must include necessary configuration and data files, with specific requirements for the initial request."],["Optionally, specify the release channel for deployment within the request body."],["A successful response returns details about the created version."]]],["This outlines the process to create a project version and deploy it. A `POST` request is sent to `https://actions.googleapis.com/v2/{parent=projects/*}/versions:create`, with the `parent` path parameter specifying the project ID. The request body requires a JSON structure that includes a list of `files`, such as config and data files, and an optional `releaseChannel` to direct the deployment. A successful request returns a `Version` instance in the response body.\n"]]