REST Resource: sites.releases
Stay organized with collections
Save and categorize content based on your preferences.
Resource: Release
JSON representation |
{
"name": string,
"version": {
object (Version )
},
"type": enum (Type ),
"releaseTime": string,
"releaseUser": {
object (ActingUser )
},
"message": string
} |
Fields |
name |
string
Output only. The unique identifier for the release, in either of the following formats: This name is provided in the response body when you call releases.create or channels.releases.create .
|
version |
object (Version )
Output only. The configuration and content that was released.
|
type |
enum (Type )
Explains the reason for the release. Specify a value for this field only when creating a SITE_DISABLE type release.
|
releaseTime |
string (Timestamp format)
Output only. The time at which the version is set to be public. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z" .
|
releaseUser |
object (ActingUser )
Output only. Identifies the user who created the release.
|
message |
string
The deploy description when the release was created. The value can be up to 512 characters.
|
Methods |
|
Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s). |
|
Gets the specified release for a site or channel. |
|
Lists the releases that have been created for the specified site or channel. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-09-11 UTC.
[null,null,["Last updated 2023-09-11 UTC."],[],[],null,["# REST Resource: sites.releases\n\nResource: Release\n-----------------\n\nA `Release` is a particular [collection of configurations and files](/docs/reference/hosting/rest/v1beta1/sites.versions) that is set to be public at a particular time.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"version\": { object (/docs/reference/hosting/rest/v1beta1/sites.versions#Version) }, \"type\": enum (/docs/reference/hosting/rest/v1beta1/sites.channels.releases#Release.Type), \"releaseTime\": string, \"releaseUser\": { object (/docs/reference/hosting/rest/v1beta1/ActingUser) }, \"message\": string } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The unique identifier for the release, in either of the following formats: - \u003cbr /\u003e `sites/`\u003cvar translate=\"no\"\u003eSITE_ID\u003c/var\u003e`/releases/`\u003cvar translate=\"no\"\u003eRELEASE_ID\u003c/var\u003e - `sites/`\u003cvar translate=\"no\"\u003eSITE_ID\u003c/var\u003e`/channels/`\u003cvar translate=\"no\"\u003eCHANNEL_ID\u003c/var\u003e`/releases/`\u003cvar translate=\"no\"\u003eRELEASE_ID\u003c/var\u003e \u003cbr /\u003e This name is provided in the response body when you call [`releases.create`](/docs/reference/hosting/rest/v1beta1/sites.releases/create) or [`channels.releases.create`](/docs/reference/hosting/rest/v1beta1/sites.channels.releases/create). \u003cbr /\u003e |\n| `version` | `object (`[Version](/docs/reference/hosting/rest/v1beta1/sites.versions#Version)`)` Output only. The configuration and content that was released. |\n| `type` | `enum (`[Type](/docs/reference/hosting/rest/v1beta1/sites.channels.releases#Release.Type)`)` Explains the reason for the release. Specify a value for this field only when creating a `SITE_DISABLE` type release. |\n| `releaseTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Output only. The time at which the version is set to be public. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n| `releaseUser` | `object (`[ActingUser](/docs/reference/hosting/rest/v1beta1/ActingUser)`)` Output only. Identifies the user who created the release. |\n| `message` | `string` The deploy description when the release was created. The value can be up to 512 characters. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|\n| ### [create](/docs/reference/hosting/rest/v1beta1/sites.releases/create) | Creates a new release, which makes the content of the specified version actively display on the appropriate URL(s). |\n| ### [get](/docs/reference/hosting/rest/v1beta1/sites.releases/get) | Gets the specified release for a site or channel. |\n| ### [list](/docs/reference/hosting/rest/v1beta1/sites.releases/list) | Lists the releases that have been created for the specified site or channel. |"]]