Class ProjectsResource.SitesResource.VersionsResource
The "versions" collection of methods.
Inherited Members
Namespace: Google.Apis.FirebaseHosting.v1beta1
Assembly: Google.Apis.FirebaseHosting.v1beta1.dll
Syntax
public class ProjectsResource.SitesResource.VersionsResource
Constructors
VersionsResource(IClientService)
Constructs a new resource.
Declaration
public VersionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Files
Gets the Files resource.
Declaration
public virtual ProjectsResource.SitesResource.VersionsResource.FilesResource Files { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.SitesResource.VersionsResource.FilesResource |
Methods
Clone(CloneVersionRequest, string)
Creates a new version on the specified target site using the content of the specified version.
Declaration
public virtual ProjectsResource.SitesResource.VersionsResource.CloneRequest Clone(CloneVersionRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| CloneVersionRequest | body | The body of the request. |
| string | parent | Required. The target site for the cloned version, in the format: sites/ SITE_ID |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SitesResource.VersionsResource.CloneRequest |
Create(Version, string)
Creates a new version for the specified site.
Declaration
public virtual ProjectsResource.SitesResource.VersionsResource.CreateRequest Create(Version body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| Version | body | The body of the request. |
| string | parent | Required. The site in which to create the version, in the format: sites/ SITE_ID |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SitesResource.VersionsResource.CreateRequest |
Delete(string)
Deletes the specified version.
Declaration
public virtual ProjectsResource.SitesResource.VersionsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SitesResource.VersionsResource.DeleteRequest |
Get(string)
Get the specified version that has been created for the specified site. This can include versions
that were created for the default live channel or for any active preview channels for the
specified site.
Declaration
public virtual ProjectsResource.SitesResource.VersionsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The fully-qualified resource name for the version, in the format: sites/SITE_ID/versions/VERSION_ID |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SitesResource.VersionsResource.GetRequest |
List(string)
Lists the versions that have been created for the specified site. This list includes versions for
both the default live channel and any active preview channels for the specified site.
Declaration
public virtual ProjectsResource.SitesResource.VersionsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The site or channel for which to list versions, in either of the following formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SitesResource.VersionsResource.ListRequest |
Patch(Version, string)
Updates the specified metadata for the specified version. This method will fail with
FAILED_PRECONDITION in the event of an invalid state transition. The supported
state transitions for a version are from CREATED to
FINALIZED. Use DeleteVersion to set the status of a version to DELETED.
Declaration
public virtual ProjectsResource.SitesResource.VersionsResource.PatchRequest Patch(Version body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Version | body | The body of the request. |
| string | name | The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID
This name is provided in the response body when you call |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SitesResource.VersionsResource.PatchRequest |
PopulateFiles(PopulateVersionFilesRequest, string)
Adds content files to the specified version. Each file must be under 2 GB.
Declaration
public virtual ProjectsResource.SitesResource.VersionsResource.PopulateFilesRequest PopulateFiles(PopulateVersionFilesRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| PopulateVersionFilesRequest | body | The body of the request. |
| string | parent | Required. The version to which to add files, in the format: sites/SITE_ID /versions/VERSION_ID |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SitesResource.VersionsResource.PopulateFilesRequest |