firebasehosting
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package firebasehosting provides access to the Firebase Hosting API.
For product documentation, see:https://firebase.google.com/docs/hosting/
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/firebasehosting/v1beta1"...ctx := context.Background()firebasehostingService, err := firebasehosting.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
By default, all available scopes (see "Constants") are used to authenticate.To restrict scopes, usegoogle.golang.org/api/option.WithScopes:
firebasehostingService, err := firebasehosting.NewService(ctx, option.WithScopes(firebasehosting.FirebaseReadonlyScope))
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
firebasehostingService, err := firebasehosting.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)firebasehostingService, err := firebasehosting.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type ActingUser
- type CertDnsChallenge
- type CertHttpChallenge
- type CertVerification
- type Certificate
- type Channel
- type CloneVersionRequest
- type CloudRunRewrite
- type CustomDomain
- type CustomDomainMetadata
- type DnsRecord
- type DnsRecordSet
- type DnsUpdates
- type Domain
- type DomainProvisioning
- type DomainRedirect
- type Empty
- type Header
- type HttpUpdate
- type I18nConfig
- type ListChannelsResponse
- type ListCustomDomainsResponse
- type ListDomainsResponse
- type ListOperationsResponse
- type ListReleasesResponse
- type ListSitesResponse
- type ListVersionFilesResponse
- type ListVersionsResponse
- type LiveMigrationStep
- type Operation
- type PathFilter
- type PopulateVersionFilesRequest
- type PopulateVersionFilesResponse
- type ProjectsOperationsGetCall
- func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall
- func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall
- func (c *ProjectsOperationsGetCall) Header() http.Header
- func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall
- type ProjectsOperationsService
- type ProjectsService
- type ProjectsSitesChannelsCreateCall
- func (c *ProjectsSitesChannelsCreateCall) ChannelId(channelId string) *ProjectsSitesChannelsCreateCall
- func (c *ProjectsSitesChannelsCreateCall) Context(ctx context.Context) *ProjectsSitesChannelsCreateCall
- func (c *ProjectsSitesChannelsCreateCall) Do(opts ...googleapi.CallOption) (*Channel, error)
- func (c *ProjectsSitesChannelsCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsCreateCall
- func (c *ProjectsSitesChannelsCreateCall) Header() http.Header
- type ProjectsSitesChannelsDeleteCall
- func (c *ProjectsSitesChannelsDeleteCall) Context(ctx context.Context) *ProjectsSitesChannelsDeleteCall
- func (c *ProjectsSitesChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsSitesChannelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsDeleteCall
- func (c *ProjectsSitesChannelsDeleteCall) Header() http.Header
- type ProjectsSitesChannelsGetCall
- func (c *ProjectsSitesChannelsGetCall) Context(ctx context.Context) *ProjectsSitesChannelsGetCall
- func (c *ProjectsSitesChannelsGetCall) Do(opts ...googleapi.CallOption) (*Channel, error)
- func (c *ProjectsSitesChannelsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsGetCall
- func (c *ProjectsSitesChannelsGetCall) Header() http.Header
- func (c *ProjectsSitesChannelsGetCall) IfNoneMatch(entityTag string) *ProjectsSitesChannelsGetCall
- type ProjectsSitesChannelsListCall
- func (c *ProjectsSitesChannelsListCall) Context(ctx context.Context) *ProjectsSitesChannelsListCall
- func (c *ProjectsSitesChannelsListCall) Do(opts ...googleapi.CallOption) (*ListChannelsResponse, error)
- func (c *ProjectsSitesChannelsListCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsListCall
- func (c *ProjectsSitesChannelsListCall) Header() http.Header
- func (c *ProjectsSitesChannelsListCall) IfNoneMatch(entityTag string) *ProjectsSitesChannelsListCall
- func (c *ProjectsSitesChannelsListCall) PageSize(pageSize int64) *ProjectsSitesChannelsListCall
- func (c *ProjectsSitesChannelsListCall) PageToken(pageToken string) *ProjectsSitesChannelsListCall
- func (c *ProjectsSitesChannelsListCall) Pages(ctx context.Context, f func(*ListChannelsResponse) error) error
- type ProjectsSitesChannelsPatchCall
- func (c *ProjectsSitesChannelsPatchCall) Context(ctx context.Context) *ProjectsSitesChannelsPatchCall
- func (c *ProjectsSitesChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel, error)
- func (c *ProjectsSitesChannelsPatchCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsPatchCall
- func (c *ProjectsSitesChannelsPatchCall) Header() http.Header
- func (c *ProjectsSitesChannelsPatchCall) UpdateMask(updateMask string) *ProjectsSitesChannelsPatchCall
- type ProjectsSitesChannelsReleasesCreateCall
- func (c *ProjectsSitesChannelsReleasesCreateCall) Context(ctx context.Context) *ProjectsSitesChannelsReleasesCreateCall
- func (c *ProjectsSitesChannelsReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, error)
- func (c *ProjectsSitesChannelsReleasesCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsReleasesCreateCall
- func (c *ProjectsSitesChannelsReleasesCreateCall) Header() http.Header
- func (c *ProjectsSitesChannelsReleasesCreateCall) VersionName(versionName string) *ProjectsSitesChannelsReleasesCreateCall
- type ProjectsSitesChannelsReleasesGetCall
- func (c *ProjectsSitesChannelsReleasesGetCall) Context(ctx context.Context) *ProjectsSitesChannelsReleasesGetCall
- func (c *ProjectsSitesChannelsReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, error)
- func (c *ProjectsSitesChannelsReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsReleasesGetCall
- func (c *ProjectsSitesChannelsReleasesGetCall) Header() http.Header
- func (c *ProjectsSitesChannelsReleasesGetCall) IfNoneMatch(entityTag string) *ProjectsSitesChannelsReleasesGetCall
- type ProjectsSitesChannelsReleasesListCall
- func (c *ProjectsSitesChannelsReleasesListCall) Context(ctx context.Context) *ProjectsSitesChannelsReleasesListCall
- func (c *ProjectsSitesChannelsReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse, error)
- func (c *ProjectsSitesChannelsReleasesListCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsReleasesListCall
- func (c *ProjectsSitesChannelsReleasesListCall) Header() http.Header
- func (c *ProjectsSitesChannelsReleasesListCall) IfNoneMatch(entityTag string) *ProjectsSitesChannelsReleasesListCall
- func (c *ProjectsSitesChannelsReleasesListCall) PageSize(pageSize int64) *ProjectsSitesChannelsReleasesListCall
- func (c *ProjectsSitesChannelsReleasesListCall) PageToken(pageToken string) *ProjectsSitesChannelsReleasesListCall
- func (c *ProjectsSitesChannelsReleasesListCall) Pages(ctx context.Context, f func(*ListReleasesResponse) error) error
- type ProjectsSitesChannelsReleasesService
- func (r *ProjectsSitesChannelsReleasesService) Create(parent string, release *Release) *ProjectsSitesChannelsReleasesCreateCall
- func (r *ProjectsSitesChannelsReleasesService) Get(name string) *ProjectsSitesChannelsReleasesGetCall
- func (r *ProjectsSitesChannelsReleasesService) List(parent string) *ProjectsSitesChannelsReleasesListCall
- type ProjectsSitesChannelsService
- func (r *ProjectsSitesChannelsService) Create(parent string, channel *Channel) *ProjectsSitesChannelsCreateCall
- func (r *ProjectsSitesChannelsService) Delete(name string) *ProjectsSitesChannelsDeleteCall
- func (r *ProjectsSitesChannelsService) Get(name string) *ProjectsSitesChannelsGetCall
- func (r *ProjectsSitesChannelsService) List(parent string) *ProjectsSitesChannelsListCall
- func (r *ProjectsSitesChannelsService) Patch(name string, channel *Channel) *ProjectsSitesChannelsPatchCall
- type ProjectsSitesCreateCall
- func (c *ProjectsSitesCreateCall) Context(ctx context.Context) *ProjectsSitesCreateCall
- func (c *ProjectsSitesCreateCall) Do(opts ...googleapi.CallOption) (*Site, error)
- func (c *ProjectsSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesCreateCall
- func (c *ProjectsSitesCreateCall) Header() http.Header
- func (c *ProjectsSitesCreateCall) SiteId(siteId string) *ProjectsSitesCreateCall
- func (c *ProjectsSitesCreateCall) ValidateOnly(validateOnly bool) *ProjectsSitesCreateCall
- type ProjectsSitesCustomDomainsCreateCall
- func (c *ProjectsSitesCustomDomainsCreateCall) Context(ctx context.Context) *ProjectsSitesCustomDomainsCreateCall
- func (c *ProjectsSitesCustomDomainsCreateCall) CustomDomainId(customDomainId string) *ProjectsSitesCustomDomainsCreateCall
- func (c *ProjectsSitesCustomDomainsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSitesCustomDomainsCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsCreateCall
- func (c *ProjectsSitesCustomDomainsCreateCall) Header() http.Header
- func (c *ProjectsSitesCustomDomainsCreateCall) ValidateOnly(validateOnly bool) *ProjectsSitesCustomDomainsCreateCall
- type ProjectsSitesCustomDomainsDeleteCall
- func (c *ProjectsSitesCustomDomainsDeleteCall) AllowMissing(allowMissing bool) *ProjectsSitesCustomDomainsDeleteCall
- func (c *ProjectsSitesCustomDomainsDeleteCall) Context(ctx context.Context) *ProjectsSitesCustomDomainsDeleteCall
- func (c *ProjectsSitesCustomDomainsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSitesCustomDomainsDeleteCall) Etag(etag string) *ProjectsSitesCustomDomainsDeleteCall
- func (c *ProjectsSitesCustomDomainsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsDeleteCall
- func (c *ProjectsSitesCustomDomainsDeleteCall) Header() http.Header
- func (c *ProjectsSitesCustomDomainsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsSitesCustomDomainsDeleteCall
- type ProjectsSitesCustomDomainsGetCall
- func (c *ProjectsSitesCustomDomainsGetCall) Context(ctx context.Context) *ProjectsSitesCustomDomainsGetCall
- func (c *ProjectsSitesCustomDomainsGetCall) Do(opts ...googleapi.CallOption) (*CustomDomain, error)
- func (c *ProjectsSitesCustomDomainsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsGetCall
- func (c *ProjectsSitesCustomDomainsGetCall) Header() http.Header
- func (c *ProjectsSitesCustomDomainsGetCall) IfNoneMatch(entityTag string) *ProjectsSitesCustomDomainsGetCall
- type ProjectsSitesCustomDomainsListCall
- func (c *ProjectsSitesCustomDomainsListCall) Context(ctx context.Context) *ProjectsSitesCustomDomainsListCall
- func (c *ProjectsSitesCustomDomainsListCall) Do(opts ...googleapi.CallOption) (*ListCustomDomainsResponse, error)
- func (c *ProjectsSitesCustomDomainsListCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsListCall
- func (c *ProjectsSitesCustomDomainsListCall) Header() http.Header
- func (c *ProjectsSitesCustomDomainsListCall) IfNoneMatch(entityTag string) *ProjectsSitesCustomDomainsListCall
- func (c *ProjectsSitesCustomDomainsListCall) PageSize(pageSize int64) *ProjectsSitesCustomDomainsListCall
- func (c *ProjectsSitesCustomDomainsListCall) PageToken(pageToken string) *ProjectsSitesCustomDomainsListCall
- func (c *ProjectsSitesCustomDomainsListCall) Pages(ctx context.Context, f func(*ListCustomDomainsResponse) error) error
- func (c *ProjectsSitesCustomDomainsListCall) ShowDeleted(showDeleted bool) *ProjectsSitesCustomDomainsListCall
- type ProjectsSitesCustomDomainsOperationsGetCall
- func (c *ProjectsSitesCustomDomainsOperationsGetCall) Context(ctx context.Context) *ProjectsSitesCustomDomainsOperationsGetCall
- func (c *ProjectsSitesCustomDomainsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSitesCustomDomainsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsOperationsGetCall
- func (c *ProjectsSitesCustomDomainsOperationsGetCall) Header() http.Header
- func (c *ProjectsSitesCustomDomainsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsSitesCustomDomainsOperationsGetCall
- type ProjectsSitesCustomDomainsOperationsListCall
- func (c *ProjectsSitesCustomDomainsOperationsListCall) Context(ctx context.Context) *ProjectsSitesCustomDomainsOperationsListCall
- func (c *ProjectsSitesCustomDomainsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsSitesCustomDomainsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsOperationsListCall
- func (c *ProjectsSitesCustomDomainsOperationsListCall) Filter(filter string) *ProjectsSitesCustomDomainsOperationsListCall
- func (c *ProjectsSitesCustomDomainsOperationsListCall) Header() http.Header
- func (c *ProjectsSitesCustomDomainsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsSitesCustomDomainsOperationsListCall
- func (c *ProjectsSitesCustomDomainsOperationsListCall) PageSize(pageSize int64) *ProjectsSitesCustomDomainsOperationsListCall
- func (c *ProjectsSitesCustomDomainsOperationsListCall) PageToken(pageToken string) *ProjectsSitesCustomDomainsOperationsListCall
- func (c *ProjectsSitesCustomDomainsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- func (c *ProjectsSitesCustomDomainsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsSitesCustomDomainsOperationsListCall
- type ProjectsSitesCustomDomainsOperationsService
- type ProjectsSitesCustomDomainsPatchCall
- func (c *ProjectsSitesCustomDomainsPatchCall) AllowMissing(allowMissing bool) *ProjectsSitesCustomDomainsPatchCall
- func (c *ProjectsSitesCustomDomainsPatchCall) Context(ctx context.Context) *ProjectsSitesCustomDomainsPatchCall
- func (c *ProjectsSitesCustomDomainsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSitesCustomDomainsPatchCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsPatchCall
- func (c *ProjectsSitesCustomDomainsPatchCall) Header() http.Header
- func (c *ProjectsSitesCustomDomainsPatchCall) UpdateMask(updateMask string) *ProjectsSitesCustomDomainsPatchCall
- func (c *ProjectsSitesCustomDomainsPatchCall) ValidateOnly(validateOnly bool) *ProjectsSitesCustomDomainsPatchCall
- type ProjectsSitesCustomDomainsService
- func (r *ProjectsSitesCustomDomainsService) Create(parent string, customdomain *CustomDomain) *ProjectsSitesCustomDomainsCreateCall
- func (r *ProjectsSitesCustomDomainsService) Delete(name string) *ProjectsSitesCustomDomainsDeleteCall
- func (r *ProjectsSitesCustomDomainsService) Get(name string) *ProjectsSitesCustomDomainsGetCall
- func (r *ProjectsSitesCustomDomainsService) List(parent string) *ProjectsSitesCustomDomainsListCall
- func (r *ProjectsSitesCustomDomainsService) Patch(name string, customdomain *CustomDomain) *ProjectsSitesCustomDomainsPatchCall
- func (r *ProjectsSitesCustomDomainsService) Undelete(name string, undeletecustomdomainrequest *UndeleteCustomDomainRequest) *ProjectsSitesCustomDomainsUndeleteCall
- type ProjectsSitesCustomDomainsUndeleteCall
- func (c *ProjectsSitesCustomDomainsUndeleteCall) Context(ctx context.Context) *ProjectsSitesCustomDomainsUndeleteCall
- func (c *ProjectsSitesCustomDomainsUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSitesCustomDomainsUndeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsUndeleteCall
- func (c *ProjectsSitesCustomDomainsUndeleteCall) Header() http.Header
- type ProjectsSitesDeleteCall
- func (c *ProjectsSitesDeleteCall) Context(ctx context.Context) *ProjectsSitesDeleteCall
- func (c *ProjectsSitesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesDeleteCall
- func (c *ProjectsSitesDeleteCall) Header() http.Header
- type ProjectsSitesDomainsCreateCall
- func (c *ProjectsSitesDomainsCreateCall) Context(ctx context.Context) *ProjectsSitesDomainsCreateCall
- func (c *ProjectsSitesDomainsCreateCall) Do(opts ...googleapi.CallOption) (*Domain, error)
- func (c *ProjectsSitesDomainsCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsCreateCall
- func (c *ProjectsSitesDomainsCreateCall) Header() http.Header
- type ProjectsSitesDomainsDeleteCall
- func (c *ProjectsSitesDomainsDeleteCall) Context(ctx context.Context) *ProjectsSitesDomainsDeleteCall
- func (c *ProjectsSitesDomainsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsSitesDomainsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsDeleteCall
- func (c *ProjectsSitesDomainsDeleteCall) Header() http.Header
- type ProjectsSitesDomainsGetCall
- func (c *ProjectsSitesDomainsGetCall) Context(ctx context.Context) *ProjectsSitesDomainsGetCall
- func (c *ProjectsSitesDomainsGetCall) Do(opts ...googleapi.CallOption) (*Domain, error)
- func (c *ProjectsSitesDomainsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsGetCall
- func (c *ProjectsSitesDomainsGetCall) Header() http.Header
- func (c *ProjectsSitesDomainsGetCall) IfNoneMatch(entityTag string) *ProjectsSitesDomainsGetCall
- type ProjectsSitesDomainsListCall
- func (c *ProjectsSitesDomainsListCall) Context(ctx context.Context) *ProjectsSitesDomainsListCall
- func (c *ProjectsSitesDomainsListCall) Do(opts ...googleapi.CallOption) (*ListDomainsResponse, error)
- func (c *ProjectsSitesDomainsListCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsListCall
- func (c *ProjectsSitesDomainsListCall) Header() http.Header
- func (c *ProjectsSitesDomainsListCall) IfNoneMatch(entityTag string) *ProjectsSitesDomainsListCall
- func (c *ProjectsSitesDomainsListCall) PageSize(pageSize int64) *ProjectsSitesDomainsListCall
- func (c *ProjectsSitesDomainsListCall) PageToken(pageToken string) *ProjectsSitesDomainsListCall
- func (c *ProjectsSitesDomainsListCall) Pages(ctx context.Context, f func(*ListDomainsResponse) error) error
- type ProjectsSitesDomainsService
- func (r *ProjectsSitesDomainsService) Create(parent string, domain *Domain) *ProjectsSitesDomainsCreateCall
- func (r *ProjectsSitesDomainsService) Delete(name string) *ProjectsSitesDomainsDeleteCall
- func (r *ProjectsSitesDomainsService) Get(name string) *ProjectsSitesDomainsGetCall
- func (r *ProjectsSitesDomainsService) List(parent string) *ProjectsSitesDomainsListCall
- func (r *ProjectsSitesDomainsService) Update(name string, domain *Domain) *ProjectsSitesDomainsUpdateCall
- type ProjectsSitesDomainsUpdateCall
- func (c *ProjectsSitesDomainsUpdateCall) Context(ctx context.Context) *ProjectsSitesDomainsUpdateCall
- func (c *ProjectsSitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain, error)
- func (c *ProjectsSitesDomainsUpdateCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsUpdateCall
- func (c *ProjectsSitesDomainsUpdateCall) Header() http.Header
- type ProjectsSitesGetCall
- func (c *ProjectsSitesGetCall) Context(ctx context.Context) *ProjectsSitesGetCall
- func (c *ProjectsSitesGetCall) Do(opts ...googleapi.CallOption) (*Site, error)
- func (c *ProjectsSitesGetCall) Fields(s ...googleapi.Field) *ProjectsSitesGetCall
- func (c *ProjectsSitesGetCall) Header() http.Header
- func (c *ProjectsSitesGetCall) IfNoneMatch(entityTag string) *ProjectsSitesGetCall
- type ProjectsSitesGetConfigCall
- func (c *ProjectsSitesGetConfigCall) Context(ctx context.Context) *ProjectsSitesGetConfigCall
- func (c *ProjectsSitesGetConfigCall) Do(opts ...googleapi.CallOption) (*SiteConfig, error)
- func (c *ProjectsSitesGetConfigCall) Fields(s ...googleapi.Field) *ProjectsSitesGetConfigCall
- func (c *ProjectsSitesGetConfigCall) Header() http.Header
- func (c *ProjectsSitesGetConfigCall) IfNoneMatch(entityTag string) *ProjectsSitesGetConfigCall
- type ProjectsSitesListCall
- func (c *ProjectsSitesListCall) Context(ctx context.Context) *ProjectsSitesListCall
- func (c *ProjectsSitesListCall) Do(opts ...googleapi.CallOption) (*ListSitesResponse, error)
- func (c *ProjectsSitesListCall) Fields(s ...googleapi.Field) *ProjectsSitesListCall
- func (c *ProjectsSitesListCall) Header() http.Header
- func (c *ProjectsSitesListCall) IfNoneMatch(entityTag string) *ProjectsSitesListCall
- func (c *ProjectsSitesListCall) PageSize(pageSize int64) *ProjectsSitesListCall
- func (c *ProjectsSitesListCall) PageToken(pageToken string) *ProjectsSitesListCall
- func (c *ProjectsSitesListCall) Pages(ctx context.Context, f func(*ListSitesResponse) error) error
- type ProjectsSitesPatchCall
- func (c *ProjectsSitesPatchCall) Context(ctx context.Context) *ProjectsSitesPatchCall
- func (c *ProjectsSitesPatchCall) Do(opts ...googleapi.CallOption) (*Site, error)
- func (c *ProjectsSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsSitesPatchCall
- func (c *ProjectsSitesPatchCall) Header() http.Header
- func (c *ProjectsSitesPatchCall) UpdateMask(updateMask string) *ProjectsSitesPatchCall
- type ProjectsSitesReleasesCreateCall
- func (c *ProjectsSitesReleasesCreateCall) Context(ctx context.Context) *ProjectsSitesReleasesCreateCall
- func (c *ProjectsSitesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, error)
- func (c *ProjectsSitesReleasesCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesCreateCall
- func (c *ProjectsSitesReleasesCreateCall) Header() http.Header
- func (c *ProjectsSitesReleasesCreateCall) VersionName(versionName string) *ProjectsSitesReleasesCreateCall
- type ProjectsSitesReleasesGetCall
- func (c *ProjectsSitesReleasesGetCall) Context(ctx context.Context) *ProjectsSitesReleasesGetCall
- func (c *ProjectsSitesReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, error)
- func (c *ProjectsSitesReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesGetCall
- func (c *ProjectsSitesReleasesGetCall) Header() http.Header
- func (c *ProjectsSitesReleasesGetCall) IfNoneMatch(entityTag string) *ProjectsSitesReleasesGetCall
- type ProjectsSitesReleasesListCall
- func (c *ProjectsSitesReleasesListCall) Context(ctx context.Context) *ProjectsSitesReleasesListCall
- func (c *ProjectsSitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse, error)
- func (c *ProjectsSitesReleasesListCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesListCall
- func (c *ProjectsSitesReleasesListCall) Header() http.Header
- func (c *ProjectsSitesReleasesListCall) IfNoneMatch(entityTag string) *ProjectsSitesReleasesListCall
- func (c *ProjectsSitesReleasesListCall) PageSize(pageSize int64) *ProjectsSitesReleasesListCall
- func (c *ProjectsSitesReleasesListCall) PageToken(pageToken string) *ProjectsSitesReleasesListCall
- func (c *ProjectsSitesReleasesListCall) Pages(ctx context.Context, f func(*ListReleasesResponse) error) error
- type ProjectsSitesReleasesService
- type ProjectsSitesService
- func (r *ProjectsSitesService) Create(parent string, site *Site) *ProjectsSitesCreateCall
- func (r *ProjectsSitesService) Delete(name string) *ProjectsSitesDeleteCall
- func (r *ProjectsSitesService) Get(nameid string) *ProjectsSitesGetCall
- func (r *ProjectsSitesService) GetConfig(name string) *ProjectsSitesGetConfigCall
- func (r *ProjectsSitesService) List(parent string) *ProjectsSitesListCall
- func (r *ProjectsSitesService) Patch(nameid string, site *Site) *ProjectsSitesPatchCall
- func (r *ProjectsSitesService) UpdateConfig(name string, siteconfig *SiteConfig) *ProjectsSitesUpdateConfigCall
- type ProjectsSitesUpdateConfigCall
- func (c *ProjectsSitesUpdateConfigCall) Context(ctx context.Context) *ProjectsSitesUpdateConfigCall
- func (c *ProjectsSitesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*SiteConfig, error)
- func (c *ProjectsSitesUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsSitesUpdateConfigCall
- func (c *ProjectsSitesUpdateConfigCall) Header() http.Header
- func (c *ProjectsSitesUpdateConfigCall) UpdateMask(updateMask string) *ProjectsSitesUpdateConfigCall
- type ProjectsSitesVersionsCloneCall
- func (c *ProjectsSitesVersionsCloneCall) Context(ctx context.Context) *ProjectsSitesVersionsCloneCall
- func (c *ProjectsSitesVersionsCloneCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsSitesVersionsCloneCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsCloneCall
- func (c *ProjectsSitesVersionsCloneCall) Header() http.Header
- type ProjectsSitesVersionsCreateCall
- func (c *ProjectsSitesVersionsCreateCall) Context(ctx context.Context) *ProjectsSitesVersionsCreateCall
- func (c *ProjectsSitesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Version, error)
- func (c *ProjectsSitesVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsCreateCall
- func (c *ProjectsSitesVersionsCreateCall) Header() http.Header
- func (c *ProjectsSitesVersionsCreateCall) SizeBytes(sizeBytes int64) *ProjectsSitesVersionsCreateCall
- func (c *ProjectsSitesVersionsCreateCall) VersionId(versionId string) *ProjectsSitesVersionsCreateCall
- type ProjectsSitesVersionsDeleteCall
- func (c *ProjectsSitesVersionsDeleteCall) Context(ctx context.Context) *ProjectsSitesVersionsDeleteCall
- func (c *ProjectsSitesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsSitesVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsDeleteCall
- func (c *ProjectsSitesVersionsDeleteCall) Header() http.Header
- type ProjectsSitesVersionsFilesListCall
- func (c *ProjectsSitesVersionsFilesListCall) Context(ctx context.Context) *ProjectsSitesVersionsFilesListCall
- func (c *ProjectsSitesVersionsFilesListCall) Do(opts ...googleapi.CallOption) (*ListVersionFilesResponse, error)
- func (c *ProjectsSitesVersionsFilesListCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsFilesListCall
- func (c *ProjectsSitesVersionsFilesListCall) Header() http.Header
- func (c *ProjectsSitesVersionsFilesListCall) IfNoneMatch(entityTag string) *ProjectsSitesVersionsFilesListCall
- func (c *ProjectsSitesVersionsFilesListCall) PageSize(pageSize int64) *ProjectsSitesVersionsFilesListCall
- func (c *ProjectsSitesVersionsFilesListCall) PageToken(pageToken string) *ProjectsSitesVersionsFilesListCall
- func (c *ProjectsSitesVersionsFilesListCall) Pages(ctx context.Context, f func(*ListVersionFilesResponse) error) error
- func (c *ProjectsSitesVersionsFilesListCall) Status(status string) *ProjectsSitesVersionsFilesListCall
- type ProjectsSitesVersionsFilesService
- type ProjectsSitesVersionsGetCall
- func (c *ProjectsSitesVersionsGetCall) Context(ctx context.Context) *ProjectsSitesVersionsGetCall
- func (c *ProjectsSitesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error)
- func (c *ProjectsSitesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsGetCall
- func (c *ProjectsSitesVersionsGetCall) Header() http.Header
- func (c *ProjectsSitesVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsSitesVersionsGetCall
- type ProjectsSitesVersionsListCall
- func (c *ProjectsSitesVersionsListCall) Context(ctx context.Context) *ProjectsSitesVersionsListCall
- func (c *ProjectsSitesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error)
- func (c *ProjectsSitesVersionsListCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsListCall
- func (c *ProjectsSitesVersionsListCall) Filter(filter string) *ProjectsSitesVersionsListCall
- func (c *ProjectsSitesVersionsListCall) Header() http.Header
- func (c *ProjectsSitesVersionsListCall) IfNoneMatch(entityTag string) *ProjectsSitesVersionsListCall
- func (c *ProjectsSitesVersionsListCall) PageSize(pageSize int64) *ProjectsSitesVersionsListCall
- func (c *ProjectsSitesVersionsListCall) PageToken(pageToken string) *ProjectsSitesVersionsListCall
- func (c *ProjectsSitesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error
- type ProjectsSitesVersionsPatchCall
- func (c *ProjectsSitesVersionsPatchCall) Context(ctx context.Context) *ProjectsSitesVersionsPatchCall
- func (c *ProjectsSitesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Version, error)
- func (c *ProjectsSitesVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsPatchCall
- func (c *ProjectsSitesVersionsPatchCall) Header() http.Header
- func (c *ProjectsSitesVersionsPatchCall) UpdateMask(updateMask string) *ProjectsSitesVersionsPatchCall
- type ProjectsSitesVersionsPopulateFilesCall
- func (c *ProjectsSitesVersionsPopulateFilesCall) Context(ctx context.Context) *ProjectsSitesVersionsPopulateFilesCall
- func (c *ProjectsSitesVersionsPopulateFilesCall) Do(opts ...googleapi.CallOption) (*PopulateVersionFilesResponse, error)
- func (c *ProjectsSitesVersionsPopulateFilesCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsPopulateFilesCall
- func (c *ProjectsSitesVersionsPopulateFilesCall) Header() http.Header
- type ProjectsSitesVersionsService
- func (r *ProjectsSitesVersionsService) Clone(parent string, cloneversionrequest *CloneVersionRequest) *ProjectsSitesVersionsCloneCall
- func (r *ProjectsSitesVersionsService) Create(parent string, version *Version) *ProjectsSitesVersionsCreateCall
- func (r *ProjectsSitesVersionsService) Delete(name string) *ProjectsSitesVersionsDeleteCall
- func (r *ProjectsSitesVersionsService) Get(name string) *ProjectsSitesVersionsGetCall
- func (r *ProjectsSitesVersionsService) List(parent string) *ProjectsSitesVersionsListCall
- func (r *ProjectsSitesVersionsService) Patch(name string, version *Version) *ProjectsSitesVersionsPatchCall
- func (r *ProjectsSitesVersionsService) PopulateFiles(parent string, populateversionfilesrequest *PopulateVersionFilesRequest) *ProjectsSitesVersionsPopulateFilesCall
- type Redirect
- type Release
- type Rewrite
- type Service
- type ServingConfig
- type Site
- type SiteConfig
- type SitesChannelsCreateCall
- func (c *SitesChannelsCreateCall) ChannelId(channelId string) *SitesChannelsCreateCall
- func (c *SitesChannelsCreateCall) Context(ctx context.Context) *SitesChannelsCreateCall
- func (c *SitesChannelsCreateCall) Do(opts ...googleapi.CallOption) (*Channel, error)
- func (c *SitesChannelsCreateCall) Fields(s ...googleapi.Field) *SitesChannelsCreateCall
- func (c *SitesChannelsCreateCall) Header() http.Header
- type SitesChannelsDeleteCall
- func (c *SitesChannelsDeleteCall) Context(ctx context.Context) *SitesChannelsDeleteCall
- func (c *SitesChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *SitesChannelsDeleteCall) Fields(s ...googleapi.Field) *SitesChannelsDeleteCall
- func (c *SitesChannelsDeleteCall) Header() http.Header
- type SitesChannelsGetCall
- func (c *SitesChannelsGetCall) Context(ctx context.Context) *SitesChannelsGetCall
- func (c *SitesChannelsGetCall) Do(opts ...googleapi.CallOption) (*Channel, error)
- func (c *SitesChannelsGetCall) Fields(s ...googleapi.Field) *SitesChannelsGetCall
- func (c *SitesChannelsGetCall) Header() http.Header
- func (c *SitesChannelsGetCall) IfNoneMatch(entityTag string) *SitesChannelsGetCall
- type SitesChannelsListCall
- func (c *SitesChannelsListCall) Context(ctx context.Context) *SitesChannelsListCall
- func (c *SitesChannelsListCall) Do(opts ...googleapi.CallOption) (*ListChannelsResponse, error)
- func (c *SitesChannelsListCall) Fields(s ...googleapi.Field) *SitesChannelsListCall
- func (c *SitesChannelsListCall) Header() http.Header
- func (c *SitesChannelsListCall) IfNoneMatch(entityTag string) *SitesChannelsListCall
- func (c *SitesChannelsListCall) PageSize(pageSize int64) *SitesChannelsListCall
- func (c *SitesChannelsListCall) PageToken(pageToken string) *SitesChannelsListCall
- func (c *SitesChannelsListCall) Pages(ctx context.Context, f func(*ListChannelsResponse) error) error
- type SitesChannelsPatchCall
- func (c *SitesChannelsPatchCall) Context(ctx context.Context) *SitesChannelsPatchCall
- func (c *SitesChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel, error)
- func (c *SitesChannelsPatchCall) Fields(s ...googleapi.Field) *SitesChannelsPatchCall
- func (c *SitesChannelsPatchCall) Header() http.Header
- func (c *SitesChannelsPatchCall) UpdateMask(updateMask string) *SitesChannelsPatchCall
- type SitesChannelsReleasesCreateCall
- func (c *SitesChannelsReleasesCreateCall) Context(ctx context.Context) *SitesChannelsReleasesCreateCall
- func (c *SitesChannelsReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, error)
- func (c *SitesChannelsReleasesCreateCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesCreateCall
- func (c *SitesChannelsReleasesCreateCall) Header() http.Header
- func (c *SitesChannelsReleasesCreateCall) VersionName(versionName string) *SitesChannelsReleasesCreateCall
- type SitesChannelsReleasesGetCall
- func (c *SitesChannelsReleasesGetCall) Context(ctx context.Context) *SitesChannelsReleasesGetCall
- func (c *SitesChannelsReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, error)
- func (c *SitesChannelsReleasesGetCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesGetCall
- func (c *SitesChannelsReleasesGetCall) Header() http.Header
- func (c *SitesChannelsReleasesGetCall) IfNoneMatch(entityTag string) *SitesChannelsReleasesGetCall
- type SitesChannelsReleasesListCall
- func (c *SitesChannelsReleasesListCall) Context(ctx context.Context) *SitesChannelsReleasesListCall
- func (c *SitesChannelsReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse, error)
- func (c *SitesChannelsReleasesListCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesListCall
- func (c *SitesChannelsReleasesListCall) Header() http.Header
- func (c *SitesChannelsReleasesListCall) IfNoneMatch(entityTag string) *SitesChannelsReleasesListCall
- func (c *SitesChannelsReleasesListCall) PageSize(pageSize int64) *SitesChannelsReleasesListCall
- func (c *SitesChannelsReleasesListCall) PageToken(pageToken string) *SitesChannelsReleasesListCall
- func (c *SitesChannelsReleasesListCall) Pages(ctx context.Context, f func(*ListReleasesResponse) error) error
- type SitesChannelsReleasesService
- type SitesChannelsService
- func (r *SitesChannelsService) Create(parent string, channel *Channel) *SitesChannelsCreateCall
- func (r *SitesChannelsService) Delete(name string) *SitesChannelsDeleteCall
- func (r *SitesChannelsService) Get(name string) *SitesChannelsGetCall
- func (r *SitesChannelsService) List(parent string) *SitesChannelsListCall
- func (r *SitesChannelsService) Patch(name string, channel *Channel) *SitesChannelsPatchCall
- type SitesDomainsCreateCall
- func (c *SitesDomainsCreateCall) Context(ctx context.Context) *SitesDomainsCreateCall
- func (c *SitesDomainsCreateCall) Do(opts ...googleapi.CallOption) (*Domain, error)
- func (c *SitesDomainsCreateCall) Fields(s ...googleapi.Field) *SitesDomainsCreateCall
- func (c *SitesDomainsCreateCall) Header() http.Header
- type SitesDomainsDeleteCall
- func (c *SitesDomainsDeleteCall) Context(ctx context.Context) *SitesDomainsDeleteCall
- func (c *SitesDomainsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *SitesDomainsDeleteCall) Fields(s ...googleapi.Field) *SitesDomainsDeleteCall
- func (c *SitesDomainsDeleteCall) Header() http.Header
- type SitesDomainsGetCall
- func (c *SitesDomainsGetCall) Context(ctx context.Context) *SitesDomainsGetCall
- func (c *SitesDomainsGetCall) Do(opts ...googleapi.CallOption) (*Domain, error)
- func (c *SitesDomainsGetCall) Fields(s ...googleapi.Field) *SitesDomainsGetCall
- func (c *SitesDomainsGetCall) Header() http.Header
- func (c *SitesDomainsGetCall) IfNoneMatch(entityTag string) *SitesDomainsGetCall
- type SitesDomainsListCall
- func (c *SitesDomainsListCall) Context(ctx context.Context) *SitesDomainsListCall
- func (c *SitesDomainsListCall) Do(opts ...googleapi.CallOption) (*ListDomainsResponse, error)
- func (c *SitesDomainsListCall) Fields(s ...googleapi.Field) *SitesDomainsListCall
- func (c *SitesDomainsListCall) Header() http.Header
- func (c *SitesDomainsListCall) IfNoneMatch(entityTag string) *SitesDomainsListCall
- func (c *SitesDomainsListCall) PageSize(pageSize int64) *SitesDomainsListCall
- func (c *SitesDomainsListCall) PageToken(pageToken string) *SitesDomainsListCall
- func (c *SitesDomainsListCall) Pages(ctx context.Context, f func(*ListDomainsResponse) error) error
- type SitesDomainsService
- func (r *SitesDomainsService) Create(parent string, domain *Domain) *SitesDomainsCreateCall
- func (r *SitesDomainsService) Delete(name string) *SitesDomainsDeleteCall
- func (r *SitesDomainsService) Get(name string) *SitesDomainsGetCall
- func (r *SitesDomainsService) List(parent string) *SitesDomainsListCall
- func (r *SitesDomainsService) Update(name string, domain *Domain) *SitesDomainsUpdateCall
- type SitesDomainsUpdateCall
- func (c *SitesDomainsUpdateCall) Context(ctx context.Context) *SitesDomainsUpdateCall
- func (c *SitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain, error)
- func (c *SitesDomainsUpdateCall) Fields(s ...googleapi.Field) *SitesDomainsUpdateCall
- func (c *SitesDomainsUpdateCall) Header() http.Header
- type SitesGetConfigCall
- func (c *SitesGetConfigCall) Context(ctx context.Context) *SitesGetConfigCall
- func (c *SitesGetConfigCall) Do(opts ...googleapi.CallOption) (*SiteConfig, error)
- func (c *SitesGetConfigCall) Fields(s ...googleapi.Field) *SitesGetConfigCall
- func (c *SitesGetConfigCall) Header() http.Header
- func (c *SitesGetConfigCall) IfNoneMatch(entityTag string) *SitesGetConfigCall
- type SitesReleasesCreateCall
- func (c *SitesReleasesCreateCall) Context(ctx context.Context) *SitesReleasesCreateCall
- func (c *SitesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release, error)
- func (c *SitesReleasesCreateCall) Fields(s ...googleapi.Field) *SitesReleasesCreateCall
- func (c *SitesReleasesCreateCall) Header() http.Header
- func (c *SitesReleasesCreateCall) VersionName(versionName string) *SitesReleasesCreateCall
- type SitesReleasesGetCall
- func (c *SitesReleasesGetCall) Context(ctx context.Context) *SitesReleasesGetCall
- func (c *SitesReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, error)
- func (c *SitesReleasesGetCall) Fields(s ...googleapi.Field) *SitesReleasesGetCall
- func (c *SitesReleasesGetCall) Header() http.Header
- func (c *SitesReleasesGetCall) IfNoneMatch(entityTag string) *SitesReleasesGetCall
- type SitesReleasesListCall
- func (c *SitesReleasesListCall) Context(ctx context.Context) *SitesReleasesListCall
- func (c *SitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse, error)
- func (c *SitesReleasesListCall) Fields(s ...googleapi.Field) *SitesReleasesListCall
- func (c *SitesReleasesListCall) Header() http.Header
- func (c *SitesReleasesListCall) IfNoneMatch(entityTag string) *SitesReleasesListCall
- func (c *SitesReleasesListCall) PageSize(pageSize int64) *SitesReleasesListCall
- func (c *SitesReleasesListCall) PageToken(pageToken string) *SitesReleasesListCall
- func (c *SitesReleasesListCall) Pages(ctx context.Context, f func(*ListReleasesResponse) error) error
- type SitesReleasesService
- type SitesService
- type SitesUpdateConfigCall
- func (c *SitesUpdateConfigCall) Context(ctx context.Context) *SitesUpdateConfigCall
- func (c *SitesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*SiteConfig, error)
- func (c *SitesUpdateConfigCall) Fields(s ...googleapi.Field) *SitesUpdateConfigCall
- func (c *SitesUpdateConfigCall) Header() http.Header
- func (c *SitesUpdateConfigCall) UpdateMask(updateMask string) *SitesUpdateConfigCall
- type SitesVersionsCloneCall
- func (c *SitesVersionsCloneCall) Context(ctx context.Context) *SitesVersionsCloneCall
- func (c *SitesVersionsCloneCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *SitesVersionsCloneCall) Fields(s ...googleapi.Field) *SitesVersionsCloneCall
- func (c *SitesVersionsCloneCall) Header() http.Header
- type SitesVersionsCreateCall
- func (c *SitesVersionsCreateCall) Context(ctx context.Context) *SitesVersionsCreateCall
- func (c *SitesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Version, error)
- func (c *SitesVersionsCreateCall) Fields(s ...googleapi.Field) *SitesVersionsCreateCall
- func (c *SitesVersionsCreateCall) Header() http.Header
- func (c *SitesVersionsCreateCall) SizeBytes(sizeBytes int64) *SitesVersionsCreateCall
- func (c *SitesVersionsCreateCall) VersionId(versionId string) *SitesVersionsCreateCall
- type SitesVersionsDeleteCall
- func (c *SitesVersionsDeleteCall) Context(ctx context.Context) *SitesVersionsDeleteCall
- func (c *SitesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *SitesVersionsDeleteCall) Fields(s ...googleapi.Field) *SitesVersionsDeleteCall
- func (c *SitesVersionsDeleteCall) Header() http.Header
- type SitesVersionsFilesListCall
- func (c *SitesVersionsFilesListCall) Context(ctx context.Context) *SitesVersionsFilesListCall
- func (c *SitesVersionsFilesListCall) Do(opts ...googleapi.CallOption) (*ListVersionFilesResponse, error)
- func (c *SitesVersionsFilesListCall) Fields(s ...googleapi.Field) *SitesVersionsFilesListCall
- func (c *SitesVersionsFilesListCall) Header() http.Header
- func (c *SitesVersionsFilesListCall) IfNoneMatch(entityTag string) *SitesVersionsFilesListCall
- func (c *SitesVersionsFilesListCall) PageSize(pageSize int64) *SitesVersionsFilesListCall
- func (c *SitesVersionsFilesListCall) PageToken(pageToken string) *SitesVersionsFilesListCall
- func (c *SitesVersionsFilesListCall) Pages(ctx context.Context, f func(*ListVersionFilesResponse) error) error
- func (c *SitesVersionsFilesListCall) Status(status string) *SitesVersionsFilesListCall
- type SitesVersionsFilesService
- type SitesVersionsGetCall
- func (c *SitesVersionsGetCall) Context(ctx context.Context) *SitesVersionsGetCall
- func (c *SitesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error)
- func (c *SitesVersionsGetCall) Fields(s ...googleapi.Field) *SitesVersionsGetCall
- func (c *SitesVersionsGetCall) Header() http.Header
- func (c *SitesVersionsGetCall) IfNoneMatch(entityTag string) *SitesVersionsGetCall
- type SitesVersionsListCall
- func (c *SitesVersionsListCall) Context(ctx context.Context) *SitesVersionsListCall
- func (c *SitesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error)
- func (c *SitesVersionsListCall) Fields(s ...googleapi.Field) *SitesVersionsListCall
- func (c *SitesVersionsListCall) Filter(filter string) *SitesVersionsListCall
- func (c *SitesVersionsListCall) Header() http.Header
- func (c *SitesVersionsListCall) IfNoneMatch(entityTag string) *SitesVersionsListCall
- func (c *SitesVersionsListCall) PageSize(pageSize int64) *SitesVersionsListCall
- func (c *SitesVersionsListCall) PageToken(pageToken string) *SitesVersionsListCall
- func (c *SitesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error
- type SitesVersionsPatchCall
- func (c *SitesVersionsPatchCall) Context(ctx context.Context) *SitesVersionsPatchCall
- func (c *SitesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Version, error)
- func (c *SitesVersionsPatchCall) Fields(s ...googleapi.Field) *SitesVersionsPatchCall
- func (c *SitesVersionsPatchCall) Header() http.Header
- func (c *SitesVersionsPatchCall) UpdateMask(updateMask string) *SitesVersionsPatchCall
- type SitesVersionsPopulateFilesCall
- func (c *SitesVersionsPopulateFilesCall) Context(ctx context.Context) *SitesVersionsPopulateFilesCall
- func (c *SitesVersionsPopulateFilesCall) Do(opts ...googleapi.CallOption) (*PopulateVersionFilesResponse, error)
- func (c *SitesVersionsPopulateFilesCall) Fields(s ...googleapi.Field) *SitesVersionsPopulateFilesCall
- func (c *SitesVersionsPopulateFilesCall) Header() http.Header
- type SitesVersionsService
- func (r *SitesVersionsService) Clone(parent string, cloneversionrequest *CloneVersionRequest) *SitesVersionsCloneCall
- func (r *SitesVersionsService) Create(parent string, version *Version) *SitesVersionsCreateCall
- func (r *SitesVersionsService) Delete(name string) *SitesVersionsDeleteCall
- func (r *SitesVersionsService) Get(name string) *SitesVersionsGetCall
- func (r *SitesVersionsService) List(parent string) *SitesVersionsListCall
- func (r *SitesVersionsService) Patch(name string, version *Version) *SitesVersionsPatchCall
- func (r *SitesVersionsService) PopulateFiles(parent string, populateversionfilesrequest *PopulateVersionFilesRequest) *SitesVersionsPopulateFilesCall
- type Status
- type UndeleteCustomDomainRequest
- type Version
- type VersionFile
Constants¶
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"// View your data across Google Cloud services and see the email address of// your Google AccountCloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"// View and administer all your Firebase data and settingsFirebaseScope = "https://www.googleapis.com/auth/firebase"// View all your Firebase data and settingsFirebaseReadonlyScope = "https://www.googleapis.com/auth/firebase.readonly")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeActingUser¶
type ActingUser struct {// Email: The email address of the user when the user performed the action.Emailstring `json:"email,omitempty"`// ImageUrl: A profile image URL for the user. May not be present if the user// has changed their email address or deleted their account.ImageUrlstring `json:"imageUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "Email") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Email") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ActingUser: Contains metadata about the user who performed an action, suchas creating a release or finalizing a version.
func (ActingUser)MarshalJSON¶
func (sActingUser) MarshalJSON() ([]byte,error)
typeCertDnsChallenge¶
type CertDnsChallenge struct {// DomainName: The domain name upon which the DNS challenge must be satisfied.DomainNamestring `json:"domainName,omitempty"`// Token: The value that must be present as a TXT record on the domain name to// satisfy the challenge.Tokenstring `json:"token,omitempty"`// ForceSendFields is a list of field names (e.g. "DomainName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DomainName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CertDnsChallenge: Represents a DNS certificate challenge.
func (CertDnsChallenge)MarshalJSON¶
func (sCertDnsChallenge) MarshalJSON() ([]byte,error)
typeCertHttpChallenge¶
type CertHttpChallenge struct {// Path: The URL path on which to serve the specified token to satisfy the// certificate challenge.Pathstring `json:"path,omitempty"`// Token: The token to serve at the specified URL path to satisfy the// certificate challenge.Tokenstring `json:"token,omitempty"`// ForceSendFields is a list of field names (e.g. "Path") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Path") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CertHttpChallenge: Represents an HTTP certificate challenge.
func (CertHttpChallenge)MarshalJSON¶
func (sCertHttpChallenge) MarshalJSON() ([]byte,error)
typeCertVerification¶added inv0.141.0
type CertVerification struct {// Dns: Output only. A `TXT` record to add to your DNS records that confirms// your intent to let Hosting create an SSL cert for your domain name.Dns *DnsUpdates `json:"dns,omitempty"`// Http: Output only. A file to add to your existing, non-Hosting hosting// service that confirms your intent to let Hosting create an SSL cert for your// domain name.Http *HttpUpdate `json:"http,omitempty"`// ForceSendFields is a list of field names (e.g. "Dns") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Dns") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CertVerification: A set of ACME challenges you can use to allow Hosting tocreate an SSL certificate for your domain name before directing traffic toHosting servers. Use either the DNS or HTTP challenge; it's not necessary toprovide both.
func (CertVerification)MarshalJSON¶added inv0.141.0
func (sCertVerification) MarshalJSON() ([]byte,error)
typeCertificate¶added inv0.141.0
type Certificate struct {// CreateTime: Output only. The certificate's creation time. For `TEMPORARY`// certs this is the time Hosting first generated challenges for your domain// name. For all other cert types, it's the time the actual cert was created.CreateTimestring `json:"createTime,omitempty"`// ExpireTime: Output only. The certificate's expiration time. After this time,// the cert can no longer be used to provide secure communication between// Hosting and your site's visitors.ExpireTimestring `json:"expireTime,omitempty"`// Issues: Output only. A set of errors Hosting encountered when attempting to// create a cert for your domain name. Resolve these issues to ensure Hosting// is able to provide secure communication with your site's visitors.Issues []*Status `json:"issues,omitempty"`// State: Output only. The state of the certificate. Only the `CERT_ACTIVE` and// `CERT_EXPIRING_SOON` states provide SSL coverage for a domain name. If the// state is `PROPAGATING` and Hosting had an active cert for the domain name// before, that formerly-active cert provides SSL coverage for the domain name// until the current cert propagates.//// Possible values:// "CERT_STATE_UNSPECIFIED" - The certificate's state is unspecified. The// message is invalid if this is unspecified.// "CERT_PREPARING" - The initial state of every certificate, represents// Hosting's intent to create a certificate, before requests to a Certificate// Authority are made.// "CERT_VALIDATING" - Hosting is validating whether a domain name's DNS// records are in a state that allow certificate creation on its behalf.// "CERT_PROPAGATING" - The certificate was recently created, and needs time// to propagate in Hosting's CDN.// "CERT_ACTIVE" - The certificate is active, providing secure connections// for the domain names it represents.// "CERT_EXPIRING_SOON" - The certificate is expiring, all domain names on it// will be given new certificates.// "CERT_EXPIRED" - The certificate has expired. Hosting can no longer serve// secure content on your domain name.Statestring `json:"state,omitempty"`// Type: Output only. The certificate's type.//// Possible values:// "TYPE_UNSPECIFIED" - The certificate's type is unspecified. The message is// invalid if this is unspecified.// "TEMPORARY" - A short-lived certificate type that covers a domain name// temporarily, while Hosting creates a more permanent certificate.// "GROUPED" - The standard certificate for Spark plan custom domains.// "PROJECT_GROUPED" - Blaze plan only. A certificate that covers from 1 to// 100 domain names with custom domains on the same Firebase project.// "DEDICATED" - Blaze plan only. A certificate that covers a single domain// name.Typestring `json:"type,omitempty"`// Verification: Output only. A set of ACME challenges you can add to your DNS// records or existing, non-Hosting hosting provider to allow Hosting to create// an SSL certificate for your domain name before you point traffic toward// hosting. You can use thse challenges as part of a zero downtime transition// from your old provider to Hosting.Verification *CertVerification `json:"verification,omitempty"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Certificate: An SSL certificate used to provide end-to-end encryption forrequests against your domain name. A `Certificate` can be an actual SSLcertificate or, for newly-created custom domains, Hosting's intent to createone.
func (Certificate)MarshalJSON¶added inv0.141.0
func (sCertificate) MarshalJSON() ([]byte,error)
typeChannel¶added inv0.32.0
type Channel struct {// CreateTime: Output only. The time at which the channel was created.CreateTimestring `json:"createTime,omitempty"`// ExpireTime: The time at which the channel will be automatically deleted. If// null, the channel will not be automatically deleted. This field is present// in the output whether it's set directly or via the `ttl` field.ExpireTimestring `json:"expireTime,omitempty"`// Labels: Text labels used for extra metadata and/or filtering.Labels map[string]string `json:"labels,omitempty"`// Name: The fully-qualified resource name for the channel, in the format:// sites/ SITE_ID/channels/CHANNEL_IDNamestring `json:"name,omitempty"`// Release: Output only. The current release for the channel, if any.Release *Release `json:"release,omitempty"`// RetainedReleaseCount: The number of previous releases to retain on the// channel for rollback or other purposes. Must be a number between 1-100.// Defaults to 10 for new channels.RetainedReleaseCountint64 `json:"retainedReleaseCount,omitempty"`// Ttl: Input only. A time-to-live for this channel. Sets `expire_time` to the// provided duration past the time of the request.Ttlstring `json:"ttl,omitempty"`// UpdateTime: Output only. The time at which the channel was last updated.UpdateTimestring `json:"updateTime,omitempty"`// Url: Output only. The URL at which the content of this channel's current// release can be viewed. This URL is a Firebase-provided subdomain of// `web.app`. The content of this channel's current release can also be viewed// at the Firebase-provided subdomain of `firebaseapp.com`. If this channel is// the `live` channel for the Hosting site, then the content of this channel's// current release can also be viewed at any connected custom domains.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Channel: A `Channel` represents a stream of releases for a site. All siteshave a default `live` channel that serves content to the Firebase-providedsubdomains and any connected custom domains.
func (Channel)MarshalJSON¶added inv0.32.0
typeCloneVersionRequest¶added inv0.16.0
type CloneVersionRequest struct {// Exclude: If provided, only paths that do not match any of the RegEx values// in this list will be included in the new version.Exclude *PathFilter `json:"exclude,omitempty"`// Finalize: If true, the call to `CloneVersion` immediately finalizes the// version after cloning is complete. If false, the cloned version will have a// status of `CREATED`. Use `UpdateVersion` (patch) to set the status of the// version to `FINALIZED`.Finalizebool `json:"finalize,omitempty"`// Include: If provided, only paths that match one or more RegEx values in this// list will be included in the new version.Include *PathFilter `json:"include,omitempty"`// SourceVersion: Required. The unique identifier for the version to be cloned,// in the format: sites/SITE_ID/versions/VERSION_IDSourceVersionstring `json:"sourceVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "Exclude") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Exclude") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (CloneVersionRequest)MarshalJSON¶added inv0.16.0
func (sCloneVersionRequest) MarshalJSON() ([]byte,error)
typeCloudRunRewrite¶added inv0.2.0
type CloudRunRewrite struct {// Region: Optional. User-provided region where the Cloud Run service is// hosted. Defaults to `us-central1` if not supplied.Regionstring `json:"region,omitempty"`// ServiceId: Required. User-defined ID of the Cloud Run service.ServiceIdstring `json:"serviceId,omitempty"`// Tag: Optional. User-provided TrafficConfig tag to send traffic to. When// omitted, traffic is sent to the service-wide URITagstring `json:"tag,omitempty"`// ForceSendFields is a list of field names (e.g. "Region") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Region") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CloudRunRewrite: A configured rewrite that directs requests to a Cloud Runservice. If the Cloud Run service does not exist when setting or updatingyour Firebase Hosting configuration, then the request fails. Any errors fromthe Cloud Run service are passed to the end user (for example, if you deletea service, any requests directed to that service receive a `404` error).
func (CloudRunRewrite)MarshalJSON¶added inv0.2.0
func (sCloudRunRewrite) MarshalJSON() ([]byte,error)
typeCustomDomain¶added inv0.141.0
type CustomDomain struct {// Annotations: Annotations you can add to leave both human- and// machine-readable metadata about your `CustomDomain`.Annotations map[string]string `json:"annotations,omitempty"`// Cert: Output only. The SSL certificate Hosting has for this custom domain's// domain name. For new custom domains, this often represents Hosting's intent// to create a certificate, rather than an actual cert. Check the `state` field// for more.Cert *Certificate `json:"cert,omitempty"`// CertPreference: A field that lets you specify which SSL certificate type// Hosting creates for your domain name. Spark plan custom domains only have// access to the `GROUPED` cert type, while Blaze plan domains can select any// option.//// Possible values:// "TYPE_UNSPECIFIED" - The certificate's type is unspecified. The message is// invalid if this is unspecified.// "TEMPORARY" - A short-lived certificate type that covers a domain name// temporarily, while Hosting creates a more permanent certificate.// "GROUPED" - The standard certificate for Spark plan custom domains.// "PROJECT_GROUPED" - Blaze plan only. A certificate that covers from 1 to// 100 domain names with custom domains on the same Firebase project.// "DEDICATED" - Blaze plan only. A certificate that covers a single domain// name.CertPreferencestring `json:"certPreference,omitempty"`// CreateTime: Output only. The custom domain's create time.CreateTimestring `json:"createTime,omitempty"`// DeleteTime: Output only. The time the `CustomDomain` was deleted; null for// custom domains that haven't been deleted. Deleted custom domains persist for// approximately 30 days, after which time Hosting removes them completely. To// restore a deleted custom domain, make an `UndeleteCustomDomain` request.DeleteTimestring `json:"deleteTime,omitempty"`// Etag: Output only. A string that represents the current state of the// `CustomDomain` and allows you to confirm its initial state in requests that// would modify it. Use the tag to ensure consistency when making// `UpdateCustomDomain`, `DeleteCustomDomain`, and `UndeleteCustomDomain`// requests.Etagstring `json:"etag,omitempty"`// ExpireTime: Output only. The minimum time before a soft-deleted// `CustomDomain` is completely removed from Hosting; null for custom domains// that haven't been deleted.ExpireTimestring `json:"expireTime,omitempty"`// HostState: Output only. The `HostState` of the domain name this// `CustomDomain` refers to.//// Possible values:// "HOST_STATE_UNSPECIFIED" - Your custom domain's host state is unspecified.// The message is invalid if this is unspecified.// "HOST_UNHOSTED" - Your custom domain's domain name isn't associated with// any IP addresses.// "HOST_UNREACHABLE" - Your custom domain's domain name can't be reached.// Hosting services' DNS queries to find your domain name's IP addresses// resulted in errors. See your `CustomDomain` object's `issues` field for more// details.// "HOST_MISMATCH" - Your custom domain's domain name has IP addresses that// don't ultimately resolve to Hosting.// "HOST_CONFLICT" - Your custom domain's domain name has IP addresses that// resolve to both Hosting and other services. To ensure consistent results,// remove `A` and `AAAA` records related to non-Hosting services.// "HOST_ACTIVE" - All requests against your custom domain's domain name are// served by Hosting. If the custom domain's `OwnershipState` is also `ACTIVE`,// Hosting serves your Hosting site's content on the domain name.HostStatestring `json:"hostState,omitempty"`// Issues: Output only. A set of errors Hosting systems encountered when trying// to establish Hosting's ability to serve secure content for your domain name.// Resolve these issues to ensure your `CustomDomain` behaves properly.Issues []*Status `json:"issues,omitempty"`// Labels: Labels used for extra metadata and/or filtering.Labels map[string]string `json:"labels,omitempty"`// Name: Output only. The fully-qualified name of the `CustomDomain`.Namestring `json:"name,omitempty"`// OwnershipState: Output only. The `OwnershipState` of the domain name this// `CustomDomain` refers to.//// Possible values:// "OWNERSHIP_STATE_UNSPECIFIED" - Your custom domain's ownership state is// unspecified. This should never happen.// "OWNERSHIP_MISSING" - Your custom domain's domain name has no// Hosting-related ownership records; no Firebase project has permission to act// on the domain name's behalf.// "OWNERSHIP_UNREACHABLE" - Your custom domain's domain name can't be// reached. Hosting services' DNS queries to find your domain name's ownership// records resulted in errors. See your `CustomDomain` object's `issues` field// for more details.// "OWNERSHIP_MISMATCH" - Your custom domain's domain name is owned by// another Firebase project. Remove the conflicting `TXT` records and replace// them with project-specific records for your current Firebase project.// "OWNERSHIP_CONFLICT" - Your custom domain's domain name has conflicting// `TXT` records that indicate ownership by both your current Firebase project// and another project. Remove the other project's ownership records to grant// the current project ownership.// "OWNERSHIP_PENDING" - Your custom domain's DNS records are configured// correctly. Hosting will transfer ownership of your domain to this// `CustomDomain` within 24 hours.// "OWNERSHIP_ACTIVE" - Your custom domain's domain name has `TXT` records// that grant its project permission to act on its behalf.OwnershipStatestring `json:"ownershipState,omitempty"`// Reconciling: Output only. A field that, if true, indicates that Hosting's// systems are attmepting to make the custom domain's state match your// preferred state. This is most frequently `true` when initially provisioning// a `CustomDomain` after a `CreateCustomDomain` request or when creating a new// SSL certificate to match an updated `cert_preference` after an// `UpdateCustomDomain` request.Reconcilingbool `json:"reconciling,omitempty"`// RedirectTarget: A domain name that this `CustomDomain` should direct traffic// towards. If specified, Hosting will respond to requests against this custom// domain with an HTTP 301 code, and route traffic to the specified// `redirect_target` instead.RedirectTargetstring `json:"redirectTarget,omitempty"`// RequiredDnsUpdates: Output only. A set of updates you should make to the// domain name's DNS records to let Hosting serve secure content on its behalf.RequiredDnsUpdates *DnsUpdates `json:"requiredDnsUpdates,omitempty"`// UpdateTime: Output only. The last time the `CustomDomain` was updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Annotations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CustomDomain: A `CustomDomain` is an entity that links a domain name to aFirebase Hosting site. Add a `CustomDomain` to your site to allow Hosting toserve the site's content in response to requests against your domain name.
func (CustomDomain)MarshalJSON¶added inv0.141.0
func (sCustomDomain) MarshalJSON() ([]byte,error)
typeCustomDomainMetadata¶added inv0.141.0
type CustomDomainMetadata struct {// CertState: The `CertState` of the domain name's SSL certificate.//// Possible values:// "CERT_STATE_UNSPECIFIED" - The certificate's state is unspecified. The// message is invalid if this is unspecified.// "CERT_PREPARING" - The initial state of every certificate, represents// Hosting's intent to create a certificate, before requests to a Certificate// Authority are made.// "CERT_VALIDATING" - Hosting is validating whether a domain name's DNS// records are in a state that allow certificate creation on its behalf.// "CERT_PROPAGATING" - The certificate was recently created, and needs time// to propagate in Hosting's CDN.// "CERT_ACTIVE" - The certificate is active, providing secure connections// for the domain names it represents.// "CERT_EXPIRING_SOON" - The certificate is expiring, all domain names on it// will be given new certificates.// "CERT_EXPIRED" - The certificate has expired. Hosting can no longer serve// secure content on your domain name.CertStatestring `json:"certState,omitempty"`// HostState: The `HostState` of the domain name this `CustomDomain` refers to.//// Possible values:// "HOST_STATE_UNSPECIFIED" - Your custom domain's host state is unspecified.// The message is invalid if this is unspecified.// "HOST_UNHOSTED" - Your custom domain's domain name isn't associated with// any IP addresses.// "HOST_UNREACHABLE" - Your custom domain's domain name can't be reached.// Hosting services' DNS queries to find your domain name's IP addresses// resulted in errors. See your `CustomDomain` object's `issues` field for more// details.// "HOST_MISMATCH" - Your custom domain's domain name has IP addresses that// don't ultimately resolve to Hosting.// "HOST_CONFLICT" - Your custom domain's domain name has IP addresses that// resolve to both Hosting and other services. To ensure consistent results,// remove `A` and `AAAA` records related to non-Hosting services.// "HOST_ACTIVE" - All requests against your custom domain's domain name are// served by Hosting. If the custom domain's `OwnershipState` is also `ACTIVE`,// Hosting serves your Hosting site's content on the domain name.HostStatestring `json:"hostState,omitempty"`// Issues: A list of issues that are currently preventing Hosting from// completing the operation. These are generally DNS-related issues that// Hosting encounters when querying a domain name's records or attempting to// mint an SSL certificate.Issues []*Status `json:"issues,omitempty"`// LiveMigrationSteps: A set of DNS record updates and ACME challenges that// allow you to transition domain names to Firebase Hosting with zero downtime.// These updates allow Hosting to create an SSL certificate and establish// ownership for your custom domain before Hosting begins serving traffic on// it. If your domain name is already in active use with another provider, add// one of the challenges and make the recommended DNS updates. After adding// challenges and adjusting DNS records as necessary, wait for the// `ownershipState` to be `OWNERSHIP_ACTIVE` and the `certState` to be// `CERT_ACTIVE` before sending traffic to Hosting.LiveMigrationSteps []*LiveMigrationStep `json:"liveMigrationSteps,omitempty"`// OwnershipState: The `OwnershipState` of the domain name this `CustomDomain`// refers to.//// Possible values:// "OWNERSHIP_STATE_UNSPECIFIED" - Your custom domain's ownership state is// unspecified. This should never happen.// "OWNERSHIP_MISSING" - Your custom domain's domain name has no// Hosting-related ownership records; no Firebase project has permission to act// on the domain name's behalf.// "OWNERSHIP_UNREACHABLE" - Your custom domain's domain name can't be// reached. Hosting services' DNS queries to find your domain name's ownership// records resulted in errors. See your `CustomDomain` object's `issues` field// for more details.// "OWNERSHIP_MISMATCH" - Your custom domain's domain name is owned by// another Firebase project. Remove the conflicting `TXT` records and replace// them with project-specific records for your current Firebase project.// "OWNERSHIP_CONFLICT" - Your custom domain's domain name has conflicting// `TXT` records that indicate ownership by both your current Firebase project// and another project. Remove the other project's ownership records to grant// the current project ownership.// "OWNERSHIP_PENDING" - Your custom domain's DNS records are configured// correctly. Hosting will transfer ownership of your domain to this// `CustomDomain` within 24 hours.// "OWNERSHIP_ACTIVE" - Your custom domain's domain name has `TXT` records// that grant its project permission to act on its behalf.OwnershipStatestring `json:"ownershipState,omitempty"`// QuickSetupUpdates: A set of DNS record updates that allow Hosting to serve// secure content on your domain name. The record type determines the update's// purpose: - `A` and `AAAA`: Updates your domain name's IP addresses so that// they direct traffic to Hosting servers. - `TXT`: Updates ownership// permissions on your domain name, letting Hosting know that your custom// domain's project has permission to perform actions for that domain name. -// `CAA`: Updates your domain name's list of authorized Certificate Authorities// (CAs). Only present if you have existing `CAA` records that prohibit// Hosting's CA from minting certs for your domain name. These updates include// all DNS changes you'll need to get started with Hosting, but, if made all at// once, can result in a brief period of downtime for your domain name--while// Hosting creates and uploads an SSL cert, for example. If you'd like to add// your domain name to Hosting without downtime, complete the// `liveMigrationSteps` first, before making the remaining updates in this// field.QuickSetupUpdates *DnsUpdates `json:"quickSetupUpdates,omitempty"`// ForceSendFields is a list of field names (e.g. "CertState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CustomDomainMetadata: Metadata associated with a`CustomDomain` operation.
func (CustomDomainMetadata)MarshalJSON¶added inv0.141.0
func (sCustomDomainMetadata) MarshalJSON() ([]byte,error)
typeDnsRecord¶added inv0.141.0
type DnsRecord struct {// DomainName: Output only. The domain name the record pertains to, e.g.// `foo.bar.com.`.DomainNamestring `json:"domainName,omitempty"`// Rdata: Output only. The data of the record. The meaning of the value depends// on record type: - A and AAAA: IP addresses for the domain name. - CNAME:// Another domain to check for records. - TXT: Arbitrary text strings// associated with the domain name. Hosting uses TXT records to determine which// Firebase projects have permission to act on the domain name's behalf. - CAA:// The record's flags, tag, and value, e.g. `0 issue "pki.goog".Rdatastring `json:"rdata,omitempty"`// RequiredAction: Output only. An enum that indicates the a required action// for this record.//// Possible values:// "NONE" - No action necessary.// "ADD" - Add this record to your DNS records.// "REMOVE" - Remove this record from your DNS records.RequiredActionstring `json:"requiredAction,omitempty"`// Type: Output only. The record's type, which determines what data the record// contains.//// Possible values:// "TYPE_UNSPECIFIED" - The record's type is unspecified. The message is// invalid if this is unspecified.// "A" - An `A` record, as defined in [RFC// 1035](https://tools.ietf.org/html/rfc1035). A records determine which IPv4// addresses a domain name directs traffic towards.// "CNAME" - A `CNAME` record, as defined in [RFC// 1035](https://tools.ietf.org/html/rfc1035). `CNAME` or Canonical Name// records map a domain name to a different, canonical domain name. If a// `CNAME` record is present, it should be the only record on the domain name.// "TXT" - A `TXT` record, as defined in [RFC// 1035](https://tools.ietf.org/html/rfc1035). `TXT` records hold arbitrary// text data on a domain name. Hosting uses `TXT` records to establish which// Firebase Project has permission to act on a domain name.// "AAAA" - An AAAA record, as defined in [RFC// 3596](https://tools.ietf.org/html/rfc3596) AAAA records determine which IPv6// addresses a domain name directs traffic towards.// "CAA" - A CAA record, as defined in [RFC// 6844](https://tools.ietf.org/html/rfc6844). CAA, or Certificate Authority// Authorization, records determine which Certificate Authorities (SSL// certificate minting organizations) are authorized to mint a certificate for// the domain name. Firebase Hosting uses `pki.goog` as its primary CA. CAA// records cascade. A CAA record on `foo.com` also applies to `bar.foo.com`// unless `bar.foo.com` has its own set of CAA records. CAA records are// optional. If a domain name and its parents have no CAA records, all CAs are// authorized to mint certificates on its behalf. In general, Hosting only asks// you to modify CAA records when doing so is required to unblock SSL cert// creation.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "DomainName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DomainName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DnsRecord: DNS records are resource records that define how systems andservices should behave when handling requests for a domain name. Forexample, when you add `A` records to your domain name's DNS records, you'reinforming other systems (such as your users' web browsers) to contact thoseIPv4 addresses to retrieve resources relevant to your domain name (such asyour Hosting site files).
func (DnsRecord)MarshalJSON¶added inv0.141.0
typeDnsRecordSet¶added inv0.141.0
type DnsRecordSet struct {// CheckError: Output only. An error Hosting services encountered when querying// your domain name's DNS records. Note: Hosting ignores `NXDOMAIN` errors, as// those generally just mean that a domain name hasn't been set up yet.CheckError *Status `json:"checkError,omitempty"`// DomainName: Output only. The domain name the record set pertains to.DomainNamestring `json:"domainName,omitempty"`// Records: Output only. Records on the domain.Records []*DnsRecord `json:"records,omitempty"`// ForceSendFields is a list of field names (e.g. "CheckError") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CheckError") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DnsRecordSet: A set of DNS records relevant to the setup and maintenance ofa custom domain in Firebase Hosting.
func (DnsRecordSet)MarshalJSON¶added inv0.141.0
func (sDnsRecordSet) MarshalJSON() ([]byte,error)
typeDnsUpdates¶added inv0.141.0
type DnsUpdates struct {// CheckTime: The last time Hosting checked your custom domain's DNS records.CheckTimestring `json:"checkTime,omitempty"`// Desired: The set of DNS records Hosting needs to serve secure content on the// domain.Desired []*DnsRecordSet `json:"desired,omitempty"`// Discovered: The set of DNS records Hosting discovered when inspecting a// domain.Discovered []*DnsRecordSet `json:"discovered,omitempty"`// ForceSendFields is a list of field names (e.g. "CheckTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CheckTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DnsUpdates: A set of DNS record updates that you should make to allowHosting to serve secure content in response to requests against your domainname. These updates present the current state of your domain name's DNSrecords when Hosting last queried them, and the desired set of records thatHosting needs to see before your custom domain can be fully active.
func (DnsUpdates)MarshalJSON¶added inv0.141.0
func (sDnsUpdates) MarshalJSON() ([]byte,error)
typeDomain¶
type Domain struct {// DomainName: Required. The domain name of the association.DomainNamestring `json:"domainName,omitempty"`// DomainRedirect: If set, the domain should redirect with the provided// parameters.DomainRedirect *DomainRedirect `json:"domainRedirect,omitempty"`// Provisioning: Output only. Information about the provisioning of// certificates and the health of the DNS resolution for the domain.Provisioning *DomainProvisioning `json:"provisioning,omitempty"`// Site: Required. The site name of the association.Sitestring `json:"site,omitempty"`// Status: Output only. Additional status of the domain association.//// Possible values:// "DOMAIN_STATUS_UNSPECIFIED" - Unspecified domain association status.// "DOMAIN_CHANGE_PENDING" - An external operation is in progress on the// domain association and no further operations can be performed until it is// complete. Formerly used for metabase updates. Not currently used// "DOMAIN_ACTIVE" - The domain association is active and no additional// action is required.// "DOMAIN_VERIFICATION_REQUIRED" - The domain was previously verified in the// legacy system. User must reverify the domain through the ownership service.// "DOMAIN_VERIFICATION_LOST" - The domain verification has been lost and the// domain is in the grace period before being removed from the Firebase Hosting// site.Statusstring `json:"status,omitempty"`// UpdateTime: Output only. The time at which the domain was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DomainName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DomainName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Domain: The intended behavior and status information of a domain.
func (Domain)MarshalJSON¶
typeDomainProvisioning¶
type DomainProvisioning struct {// CertChallengeDiscoveredTxt: The TXT records (for the certificate challenge)// that were found at the last DNS fetch.CertChallengeDiscoveredTxt []string `json:"certChallengeDiscoveredTxt,omitempty"`// CertChallengeDns: The DNS challenge for generating a certificate.CertChallengeDns *CertDnsChallenge `json:"certChallengeDns,omitempty"`// CertChallengeHttp: The HTTP challenge for generating a certificate.CertChallengeHttp *CertHttpChallenge `json:"certChallengeHttp,omitempty"`// CertStatus: The certificate provisioning status; updated when Firebase// Hosting provisions an SSL certificate for the domain.//// Possible values:// "CERT_STATUS_UNSPECIFIED" - Unspecified certificate provisioning status.// "CERT_PENDING" - Waiting for certificate challenge to be created.// "CERT_MISSING" - Waiting for certificate challenge to be met.// "CERT_PROCESSING" - Certificate challenge met; attempting to// acquire/propagate certificate.// "CERT_PROPAGATING" - Certificate obtained; propagating to the CDN.// "CERT_ACTIVE" - Certificate provisioned and deployed across the CDN.// "CERT_ERROR" - Certificate provisioning failed in a non-recoverable// manner.CertStatusstring `json:"certStatus,omitempty"`// DiscoveredIps: The IPs found at the last DNS fetch.DiscoveredIps []string `json:"discoveredIps,omitempty"`// DnsFetchTime: The time at which the last DNS fetch occurred.DnsFetchTimestring `json:"dnsFetchTime,omitempty"`// DnsStatus: The DNS record match status as of the last DNS fetch.//// Possible values:// "DNS_STATUS_UNSPECIFIED" - Unspecified DNS status.// "DNS_PENDING" - No DNS records have been specified for this domain yet.// "DNS_MISSING" - None of the required DNS records have been detected on the// domain.// "DNS_PARTIAL_MATCH" - Some of the required DNS records were detected, but// not all of them. No extra (non-required) DNS records were detected.// "DNS_MATCH" - All required DNS records were detected. No extra// (non-required) DNS records were detected.// "DNS_EXTRANEOUS_MATCH" - The domain has at least one of the required DNS// records, and it has at least one extra (non-required) DNS record.DnsStatusstring `json:"dnsStatus,omitempty"`// ExpectedIps: The list of IPs to which the domain is expected to resolve.ExpectedIps []string `json:"expectedIps,omitempty"`// ForceSendFields is a list of field names (e.g. "CertChallengeDiscoveredTxt")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertChallengeDiscoveredTxt") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DomainProvisioning: The current certificate provisioning status informationfor a domain.
func (DomainProvisioning)MarshalJSON¶
func (sDomainProvisioning) MarshalJSON() ([]byte,error)
typeDomainRedirect¶
type DomainRedirect struct {// DomainName: Required. The domain name to redirect to.DomainNamestring `json:"domainName,omitempty"`// Type: Required. The redirect status code.//// Possible values:// "REDIRECT_TYPE_UNSPECIFIED" - The default redirect type; should not be// intentionlly used.// "MOVED_PERMANENTLY" - The redirect will respond with an HTTP status code// of `301 Moved Permanently`.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "DomainName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DomainName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DomainRedirect: Defines the behavior of a domain-level redirect. Domainredirects preserve the path of the redirect but replace the requested domainwith the one specified in the redirect configuration.
func (DomainRedirect)MarshalJSON¶
func (sDomainRedirect) MarshalJSON() ([]byte,error)
typeEmpty¶
type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeHeader¶
type Header struct {// Glob: The user-supplied glob// (https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching)// to match against the request URL path.Globstring `json:"glob,omitempty"`// Headers: Required. The additional headers to add to the response.Headers map[string]string `json:"headers,omitempty"`// Regex: The user-supplied RE2 regular expression to match against the request// URL path.Regexstring `json:"regex,omitempty"`// ForceSendFields is a list of field names (e.g. "Glob") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Glob") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Header: A `Header`(https://firebase.google.com/docs/hosting/full-config#headers) specifies aURL pattern that, if matched to the request URL path, triggers Hosting toapply the specified custom response headers.
func (Header)MarshalJSON¶
typeHttpUpdate¶added inv0.141.0
type HttpUpdate struct {// CheckError: Output only. An error encountered during the last contents// check. If null, the check completed successfully.CheckError *Status `json:"checkError,omitempty"`// Desired: Output only. A text string to serve at the path.Desiredstring `json:"desired,omitempty"`// Discovered: Output only. Whether Hosting was able to find the required file// contents on the specified path during its last check.Discoveredstring `json:"discovered,omitempty"`// LastCheckTime: Output only. The last time Hosting systems checked for the// file contents.LastCheckTimestring `json:"lastCheckTime,omitempty"`// Path: Output only. The path to the file.Pathstring `json:"path,omitempty"`// ForceSendFields is a list of field names (e.g. "CheckError") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CheckError") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}HttpUpdate: A file you can add to your existing, non-Hosting hosting servicethat confirms your intent to allow Hosting's Certificate Authorities tocreate an SSL certificate for your domain.
func (HttpUpdate)MarshalJSON¶added inv0.141.0
func (sHttpUpdate) MarshalJSON() ([]byte,error)
typeI18nConfig¶added inv0.31.0
type I18nConfig struct {// Root: Required. The user-supplied path where country and language specific// content will be looked for within the public directory.Rootstring `json:"root,omitempty"`// ForceSendFields is a list of field names (e.g. "Root") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Root") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}I18nConfig: If provided, i18n rewrites are enabled.
func (I18nConfig)MarshalJSON¶added inv0.31.0
func (sI18nConfig) MarshalJSON() ([]byte,error)
typeListChannelsResponse¶added inv0.32.0
type ListChannelsResponse struct {// Channels: The list of channels.Channels []*Channel `json:"channels,omitempty"`// NextPageToken: The pagination token, if more results exist beyond the ones// in this response. Include this token in your next call to `ListChannels`.// Page tokens are short-lived and should not be stored.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Channels") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Channels") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ListChannelsResponse)MarshalJSON¶added inv0.32.0
func (sListChannelsResponse) MarshalJSON() ([]byte,error)
typeListCustomDomainsResponse¶added inv0.141.0
type ListCustomDomainsResponse struct {// CustomDomains: A list of `CustomDomain` entities associated with the// specified Firebase `Site`.CustomDomains []*CustomDomain `json:"customDomains,omitempty"`// NextPageToken: The pagination token, if more results exist beyond the ones// in this response. Include this token in your next call to// `ListCustomDomains`. Page tokens are short-lived and should not be stored.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CustomDomains") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CustomDomains") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListCustomDomainsResponse: The response from `ListCustomDomains`.
func (ListCustomDomainsResponse)MarshalJSON¶added inv0.141.0
func (sListCustomDomainsResponse) MarshalJSON() ([]byte,error)
typeListDomainsResponse¶
type ListDomainsResponse struct {// Domains: The list of domains, if any exist.Domains []*Domain `json:"domains,omitempty"`// NextPageToken: The pagination token, if more results exist.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Domains") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Domains") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListDomainsResponse: The response to listing Domains.
func (ListDomainsResponse)MarshalJSON¶
func (sListDomainsResponse) MarshalJSON() ([]byte,error)
typeListOperationsResponse¶added inv0.141.0
type ListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: A list of operations that matches the specified filter in the// request.Operations []*Operation `json:"operations,omitempty"`// Unreachable: Unordered list. Unreachable resources. Populated when the// request sets `ListOperationsRequest.return_partial_success` and reads across// collections e.g. when attempting to list all resources across all supported// locations.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListOperationsResponse: The response message for Operations.ListOperations.
func (ListOperationsResponse)MarshalJSON¶added inv0.141.0
func (sListOperationsResponse) MarshalJSON() ([]byte,error)
typeListReleasesResponse¶
type ListReleasesResponse struct {// NextPageToken: The pagination token, if more results exist beyond the ones// in this response. Include this token in your next call to `ListReleases`.// Page tokens are short-lived and should not be stored.NextPageTokenstring `json:"nextPageToken,omitempty"`// Releases: The list of hashes of files that still need to be uploaded, if any// exist.Releases []*Release `json:"releases,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ListReleasesResponse)MarshalJSON¶
func (sListReleasesResponse) MarshalJSON() ([]byte,error)
typeListSitesResponse¶added inv0.42.0
type ListSitesResponse struct {// NextPageToken: The pagination token, if more results exist beyond the ones// in this response. Include this token in your next call to `ListSites`. Page// tokens are short-lived and should not be stored.NextPageTokenstring `json:"nextPageToken,omitempty"`// Sites: A list of Site objects associated with the specified Firebase// project.Sites []*Site `json:"sites,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ListSitesResponse)MarshalJSON¶added inv0.42.0
func (sListSitesResponse) MarshalJSON() ([]byte,error)
typeListVersionFilesResponse¶
type ListVersionFilesResponse struct {// Files: The list of paths to the hashes of the files in the specified// version.Files []*VersionFile `json:"files,omitempty"`// NextPageToken: The pagination token, if more results exist beyond the ones// in this response. Include this token in your next call to// `ListVersionFiles`. Page tokens are short-lived and should not be stored.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Files") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Files") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ListVersionFilesResponse)MarshalJSON¶
func (sListVersionFilesResponse) MarshalJSON() ([]byte,error)
typeListVersionsResponse¶added inv0.14.0
type ListVersionsResponse struct {// NextPageToken: The pagination token, if more results exist beyond the ones// in this response. Include this token in your next call to `ListVersions`.// Page tokens are short-lived and should not be stored.NextPageTokenstring `json:"nextPageToken,omitempty"`// Versions: The list of versions, if any exist.Versions []*Version `json:"versions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ListVersionsResponse)MarshalJSON¶added inv0.14.0
func (sListVersionsResponse) MarshalJSON() ([]byte,error)
typeLiveMigrationStep¶added inv0.141.0
type LiveMigrationStep struct {// CertVerification: Output only. A pair of ACME challenges that Hosting's// Certificate Authority (CA) can use to create an SSL cert for your domain// name. Use either the DNS or HTTP challenge; it's not necessary to provide// both.CertVerification *CertVerification `json:"certVerification,omitempty"`// DnsUpdates: Output only. DNS updates to facilitate your domain's// zero-downtime migration to Hosting.DnsUpdates *DnsUpdates `json:"dnsUpdates,omitempty"`// Issues: Output only. Issues that prevent the current step from completing.Issues []*Status `json:"issues,omitempty"`// State: Output only. The state of the live migration step, indicates whether// you should work to complete the step now, in the future, or have already// completed it.//// Possible values:// "STATE_UNSPECIFIED" - The step's state is unspecified. The message is// invalid if this is unspecified.// "PREPARING" - Hosting doesn't have enough information to construct the// step yet. Complete any prior steps and/or resolve this step's issue to// proceed.// "PENDING" - The step's state is pending. Complete prior steps before// working on a `PENDING` step.// "INCOMPLETE" - The step is incomplete. You should complete any// `certVerification` or `dnsUpdates` changes to complete it.// "PROCESSING" - You've done your part to update records and present// challenges as necessary. Hosting is now completing background processes to// complete the step, e.g. minting an SSL cert for your domain name.// "COMPLETE" - The step is complete. You've already made the necessary// changes to your domain and/or prior hosting service to advance to the next// step. Once all steps are complete, Hosting is ready to serve secure content// on your domain.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "CertVerification") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertVerification") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LiveMigrationStep: A set of updates including ACME challenges and DNSrecords that allow Hosting to create an SSL certificate and establishproject ownership for your domain name before you direct traffic to Hostingservers. Use these updates to facilitate zero downtime migrations to Hostingfrom other services. After you've made the recommended updates, check yourcustom domain's `ownershipState` and `certState`. To avoid downtime, theyshould be `OWNERSHIP_ACTIVE` and `CERT_ACTIVE`, respectively, before youupdate your `A` and `AAAA` records.
func (LiveMigrationStep)MarshalJSON¶added inv0.141.0
func (sLiveMigrationStep) MarshalJSON() ([]byte,error)
typeOperation¶added inv0.16.0
type Operation struct {// Done: If the value is `false`, it means the operation is still in progress.// If `true`, the operation is completed, and either `error` or `response` is// available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or cancellation.Error *Status `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation. It// typically contains progress information and common metadata such as create// time. Some services might not provide such metadata. Any method that returns// a long-running operation should document the metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same service// that originally returns it. If you use the default HTTP mapping, the `name`// should be a resource name ending with `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal, successful response of the operation. If the original// method returns no data on success, such as `Delete`, the response is// `google.protobuf.Empty`. If the original method is standard// `Get`/`Create`/`Update`, the response should be the resource. For other// methods, the response should have the type `XxxResponse`, where `Xxx` is the// original method name. For example, if the original method name is// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Operation: This resource represents a long-running operation that is theresult of a network API call.
func (Operation)MarshalJSON¶added inv0.16.0
typePathFilter¶added inv0.16.0
type PathFilter struct {// Regexes: An array of RegEx values by which to filter.Regexes []string `json:"regexes,omitempty"`// ForceSendFields is a list of field names (e.g. "Regexes") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Regexes") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PathFilter: A representation of filter path.
func (PathFilter)MarshalJSON¶added inv0.16.0
func (sPathFilter) MarshalJSON() ([]byte,error)
typePopulateVersionFilesRequest¶
type PopulateVersionFilesRequest struct {// Files: A set of file paths to the hashes corresponding to assets that should// be added to the version. A file path to an empty hash will remove the path// from the version. Calculate a hash by Gzipping the file then taking the// SHA256 hash of the newly compressed file.Files map[string]string `json:"files,omitempty"`// ForceSendFields is a list of field names (e.g. "Files") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Files") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PopulateVersionFilesRequest)MarshalJSON¶
func (sPopulateVersionFilesRequest) MarshalJSON() ([]byte,error)
typePopulateVersionFilesResponse¶
type PopulateVersionFilesResponse struct {// UploadRequiredHashes: The content hashes of the specified files that need to// be uploaded to the specified URL.UploadRequiredHashes []string `json:"uploadRequiredHashes,omitempty"`// UploadUrl: The URL to which the files should be uploaded, in the format:// "https://upload-firebasehosting.googleapis.com/upload/sites/SITE_ID// /versions/VERSION_ID/files" Perform a multipart `POST` of the Gzipped file// contents to the URL using a forward slash and the hash of the file appended// to the end.UploadUrlstring `json:"uploadUrl,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "UploadRequiredHashes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "UploadRequiredHashes") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PopulateVersionFilesResponse)MarshalJSON¶
func (sPopulateVersionFilesResponse) MarshalJSON() ([]byte,error)
typeProjectsOperationsGetCall¶added inv0.16.0
type ProjectsOperationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsOperationsGetCall)Context¶added inv0.16.0
func (c *ProjectsOperationsGetCall) Context(ctxcontext.Context) *ProjectsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsOperationsGetCall)Do¶added inv0.16.0
func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "firebasehosting.projects.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsOperationsGetCall)Fields¶added inv0.16.0
func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsOperationsGetCall)Header¶added inv0.16.0
func (c *ProjectsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsOperationsGetCall)IfNoneMatch¶added inv0.16.0
func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTagstring) *ProjectsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsOperationsService¶added inv0.16.0
type ProjectsOperationsService struct {// contains filtered or unexported fields}funcNewProjectsOperationsService¶added inv0.16.0
func NewProjectsOperationsService(s *Service) *ProjectsOperationsService
func (*ProjectsOperationsService)Get¶added inv0.16.0
func (r *ProjectsOperationsService) Get(namestring) *ProjectsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.
- name: The name of the operation resource.
typeProjectsService¶added inv0.16.0
type ProjectsService struct {Operations *ProjectsOperationsServiceSites *ProjectsSitesService// contains filtered or unexported fields}funcNewProjectsService¶added inv0.16.0
func NewProjectsService(s *Service) *ProjectsService
typeProjectsSitesChannelsCreateCall¶added inv0.32.0
type ProjectsSitesChannelsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsSitesChannelsCreateCall)ChannelId¶added inv0.32.0
func (c *ProjectsSitesChannelsCreateCall) ChannelId(channelIdstring) *ProjectsSitesChannelsCreateCall
ChannelId sets the optional parameter "channelId": Required. Immutable. Aunique ID within the site that identifies the channel.
func (*ProjectsSitesChannelsCreateCall)Context¶added inv0.32.0
func (c *ProjectsSitesChannelsCreateCall) Context(ctxcontext.Context) *ProjectsSitesChannelsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesChannelsCreateCall)Do¶added inv0.32.0
func (c *ProjectsSitesChannelsCreateCall) Do(opts ...googleapi.CallOption) (*Channel,error)
Do executes the "firebasehosting.projects.sites.channels.create" call.Any non-2xx status code is an error. Response headers are in either*Channel.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesChannelsCreateCall)Fields¶added inv0.32.0
func (c *ProjectsSitesChannelsCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesChannelsCreateCall)Header¶added inv0.32.0
func (c *ProjectsSitesChannelsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesChannelsDeleteCall¶added inv0.32.0
type ProjectsSitesChannelsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsSitesChannelsDeleteCall)Context¶added inv0.32.0
func (c *ProjectsSitesChannelsDeleteCall) Context(ctxcontext.Context) *ProjectsSitesChannelsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesChannelsDeleteCall)Do¶added inv0.32.0
func (c *ProjectsSitesChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasehosting.projects.sites.channels.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesChannelsDeleteCall)Fields¶added inv0.32.0
func (c *ProjectsSitesChannelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesChannelsDeleteCall)Header¶added inv0.32.0
func (c *ProjectsSitesChannelsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesChannelsGetCall¶added inv0.32.0
type ProjectsSitesChannelsGetCall struct {// contains filtered or unexported fields}func (*ProjectsSitesChannelsGetCall)Context¶added inv0.32.0
func (c *ProjectsSitesChannelsGetCall) Context(ctxcontext.Context) *ProjectsSitesChannelsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesChannelsGetCall)Do¶added inv0.32.0
func (c *ProjectsSitesChannelsGetCall) Do(opts ...googleapi.CallOption) (*Channel,error)
Do executes the "firebasehosting.projects.sites.channels.get" call.Any non-2xx status code is an error. Response headers are in either*Channel.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesChannelsGetCall)Fields¶added inv0.32.0
func (c *ProjectsSitesChannelsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesChannelsGetCall)Header¶added inv0.32.0
func (c *ProjectsSitesChannelsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesChannelsGetCall)IfNoneMatch¶added inv0.32.0
func (c *ProjectsSitesChannelsGetCall) IfNoneMatch(entityTagstring) *ProjectsSitesChannelsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesChannelsListCall¶added inv0.32.0
type ProjectsSitesChannelsListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesChannelsListCall)Context¶added inv0.32.0
func (c *ProjectsSitesChannelsListCall) Context(ctxcontext.Context) *ProjectsSitesChannelsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesChannelsListCall)Do¶added inv0.32.0
func (c *ProjectsSitesChannelsListCall) Do(opts ...googleapi.CallOption) (*ListChannelsResponse,error)
Do executes the "firebasehosting.projects.sites.channels.list" call.Any non-2xx status code is an error. Response headers are in either*ListChannelsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsSitesChannelsListCall)Fields¶added inv0.32.0
func (c *ProjectsSitesChannelsListCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesChannelsListCall)Header¶added inv0.32.0
func (c *ProjectsSitesChannelsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesChannelsListCall)IfNoneMatch¶added inv0.32.0
func (c *ProjectsSitesChannelsListCall) IfNoneMatch(entityTagstring) *ProjectsSitesChannelsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesChannelsListCall)PageSize¶added inv0.32.0
func (c *ProjectsSitesChannelsListCall) PageSize(pageSizeint64) *ProjectsSitesChannelsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofchannels to return. The service may return a lower number if fewer channelsexist than this maximum number. If unspecified, defaults to 10. The maximumvalue is 100; values above 100 will be coerced to 100.
func (*ProjectsSitesChannelsListCall)PageToken¶added inv0.32.0
func (c *ProjectsSitesChannelsListCall) PageToken(pageTokenstring) *ProjectsSitesChannelsListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `ListChannels` that tells the server where to resume listing.
func (*ProjectsSitesChannelsListCall)Pages¶added inv0.32.0
func (c *ProjectsSitesChannelsListCall) Pages(ctxcontext.Context, f func(*ListChannelsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsSitesChannelsPatchCall¶added inv0.32.0
type ProjectsSitesChannelsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsSitesChannelsPatchCall)Context¶added inv0.32.0
func (c *ProjectsSitesChannelsPatchCall) Context(ctxcontext.Context) *ProjectsSitesChannelsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesChannelsPatchCall)Do¶added inv0.32.0
func (c *ProjectsSitesChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel,error)
Do executes the "firebasehosting.projects.sites.channels.patch" call.Any non-2xx status code is an error. Response headers are in either*Channel.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesChannelsPatchCall)Fields¶added inv0.32.0
func (c *ProjectsSitesChannelsPatchCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesChannelsPatchCall)Header¶added inv0.32.0
func (c *ProjectsSitesChannelsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesChannelsPatchCall)UpdateMask¶added inv0.32.0
func (c *ProjectsSitesChannelsPatchCall) UpdateMask(updateMaskstring) *ProjectsSitesChannelsPatchCall
UpdateMask sets the optional parameter "updateMask": A comma-separated listof fields to be updated in this request.
typeProjectsSitesChannelsReleasesCreateCall¶added inv0.21.0
type ProjectsSitesChannelsReleasesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsSitesChannelsReleasesCreateCall)Context¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesCreateCall) Context(ctxcontext.Context) *ProjectsSitesChannelsReleasesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesChannelsReleasesCreateCall)Do¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release,error)
Do executes the "firebasehosting.projects.sites.channels.releases.create" call.Any non-2xx status code is an error. Response headers are in either*Release.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesChannelsReleasesCreateCall)Fields¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsReleasesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesChannelsReleasesCreateCall)Header¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesChannelsReleasesCreateCall)VersionName¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesCreateCall) VersionName(versionNamestring) *ProjectsSitesChannelsReleasesCreateCall
VersionName sets the optional parameter "versionName": The unique identifierfor a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_IDin this version identifier must match the SITE_ID in the `parent` parameter.This query parameter must be empty if the `type` field in the request bodyis `SITE_DISABLE`.
typeProjectsSitesChannelsReleasesGetCall¶added inv0.110.0
type ProjectsSitesChannelsReleasesGetCall struct {// contains filtered or unexported fields}func (*ProjectsSitesChannelsReleasesGetCall)Context¶added inv0.110.0
func (c *ProjectsSitesChannelsReleasesGetCall) Context(ctxcontext.Context) *ProjectsSitesChannelsReleasesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesChannelsReleasesGetCall)Do¶added inv0.110.0
func (c *ProjectsSitesChannelsReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release,error)
Do executes the "firebasehosting.projects.sites.channels.releases.get" call.Any non-2xx status code is an error. Response headers are in either*Release.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesChannelsReleasesGetCall)Fields¶added inv0.110.0
func (c *ProjectsSitesChannelsReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsReleasesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesChannelsReleasesGetCall)Header¶added inv0.110.0
func (c *ProjectsSitesChannelsReleasesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesChannelsReleasesGetCall)IfNoneMatch¶added inv0.110.0
func (c *ProjectsSitesChannelsReleasesGetCall) IfNoneMatch(entityTagstring) *ProjectsSitesChannelsReleasesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesChannelsReleasesListCall¶added inv0.21.0
type ProjectsSitesChannelsReleasesListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesChannelsReleasesListCall)Context¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesListCall) Context(ctxcontext.Context) *ProjectsSitesChannelsReleasesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesChannelsReleasesListCall)Do¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse,error)
Do executes the "firebasehosting.projects.sites.channels.releases.list" call.Any non-2xx status code is an error. Response headers are in either*ListReleasesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsSitesChannelsReleasesListCall)Fields¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesListCall) Fields(s ...googleapi.Field) *ProjectsSitesChannelsReleasesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesChannelsReleasesListCall)Header¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesChannelsReleasesListCall)IfNoneMatch¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesListCall) IfNoneMatch(entityTagstring) *ProjectsSitesChannelsReleasesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesChannelsReleasesListCall)PageSize¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesListCall) PageSize(pageSizeint64) *ProjectsSitesChannelsReleasesListCall
PageSize sets the optional parameter "pageSize": The maximum number ofreleases to return. The service may return a lower number if fewer releasesexist than this maximum number. If unspecified, defaults to 100.
func (*ProjectsSitesChannelsReleasesListCall)PageToken¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesListCall) PageToken(pageTokenstring) *ProjectsSitesChannelsReleasesListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `releases.list` or `channels.releases.list` that tells the serverwhere to resume listing.
func (*ProjectsSitesChannelsReleasesListCall)Pages¶added inv0.21.0
func (c *ProjectsSitesChannelsReleasesListCall) Pages(ctxcontext.Context, f func(*ListReleasesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsSitesChannelsReleasesService¶added inv0.21.0
type ProjectsSitesChannelsReleasesService struct {// contains filtered or unexported fields}funcNewProjectsSitesChannelsReleasesService¶added inv0.21.0
func NewProjectsSitesChannelsReleasesService(s *Service) *ProjectsSitesChannelsReleasesService
func (*ProjectsSitesChannelsReleasesService)Create¶added inv0.21.0
func (r *ProjectsSitesChannelsReleasesService) Create(parentstring, release *Release) *ProjectsSitesChannelsReleasesCreateCall
Create: Creates a new release, which makes the content of the specifiedversion actively display on the appropriate URL(s).
- parent: The site or channel to which the release belongs, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
func (*ProjectsSitesChannelsReleasesService)Get¶added inv0.110.0
func (r *ProjectsSitesChannelsReleasesService) Get(namestring) *ProjectsSitesChannelsReleasesGetCall
Get: Gets the specified release for a site or channel. When used to get arelease for a site, this can get releases for both the default `live`channel and any active preview channels for the specified site.
- name: The fully-qualified resource name for the Hosting release, in eitherof the following formats: -sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID -sites/SITE_ID/releases/RELEASE_ID.
func (*ProjectsSitesChannelsReleasesService)List¶added inv0.21.0
func (r *ProjectsSitesChannelsReleasesService) List(parentstring) *ProjectsSitesChannelsReleasesListCall
List: Lists the releases that have been created for the specified site orchannel. When used to list releases for a site, this list includes releasesfor both the default `live` channel and any active preview channels for thespecified site.
- parent: The site or channel for which to list releases, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
typeProjectsSitesChannelsService¶added inv0.21.0
type ProjectsSitesChannelsService struct {Releases *ProjectsSitesChannelsReleasesService// contains filtered or unexported fields}funcNewProjectsSitesChannelsService¶added inv0.21.0
func NewProjectsSitesChannelsService(s *Service) *ProjectsSitesChannelsService
func (*ProjectsSitesChannelsService)Create¶added inv0.32.0
func (r *ProjectsSitesChannelsService) Create(parentstring, channel *Channel) *ProjectsSitesChannelsCreateCall
Create: Creates a new channel in the specified site.
- parent: The site in which to create this channel, in the format: sites/SITE_ID.
func (*ProjectsSitesChannelsService)Delete¶added inv0.32.0
func (r *ProjectsSitesChannelsService) Delete(namestring) *ProjectsSitesChannelsDeleteCall
Delete: Deletes the specified channel of the specified site. The `live`channel cannot be deleted.
- name: The fully-qualified resource name for the channel, in the format:sites/SITE_ID/channels/CHANNEL_ID.
func (*ProjectsSitesChannelsService)Get¶added inv0.32.0
func (r *ProjectsSitesChannelsService) Get(namestring) *ProjectsSitesChannelsGetCall
Get: Retrieves information for the specified channel of the specified site.
- name: The fully-qualified resource name for the channel, in the format:sites/SITE_ID/channels/CHANNEL_ID.
func (*ProjectsSitesChannelsService)List¶added inv0.32.0
func (r *ProjectsSitesChannelsService) List(parentstring) *ProjectsSitesChannelsListCall
List: Lists the channels for the specified site. All sites have a default`live` channel.
- parent: The site for which to list channels, in the format: sites/SITE_ID.
func (*ProjectsSitesChannelsService)Patch¶added inv0.32.0
func (r *ProjectsSitesChannelsService) Patch(namestring, channel *Channel) *ProjectsSitesChannelsPatchCall
Patch: Updates information for the specified channel of the specified site.Implicitly creates the channel if it doesn't already exist.
- name: The fully-qualified resource name for the channel, in the format:sites/ SITE_ID/channels/CHANNEL_ID.
typeProjectsSitesCreateCall¶added inv0.42.0
type ProjectsSitesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCreateCall)Context¶added inv0.42.0
func (c *ProjectsSitesCreateCall) Context(ctxcontext.Context) *ProjectsSitesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCreateCall)Do¶added inv0.42.0
func (c *ProjectsSitesCreateCall) Do(opts ...googleapi.CallOption) (*Site,error)
Do executes the "firebasehosting.projects.sites.create" call.Any non-2xx status code is an error. Response headers are in either*Site.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesCreateCall)Fields¶added inv0.42.0
func (c *ProjectsSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCreateCall)Header¶added inv0.42.0
func (c *ProjectsSitesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesCreateCall)SiteId¶added inv0.42.0
func (c *ProjectsSitesCreateCall) SiteId(siteIdstring) *ProjectsSitesCreateCall
SiteId sets the optional parameter "siteId": Required. Immutable. A globallyunique identifier for the Hosting site. This identifier is used to constructthe Firebase-provisioned subdomains for the site, so it must also be a validdomain name label.
func (*ProjectsSitesCreateCall)ValidateOnly¶added inv0.139.0
func (c *ProjectsSitesCreateCall) ValidateOnly(validateOnlybool) *ProjectsSitesCreateCall
ValidateOnly sets the optional parameter "validateOnly": If set, validatesthat the site_id is available and that the request would succeed, returningthe expected resulting site or error.
typeProjectsSitesCustomDomainsCreateCall¶added inv0.141.0
type ProjectsSitesCustomDomainsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCustomDomainsCreateCall)Context¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsCreateCall) Context(ctxcontext.Context) *ProjectsSitesCustomDomainsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCustomDomainsCreateCall)CustomDomainId¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsCreateCall) CustomDomainId(customDomainIdstring) *ProjectsSitesCustomDomainsCreateCall
CustomDomainId sets the optional parameter "customDomainId": Required. TheID of the `CustomDomain`, which is the domain name you'd like to use withFirebase Hosting.
func (*ProjectsSitesCustomDomainsCreateCall)Do¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "firebasehosting.projects.sites.customDomains.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesCustomDomainsCreateCall)Fields¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCustomDomainsCreateCall)Header¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesCustomDomainsCreateCall)ValidateOnly¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsCreateCall) ValidateOnly(validateOnlybool) *ProjectsSitesCustomDomainsCreateCall
ValidateOnly sets the optional parameter "validateOnly": If true, Hostingvalidates that it's possible to complete your request but doesn't actuallycreate a new `CustomDomain`.
typeProjectsSitesCustomDomainsDeleteCall¶added inv0.141.0
type ProjectsSitesCustomDomainsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCustomDomainsDeleteCall)AllowMissing¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsDeleteCall) AllowMissing(allowMissingbool) *ProjectsSitesCustomDomainsDeleteCall
AllowMissing sets the optional parameter "allowMissing": If true, therequest succeeds even if the `CustomDomain` doesn't exist.
func (*ProjectsSitesCustomDomainsDeleteCall)Context¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsDeleteCall) Context(ctxcontext.Context) *ProjectsSitesCustomDomainsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCustomDomainsDeleteCall)Do¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "firebasehosting.projects.sites.customDomains.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesCustomDomainsDeleteCall)Etag¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsDeleteCall) Etag(etagstring) *ProjectsSitesCustomDomainsDeleteCall
Etag sets the optional parameter "etag": A tag that represents the state ofthe `CustomDomain` as you know it. If present, the supplied tag must matchthe current value on your `CustomDomain`, or the request fails.
func (*ProjectsSitesCustomDomainsDeleteCall)Fields¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCustomDomainsDeleteCall)Header¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesCustomDomainsDeleteCall)ValidateOnly¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsDeleteCall) ValidateOnly(validateOnlybool) *ProjectsSitesCustomDomainsDeleteCall
ValidateOnly sets the optional parameter "validateOnly": If true, Hostingvalidates that it's possible to complete your request but doesn't actuallydelete the `CustomDomain`.
typeProjectsSitesCustomDomainsGetCall¶added inv0.141.0
type ProjectsSitesCustomDomainsGetCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCustomDomainsGetCall)Context¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsGetCall) Context(ctxcontext.Context) *ProjectsSitesCustomDomainsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCustomDomainsGetCall)Do¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsGetCall) Do(opts ...googleapi.CallOption) (*CustomDomain,error)
Do executes the "firebasehosting.projects.sites.customDomains.get" call.Any non-2xx status code is an error. Response headers are in either*CustomDomain.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesCustomDomainsGetCall)Fields¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCustomDomainsGetCall)Header¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesCustomDomainsGetCall)IfNoneMatch¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsGetCall) IfNoneMatch(entityTagstring) *ProjectsSitesCustomDomainsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesCustomDomainsListCall¶added inv0.141.0
type ProjectsSitesCustomDomainsListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCustomDomainsListCall)Context¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) Context(ctxcontext.Context) *ProjectsSitesCustomDomainsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCustomDomainsListCall)Do¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) Do(opts ...googleapi.CallOption) (*ListCustomDomainsResponse,error)
Do executes the "firebasehosting.projects.sites.customDomains.list" call.Any non-2xx status code is an error. Response headers are in either*ListCustomDomainsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsSitesCustomDomainsListCall)Fields¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCustomDomainsListCall)Header¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesCustomDomainsListCall)IfNoneMatch¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) IfNoneMatch(entityTagstring) *ProjectsSitesCustomDomainsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesCustomDomainsListCall)PageSize¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) PageSize(pageSizeint64) *ProjectsSitesCustomDomainsListCall
PageSize sets the optional parameter "pageSize": The max number of`CustomDomain` entities to return in a request. Defaults to 10.
func (*ProjectsSitesCustomDomainsListCall)PageToken¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) PageToken(pageTokenstring) *ProjectsSitesCustomDomainsListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `ListCustomDomains` that tells the server where to resume listing.
func (*ProjectsSitesCustomDomainsListCall)Pages¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) Pages(ctxcontext.Context, f func(*ListCustomDomainsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*ProjectsSitesCustomDomainsListCall)ShowDeleted¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsListCall) ShowDeleted(showDeletedbool) *ProjectsSitesCustomDomainsListCall
ShowDeleted sets the optional parameter "showDeleted": If true, the requestreturns soft-deleted `CustomDomain`s that haven't been fully-deleted yet. Torestore deleted `CustomDomain`s, make an `UndeleteCustomDomain` request.
typeProjectsSitesCustomDomainsOperationsGetCall¶added inv0.141.0
type ProjectsSitesCustomDomainsOperationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCustomDomainsOperationsGetCall)Context¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsGetCall) Context(ctxcontext.Context) *ProjectsSitesCustomDomainsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCustomDomainsOperationsGetCall)Do¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "firebasehosting.projects.sites.customDomains.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesCustomDomainsOperationsGetCall)Fields¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCustomDomainsOperationsGetCall)Header¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesCustomDomainsOperationsGetCall)IfNoneMatch¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsGetCall) IfNoneMatch(entityTagstring) *ProjectsSitesCustomDomainsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesCustomDomainsOperationsListCall¶added inv0.141.0
type ProjectsSitesCustomDomainsOperationsListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCustomDomainsOperationsListCall)Context¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) Context(ctxcontext.Context) *ProjectsSitesCustomDomainsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCustomDomainsOperationsListCall)Do¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse,error)
Do executes the "firebasehosting.projects.sites.customDomains.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsSitesCustomDomainsOperationsListCall)Fields¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsOperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCustomDomainsOperationsListCall)Filter¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) Filter(filterstring) *ProjectsSitesCustomDomainsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsSitesCustomDomainsOperationsListCall)Header¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesCustomDomainsOperationsListCall)IfNoneMatch¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) IfNoneMatch(entityTagstring) *ProjectsSitesCustomDomainsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesCustomDomainsOperationsListCall)PageSize¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) PageSize(pageSizeint64) *ProjectsSitesCustomDomainsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list pagesize.
func (*ProjectsSitesCustomDomainsOperationsListCall)PageToken¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) PageToken(pageTokenstring) *ProjectsSitesCustomDomainsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list pagetoken.
func (*ProjectsSitesCustomDomainsOperationsListCall)Pages¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) Pages(ctxcontext.Context, f func(*ListOperationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*ProjectsSitesCustomDomainsOperationsListCall)ReturnPartialSuccess¶added inv0.252.0
func (c *ProjectsSitesCustomDomainsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *ProjectsSitesCustomDomainsOperationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess":When set to `true`, operations that are reachable are returned as normal,and those that are unreachable are returned in the[ListOperationsResponse.unreachable] field. This can only be `true` whenreading across collections e.g. when `parent` is set to"projects/example/locations/-". This field is not by default supported andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.
typeProjectsSitesCustomDomainsOperationsService¶added inv0.141.0
type ProjectsSitesCustomDomainsOperationsService struct {// contains filtered or unexported fields}funcNewProjectsSitesCustomDomainsOperationsService¶added inv0.141.0
func NewProjectsSitesCustomDomainsOperationsService(s *Service) *ProjectsSitesCustomDomainsOperationsService
func (*ProjectsSitesCustomDomainsOperationsService)Get¶added inv0.141.0
func (r *ProjectsSitesCustomDomainsOperationsService) Get(namestring) *ProjectsSitesCustomDomainsOperationsGetCall
Get: Gets the latest state of a long-running operation. Use this method topoll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*ProjectsSitesCustomDomainsOperationsService)List¶added inv0.141.0
func (r *ProjectsSitesCustomDomainsOperationsService) List(namestring) *ProjectsSitesCustomDomainsOperationsListCall
List: Lists operations that match the specified filter in the request.
- name: The name of the operation's parent resource.
typeProjectsSitesCustomDomainsPatchCall¶added inv0.141.0
type ProjectsSitesCustomDomainsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCustomDomainsPatchCall)AllowMissing¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsPatchCall) AllowMissing(allowMissingbool) *ProjectsSitesCustomDomainsPatchCall
AllowMissing sets the optional parameter "allowMissing": If true, Hostingcreates the `CustomDomain` if it doesn't already exist.
func (*ProjectsSitesCustomDomainsPatchCall)Context¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsPatchCall) Context(ctxcontext.Context) *ProjectsSitesCustomDomainsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCustomDomainsPatchCall)Do¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "firebasehosting.projects.sites.customDomains.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesCustomDomainsPatchCall)Fields¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsPatchCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCustomDomainsPatchCall)Header¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesCustomDomainsPatchCall)UpdateMask¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsPatchCall) UpdateMask(updateMaskstring) *ProjectsSitesCustomDomainsPatchCall
UpdateMask sets the optional parameter "updateMask": The set of field namesfrom your `CustomDomain` that you want to update. A field will beoverwritten if, and only if, it's in the mask. If you don't provide a mask,Hosting updates the entire `CustomDomain`.
func (*ProjectsSitesCustomDomainsPatchCall)ValidateOnly¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsPatchCall) ValidateOnly(validateOnlybool) *ProjectsSitesCustomDomainsPatchCall
ValidateOnly sets the optional parameter "validateOnly": If true, Hostingvalidates that it's possible to complete your request but doesn't actuallycreate or update the `CustomDomain`.
typeProjectsSitesCustomDomainsService¶added inv0.141.0
type ProjectsSitesCustomDomainsService struct {Operations *ProjectsSitesCustomDomainsOperationsService// contains filtered or unexported fields}funcNewProjectsSitesCustomDomainsService¶added inv0.141.0
func NewProjectsSitesCustomDomainsService(s *Service) *ProjectsSitesCustomDomainsService
func (*ProjectsSitesCustomDomainsService)Create¶added inv0.141.0
func (r *ProjectsSitesCustomDomainsService) Create(parentstring, customdomain *CustomDomain) *ProjectsSitesCustomDomainsCreateCall
Create: Creates a `CustomDomain`.
- parent: The custom domain's parent, specifically a Firebase Hosting`Site`.
func (*ProjectsSitesCustomDomainsService)Delete¶added inv0.141.0
func (r *ProjectsSitesCustomDomainsService) Delete(namestring) *ProjectsSitesCustomDomainsDeleteCall
Delete: Deletes the specified `CustomDomain`.
- name: The name of the `CustomDomain` to delete.
func (*ProjectsSitesCustomDomainsService)Get¶added inv0.141.0
func (r *ProjectsSitesCustomDomainsService) Get(namestring) *ProjectsSitesCustomDomainsGetCall
Get: Gets the specified `CustomDomain`.
- name: The name of the `CustomDomain` to get.
func (*ProjectsSitesCustomDomainsService)List¶added inv0.141.0
func (r *ProjectsSitesCustomDomainsService) List(parentstring) *ProjectsSitesCustomDomainsListCall
List: Lists each `CustomDomain` associated with the specified parent Hostingsite. Returns `CustomDomain`s in a consistent, but undefined, order tofacilitate pagination.
- parent: The Firebase Hosting `Site` with `CustomDomain` entities you'dlike to list.
func (*ProjectsSitesCustomDomainsService)Patch¶added inv0.141.0
func (r *ProjectsSitesCustomDomainsService) Patch(namestring, customdomain *CustomDomain) *ProjectsSitesCustomDomainsPatchCall
Patch: Updates the specified `CustomDomain`.
- name: Output only. The fully-qualified name of the `CustomDomain`.
func (*ProjectsSitesCustomDomainsService)Undelete¶added inv0.141.0
func (r *ProjectsSitesCustomDomainsService) Undelete(namestring, undeletecustomdomainrequest *UndeleteCustomDomainRequest) *ProjectsSitesCustomDomainsUndeleteCall
Undelete: Undeletes the specified `CustomDomain` if it has beensoft-deleted. Hosting retains soft-deleted custom domains for around 30 daysbefore permanently deleting them.
- name: The name of the `CustomDomain` to delete.
typeProjectsSitesCustomDomainsUndeleteCall¶added inv0.141.0
type ProjectsSitesCustomDomainsUndeleteCall struct {// contains filtered or unexported fields}func (*ProjectsSitesCustomDomainsUndeleteCall)Context¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsUndeleteCall) Context(ctxcontext.Context) *ProjectsSitesCustomDomainsUndeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesCustomDomainsUndeleteCall)Do¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "firebasehosting.projects.sites.customDomains.undelete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesCustomDomainsUndeleteCall)Fields¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsUndeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesCustomDomainsUndeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesCustomDomainsUndeleteCall)Header¶added inv0.141.0
func (c *ProjectsSitesCustomDomainsUndeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesDeleteCall¶added inv0.42.0
type ProjectsSitesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsSitesDeleteCall)Context¶added inv0.42.0
func (c *ProjectsSitesDeleteCall) Context(ctxcontext.Context) *ProjectsSitesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesDeleteCall)Do¶added inv0.42.0
func (c *ProjectsSitesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasehosting.projects.sites.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesDeleteCall)Fields¶added inv0.42.0
func (c *ProjectsSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesDeleteCall)Header¶added inv0.42.0
func (c *ProjectsSitesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesDomainsCreateCall¶added inv0.23.0
type ProjectsSitesDomainsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsSitesDomainsCreateCall)Context¶added inv0.23.0
func (c *ProjectsSitesDomainsCreateCall) Context(ctxcontext.Context) *ProjectsSitesDomainsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesDomainsCreateCall)Do¶added inv0.23.0
func (c *ProjectsSitesDomainsCreateCall) Do(opts ...googleapi.CallOption) (*Domain,error)
Do executes the "firebasehosting.projects.sites.domains.create" call.Any non-2xx status code is an error. Response headers are in either*Domain.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesDomainsCreateCall)Fields¶added inv0.23.0
func (c *ProjectsSitesDomainsCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesDomainsCreateCall)Header¶added inv0.23.0
func (c *ProjectsSitesDomainsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesDomainsDeleteCall¶added inv0.23.0
type ProjectsSitesDomainsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsSitesDomainsDeleteCall)Context¶added inv0.23.0
func (c *ProjectsSitesDomainsDeleteCall) Context(ctxcontext.Context) *ProjectsSitesDomainsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesDomainsDeleteCall)Do¶added inv0.23.0
func (c *ProjectsSitesDomainsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasehosting.projects.sites.domains.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesDomainsDeleteCall)Fields¶added inv0.23.0
func (c *ProjectsSitesDomainsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesDomainsDeleteCall)Header¶added inv0.23.0
func (c *ProjectsSitesDomainsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesDomainsGetCall¶added inv0.23.0
type ProjectsSitesDomainsGetCall struct {// contains filtered or unexported fields}func (*ProjectsSitesDomainsGetCall)Context¶added inv0.23.0
func (c *ProjectsSitesDomainsGetCall) Context(ctxcontext.Context) *ProjectsSitesDomainsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesDomainsGetCall)Do¶added inv0.23.0
func (c *ProjectsSitesDomainsGetCall) Do(opts ...googleapi.CallOption) (*Domain,error)
Do executes the "firebasehosting.projects.sites.domains.get" call.Any non-2xx status code is an error. Response headers are in either*Domain.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesDomainsGetCall)Fields¶added inv0.23.0
func (c *ProjectsSitesDomainsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesDomainsGetCall)Header¶added inv0.23.0
func (c *ProjectsSitesDomainsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesDomainsGetCall)IfNoneMatch¶added inv0.23.0
func (c *ProjectsSitesDomainsGetCall) IfNoneMatch(entityTagstring) *ProjectsSitesDomainsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesDomainsListCall¶added inv0.23.0
type ProjectsSitesDomainsListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesDomainsListCall)Context¶added inv0.23.0
func (c *ProjectsSitesDomainsListCall) Context(ctxcontext.Context) *ProjectsSitesDomainsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesDomainsListCall)Do¶added inv0.23.0
func (c *ProjectsSitesDomainsListCall) Do(opts ...googleapi.CallOption) (*ListDomainsResponse,error)
Do executes the "firebasehosting.projects.sites.domains.list" call.Any non-2xx status code is an error. Response headers are in either*ListDomainsResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsSitesDomainsListCall)Fields¶added inv0.23.0
func (c *ProjectsSitesDomainsListCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesDomainsListCall)Header¶added inv0.23.0
func (c *ProjectsSitesDomainsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesDomainsListCall)IfNoneMatch¶added inv0.23.0
func (c *ProjectsSitesDomainsListCall) IfNoneMatch(entityTagstring) *ProjectsSitesDomainsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesDomainsListCall)PageSize¶added inv0.23.0
func (c *ProjectsSitesDomainsListCall) PageSize(pageSizeint64) *ProjectsSitesDomainsListCall
PageSize sets the optional parameter "pageSize": The page size to return.Defaults to 50.
func (*ProjectsSitesDomainsListCall)PageToken¶added inv0.23.0
func (c *ProjectsSitesDomainsListCall) PageToken(pageTokenstring) *ProjectsSitesDomainsListCall
PageToken sets the optional parameter "pageToken": The next_page_token froma previous request, if provided.
func (*ProjectsSitesDomainsListCall)Pages¶added inv0.23.0
func (c *ProjectsSitesDomainsListCall) Pages(ctxcontext.Context, f func(*ListDomainsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsSitesDomainsService¶added inv0.23.0
type ProjectsSitesDomainsService struct {// contains filtered or unexported fields}funcNewProjectsSitesDomainsService¶added inv0.23.0
func NewProjectsSitesDomainsService(s *Service) *ProjectsSitesDomainsService
func (*ProjectsSitesDomainsService)Create¶added inv0.23.0
func (r *ProjectsSitesDomainsService) Create(parentstring, domain *Domain) *ProjectsSitesDomainsCreateCall
Create: Creates a domain mapping on the specified site.
- parent: The parent to create the domain association for, in the format:sites/site-name.
func (*ProjectsSitesDomainsService)Delete¶added inv0.23.0
func (r *ProjectsSitesDomainsService) Delete(namestring) *ProjectsSitesDomainsDeleteCall
Delete: Deletes the existing domain mapping on the specified site.
- name: The name of the domain association to delete.
func (*ProjectsSitesDomainsService)Get¶added inv0.23.0
func (r *ProjectsSitesDomainsService) Get(namestring) *ProjectsSitesDomainsGetCall
Get: Gets a domain mapping on the specified site.
- name: The name of the domain configuration to get.
func (*ProjectsSitesDomainsService)List¶added inv0.23.0
func (r *ProjectsSitesDomainsService) List(parentstring) *ProjectsSitesDomainsListCall
List: Lists the domains for the specified site.
- parent: The parent for which to list domains, in the format: sites/site-name.
func (*ProjectsSitesDomainsService)Update¶added inv0.23.0
func (r *ProjectsSitesDomainsService) Update(namestring, domain *Domain) *ProjectsSitesDomainsUpdateCall
Update: Updates the specified domain mapping, creating the mapping as if itdoes not exist.
- name: The name of the domain association to update or create, if anassociation doesn't already exist.
typeProjectsSitesDomainsUpdateCall¶added inv0.23.0
type ProjectsSitesDomainsUpdateCall struct {// contains filtered or unexported fields}func (*ProjectsSitesDomainsUpdateCall)Context¶added inv0.23.0
func (c *ProjectsSitesDomainsUpdateCall) Context(ctxcontext.Context) *ProjectsSitesDomainsUpdateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesDomainsUpdateCall)Do¶added inv0.23.0
func (c *ProjectsSitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain,error)
Do executes the "firebasehosting.projects.sites.domains.update" call.Any non-2xx status code is an error. Response headers are in either*Domain.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesDomainsUpdateCall)Fields¶added inv0.23.0
func (c *ProjectsSitesDomainsUpdateCall) Fields(s ...googleapi.Field) *ProjectsSitesDomainsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesDomainsUpdateCall)Header¶added inv0.23.0
func (c *ProjectsSitesDomainsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesGetCall¶added inv0.42.0
type ProjectsSitesGetCall struct {// contains filtered or unexported fields}func (*ProjectsSitesGetCall)Context¶added inv0.42.0
func (c *ProjectsSitesGetCall) Context(ctxcontext.Context) *ProjectsSitesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesGetCall)Do¶added inv0.42.0
func (c *ProjectsSitesGetCall) Do(opts ...googleapi.CallOption) (*Site,error)
Do executes the "firebasehosting.projects.sites.get" call.Any non-2xx status code is an error. Response headers are in either*Site.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesGetCall)Fields¶added inv0.42.0
func (c *ProjectsSitesGetCall) Fields(s ...googleapi.Field) *ProjectsSitesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesGetCall)Header¶added inv0.42.0
func (c *ProjectsSitesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesGetCall)IfNoneMatch¶added inv0.42.0
func (c *ProjectsSitesGetCall) IfNoneMatch(entityTagstring) *ProjectsSitesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesGetConfigCall¶added inv0.23.0
type ProjectsSitesGetConfigCall struct {// contains filtered or unexported fields}func (*ProjectsSitesGetConfigCall)Context¶added inv0.23.0
func (c *ProjectsSitesGetConfigCall) Context(ctxcontext.Context) *ProjectsSitesGetConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesGetConfigCall)Do¶added inv0.23.0
func (c *ProjectsSitesGetConfigCall) Do(opts ...googleapi.CallOption) (*SiteConfig,error)
Do executes the "firebasehosting.projects.sites.getConfig" call.Any non-2xx status code is an error. Response headers are in either*SiteConfig.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesGetConfigCall)Fields¶added inv0.23.0
func (c *ProjectsSitesGetConfigCall) Fields(s ...googleapi.Field) *ProjectsSitesGetConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesGetConfigCall)Header¶added inv0.23.0
func (c *ProjectsSitesGetConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesGetConfigCall)IfNoneMatch¶added inv0.23.0
func (c *ProjectsSitesGetConfigCall) IfNoneMatch(entityTagstring) *ProjectsSitesGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesListCall¶added inv0.42.0
type ProjectsSitesListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesListCall)Context¶added inv0.42.0
func (c *ProjectsSitesListCall) Context(ctxcontext.Context) *ProjectsSitesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesListCall)Do¶added inv0.42.0
func (c *ProjectsSitesListCall) Do(opts ...googleapi.CallOption) (*ListSitesResponse,error)
Do executes the "firebasehosting.projects.sites.list" call.Any non-2xx status code is an error. Response headers are in either*ListSitesResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsSitesListCall)Fields¶added inv0.42.0
func (c *ProjectsSitesListCall) Fields(s ...googleapi.Field) *ProjectsSitesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesListCall)Header¶added inv0.42.0
func (c *ProjectsSitesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesListCall)IfNoneMatch¶added inv0.42.0
func (c *ProjectsSitesListCall) IfNoneMatch(entityTagstring) *ProjectsSitesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesListCall)PageSize¶added inv0.42.0
func (c *ProjectsSitesListCall) PageSize(pageSizeint64) *ProjectsSitesListCall
PageSize sets the optional parameter "pageSize": The maximum number of sitesto return. The service may return a lower number if fewer sites exist thanthis maximum number. If unspecified, defaults to 40.
func (*ProjectsSitesListCall)PageToken¶added inv0.42.0
func (c *ProjectsSitesListCall) PageToken(pageTokenstring) *ProjectsSitesListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `ListSites` that tells the server where to resume listing.
func (*ProjectsSitesListCall)Pages¶added inv0.42.0
func (c *ProjectsSitesListCall) Pages(ctxcontext.Context, f func(*ListSitesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsSitesPatchCall¶added inv0.42.0
type ProjectsSitesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsSitesPatchCall)Context¶added inv0.42.0
func (c *ProjectsSitesPatchCall) Context(ctxcontext.Context) *ProjectsSitesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesPatchCall)Do¶added inv0.42.0
func (c *ProjectsSitesPatchCall) Do(opts ...googleapi.CallOption) (*Site,error)
Do executes the "firebasehosting.projects.sites.patch" call.Any non-2xx status code is an error. Response headers are in either*Site.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesPatchCall)Fields¶added inv0.42.0
func (c *ProjectsSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsSitesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesPatchCall)Header¶added inv0.42.0
func (c *ProjectsSitesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesPatchCall)UpdateMask¶added inv0.42.0
func (c *ProjectsSitesPatchCall) UpdateMask(updateMaskstring) *ProjectsSitesPatchCall
UpdateMask sets the optional parameter "updateMask": A set of field namesfrom your Site that you want to update.
typeProjectsSitesReleasesCreateCall¶added inv0.21.0
type ProjectsSitesReleasesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsSitesReleasesCreateCall)Context¶added inv0.21.0
func (c *ProjectsSitesReleasesCreateCall) Context(ctxcontext.Context) *ProjectsSitesReleasesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesReleasesCreateCall)Do¶added inv0.21.0
func (c *ProjectsSitesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release,error)
Do executes the "firebasehosting.projects.sites.releases.create" call.Any non-2xx status code is an error. Response headers are in either*Release.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesReleasesCreateCall)Fields¶added inv0.21.0
func (c *ProjectsSitesReleasesCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesReleasesCreateCall)Header¶added inv0.21.0
func (c *ProjectsSitesReleasesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesReleasesCreateCall)VersionName¶added inv0.21.0
func (c *ProjectsSitesReleasesCreateCall) VersionName(versionNamestring) *ProjectsSitesReleasesCreateCall
VersionName sets the optional parameter "versionName": The unique identifierfor a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_IDin this version identifier must match the SITE_ID in the `parent` parameter.This query parameter must be empty if the `type` field in the request bodyis `SITE_DISABLE`.
typeProjectsSitesReleasesGetCall¶added inv0.110.0
type ProjectsSitesReleasesGetCall struct {// contains filtered or unexported fields}func (*ProjectsSitesReleasesGetCall)Context¶added inv0.110.0
func (c *ProjectsSitesReleasesGetCall) Context(ctxcontext.Context) *ProjectsSitesReleasesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesReleasesGetCall)Do¶added inv0.110.0
func (c *ProjectsSitesReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release,error)
Do executes the "firebasehosting.projects.sites.releases.get" call.Any non-2xx status code is an error. Response headers are in either*Release.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesReleasesGetCall)Fields¶added inv0.110.0
func (c *ProjectsSitesReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesReleasesGetCall)Header¶added inv0.110.0
func (c *ProjectsSitesReleasesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesReleasesGetCall)IfNoneMatch¶added inv0.110.0
func (c *ProjectsSitesReleasesGetCall) IfNoneMatch(entityTagstring) *ProjectsSitesReleasesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesReleasesListCall¶added inv0.21.0
type ProjectsSitesReleasesListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesReleasesListCall)Context¶added inv0.21.0
func (c *ProjectsSitesReleasesListCall) Context(ctxcontext.Context) *ProjectsSitesReleasesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesReleasesListCall)Do¶added inv0.21.0
func (c *ProjectsSitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse,error)
Do executes the "firebasehosting.projects.sites.releases.list" call.Any non-2xx status code is an error. Response headers are in either*ListReleasesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsSitesReleasesListCall)Fields¶added inv0.21.0
func (c *ProjectsSitesReleasesListCall) Fields(s ...googleapi.Field) *ProjectsSitesReleasesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesReleasesListCall)Header¶added inv0.21.0
func (c *ProjectsSitesReleasesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesReleasesListCall)IfNoneMatch¶added inv0.21.0
func (c *ProjectsSitesReleasesListCall) IfNoneMatch(entityTagstring) *ProjectsSitesReleasesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesReleasesListCall)PageSize¶added inv0.21.0
func (c *ProjectsSitesReleasesListCall) PageSize(pageSizeint64) *ProjectsSitesReleasesListCall
PageSize sets the optional parameter "pageSize": The maximum number ofreleases to return. The service may return a lower number if fewer releasesexist than this maximum number. If unspecified, defaults to 100.
func (*ProjectsSitesReleasesListCall)PageToken¶added inv0.21.0
func (c *ProjectsSitesReleasesListCall) PageToken(pageTokenstring) *ProjectsSitesReleasesListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `releases.list` or `channels.releases.list` that tells the serverwhere to resume listing.
func (*ProjectsSitesReleasesListCall)Pages¶added inv0.21.0
func (c *ProjectsSitesReleasesListCall) Pages(ctxcontext.Context, f func(*ListReleasesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsSitesReleasesService¶added inv0.21.0
type ProjectsSitesReleasesService struct {// contains filtered or unexported fields}funcNewProjectsSitesReleasesService¶added inv0.21.0
func NewProjectsSitesReleasesService(s *Service) *ProjectsSitesReleasesService
func (*ProjectsSitesReleasesService)Create¶added inv0.21.0
func (r *ProjectsSitesReleasesService) Create(parentstring, release *Release) *ProjectsSitesReleasesCreateCall
Create: Creates a new release, which makes the content of the specifiedversion actively display on the appropriate URL(s).
- parent: The site or channel to which the release belongs, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
func (*ProjectsSitesReleasesService)Get¶added inv0.110.0
func (r *ProjectsSitesReleasesService) Get(namestring) *ProjectsSitesReleasesGetCall
Get: Gets the specified release for a site or channel. When used to get arelease for a site, this can get releases for both the default `live`channel and any active preview channels for the specified site.
- name: The fully-qualified resource name for the Hosting release, in eitherof the following formats: -sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID -sites/SITE_ID/releases/RELEASE_ID.
func (*ProjectsSitesReleasesService)List¶added inv0.21.0
func (r *ProjectsSitesReleasesService) List(parentstring) *ProjectsSitesReleasesListCall
List: Lists the releases that have been created for the specified site orchannel. When used to list releases for a site, this list includes releasesfor both the default `live` channel and any active preview channels for thespecified site.
- parent: The site or channel for which to list releases, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
typeProjectsSitesService¶added inv0.21.0
type ProjectsSitesService struct {Channels *ProjectsSitesChannelsServiceCustomDomains *ProjectsSitesCustomDomainsServiceDomains *ProjectsSitesDomainsServiceReleases *ProjectsSitesReleasesServiceVersions *ProjectsSitesVersionsService// contains filtered or unexported fields}funcNewProjectsSitesService¶added inv0.21.0
func NewProjectsSitesService(s *Service) *ProjectsSitesService
func (*ProjectsSitesService)Create¶added inv0.42.0
func (r *ProjectsSitesService) Create(parentstring, site *Site) *ProjectsSitesCreateCall
Create: Creates a new Hosting Site in the specified parent Firebase project.Note that Hosting sites can take several minutes to propagate throughFirebase systems.
- parent: The Firebase project in which to create a Hosting site, in theformat: projects/PROJECT_IDENTIFIER Refer to the `Site` `name`(../projects#Site.FIELDS.name) field for details about PROJECT_IDENTIFIERvalues.
func (*ProjectsSitesService)Delete¶added inv0.42.0
func (r *ProjectsSitesService) Delete(namestring) *ProjectsSitesDeleteCall
Delete: Deletes the specified Hosting Site from the specified parentFirebase project.
- name: The fully-qualified resource name for the Hosting site, in theformat: projects/PROJECT_IDENTIFIER/sites/SITE_ID Refer to the `Site``name` (../projects#Site.FIELDS.name) field for details aboutPROJECT_IDENTIFIER values.
func (*ProjectsSitesService)Get¶added inv0.42.0
func (r *ProjectsSitesService) Get(nameidstring) *ProjectsSitesGetCall
Get: Gets the specified Hosting Site.
- name: The fully-qualified resource name for the Hosting site, in theformat: projects/PROJECT_IDENTIFIER/sites/SITE_ID Refer to the `Site``name` (../projects#Site.FIELDS.name) field for details aboutPROJECT_IDENTIFIER values. Since a SITE_ID is a globally uniqueidentifier, you can also use the unique sub-collection resource accesspattern, in the format: projects/-/sites/SITE_ID.
func (*ProjectsSitesService)GetConfig¶added inv0.23.0
func (r *ProjectsSitesService) GetConfig(namestring) *ProjectsSitesGetConfigCall
GetConfig: Gets the Hosting metadata for a specific site.
- name: The site for which to get the SiteConfig, in the format: sites/site-name/config.
func (*ProjectsSitesService)List¶added inv0.42.0
func (r *ProjectsSitesService) List(parentstring) *ProjectsSitesListCall
List: Lists each Hosting Site associated with the specified parent Firebaseproject.
- parent: The Firebase project for which to list sites, in the format:projects/PROJECT_IDENTIFIER Refer to the `Site` `name`(../projects#Site.FIELDS.name) field for details about PROJECT_IDENTIFIERvalues.
func (*ProjectsSitesService)Patch¶added inv0.42.0
func (r *ProjectsSitesService) Patch(nameidstring, site *Site) *ProjectsSitesPatchCall
Patch: Updates attributes of the specified Hosting Site.
- name: Output only. The fully-qualified resource name of the Hosting site,in the format: projects/PROJECT_IDENTIFIER/sites/SITE_IDPROJECT_IDENTIFIER: the Firebase project's `ProjectNumber`(https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject.FIELDS.project_number)***(recommended)*** or its `ProjectId`(https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject.FIELDS.project_id).Learn more about using project identifiers in Google's AIP 2510 standard(https://google.aip.dev/cloud/2510).
func (*ProjectsSitesService)UpdateConfig¶added inv0.23.0
func (r *ProjectsSitesService) UpdateConfig(namestring, siteconfig *SiteConfig) *ProjectsSitesUpdateConfigCall
UpdateConfig: Sets the Hosting metadata for a specific site.
- name: The site for which to update the SiteConfig, in the format: sites/site-name/config.
typeProjectsSitesUpdateConfigCall¶added inv0.23.0
type ProjectsSitesUpdateConfigCall struct {// contains filtered or unexported fields}func (*ProjectsSitesUpdateConfigCall)Context¶added inv0.23.0
func (c *ProjectsSitesUpdateConfigCall) Context(ctxcontext.Context) *ProjectsSitesUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesUpdateConfigCall)Do¶added inv0.23.0
func (c *ProjectsSitesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*SiteConfig,error)
Do executes the "firebasehosting.projects.sites.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*SiteConfig.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesUpdateConfigCall)Fields¶added inv0.23.0
func (c *ProjectsSitesUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsSitesUpdateConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesUpdateConfigCall)Header¶added inv0.23.0
func (c *ProjectsSitesUpdateConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesUpdateConfigCall)UpdateMask¶added inv0.23.0
func (c *ProjectsSitesUpdateConfigCall) UpdateMask(updateMaskstring) *ProjectsSitesUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": A set of field namesfrom your site configuration (../sites.SiteConfig) that you want to update.A field will be overwritten if, and only if, it's in the mask. If a mask isnot provided then a default mask of only `max_versions`(../sites.SiteConfig.max_versions) will be used.
typeProjectsSitesVersionsCloneCall¶added inv0.23.0
type ProjectsSitesVersionsCloneCall struct {// contains filtered or unexported fields}func (*ProjectsSitesVersionsCloneCall)Context¶added inv0.23.0
func (c *ProjectsSitesVersionsCloneCall) Context(ctxcontext.Context) *ProjectsSitesVersionsCloneCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesVersionsCloneCall)Do¶added inv0.23.0
func (c *ProjectsSitesVersionsCloneCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "firebasehosting.projects.sites.versions.clone" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesVersionsCloneCall)Fields¶added inv0.23.0
func (c *ProjectsSitesVersionsCloneCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsCloneCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesVersionsCloneCall)Header¶added inv0.23.0
func (c *ProjectsSitesVersionsCloneCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesVersionsCreateCall¶added inv0.23.0
type ProjectsSitesVersionsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsSitesVersionsCreateCall)Context¶added inv0.23.0
func (c *ProjectsSitesVersionsCreateCall) Context(ctxcontext.Context) *ProjectsSitesVersionsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesVersionsCreateCall)Do¶added inv0.23.0
func (c *ProjectsSitesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Version,error)
Do executes the "firebasehosting.projects.sites.versions.create" call.Any non-2xx status code is an error. Response headers are in either*Version.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesVersionsCreateCall)Fields¶added inv0.23.0
func (c *ProjectsSitesVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesVersionsCreateCall)Header¶added inv0.23.0
func (c *ProjectsSitesVersionsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesVersionsCreateCall)SizeBytes¶added inv0.23.0
func (c *ProjectsSitesVersionsCreateCall) SizeBytes(sizeBytesint64) *ProjectsSitesVersionsCreateCall
SizeBytes sets the optional parameter "sizeBytes": The self-reported size ofthe version. This value is used for a pre-emptive quota check for legacyversion uploads.
func (*ProjectsSitesVersionsCreateCall)VersionId¶added inv0.23.0
func (c *ProjectsSitesVersionsCreateCall) VersionId(versionIdstring) *ProjectsSitesVersionsCreateCall
VersionId sets the optional parameter "versionId": A unique id for the newversion. This is was only specified for legacy version creations, and shouldbe blank.
typeProjectsSitesVersionsDeleteCall¶added inv0.23.0
type ProjectsSitesVersionsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsSitesVersionsDeleteCall)Context¶added inv0.23.0
func (c *ProjectsSitesVersionsDeleteCall) Context(ctxcontext.Context) *ProjectsSitesVersionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesVersionsDeleteCall)Do¶added inv0.23.0
func (c *ProjectsSitesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasehosting.projects.sites.versions.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesVersionsDeleteCall)Fields¶added inv0.23.0
func (c *ProjectsSitesVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesVersionsDeleteCall)Header¶added inv0.23.0
func (c *ProjectsSitesVersionsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesVersionsFilesListCall¶added inv0.23.0
type ProjectsSitesVersionsFilesListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesVersionsFilesListCall)Context¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) Context(ctxcontext.Context) *ProjectsSitesVersionsFilesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesVersionsFilesListCall)Do¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) Do(opts ...googleapi.CallOption) (*ListVersionFilesResponse,error)
Do executes the "firebasehosting.projects.sites.versions.files.list" call.Any non-2xx status code is an error. Response headers are in either*ListVersionFilesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsSitesVersionsFilesListCall)Fields¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsFilesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesVersionsFilesListCall)Header¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesVersionsFilesListCall)IfNoneMatch¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) IfNoneMatch(entityTagstring) *ProjectsSitesVersionsFilesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesVersionsFilesListCall)PageSize¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) PageSize(pageSizeint64) *ProjectsSitesVersionsFilesListCall
PageSize sets the optional parameter "pageSize": The maximum number ofversion files to return. The service may return a lower number if fewerversion files exist than this maximum number. If unspecified, defaults to1000.
func (*ProjectsSitesVersionsFilesListCall)PageToken¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) PageToken(pageTokenstring) *ProjectsSitesVersionsFilesListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `ListVersionFiles` that tells the server where to resume listing.
func (*ProjectsSitesVersionsFilesListCall)Pages¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) Pages(ctxcontext.Context, f func(*ListVersionFilesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*ProjectsSitesVersionsFilesListCall)Status¶added inv0.23.0
func (c *ProjectsSitesVersionsFilesListCall) Status(statusstring) *ProjectsSitesVersionsFilesListCall
Status sets the optional parameter "status": The type of files that shouldbe listed for the specified version.
Possible values:
"STATUS_UNSPECIFIED" - The default status; should not be intentionally
used.
"EXPECTED" - The file has been included in the version and is expected to
be uploaded in the near future.
"ACTIVE" - The file has already been uploaded to Firebase Hosting.
typeProjectsSitesVersionsFilesService¶added inv0.23.0
type ProjectsSitesVersionsFilesService struct {// contains filtered or unexported fields}funcNewProjectsSitesVersionsFilesService¶added inv0.23.0
func NewProjectsSitesVersionsFilesService(s *Service) *ProjectsSitesVersionsFilesService
func (*ProjectsSitesVersionsFilesService)List¶added inv0.23.0
func (r *ProjectsSitesVersionsFilesService) List(parentstring) *ProjectsSitesVersionsFilesListCall
List: Lists the remaining files to be uploaded for the specified version.
- parent: The version for which to list files, in the format: sites/SITE_ID/versions/VERSION_ID.
typeProjectsSitesVersionsGetCall¶added inv0.110.0
type ProjectsSitesVersionsGetCall struct {// contains filtered or unexported fields}func (*ProjectsSitesVersionsGetCall)Context¶added inv0.110.0
func (c *ProjectsSitesVersionsGetCall) Context(ctxcontext.Context) *ProjectsSitesVersionsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesVersionsGetCall)Do¶added inv0.110.0
func (c *ProjectsSitesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version,error)
Do executes the "firebasehosting.projects.sites.versions.get" call.Any non-2xx status code is an error. Response headers are in either*Version.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesVersionsGetCall)Fields¶added inv0.110.0
func (c *ProjectsSitesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesVersionsGetCall)Header¶added inv0.110.0
func (c *ProjectsSitesVersionsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesVersionsGetCall)IfNoneMatch¶added inv0.110.0
func (c *ProjectsSitesVersionsGetCall) IfNoneMatch(entityTagstring) *ProjectsSitesVersionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsSitesVersionsListCall¶added inv0.23.0
type ProjectsSitesVersionsListCall struct {// contains filtered or unexported fields}func (*ProjectsSitesVersionsListCall)Context¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) Context(ctxcontext.Context) *ProjectsSitesVersionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesVersionsListCall)Do¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse,error)
Do executes the "firebasehosting.projects.sites.versions.list" call.Any non-2xx status code is an error. Response headers are in either*ListVersionsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsSitesVersionsListCall)Fields¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesVersionsListCall)Filter¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) Filter(filterstring) *ProjectsSitesVersionsListCall
Filter sets the optional parameter "filter": A filter string used to returna subset of versions in the response. The currently supported fields forfiltering are: `name`, `status`, and `create_time`. Learn more aboutfiltering in Google's AIP 160 standard (https://google.aip.dev/160).
func (*ProjectsSitesVersionsListCall)Header¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesVersionsListCall)IfNoneMatch¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) IfNoneMatch(entityTagstring) *ProjectsSitesVersionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsSitesVersionsListCall)PageSize¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) PageSize(pageSizeint64) *ProjectsSitesVersionsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofversions to return. The service may return a lower number if fewer versionsexist than this maximum number. If unspecified, defaults to 25. The maximumvalue is 100; values above 100 will be coerced to 100.
func (*ProjectsSitesVersionsListCall)PageToken¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) PageToken(pageTokenstring) *ProjectsSitesVersionsListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `ListVersions` that tells the server where to resume listing.
func (*ProjectsSitesVersionsListCall)Pages¶added inv0.23.0
func (c *ProjectsSitesVersionsListCall) Pages(ctxcontext.Context, f func(*ListVersionsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsSitesVersionsPatchCall¶added inv0.23.0
type ProjectsSitesVersionsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsSitesVersionsPatchCall)Context¶added inv0.23.0
func (c *ProjectsSitesVersionsPatchCall) Context(ctxcontext.Context) *ProjectsSitesVersionsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesVersionsPatchCall)Do¶added inv0.23.0
func (c *ProjectsSitesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Version,error)
Do executes the "firebasehosting.projects.sites.versions.patch" call.Any non-2xx status code is an error. Response headers are in either*Version.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSitesVersionsPatchCall)Fields¶added inv0.23.0
func (c *ProjectsSitesVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesVersionsPatchCall)Header¶added inv0.23.0
func (c *ProjectsSitesVersionsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsSitesVersionsPatchCall)UpdateMask¶added inv0.23.0
func (c *ProjectsSitesVersionsPatchCall) UpdateMask(updateMaskstring) *ProjectsSitesVersionsPatchCall
UpdateMask sets the optional parameter "updateMask": A set of field namesfrom your version (../sites.versions) that you want to update. A field willbe overwritten if, and only if, it's in the mask. If a mask is not providedthen a default mask of only `status`(../sites.versions#Version.FIELDS.status) will be used.
typeProjectsSitesVersionsPopulateFilesCall¶added inv0.23.0
type ProjectsSitesVersionsPopulateFilesCall struct {// contains filtered or unexported fields}func (*ProjectsSitesVersionsPopulateFilesCall)Context¶added inv0.23.0
func (c *ProjectsSitesVersionsPopulateFilesCall) Context(ctxcontext.Context) *ProjectsSitesVersionsPopulateFilesCall
Context sets the context to be used in this call's Do method.
func (*ProjectsSitesVersionsPopulateFilesCall)Do¶added inv0.23.0
func (c *ProjectsSitesVersionsPopulateFilesCall) Do(opts ...googleapi.CallOption) (*PopulateVersionFilesResponse,error)
Do executes the "firebasehosting.projects.sites.versions.populateFiles" call.Any non-2xx status code is an error. Response headers are in either*PopulateVersionFilesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsSitesVersionsPopulateFilesCall)Fields¶added inv0.23.0
func (c *ProjectsSitesVersionsPopulateFilesCall) Fields(s ...googleapi.Field) *ProjectsSitesVersionsPopulateFilesCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsSitesVersionsPopulateFilesCall)Header¶added inv0.23.0
func (c *ProjectsSitesVersionsPopulateFilesCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsSitesVersionsService¶added inv0.23.0
type ProjectsSitesVersionsService struct {Files *ProjectsSitesVersionsFilesService// contains filtered or unexported fields}funcNewProjectsSitesVersionsService¶added inv0.23.0
func NewProjectsSitesVersionsService(s *Service) *ProjectsSitesVersionsService
func (*ProjectsSitesVersionsService)Clone¶added inv0.23.0
func (r *ProjectsSitesVersionsService) Clone(parentstring, cloneversionrequest *CloneVersionRequest) *ProjectsSitesVersionsCloneCall
Clone: Creates a new version on the specified target site using the contentof the specified version.
- parent: The target site for the cloned version, in the format: sites/SITE_ID.
func (*ProjectsSitesVersionsService)Create¶added inv0.23.0
func (r *ProjectsSitesVersionsService) Create(parentstring, version *Version) *ProjectsSitesVersionsCreateCall
Create: Creates a new version for the specified site.
- parent: The site in which to create the version, in the format: sites/SITE_ID.
func (*ProjectsSitesVersionsService)Delete¶added inv0.23.0
func (r *ProjectsSitesVersionsService) Delete(namestring) *ProjectsSitesVersionsDeleteCall
Delete: Deletes the specified version.
- name: The fully-qualified resource name for the version, in the format:sites/SITE_ID/versions/VERSION_ID.
func (*ProjectsSitesVersionsService)Get¶added inv0.110.0
func (r *ProjectsSitesVersionsService) Get(namestring) *ProjectsSitesVersionsGetCall
Get: Get the specified version that has been created for the specified site.This can include versions that were created for the default `live` channelor for any active preview channels for the specified site.
- name: The fully-qualified resource name for the version, in the format:sites/SITE_ID/versions/VERSION_ID.
func (*ProjectsSitesVersionsService)List¶added inv0.23.0
func (r *ProjectsSitesVersionsService) List(parentstring) *ProjectsSitesVersionsListCall
List: Lists the versions that have been created for the specified site. Thislist includes versions for both the default `live` channel and any activepreview channels for the specified site.
- parent: The site or channel for which to list versions, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
func (*ProjectsSitesVersionsService)Patch¶added inv0.23.0
func (r *ProjectsSitesVersionsService) Patch(namestring, version *Version) *ProjectsSitesVersionsPatchCall
Patch: Updates the specified metadata for the specified version. Thismethod will fail with `FAILED_PRECONDITION` in the event of an invalid statetransition. The supported state (../sites.versions#versionstatus)transitions for a version are from `CREATED` to `FINALIZED`. Use`DeleteVersion` (delete) to set the status of a version to `DELETED`.
- name: The fully-qualified resource name for the version, in the format:sites/ SITE_ID/versions/VERSION_ID This name is provided in the responsebody when you call `CreateVersion` (sites.versions/create).
func (*ProjectsSitesVersionsService)PopulateFiles¶added inv0.23.0
func (r *ProjectsSitesVersionsService) PopulateFiles(parentstring, populateversionfilesrequest *PopulateVersionFilesRequest) *ProjectsSitesVersionsPopulateFilesCall
PopulateFiles: Adds content files to the specified version. Each file mustbe under 2 GB.
- parent: The version to which to add files, in the format: sites/SITE_ID/versions/VERSION_ID.
typeRedirect¶
type Redirect struct {// Glob: The user-supplied glob// (https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching)// to match against the request URL path.Globstring `json:"glob,omitempty"`// Location: Required. The value to put in the HTTP location header of the// response. The location can contain capture group values from the pattern// using a `:` prefix to identify the segment and an optional `*` to capture// the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301,// "location": "https://example.com/foo/:capture"Locationstring `json:"location,omitempty"`// Regex: The user-supplied RE2 regular expression to match against the request// URL path.Regexstring `json:"regex,omitempty"`// StatusCode: Required. The status HTTP code to return in the response. It// must be a valid 3xx status code.StatusCodeint64 `json:"statusCode,omitempty"`// ForceSendFields is a list of field names (e.g. "Glob") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Glob") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Redirect: A `Redirect`(https://firebase.google.com/docs/hosting/full-config#redirects) specifies aURL pattern that, if matched to the request URL path, triggers Hosting torespond with a redirect to the specified destination path.
func (Redirect)MarshalJSON¶
typeRelease¶
type Release struct {// Message: The deploy description when the release was created. The value can// be up to 512 characters.Messagestring `json:"message,omitempty"`// Name: Output only. The unique identifier for the release, in either of the// following formats: - sites/SITE_ID/releases/RELEASE_ID -// sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID This name is provided// in the response body when you call `releases.create` (sites.releases/create)// or `channels.releases.create` (sites.channels.releases/create).Namestring `json:"name,omitempty"`// ReleaseTime: Output only. The time at which the version is set to be public.ReleaseTimestring `json:"releaseTime,omitempty"`// ReleaseUser: Output only. Identifies the user who created the release.ReleaseUser *ActingUser `json:"releaseUser,omitempty"`// Type: Explains the reason for the release. Specify a value for this field// only when creating a `SITE_DISABLE` type release.//// Possible values:// "TYPE_UNSPECIFIED" - An unspecified type. Indicates that a version was// released. This is the default value when no other `type` is explicitly// specified.// "DEPLOY" - A version was uploaded to Firebase Hosting and released.// "ROLLBACK" - The release points back to a previously deployed version.// "SITE_DISABLE" - The release prevents the site from serving content.// Firebase Hosting acts as if the site never existed.Typestring `json:"type,omitempty"`// Version: Output only. The configuration and content that was released.Version *Version `json:"version,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Message") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Message") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Release: A `Release` is a particular collection of configurations and files(sites.versions) that is set to be public at a particular time.
func (Release)MarshalJSON¶
typeRewrite¶
type Rewrite struct {// DynamicLinks: The request will be forwarded to Firebase Dynamic Links.DynamicLinksbool `json:"dynamicLinks,omitempty"`// Function: The function to proxy requests to. Must match the exported// function name exactly.Functionstring `json:"function,omitempty"`// FunctionRegion: Optional. Specify a Cloud region for rewritten Functions// invocations. If not provided, defaults to us-central1.FunctionRegionstring `json:"functionRegion,omitempty"`// Glob: The user-supplied glob// (https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching)// to match against the request URL path.Globstring `json:"glob,omitempty"`// Path: The URL path to rewrite the request to.Pathstring `json:"path,omitempty"`// Regex: The user-supplied RE2 regular expression to match against the request// URL path.Regexstring `json:"regex,omitempty"`// Run: The request will be forwarded to Cloud Run.Run *CloudRunRewrite `json:"run,omitempty"`// ForceSendFields is a list of field names (e.g. "DynamicLinks") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DynamicLinks") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Rewrite: A `Rewrite`(https://firebase.google.com/docs/hosting/full-config#rewrites) specifies aURL pattern that, if matched to the request URL path, triggers Hosting torespond as if the service were given the specified destination URL.
func (Rewrite)MarshalJSON¶
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsServiceSites *SitesService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶added inv0.3.0
NewService creates a new Service.
typeServingConfig¶
type ServingConfig struct {// AppAssociation: How to handle well known App Association files.//// Possible values:// "AUTO" - The app association files will be automatically created from the// apps that exist in the Firebase project.// "NONE" - No special handling of the app association files will occur,// these paths will result in a 404 unless caught with a Rewrite.AppAssociationstring `json:"appAssociation,omitempty"`// CleanUrls: Defines whether to drop the file extension from uploaded files.CleanUrlsbool `json:"cleanUrls,omitempty"`// Headers: An array of objects, where each object specifies a URL pattern// that, if matched to the request URL path, triggers Hosting to apply the// specified custom response headers.Headers []*Header `json:"headers,omitempty"`// I18n: Optional. Defines i18n rewrite behavior.I18n *I18nConfig `json:"i18n,omitempty"`// Redirects: An array of objects (called redirect rules), where each rule// specifies a URL pattern that, if matched to the request URL path, triggers// Hosting to respond with a redirect to the specified destination path.Redirects []*Redirect `json:"redirects,omitempty"`// Rewrites: An array of objects (called rewrite rules), where each rule// specifies a URL pattern that, if matched to the request URL path, triggers// Hosting to respond as if the service were given the specified destination// URL.Rewrites []*Rewrite `json:"rewrites,omitempty"`// TrailingSlashBehavior: Defines how to handle a trailing slash in the URL// path.//// Possible values:// "TRAILING_SLASH_BEHAVIOR_UNSPECIFIED" - No behavior is specified. Files// are served at their exact location only, and trailing slashes are only added// to directory indexes.// "ADD" - Trailing slashes are _added_ to directory indexes as well as to// any URL path not ending in a file extension.// "REMOVE" - Trailing slashes are _removed_ from directory indexes as well// as from any URL path not ending in a file extension.TrailingSlashBehaviorstring `json:"trailingSlashBehavior,omitempty"`// ForceSendFields is a list of field names (e.g. "AppAssociation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppAssociation") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ServingConfig: The configuration for how incoming requests to a site shouldbe routed and processed before serving content. The URL request paths arematched against the specified URL patterns in the configuration, thenHosting applies the applicable configuration according to a specificpriority order(https://firebase.google.com/docs/hosting/full-config#hosting_priority_order).
func (ServingConfig)MarshalJSON¶
func (sServingConfig) MarshalJSON() ([]byte,error)
typeSite¶added inv0.42.0
type Site struct {// AppId: Optional. The ID of a Web App// (https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id)// associated with the Hosting site.AppIdstring `json:"appId,omitempty"`// DefaultUrl: Output only. The default URL for the Hosting site.DefaultUrlstring `json:"defaultUrl,omitempty"`// Labels: Optional. User-specified labels for the Hosting site.Labels map[string]string `json:"labels,omitempty"`// Name: Output only. The fully-qualified resource name of the Hosting site, in// the format: projects/PROJECT_IDENTIFIER/sites/SITE_ID PROJECT_IDENTIFIER:// the Firebase project's `ProjectNumber`// (https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject.FIELDS.project_number)// ***(recommended)*** or its `ProjectId`// (https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects#FirebaseProject.FIELDS.project_id).// Learn more about using project identifiers in Google's AIP 2510 standard// (https://google.aip.dev/cloud/2510).Namestring `json:"name,omitempty"`// Type: Output only. The type of Hosting site. Every Firebase project has a// `DEFAULT_SITE`, which is created when Hosting is provisioned for the// project. All additional sites are `USER_SITE`.//// Possible values:// "TYPE_UNSPECIFIED" - Unknown state, likely the result of an error on the// backend.// "DEFAULT_SITE" - The default Hosting site that is provisioned when a// Firebase project is created.// "USER_SITE" - A Hosting site that the user created.Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Site: A `Site` represents a Firebase Hosting site.
func (Site)MarshalJSON¶added inv0.42.0
typeSiteConfig¶
type SiteConfig struct {// CloudLoggingEnabled: Whether or not web requests made by site visitors are// logged via Cloud Logging.CloudLoggingEnabledbool `json:"cloudLoggingEnabled,omitempty"`// MaxVersions: The number of FINALIZED versions that will be held for a site// before automatic deletion. When a new version is deployed, content for// versions in storage in excess of this number will be deleted, and will no// longer be billed for storage usage. Oldest versions will be deleted first;// sites are created with an unlimited number of max_versions by default.MaxVersionsint64 `json:"maxVersions,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CloudLoggingEnabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CloudLoggingEnabled") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SiteConfig: A `SiteConfig` contains metadata associated with a specific sitethat controls Firebase Hosting serving behavior
func (SiteConfig)MarshalJSON¶
func (sSiteConfig) MarshalJSON() ([]byte,error)
typeSitesChannelsCreateCall¶added inv0.32.0
type SitesChannelsCreateCall struct {// contains filtered or unexported fields}func (*SitesChannelsCreateCall)ChannelId¶added inv0.32.0
func (c *SitesChannelsCreateCall) ChannelId(channelIdstring) *SitesChannelsCreateCall
ChannelId sets the optional parameter "channelId": Required. Immutable. Aunique ID within the site that identifies the channel.
func (*SitesChannelsCreateCall)Context¶added inv0.32.0
func (c *SitesChannelsCreateCall) Context(ctxcontext.Context) *SitesChannelsCreateCall
Context sets the context to be used in this call's Do method.
func (*SitesChannelsCreateCall)Do¶added inv0.32.0
func (c *SitesChannelsCreateCall) Do(opts ...googleapi.CallOption) (*Channel,error)
Do executes the "firebasehosting.sites.channels.create" call.Any non-2xx status code is an error. Response headers are in either*Channel.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesChannelsCreateCall)Fields¶added inv0.32.0
func (c *SitesChannelsCreateCall) Fields(s ...googleapi.Field) *SitesChannelsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesChannelsCreateCall)Header¶added inv0.32.0
func (c *SitesChannelsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSitesChannelsDeleteCall¶added inv0.32.0
type SitesChannelsDeleteCall struct {// contains filtered or unexported fields}func (*SitesChannelsDeleteCall)Context¶added inv0.32.0
func (c *SitesChannelsDeleteCall) Context(ctxcontext.Context) *SitesChannelsDeleteCall
Context sets the context to be used in this call's Do method.
func (*SitesChannelsDeleteCall)Do¶added inv0.32.0
func (c *SitesChannelsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasehosting.sites.channels.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesChannelsDeleteCall)Fields¶added inv0.32.0
func (c *SitesChannelsDeleteCall) Fields(s ...googleapi.Field) *SitesChannelsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesChannelsDeleteCall)Header¶added inv0.32.0
func (c *SitesChannelsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSitesChannelsGetCall¶added inv0.32.0
type SitesChannelsGetCall struct {// contains filtered or unexported fields}func (*SitesChannelsGetCall)Context¶added inv0.32.0
func (c *SitesChannelsGetCall) Context(ctxcontext.Context) *SitesChannelsGetCall
Context sets the context to be used in this call's Do method.
func (*SitesChannelsGetCall)Do¶added inv0.32.0
func (c *SitesChannelsGetCall) Do(opts ...googleapi.CallOption) (*Channel,error)
Do executes the "firebasehosting.sites.channels.get" call.Any non-2xx status code is an error. Response headers are in either*Channel.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesChannelsGetCall)Fields¶added inv0.32.0
func (c *SitesChannelsGetCall) Fields(s ...googleapi.Field) *SitesChannelsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesChannelsGetCall)Header¶added inv0.32.0
func (c *SitesChannelsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesChannelsGetCall)IfNoneMatch¶added inv0.32.0
func (c *SitesChannelsGetCall) IfNoneMatch(entityTagstring) *SitesChannelsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeSitesChannelsListCall¶added inv0.32.0
type SitesChannelsListCall struct {// contains filtered or unexported fields}func (*SitesChannelsListCall)Context¶added inv0.32.0
func (c *SitesChannelsListCall) Context(ctxcontext.Context) *SitesChannelsListCall
Context sets the context to be used in this call's Do method.
func (*SitesChannelsListCall)Do¶added inv0.32.0
func (c *SitesChannelsListCall) Do(opts ...googleapi.CallOption) (*ListChannelsResponse,error)
Do executes the "firebasehosting.sites.channels.list" call.Any non-2xx status code is an error. Response headers are in either*ListChannelsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*SitesChannelsListCall)Fields¶added inv0.32.0
func (c *SitesChannelsListCall) Fields(s ...googleapi.Field) *SitesChannelsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesChannelsListCall)Header¶added inv0.32.0
func (c *SitesChannelsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesChannelsListCall)IfNoneMatch¶added inv0.32.0
func (c *SitesChannelsListCall) IfNoneMatch(entityTagstring) *SitesChannelsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SitesChannelsListCall)PageSize¶added inv0.32.0
func (c *SitesChannelsListCall) PageSize(pageSizeint64) *SitesChannelsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofchannels to return. The service may return a lower number if fewer channelsexist than this maximum number. If unspecified, defaults to 10. The maximumvalue is 100; values above 100 will be coerced to 100.
func (*SitesChannelsListCall)PageToken¶added inv0.32.0
func (c *SitesChannelsListCall) PageToken(pageTokenstring) *SitesChannelsListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `ListChannels` that tells the server where to resume listing.
func (*SitesChannelsListCall)Pages¶added inv0.32.0
func (c *SitesChannelsListCall) Pages(ctxcontext.Context, f func(*ListChannelsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeSitesChannelsPatchCall¶added inv0.32.0
type SitesChannelsPatchCall struct {// contains filtered or unexported fields}func (*SitesChannelsPatchCall)Context¶added inv0.32.0
func (c *SitesChannelsPatchCall) Context(ctxcontext.Context) *SitesChannelsPatchCall
Context sets the context to be used in this call's Do method.
func (*SitesChannelsPatchCall)Do¶added inv0.32.0
func (c *SitesChannelsPatchCall) Do(opts ...googleapi.CallOption) (*Channel,error)
Do executes the "firebasehosting.sites.channels.patch" call.Any non-2xx status code is an error. Response headers are in either*Channel.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesChannelsPatchCall)Fields¶added inv0.32.0
func (c *SitesChannelsPatchCall) Fields(s ...googleapi.Field) *SitesChannelsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesChannelsPatchCall)Header¶added inv0.32.0
func (c *SitesChannelsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesChannelsPatchCall)UpdateMask¶added inv0.32.0
func (c *SitesChannelsPatchCall) UpdateMask(updateMaskstring) *SitesChannelsPatchCall
UpdateMask sets the optional parameter "updateMask": A comma-separated listof fields to be updated in this request.
typeSitesChannelsReleasesCreateCall¶added inv0.21.0
type SitesChannelsReleasesCreateCall struct {// contains filtered or unexported fields}func (*SitesChannelsReleasesCreateCall)Context¶added inv0.21.0
func (c *SitesChannelsReleasesCreateCall) Context(ctxcontext.Context) *SitesChannelsReleasesCreateCall
Context sets the context to be used in this call's Do method.
func (*SitesChannelsReleasesCreateCall)Do¶added inv0.21.0
func (c *SitesChannelsReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release,error)
Do executes the "firebasehosting.sites.channels.releases.create" call.Any non-2xx status code is an error. Response headers are in either*Release.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesChannelsReleasesCreateCall)Fields¶added inv0.21.0
func (c *SitesChannelsReleasesCreateCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesChannelsReleasesCreateCall)Header¶added inv0.21.0
func (c *SitesChannelsReleasesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesChannelsReleasesCreateCall)VersionName¶added inv0.21.0
func (c *SitesChannelsReleasesCreateCall) VersionName(versionNamestring) *SitesChannelsReleasesCreateCall
VersionName sets the optional parameter "versionName": The unique identifierfor a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_IDin this version identifier must match the SITE_ID in the `parent` parameter.This query parameter must be empty if the `type` field in the request bodyis `SITE_DISABLE`.
typeSitesChannelsReleasesGetCall¶added inv0.110.0
type SitesChannelsReleasesGetCall struct {// contains filtered or unexported fields}func (*SitesChannelsReleasesGetCall)Context¶added inv0.110.0
func (c *SitesChannelsReleasesGetCall) Context(ctxcontext.Context) *SitesChannelsReleasesGetCall
Context sets the context to be used in this call's Do method.
func (*SitesChannelsReleasesGetCall)Do¶added inv0.110.0
func (c *SitesChannelsReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release,error)
Do executes the "firebasehosting.sites.channels.releases.get" call.Any non-2xx status code is an error. Response headers are in either*Release.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesChannelsReleasesGetCall)Fields¶added inv0.110.0
func (c *SitesChannelsReleasesGetCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesChannelsReleasesGetCall)Header¶added inv0.110.0
func (c *SitesChannelsReleasesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesChannelsReleasesGetCall)IfNoneMatch¶added inv0.110.0
func (c *SitesChannelsReleasesGetCall) IfNoneMatch(entityTagstring) *SitesChannelsReleasesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeSitesChannelsReleasesListCall¶added inv0.21.0
type SitesChannelsReleasesListCall struct {// contains filtered or unexported fields}func (*SitesChannelsReleasesListCall)Context¶added inv0.21.0
func (c *SitesChannelsReleasesListCall) Context(ctxcontext.Context) *SitesChannelsReleasesListCall
Context sets the context to be used in this call's Do method.
func (*SitesChannelsReleasesListCall)Do¶added inv0.21.0
func (c *SitesChannelsReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse,error)
Do executes the "firebasehosting.sites.channels.releases.list" call.Any non-2xx status code is an error. Response headers are in either*ListReleasesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*SitesChannelsReleasesListCall)Fields¶added inv0.21.0
func (c *SitesChannelsReleasesListCall) Fields(s ...googleapi.Field) *SitesChannelsReleasesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesChannelsReleasesListCall)Header¶added inv0.21.0
func (c *SitesChannelsReleasesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesChannelsReleasesListCall)IfNoneMatch¶added inv0.21.0
func (c *SitesChannelsReleasesListCall) IfNoneMatch(entityTagstring) *SitesChannelsReleasesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SitesChannelsReleasesListCall)PageSize¶added inv0.21.0
func (c *SitesChannelsReleasesListCall) PageSize(pageSizeint64) *SitesChannelsReleasesListCall
PageSize sets the optional parameter "pageSize": The maximum number ofreleases to return. The service may return a lower number if fewer releasesexist than this maximum number. If unspecified, defaults to 100.
func (*SitesChannelsReleasesListCall)PageToken¶added inv0.21.0
func (c *SitesChannelsReleasesListCall) PageToken(pageTokenstring) *SitesChannelsReleasesListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `releases.list` or `channels.releases.list` that tells the serverwhere to resume listing.
func (*SitesChannelsReleasesListCall)Pages¶added inv0.21.0
func (c *SitesChannelsReleasesListCall) Pages(ctxcontext.Context, f func(*ListReleasesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeSitesChannelsReleasesService¶added inv0.21.0
type SitesChannelsReleasesService struct {// contains filtered or unexported fields}funcNewSitesChannelsReleasesService¶added inv0.21.0
func NewSitesChannelsReleasesService(s *Service) *SitesChannelsReleasesService
func (*SitesChannelsReleasesService)Create¶added inv0.21.0
func (r *SitesChannelsReleasesService) Create(parentstring, release *Release) *SitesChannelsReleasesCreateCall
Create: Creates a new release, which makes the content of the specifiedversion actively display on the appropriate URL(s).
- parent: The site or channel to which the release belongs, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
func (*SitesChannelsReleasesService)Get¶added inv0.110.0
func (r *SitesChannelsReleasesService) Get(namestring) *SitesChannelsReleasesGetCall
Get: Gets the specified release for a site or channel. When used to get arelease for a site, this can get releases for both the default `live`channel and any active preview channels for the specified site.
- name: The fully-qualified resource name for the Hosting release, in eitherof the following formats: -sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID -sites/SITE_ID/releases/RELEASE_ID.
func (*SitesChannelsReleasesService)List¶added inv0.21.0
func (r *SitesChannelsReleasesService) List(parentstring) *SitesChannelsReleasesListCall
List: Lists the releases that have been created for the specified site orchannel. When used to list releases for a site, this list includes releasesfor both the default `live` channel and any active preview channels for thespecified site.
- parent: The site or channel for which to list releases, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
typeSitesChannelsService¶added inv0.21.0
type SitesChannelsService struct {Releases *SitesChannelsReleasesService// contains filtered or unexported fields}funcNewSitesChannelsService¶added inv0.21.0
func NewSitesChannelsService(s *Service) *SitesChannelsService
func (*SitesChannelsService)Create¶added inv0.32.0
func (r *SitesChannelsService) Create(parentstring, channel *Channel) *SitesChannelsCreateCall
Create: Creates a new channel in the specified site.
- parent: The site in which to create this channel, in the format: sites/SITE_ID.
func (*SitesChannelsService)Delete¶added inv0.32.0
func (r *SitesChannelsService) Delete(namestring) *SitesChannelsDeleteCall
Delete: Deletes the specified channel of the specified site. The `live`channel cannot be deleted.
- name: The fully-qualified resource name for the channel, in the format:sites/SITE_ID/channels/CHANNEL_ID.
func (*SitesChannelsService)Get¶added inv0.32.0
func (r *SitesChannelsService) Get(namestring) *SitesChannelsGetCall
Get: Retrieves information for the specified channel of the specified site.
- name: The fully-qualified resource name for the channel, in the format:sites/SITE_ID/channels/CHANNEL_ID.
func (*SitesChannelsService)List¶added inv0.32.0
func (r *SitesChannelsService) List(parentstring) *SitesChannelsListCall
List: Lists the channels for the specified site. All sites have a default`live` channel.
- parent: The site for which to list channels, in the format: sites/SITE_ID.
func (*SitesChannelsService)Patch¶added inv0.32.0
func (r *SitesChannelsService) Patch(namestring, channel *Channel) *SitesChannelsPatchCall
Patch: Updates information for the specified channel of the specified site.Implicitly creates the channel if it doesn't already exist.
- name: The fully-qualified resource name for the channel, in the format:sites/ SITE_ID/channels/CHANNEL_ID.
typeSitesDomainsCreateCall¶
type SitesDomainsCreateCall struct {// contains filtered or unexported fields}func (*SitesDomainsCreateCall)Context¶
func (c *SitesDomainsCreateCall) Context(ctxcontext.Context) *SitesDomainsCreateCall
Context sets the context to be used in this call's Do method.
func (*SitesDomainsCreateCall)Do¶
func (c *SitesDomainsCreateCall) Do(opts ...googleapi.CallOption) (*Domain,error)
Do executes the "firebasehosting.sites.domains.create" call.Any non-2xx status code is an error. Response headers are in either*Domain.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesDomainsCreateCall)Fields¶
func (c *SitesDomainsCreateCall) Fields(s ...googleapi.Field) *SitesDomainsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesDomainsCreateCall)Header¶
func (c *SitesDomainsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSitesDomainsDeleteCall¶
type SitesDomainsDeleteCall struct {// contains filtered or unexported fields}func (*SitesDomainsDeleteCall)Context¶
func (c *SitesDomainsDeleteCall) Context(ctxcontext.Context) *SitesDomainsDeleteCall
Context sets the context to be used in this call's Do method.
func (*SitesDomainsDeleteCall)Do¶
func (c *SitesDomainsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasehosting.sites.domains.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesDomainsDeleteCall)Fields¶
func (c *SitesDomainsDeleteCall) Fields(s ...googleapi.Field) *SitesDomainsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesDomainsDeleteCall)Header¶
func (c *SitesDomainsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSitesDomainsGetCall¶
type SitesDomainsGetCall struct {// contains filtered or unexported fields}func (*SitesDomainsGetCall)Context¶
func (c *SitesDomainsGetCall) Context(ctxcontext.Context) *SitesDomainsGetCall
Context sets the context to be used in this call's Do method.
func (*SitesDomainsGetCall)Do¶
func (c *SitesDomainsGetCall) Do(opts ...googleapi.CallOption) (*Domain,error)
Do executes the "firebasehosting.sites.domains.get" call.Any non-2xx status code is an error. Response headers are in either*Domain.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesDomainsGetCall)Fields¶
func (c *SitesDomainsGetCall) Fields(s ...googleapi.Field) *SitesDomainsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesDomainsGetCall)Header¶
func (c *SitesDomainsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesDomainsGetCall)IfNoneMatch¶
func (c *SitesDomainsGetCall) IfNoneMatch(entityTagstring) *SitesDomainsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeSitesDomainsListCall¶
type SitesDomainsListCall struct {// contains filtered or unexported fields}func (*SitesDomainsListCall)Context¶
func (c *SitesDomainsListCall) Context(ctxcontext.Context) *SitesDomainsListCall
Context sets the context to be used in this call's Do method.
func (*SitesDomainsListCall)Do¶
func (c *SitesDomainsListCall) Do(opts ...googleapi.CallOption) (*ListDomainsResponse,error)
Do executes the "firebasehosting.sites.domains.list" call.Any non-2xx status code is an error. Response headers are in either*ListDomainsResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*SitesDomainsListCall)Fields¶
func (c *SitesDomainsListCall) Fields(s ...googleapi.Field) *SitesDomainsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesDomainsListCall)Header¶
func (c *SitesDomainsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesDomainsListCall)IfNoneMatch¶
func (c *SitesDomainsListCall) IfNoneMatch(entityTagstring) *SitesDomainsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SitesDomainsListCall)PageSize¶
func (c *SitesDomainsListCall) PageSize(pageSizeint64) *SitesDomainsListCall
PageSize sets the optional parameter "pageSize": The page size to return.Defaults to 50.
func (*SitesDomainsListCall)PageToken¶
func (c *SitesDomainsListCall) PageToken(pageTokenstring) *SitesDomainsListCall
PageToken sets the optional parameter "pageToken": The next_page_token froma previous request, if provided.
func (*SitesDomainsListCall)Pages¶
func (c *SitesDomainsListCall) Pages(ctxcontext.Context, f func(*ListDomainsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeSitesDomainsService¶
type SitesDomainsService struct {// contains filtered or unexported fields}funcNewSitesDomainsService¶
func NewSitesDomainsService(s *Service) *SitesDomainsService
func (*SitesDomainsService)Create¶
func (r *SitesDomainsService) Create(parentstring, domain *Domain) *SitesDomainsCreateCall
Create: Creates a domain mapping on the specified site.
- parent: The parent to create the domain association for, in the format:sites/site-name.
func (*SitesDomainsService)Delete¶
func (r *SitesDomainsService) Delete(namestring) *SitesDomainsDeleteCall
Delete: Deletes the existing domain mapping on the specified site.
- name: The name of the domain association to delete.
func (*SitesDomainsService)Get¶
func (r *SitesDomainsService) Get(namestring) *SitesDomainsGetCall
Get: Gets a domain mapping on the specified site.
- name: The name of the domain configuration to get.
func (*SitesDomainsService)List¶
func (r *SitesDomainsService) List(parentstring) *SitesDomainsListCall
List: Lists the domains for the specified site.
- parent: The parent for which to list domains, in the format: sites/site-name.
func (*SitesDomainsService)Update¶
func (r *SitesDomainsService) Update(namestring, domain *Domain) *SitesDomainsUpdateCall
Update: Updates the specified domain mapping, creating the mapping as if itdoes not exist.
- name: The name of the domain association to update or create, if anassociation doesn't already exist.
typeSitesDomainsUpdateCall¶
type SitesDomainsUpdateCall struct {// contains filtered or unexported fields}func (*SitesDomainsUpdateCall)Context¶
func (c *SitesDomainsUpdateCall) Context(ctxcontext.Context) *SitesDomainsUpdateCall
Context sets the context to be used in this call's Do method.
func (*SitesDomainsUpdateCall)Do¶
func (c *SitesDomainsUpdateCall) Do(opts ...googleapi.CallOption) (*Domain,error)
Do executes the "firebasehosting.sites.domains.update" call.Any non-2xx status code is an error. Response headers are in either*Domain.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesDomainsUpdateCall)Fields¶
func (c *SitesDomainsUpdateCall) Fields(s ...googleapi.Field) *SitesDomainsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesDomainsUpdateCall)Header¶
func (c *SitesDomainsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSitesGetConfigCall¶
type SitesGetConfigCall struct {// contains filtered or unexported fields}func (*SitesGetConfigCall)Context¶
func (c *SitesGetConfigCall) Context(ctxcontext.Context) *SitesGetConfigCall
Context sets the context to be used in this call's Do method.
func (*SitesGetConfigCall)Do¶
func (c *SitesGetConfigCall) Do(opts ...googleapi.CallOption) (*SiteConfig,error)
Do executes the "firebasehosting.sites.getConfig" call.Any non-2xx status code is an error. Response headers are in either*SiteConfig.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesGetConfigCall)Fields¶
func (c *SitesGetConfigCall) Fields(s ...googleapi.Field) *SitesGetConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesGetConfigCall)Header¶
func (c *SitesGetConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesGetConfigCall)IfNoneMatch¶
func (c *SitesGetConfigCall) IfNoneMatch(entityTagstring) *SitesGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeSitesReleasesCreateCall¶
type SitesReleasesCreateCall struct {// contains filtered or unexported fields}func (*SitesReleasesCreateCall)Context¶
func (c *SitesReleasesCreateCall) Context(ctxcontext.Context) *SitesReleasesCreateCall
Context sets the context to be used in this call's Do method.
func (*SitesReleasesCreateCall)Do¶
func (c *SitesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Release,error)
Do executes the "firebasehosting.sites.releases.create" call.Any non-2xx status code is an error. Response headers are in either*Release.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesReleasesCreateCall)Fields¶
func (c *SitesReleasesCreateCall) Fields(s ...googleapi.Field) *SitesReleasesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesReleasesCreateCall)Header¶
func (c *SitesReleasesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesReleasesCreateCall)VersionName¶
func (c *SitesReleasesCreateCall) VersionName(versionNamestring) *SitesReleasesCreateCall
VersionName sets the optional parameter "versionName": The unique identifierfor a version, in the format: sites/SITE_ID/versions/ VERSION_ID The SITE_IDin this version identifier must match the SITE_ID in the `parent` parameter.This query parameter must be empty if the `type` field in the request bodyis `SITE_DISABLE`.
typeSitesReleasesGetCall¶added inv0.110.0
type SitesReleasesGetCall struct {// contains filtered or unexported fields}func (*SitesReleasesGetCall)Context¶added inv0.110.0
func (c *SitesReleasesGetCall) Context(ctxcontext.Context) *SitesReleasesGetCall
Context sets the context to be used in this call's Do method.
func (*SitesReleasesGetCall)Do¶added inv0.110.0
func (c *SitesReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release,error)
Do executes the "firebasehosting.sites.releases.get" call.Any non-2xx status code is an error. Response headers are in either*Release.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesReleasesGetCall)Fields¶added inv0.110.0
func (c *SitesReleasesGetCall) Fields(s ...googleapi.Field) *SitesReleasesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesReleasesGetCall)Header¶added inv0.110.0
func (c *SitesReleasesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesReleasesGetCall)IfNoneMatch¶added inv0.110.0
func (c *SitesReleasesGetCall) IfNoneMatch(entityTagstring) *SitesReleasesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeSitesReleasesListCall¶
type SitesReleasesListCall struct {// contains filtered or unexported fields}func (*SitesReleasesListCall)Context¶
func (c *SitesReleasesListCall) Context(ctxcontext.Context) *SitesReleasesListCall
Context sets the context to be used in this call's Do method.
func (*SitesReleasesListCall)Do¶
func (c *SitesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse,error)
Do executes the "firebasehosting.sites.releases.list" call.Any non-2xx status code is an error. Response headers are in either*ListReleasesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*SitesReleasesListCall)Fields¶
func (c *SitesReleasesListCall) Fields(s ...googleapi.Field) *SitesReleasesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesReleasesListCall)Header¶
func (c *SitesReleasesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesReleasesListCall)IfNoneMatch¶
func (c *SitesReleasesListCall) IfNoneMatch(entityTagstring) *SitesReleasesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SitesReleasesListCall)PageSize¶
func (c *SitesReleasesListCall) PageSize(pageSizeint64) *SitesReleasesListCall
PageSize sets the optional parameter "pageSize": The maximum number ofreleases to return. The service may return a lower number if fewer releasesexist than this maximum number. If unspecified, defaults to 100.
func (*SitesReleasesListCall)PageToken¶
func (c *SitesReleasesListCall) PageToken(pageTokenstring) *SitesReleasesListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `releases.list` or `channels.releases.list` that tells the serverwhere to resume listing.
func (*SitesReleasesListCall)Pages¶
func (c *SitesReleasesListCall) Pages(ctxcontext.Context, f func(*ListReleasesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeSitesReleasesService¶
type SitesReleasesService struct {// contains filtered or unexported fields}funcNewSitesReleasesService¶
func NewSitesReleasesService(s *Service) *SitesReleasesService
func (*SitesReleasesService)Create¶
func (r *SitesReleasesService) Create(parentstring, release *Release) *SitesReleasesCreateCall
Create: Creates a new release, which makes the content of the specifiedversion actively display on the appropriate URL(s).
- parent: The site or channel to which the release belongs, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
func (*SitesReleasesService)Get¶added inv0.110.0
func (r *SitesReleasesService) Get(namestring) *SitesReleasesGetCall
Get: Gets the specified release for a site or channel. When used to get arelease for a site, this can get releases for both the default `live`channel and any active preview channels for the specified site.
- name: The fully-qualified resource name for the Hosting release, in eitherof the following formats: -sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID -sites/SITE_ID/releases/RELEASE_ID.
func (*SitesReleasesService)List¶
func (r *SitesReleasesService) List(parentstring) *SitesReleasesListCall
List: Lists the releases that have been created for the specified site orchannel. When used to list releases for a site, this list includes releasesfor both the default `live` channel and any active preview channels for thespecified site.
- parent: The site or channel for which to list releases, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
typeSitesService¶
type SitesService struct {Channels *SitesChannelsServiceDomains *SitesDomainsServiceReleases *SitesReleasesServiceVersions *SitesVersionsService// contains filtered or unexported fields}funcNewSitesService¶
func NewSitesService(s *Service) *SitesService
func (*SitesService)GetConfig¶
func (r *SitesService) GetConfig(namestring) *SitesGetConfigCall
GetConfig: Gets the Hosting metadata for a specific site.
- name: The site for which to get the SiteConfig, in the format: sites/site-name/config.
func (*SitesService)UpdateConfig¶
func (r *SitesService) UpdateConfig(namestring, siteconfig *SiteConfig) *SitesUpdateConfigCall
UpdateConfig: Sets the Hosting metadata for a specific site.
- name: The site for which to update the SiteConfig, in the format: sites/site-name/config.
typeSitesUpdateConfigCall¶
type SitesUpdateConfigCall struct {// contains filtered or unexported fields}func (*SitesUpdateConfigCall)Context¶
func (c *SitesUpdateConfigCall) Context(ctxcontext.Context) *SitesUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*SitesUpdateConfigCall)Do¶
func (c *SitesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*SiteConfig,error)
Do executes the "firebasehosting.sites.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*SiteConfig.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesUpdateConfigCall)Fields¶
func (c *SitesUpdateConfigCall) Fields(s ...googleapi.Field) *SitesUpdateConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesUpdateConfigCall)Header¶
func (c *SitesUpdateConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesUpdateConfigCall)UpdateMask¶
func (c *SitesUpdateConfigCall) UpdateMask(updateMaskstring) *SitesUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": A set of field namesfrom your site configuration (../sites.SiteConfig) that you want to update.A field will be overwritten if, and only if, it's in the mask. If a mask isnot provided then a default mask of only `max_versions`(../sites.SiteConfig.max_versions) will be used.
typeSitesVersionsCloneCall¶added inv0.16.0
type SitesVersionsCloneCall struct {// contains filtered or unexported fields}func (*SitesVersionsCloneCall)Context¶added inv0.16.0
func (c *SitesVersionsCloneCall) Context(ctxcontext.Context) *SitesVersionsCloneCall
Context sets the context to be used in this call's Do method.
func (*SitesVersionsCloneCall)Do¶added inv0.16.0
func (c *SitesVersionsCloneCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "firebasehosting.sites.versions.clone" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesVersionsCloneCall)Fields¶added inv0.16.0
func (c *SitesVersionsCloneCall) Fields(s ...googleapi.Field) *SitesVersionsCloneCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesVersionsCloneCall)Header¶added inv0.16.0
func (c *SitesVersionsCloneCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSitesVersionsCreateCall¶
type SitesVersionsCreateCall struct {// contains filtered or unexported fields}func (*SitesVersionsCreateCall)Context¶
func (c *SitesVersionsCreateCall) Context(ctxcontext.Context) *SitesVersionsCreateCall
Context sets the context to be used in this call's Do method.
func (*SitesVersionsCreateCall)Do¶
func (c *SitesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Version,error)
Do executes the "firebasehosting.sites.versions.create" call.Any non-2xx status code is an error. Response headers are in either*Version.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesVersionsCreateCall)Fields¶
func (c *SitesVersionsCreateCall) Fields(s ...googleapi.Field) *SitesVersionsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesVersionsCreateCall)Header¶
func (c *SitesVersionsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesVersionsCreateCall)SizeBytes¶
func (c *SitesVersionsCreateCall) SizeBytes(sizeBytesint64) *SitesVersionsCreateCall
SizeBytes sets the optional parameter "sizeBytes": The self-reported size ofthe version. This value is used for a pre-emptive quota check for legacyversion uploads.
func (*SitesVersionsCreateCall)VersionId¶
func (c *SitesVersionsCreateCall) VersionId(versionIdstring) *SitesVersionsCreateCall
VersionId sets the optional parameter "versionId": A unique id for the newversion. This is was only specified for legacy version creations, and shouldbe blank.
typeSitesVersionsDeleteCall¶
type SitesVersionsDeleteCall struct {// contains filtered or unexported fields}func (*SitesVersionsDeleteCall)Context¶
func (c *SitesVersionsDeleteCall) Context(ctxcontext.Context) *SitesVersionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*SitesVersionsDeleteCall)Do¶
func (c *SitesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasehosting.sites.versions.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesVersionsDeleteCall)Fields¶
func (c *SitesVersionsDeleteCall) Fields(s ...googleapi.Field) *SitesVersionsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesVersionsDeleteCall)Header¶
func (c *SitesVersionsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSitesVersionsFilesListCall¶
type SitesVersionsFilesListCall struct {// contains filtered or unexported fields}func (*SitesVersionsFilesListCall)Context¶
func (c *SitesVersionsFilesListCall) Context(ctxcontext.Context) *SitesVersionsFilesListCall
Context sets the context to be used in this call's Do method.
func (*SitesVersionsFilesListCall)Do¶
func (c *SitesVersionsFilesListCall) Do(opts ...googleapi.CallOption) (*ListVersionFilesResponse,error)
Do executes the "firebasehosting.sites.versions.files.list" call.Any non-2xx status code is an error. Response headers are in either*ListVersionFilesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*SitesVersionsFilesListCall)Fields¶
func (c *SitesVersionsFilesListCall) Fields(s ...googleapi.Field) *SitesVersionsFilesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesVersionsFilesListCall)Header¶
func (c *SitesVersionsFilesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesVersionsFilesListCall)IfNoneMatch¶
func (c *SitesVersionsFilesListCall) IfNoneMatch(entityTagstring) *SitesVersionsFilesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SitesVersionsFilesListCall)PageSize¶
func (c *SitesVersionsFilesListCall) PageSize(pageSizeint64) *SitesVersionsFilesListCall
PageSize sets the optional parameter "pageSize": The maximum number ofversion files to return. The service may return a lower number if fewerversion files exist than this maximum number. If unspecified, defaults to1000.
func (*SitesVersionsFilesListCall)PageToken¶
func (c *SitesVersionsFilesListCall) PageToken(pageTokenstring) *SitesVersionsFilesListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `ListVersionFiles` that tells the server where to resume listing.
func (*SitesVersionsFilesListCall)Pages¶
func (c *SitesVersionsFilesListCall) Pages(ctxcontext.Context, f func(*ListVersionFilesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*SitesVersionsFilesListCall)Status¶
func (c *SitesVersionsFilesListCall) Status(statusstring) *SitesVersionsFilesListCall
Status sets the optional parameter "status": The type of files that shouldbe listed for the specified version.
Possible values:
"STATUS_UNSPECIFIED" - The default status; should not be intentionally
used.
"EXPECTED" - The file has been included in the version and is expected to
be uploaded in the near future.
"ACTIVE" - The file has already been uploaded to Firebase Hosting.
typeSitesVersionsFilesService¶
type SitesVersionsFilesService struct {// contains filtered or unexported fields}funcNewSitesVersionsFilesService¶
func NewSitesVersionsFilesService(s *Service) *SitesVersionsFilesService
func (*SitesVersionsFilesService)List¶
func (r *SitesVersionsFilesService) List(parentstring) *SitesVersionsFilesListCall
List: Lists the remaining files to be uploaded for the specified version.
- parent: The version for which to list files, in the format: sites/SITE_ID/versions/VERSION_ID.
typeSitesVersionsGetCall¶added inv0.110.0
type SitesVersionsGetCall struct {// contains filtered or unexported fields}func (*SitesVersionsGetCall)Context¶added inv0.110.0
func (c *SitesVersionsGetCall) Context(ctxcontext.Context) *SitesVersionsGetCall
Context sets the context to be used in this call's Do method.
func (*SitesVersionsGetCall)Do¶added inv0.110.0
func (c *SitesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version,error)
Do executes the "firebasehosting.sites.versions.get" call.Any non-2xx status code is an error. Response headers are in either*Version.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesVersionsGetCall)Fields¶added inv0.110.0
func (c *SitesVersionsGetCall) Fields(s ...googleapi.Field) *SitesVersionsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesVersionsGetCall)Header¶added inv0.110.0
func (c *SitesVersionsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesVersionsGetCall)IfNoneMatch¶added inv0.110.0
func (c *SitesVersionsGetCall) IfNoneMatch(entityTagstring) *SitesVersionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeSitesVersionsListCall¶added inv0.14.0
type SitesVersionsListCall struct {// contains filtered or unexported fields}func (*SitesVersionsListCall)Context¶added inv0.14.0
func (c *SitesVersionsListCall) Context(ctxcontext.Context) *SitesVersionsListCall
Context sets the context to be used in this call's Do method.
func (*SitesVersionsListCall)Do¶added inv0.14.0
func (c *SitesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse,error)
Do executes the "firebasehosting.sites.versions.list" call.Any non-2xx status code is an error. Response headers are in either*ListVersionsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*SitesVersionsListCall)Fields¶added inv0.14.0
func (c *SitesVersionsListCall) Fields(s ...googleapi.Field) *SitesVersionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesVersionsListCall)Filter¶added inv0.15.0
func (c *SitesVersionsListCall) Filter(filterstring) *SitesVersionsListCall
Filter sets the optional parameter "filter": A filter string used to returna subset of versions in the response. The currently supported fields forfiltering are: `name`, `status`, and `create_time`. Learn more aboutfiltering in Google's AIP 160 standard (https://google.aip.dev/160).
func (*SitesVersionsListCall)Header¶added inv0.14.0
func (c *SitesVersionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesVersionsListCall)IfNoneMatch¶added inv0.14.0
func (c *SitesVersionsListCall) IfNoneMatch(entityTagstring) *SitesVersionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*SitesVersionsListCall)PageSize¶added inv0.14.0
func (c *SitesVersionsListCall) PageSize(pageSizeint64) *SitesVersionsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofversions to return. The service may return a lower number if fewer versionsexist than this maximum number. If unspecified, defaults to 25. The maximumvalue is 100; values above 100 will be coerced to 100.
func (*SitesVersionsListCall)PageToken¶added inv0.14.0
func (c *SitesVersionsListCall) PageToken(pageTokenstring) *SitesVersionsListCall
PageToken sets the optional parameter "pageToken": A token from a previouscall to `ListVersions` that tells the server where to resume listing.
func (*SitesVersionsListCall)Pages¶added inv0.14.0
func (c *SitesVersionsListCall) Pages(ctxcontext.Context, f func(*ListVersionsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeSitesVersionsPatchCall¶
type SitesVersionsPatchCall struct {// contains filtered or unexported fields}func (*SitesVersionsPatchCall)Context¶
func (c *SitesVersionsPatchCall) Context(ctxcontext.Context) *SitesVersionsPatchCall
Context sets the context to be used in this call's Do method.
func (*SitesVersionsPatchCall)Do¶
func (c *SitesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Version,error)
Do executes the "firebasehosting.sites.versions.patch" call.Any non-2xx status code is an error. Response headers are in either*Version.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*SitesVersionsPatchCall)Fields¶
func (c *SitesVersionsPatchCall) Fields(s ...googleapi.Field) *SitesVersionsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesVersionsPatchCall)Header¶
func (c *SitesVersionsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*SitesVersionsPatchCall)UpdateMask¶
func (c *SitesVersionsPatchCall) UpdateMask(updateMaskstring) *SitesVersionsPatchCall
UpdateMask sets the optional parameter "updateMask": A set of field namesfrom your version (../sites.versions) that you want to update. A field willbe overwritten if, and only if, it's in the mask. If a mask is not providedthen a default mask of only `status`(../sites.versions#Version.FIELDS.status) will be used.
typeSitesVersionsPopulateFilesCall¶
type SitesVersionsPopulateFilesCall struct {// contains filtered or unexported fields}func (*SitesVersionsPopulateFilesCall)Context¶
func (c *SitesVersionsPopulateFilesCall) Context(ctxcontext.Context) *SitesVersionsPopulateFilesCall
Context sets the context to be used in this call's Do method.
func (*SitesVersionsPopulateFilesCall)Do¶
func (c *SitesVersionsPopulateFilesCall) Do(opts ...googleapi.CallOption) (*PopulateVersionFilesResponse,error)
Do executes the "firebasehosting.sites.versions.populateFiles" call.Any non-2xx status code is an error. Response headers are in either*PopulateVersionFilesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*SitesVersionsPopulateFilesCall)Fields¶
func (c *SitesVersionsPopulateFilesCall) Fields(s ...googleapi.Field) *SitesVersionsPopulateFilesCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*SitesVersionsPopulateFilesCall)Header¶
func (c *SitesVersionsPopulateFilesCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeSitesVersionsService¶
type SitesVersionsService struct {Files *SitesVersionsFilesService// contains filtered or unexported fields}funcNewSitesVersionsService¶
func NewSitesVersionsService(s *Service) *SitesVersionsService
func (*SitesVersionsService)Clone¶added inv0.16.0
func (r *SitesVersionsService) Clone(parentstring, cloneversionrequest *CloneVersionRequest) *SitesVersionsCloneCall
Clone: Creates a new version on the specified target site using the contentof the specified version.
- parent: The target site for the cloned version, in the format: sites/SITE_ID.
func (*SitesVersionsService)Create¶
func (r *SitesVersionsService) Create(parentstring, version *Version) *SitesVersionsCreateCall
Create: Creates a new version for the specified site.
- parent: The site in which to create the version, in the format: sites/SITE_ID.
func (*SitesVersionsService)Delete¶
func (r *SitesVersionsService) Delete(namestring) *SitesVersionsDeleteCall
Delete: Deletes the specified version.
- name: The fully-qualified resource name for the version, in the format:sites/SITE_ID/versions/VERSION_ID.
func (*SitesVersionsService)Get¶added inv0.110.0
func (r *SitesVersionsService) Get(namestring) *SitesVersionsGetCall
Get: Get the specified version that has been created for the specified site.This can include versions that were created for the default `live` channelor for any active preview channels for the specified site.
- name: The fully-qualified resource name for the version, in the format:sites/SITE_ID/versions/VERSION_ID.
func (*SitesVersionsService)List¶added inv0.14.0
func (r *SitesVersionsService) List(parentstring) *SitesVersionsListCall
List: Lists the versions that have been created for the specified site. Thislist includes versions for both the default `live` channel and any activepreview channels for the specified site.
- parent: The site or channel for which to list versions, in either of thefollowing formats: - sites/SITE_ID - sites/SITE_ID/channels/CHANNEL_ID.
func (*SitesVersionsService)Patch¶
func (r *SitesVersionsService) Patch(namestring, version *Version) *SitesVersionsPatchCall
Patch: Updates the specified metadata for the specified version. Thismethod will fail with `FAILED_PRECONDITION` in the event of an invalid statetransition. The supported state (../sites.versions#versionstatus)transitions for a version are from `CREATED` to `FINALIZED`. Use`DeleteVersion` (delete) to set the status of a version to `DELETED`.
- name: The fully-qualified resource name for the version, in the format:sites/ SITE_ID/versions/VERSION_ID This name is provided in the responsebody when you call `CreateVersion` (sites.versions/create).
func (*SitesVersionsService)PopulateFiles¶
func (r *SitesVersionsService) PopulateFiles(parentstring, populateversionfilesrequest *PopulateVersionFilesRequest) *SitesVersionsPopulateFilesCall
PopulateFiles: Adds content files to the specified version. Each file mustbe under 2 GB.
- parent: The version to which to add files, in the format: sites/SITE_ID/versions/VERSION_ID.
typeStatus¶added inv0.16.0
type Status struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a common// set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in English. Any// user-facing error message should be localized and sent in the// google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Status: The `Status` type defines a logical error model that is suitable fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).
func (Status)MarshalJSON¶added inv0.16.0
typeUndeleteCustomDomainRequest¶added inv0.141.0
type UndeleteCustomDomainRequest struct {// Etag: A tag that represents the state of the `CustomDomain` as you know it.// If present, the supplied tag must match the current value on your// `CustomDomain`, or the request fails.Etagstring `json:"etag,omitempty"`// ValidateOnly: If true, Hosting validates that it's possible to complete your// request but doesn't actually delete the `CustomDomain`.ValidateOnlybool `json:"validateOnly,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}UndeleteCustomDomainRequest: The request sent to `UndeleteCustomDomain`.
func (UndeleteCustomDomainRequest)MarshalJSON¶added inv0.141.0
func (sUndeleteCustomDomainRequest) MarshalJSON() ([]byte,error)
typeVersion¶
type Version struct {// Config: The configuration for the behavior of the site. This configuration// exists in the `firebase.json`// (https://firebase.google.com/docs/cli/#the_firebasejson_file) file.Config *ServingConfig `json:"config,omitempty"`// CreateTime: Output only. The time at which the version was created.CreateTimestring `json:"createTime,omitempty"`// CreateUser: Output only. Identifies the user who created the version.CreateUser *ActingUser `json:"createUser,omitempty"`// DeleteTime: Output only. The time at which the version was `DELETED`.DeleteTimestring `json:"deleteTime,omitempty"`// DeleteUser: Output only. Identifies the user who `DELETED` the version.DeleteUser *ActingUser `json:"deleteUser,omitempty"`// FileCount: Output only. The total number of files associated with the// version. This value is calculated after a version is `FINALIZED`.FileCountint64 `json:"fileCount,omitempty,string"`// FinalizeTime: Output only. The time at which the version was `FINALIZED`.FinalizeTimestring `json:"finalizeTime,omitempty"`// FinalizeUser: Output only. Identifies the user who `FINALIZED` the version.FinalizeUser *ActingUser `json:"finalizeUser,omitempty"`// Labels: The labels used for extra metadata and/or filtering.Labels map[string]string `json:"labels,omitempty"`// 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 `CreateVersion` (sites.versions/create).Namestring `json:"name,omitempty"`// Status: The deploy status of the version. For a successful deploy, call// `CreateVersion` (sites.versions/create) to make a new version (`CREATED`// status), upload all desired files (sites.versions/populateFiles) to the// version, then update (sites.versions/patch) the version to the `FINALIZED`// status. Note that if you leave the version in the `CREATED` state for more// than 12 hours, the system will automatically mark the version as// `ABANDONED`. You can also change the status of a version to `DELETED` by// calling `DeleteVersion` (sites.versions/delete).//// Possible values:// "VERSION_STATUS_UNSPECIFIED" - The default status; should not be// intentionally used.// "CREATED" - The version has been created, and content is currently being// added to the version.// "FINALIZED" - All content has been added to the version, and the version// can no longer be changed.// "DELETED" - The version has been deleted.// "ABANDONED" - The version was not updated to `FINALIZED` within 12 hours// and was automatically deleted.// "EXPIRED" - The version is outside the site-configured limit for the// number of retained versions, so the version's content is scheduled for// deletion.// "CLONING" - The version is being cloned from another version. All content// is still being copied over.Statusstring `json:"status,omitempty"`// VersionBytes: Output only. The total stored bytesize of the version. This// value is calculated after a version is `FINALIZED`.VersionBytesint64 `json:"versionBytes,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Config") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Config") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Version: A `Version` is a configuration and a collection of static fileswhich determine how a site is displayed.
func (Version)MarshalJSON¶
typeVersionFile¶
type VersionFile struct {// Hash: The SHA256 content hash of the file.Hashstring `json:"hash,omitempty"`// Path: The URI at which the file's content should display.Pathstring `json:"path,omitempty"`// Status: Output only. The current status of a particular file in the// specified version. The value will be either `pending upload` or `uploaded`.//// Possible values:// "STATUS_UNSPECIFIED" - The default status; should not be intentionally// used.// "EXPECTED" - The file has been included in the version and is expected to// be uploaded in the near future.// "ACTIVE" - The file has already been uploaded to Firebase Hosting.Statusstring `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "Hash") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Hash") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VersionFile: A static content file that is part of a version.
func (VersionFile)MarshalJSON¶
func (sVersionFile) MarshalJSON() ([]byte,error)