Method: projects.locations.streamContents.build

Builds the content to a Stream compatible format using the associated sources in a consumer cloud storage bucket. A new content version is created with the user-specified tag if the build succeeds.

The returned Operation can be used to track the build status by polling operations.get. The Operation will complete when the build is done.

Returns [StreamContent] in the Operation.response field on successful completion.

HTTP request

POST https://stream.googleapis.com/v1alpha1/{name=projects/*/locations/*/streamContents/*}:build

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Canonical resource name of the content.

Request body

The request body contains data with the following structure:

JSON representation
{
  "contentVersionTag": string,
  "requestId": string
}
Fields
contentVersionTag

string

Required. The user-specified version tag of the build if it succeeds. Must match [\w][\w.-]{0,127}. See also https://github.com/distribution/distribution/blob/main/reference/regexp.go

requestId

string

Optional. A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if a requestId is provided."

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.