تم إيقاف إجراءات المحادثات نهائيًا في 13 حزيران (يونيو) 2023. لمزيد من المعلومات، يُرجى الاطّلاع على
إنهاء إجراءات المحادثة.
Method: projects.versions.create
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تنشئ نسخة مشروع استنادًا إلى النموذج وتبدأ النشر في قناة الإصدار المحددة، إذا تم تحديدها.
طلب HTTP
POST https://actions.googleapis.com/v2/{parent=projects/*}/versions:create
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
parent |
string
مطلوب. تمثّل هذه السمة اسم المورد الرئيسي بالتنسيق projects/{project} . {project} هو رقم تعريف المشروع على السحابة الإلكترونية المرتبط بالمشروع.
|
نص الطلب
يحتوي نص الطلب على بيانات بالبنية التالية:
تمثيل JSON |
{
"files": {
object (Files )
},
"releaseChannel": string
} |
الحقول |
files |
object (Files )
مطلوب. قائمة بالملفات التي يتم إرسالها إلى الخادم كل مرة. هذه قائمة بملفات الإعداد أو ملفات البيانات. 1. يجب أن يكون الطلب الأول ConfigFiles. 2. يجب أن يحتوي الطلب الأول على ConfigFile مع "settings". 3- يجب أن يحتوي الطلب الأول على ConfigFile مع "manifest". 4. يجب بث عنصر ConfigFile الرد التلقائي على الويب المناظر لدالة السحابة الإلكترونية المضمنة قبل DataFile المتوافق مع رمز المصدر.
|
releaseChannel |
string
اختياريّ. تمثّل هذه السمة قناة الإصدار المطلوب نشر الإصدار فيها، إذا تم تحديدها. قنوات الإصدار المدمَجة المتوافقة هي actions.channels.Production وaction.channels.Closedbeta و actions.channels.Alpha. .
|
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Version
.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCreates a new project version and optionally deploys it to a specified release channel.\u003c/p\u003e\n"],["\u003cp\u003eRequires a POST request to the provided URL with project ID in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include necessary configuration and data files, with specific requirements for the initial request.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, specify the release channel for deployment within the request body.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns details about the created version.\u003c/p\u003e\n"]]],["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"],null,["# Method: projects.versions.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n\nCreates a project version based on the model and triggers deployment to the specified release channel, if specified.\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2/{parent=projects/*}/versions:create`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent resource name in the format `projects/{project}`. The `{project}` is the cloud project ID associated with the project. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"files\": { object (/assistant/actions/api/reference/rest/v2/Files) }, \"releaseChannel\": string } ``` |\n\n| Fields ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `files` | `object (`[Files](/assistant/actions/api/reference/rest/v2/Files)`)` Required. List of files sent to the server at a time. This is a list of config files or data files. 1. The first request must be a ConfigFiles. 2. The first request must have a ConfigFile with 'settings'. 3. The first request must have a ConfigFile with 'manifest'. 4. The webhook ConfigFile corresponding to inline cloud function must be streamed before the DataFile corresponding to its source code. |\n| `releaseChannel` | `string` Optional. The release channel to deploy the version, if specified. The supported built in release channels are actions.channels.Production, actions.channels.ClosedBeta, actions.channels.Alpha. . |\n\n### Response body\n\nIf successful, the response body contains an instance of [Version](/assistant/actions/api/reference/rest/v2/Version)."]]