docs: update docs (#916)
* fix: re-run script
* test: fix noxfile
diff --git a/docs/dyn/firebasehosting_v1beta1.projects.sites.versions.html b/docs/dyn/firebasehosting_v1beta1.projects.sites.versions.html
index a9d3e72..737a48e 100644
--- a/docs/dyn/firebasehosting_v1beta1.projects.sites.versions.html
+++ b/docs/dyn/firebasehosting_v1beta1.projects.sites.versions.html
@@ -110,21 +110,19 @@
{ # A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
- "fileCount": "A String", # Output only. The total number of files associated with the version.
- # <br>This value is calculated after a version is `FINALIZED`.
"deleteUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
- "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"finalizeUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"preview": { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
# specfies whether previewing is enabled for this site version. Version
# previews allow you to preview your site at a custom URL before
@@ -161,49 +159,6 @@
# processed before serving content. The patterns are matched and applied
# according to a specific
# [priority order](/docs/hosting/full-config#hosting_priority_order).
- "headers": [ # A list of custom response headers that are added to the content if the
- # request URL path matches the glob.
- { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
- # add to a response should the request URL path match the pattern.
- "headers": { # Required. The additional headers to add to the response.
- "a_key": "A String",
- },
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- },
- ],
- "appAssociation": "A String", # How to handle well known App Association files.
- "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
- "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
- "rewrites": [ # A list of rewrites that will act as if the service were given the
- # destination URL.
- { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
- # content rewrite on the version. If the pattern matches, the request will be
- # handled as if it were to the destination path specified in the
- # configuration.
- "function": "A String", # The function to proxy requests to. Must match the exported function
- # name exactly.
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
- "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
- # Cloud Run service does not exist when setting or updating your Firebase
- # Hosting configuration, then the request fails. Any errors from the Cloud Run
- # service are passed to the end user (for example, if you delete a service, any
- # requests directed to that service receive a `404` error).
- "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
- # Defaults to `us-central1` if not supplied.
- "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
- },
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- "path": "A String", # The URL path to rewrite the request to.
- },
- ],
"redirects": [ # A list of globs that will cause the response to redirect to another
# location.
{ # A [`redirect`](/docs/hosting/full-config#redirects) represents the
@@ -226,6 +181,49 @@
# <br>"location": "https://example.com/foo/:capture"</code>
},
],
+ "headers": [ # A list of custom response headers that are added to the content if the
+ # request URL path matches the glob.
+ { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
+ # add to a response should the request URL path match the pattern.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "headers": { # Required. The additional headers to add to the response.
+ "a_key": "A String",
+ },
+ },
+ ],
+ "appAssociation": "A String", # How to handle well known App Association files.
+ "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
+ "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
+ "rewrites": [ # A list of rewrites that will act as if the service were given the
+ # destination URL.
+ { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
+ # content rewrite on the version. If the pattern matches, the request will be
+ # handled as if it were to the destination path specified in the
+ # configuration.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
+ "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
+ # Cloud Run service does not exist when setting or updating your Firebase
+ # Hosting configuration, then the request fails. Any errors from the Cloud Run
+ # service are passed to the end user (for example, if you delete a service, any
+ # requests directed to that service receive a `404` error).
+ "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
+ # Defaults to `us-central1` if not supplied.
+ "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
+ },
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "path": "A String", # The URL path to rewrite the request to.
+ "function": "A String", # The function to proxy requests to. Must match the exported function
+ # name exactly.
+ },
+ ],
},
"name": "A String", # The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
@@ -237,6 +235,8 @@
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "fileCount": "A String", # Output only. The total number of files associated with the version.
+ # <br>This value is calculated after a version is `FINALIZED`.
}
sizeBytes: string, The self-reported size of the version. This value is used for a pre-emptive
@@ -253,21 +253,19 @@
{ # A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
- "fileCount": "A String", # Output only. The total number of files associated with the version.
- # <br>This value is calculated after a version is `FINALIZED`.
"deleteUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
- "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"finalizeUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"preview": { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
# specfies whether previewing is enabled for this site version. Version
# previews allow you to preview your site at a custom URL before
@@ -304,49 +302,6 @@
# processed before serving content. The patterns are matched and applied
# according to a specific
# [priority order](/docs/hosting/full-config#hosting_priority_order).
- "headers": [ # A list of custom response headers that are added to the content if the
- # request URL path matches the glob.
- { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
- # add to a response should the request URL path match the pattern.
- "headers": { # Required. The additional headers to add to the response.
- "a_key": "A String",
- },
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- },
- ],
- "appAssociation": "A String", # How to handle well known App Association files.
- "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
- "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
- "rewrites": [ # A list of rewrites that will act as if the service were given the
- # destination URL.
- { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
- # content rewrite on the version. If the pattern matches, the request will be
- # handled as if it were to the destination path specified in the
- # configuration.
- "function": "A String", # The function to proxy requests to. Must match the exported function
- # name exactly.
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
- "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
- # Cloud Run service does not exist when setting or updating your Firebase
- # Hosting configuration, then the request fails. Any errors from the Cloud Run
- # service are passed to the end user (for example, if you delete a service, any
- # requests directed to that service receive a `404` error).
- "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
- # Defaults to `us-central1` if not supplied.
- "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
- },
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- "path": "A String", # The URL path to rewrite the request to.
- },
- ],
"redirects": [ # A list of globs that will cause the response to redirect to another
# location.
{ # A [`redirect`](/docs/hosting/full-config#redirects) represents the
@@ -369,6 +324,49 @@
# <br>"location": "https://example.com/foo/:capture"</code>
},
],
+ "headers": [ # A list of custom response headers that are added to the content if the
+ # request URL path matches the glob.
+ { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
+ # add to a response should the request URL path match the pattern.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "headers": { # Required. The additional headers to add to the response.
+ "a_key": "A String",
+ },
+ },
+ ],
+ "appAssociation": "A String", # How to handle well known App Association files.
+ "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
+ "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
+ "rewrites": [ # A list of rewrites that will act as if the service were given the
+ # destination URL.
+ { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
+ # content rewrite on the version. If the pattern matches, the request will be
+ # handled as if it were to the destination path specified in the
+ # configuration.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
+ "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
+ # Cloud Run service does not exist when setting or updating your Firebase
+ # Hosting configuration, then the request fails. Any errors from the Cloud Run
+ # service are passed to the end user (for example, if you delete a service, any
+ # requests directed to that service receive a `404` error).
+ "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
+ # Defaults to `us-central1` if not supplied.
+ "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
+ },
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "path": "A String", # The URL path to rewrite the request to.
+ "function": "A String", # The function to proxy requests to. Must match the exported function
+ # name exactly.
+ },
+ ],
},
"name": "A String", # The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
@@ -380,6 +378,8 @@
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "fileCount": "A String", # Output only. The total number of files associated with the version.
+ # <br>This value is calculated after a version is `FINALIZED`.
}</pre>
</div>
@@ -436,25 +436,22 @@
An object of the form:
{
- "nextPageToken": "A String", # The pagination token, if more results exist
"versions": [ # The list of versions, if any exist.
{ # A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
- "fileCount": "A String", # Output only. The total number of files associated with the version.
- # <br>This value is calculated after a version is `FINALIZED`.
"deleteUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
- "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"finalizeUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"preview": { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
# specfies whether previewing is enabled for this site version. Version
# previews allow you to preview your site at a custom URL before
@@ -491,49 +488,6 @@
# processed before serving content. The patterns are matched and applied
# according to a specific
# [priority order](/docs/hosting/full-config#hosting_priority_order).
- "headers": [ # A list of custom response headers that are added to the content if the
- # request URL path matches the glob.
- { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
- # add to a response should the request URL path match the pattern.
- "headers": { # Required. The additional headers to add to the response.
- "a_key": "A String",
- },
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- },
- ],
- "appAssociation": "A String", # How to handle well known App Association files.
- "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
- "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
- "rewrites": [ # A list of rewrites that will act as if the service were given the
- # destination URL.
- { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
- # content rewrite on the version. If the pattern matches, the request will be
- # handled as if it were to the destination path specified in the
- # configuration.
- "function": "A String", # The function to proxy requests to. Must match the exported function
- # name exactly.
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
- "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
- # Cloud Run service does not exist when setting or updating your Firebase
- # Hosting configuration, then the request fails. Any errors from the Cloud Run
- # service are passed to the end user (for example, if you delete a service, any
- # requests directed to that service receive a `404` error).
- "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
- # Defaults to `us-central1` if not supplied.
- "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
- },
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- "path": "A String", # The URL path to rewrite the request to.
- },
- ],
"redirects": [ # A list of globs that will cause the response to redirect to another
# location.
{ # A [`redirect`](/docs/hosting/full-config#redirects) represents the
@@ -556,6 +510,49 @@
# <br>"location": "https://example.com/foo/:capture"</code>
},
],
+ "headers": [ # A list of custom response headers that are added to the content if the
+ # request URL path matches the glob.
+ { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
+ # add to a response should the request URL path match the pattern.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "headers": { # Required. The additional headers to add to the response.
+ "a_key": "A String",
+ },
+ },
+ ],
+ "appAssociation": "A String", # How to handle well known App Association files.
+ "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
+ "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
+ "rewrites": [ # A list of rewrites that will act as if the service were given the
+ # destination URL.
+ { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
+ # content rewrite on the version. If the pattern matches, the request will be
+ # handled as if it were to the destination path specified in the
+ # configuration.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
+ "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
+ # Cloud Run service does not exist when setting or updating your Firebase
+ # Hosting configuration, then the request fails. Any errors from the Cloud Run
+ # service are passed to the end user (for example, if you delete a service, any
+ # requests directed to that service receive a `404` error).
+ "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
+ # Defaults to `us-central1` if not supplied.
+ "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
+ },
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "path": "A String", # The URL path to rewrite the request to.
+ "function": "A String", # The function to proxy requests to. Must match the exported function
+ # name exactly.
+ },
+ ],
},
"name": "A String", # The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
@@ -567,8 +564,11 @@
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "fileCount": "A String", # Output only. The total number of files associated with the version.
+ # <br>This value is calculated after a version is `FINALIZED`.
},
],
+ "nextPageToken": "A String", # The pagination token, if more results exist
}</pre>
</div>
@@ -605,21 +605,19 @@
{ # A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
- "fileCount": "A String", # Output only. The total number of files associated with the version.
- # <br>This value is calculated after a version is `FINALIZED`.
"deleteUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
- "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"finalizeUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"preview": { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
# specfies whether previewing is enabled for this site version. Version
# previews allow you to preview your site at a custom URL before
@@ -656,49 +654,6 @@
# processed before serving content. The patterns are matched and applied
# according to a specific
# [priority order](/docs/hosting/full-config#hosting_priority_order).
- "headers": [ # A list of custom response headers that are added to the content if the
- # request URL path matches the glob.
- { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
- # add to a response should the request URL path match the pattern.
- "headers": { # Required. The additional headers to add to the response.
- "a_key": "A String",
- },
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- },
- ],
- "appAssociation": "A String", # How to handle well known App Association files.
- "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
- "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
- "rewrites": [ # A list of rewrites that will act as if the service were given the
- # destination URL.
- { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
- # content rewrite on the version. If the pattern matches, the request will be
- # handled as if it were to the destination path specified in the
- # configuration.
- "function": "A String", # The function to proxy requests to. Must match the exported function
- # name exactly.
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
- "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
- # Cloud Run service does not exist when setting or updating your Firebase
- # Hosting configuration, then the request fails. Any errors from the Cloud Run
- # service are passed to the end user (for example, if you delete a service, any
- # requests directed to that service receive a `404` error).
- "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
- # Defaults to `us-central1` if not supplied.
- "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
- },
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- "path": "A String", # The URL path to rewrite the request to.
- },
- ],
"redirects": [ # A list of globs that will cause the response to redirect to another
# location.
{ # A [`redirect`](/docs/hosting/full-config#redirects) represents the
@@ -721,6 +676,49 @@
# <br>"location": "https://example.com/foo/:capture"</code>
},
],
+ "headers": [ # A list of custom response headers that are added to the content if the
+ # request URL path matches the glob.
+ { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
+ # add to a response should the request URL path match the pattern.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "headers": { # Required. The additional headers to add to the response.
+ "a_key": "A String",
+ },
+ },
+ ],
+ "appAssociation": "A String", # How to handle well known App Association files.
+ "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
+ "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
+ "rewrites": [ # A list of rewrites that will act as if the service were given the
+ # destination URL.
+ { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
+ # content rewrite on the version. If the pattern matches, the request will be
+ # handled as if it were to the destination path specified in the
+ # configuration.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
+ "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
+ # Cloud Run service does not exist when setting or updating your Firebase
+ # Hosting configuration, then the request fails. Any errors from the Cloud Run
+ # service are passed to the end user (for example, if you delete a service, any
+ # requests directed to that service receive a `404` error).
+ "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
+ # Defaults to `us-central1` if not supplied.
+ "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
+ },
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "path": "A String", # The URL path to rewrite the request to.
+ "function": "A String", # The function to proxy requests to. Must match the exported function
+ # name exactly.
+ },
+ ],
},
"name": "A String", # The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
@@ -732,6 +730,8 @@
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "fileCount": "A String", # Output only. The total number of files associated with the version.
+ # <br>This value is calculated after a version is `FINALIZED`.
}
updateMask: string, A set of field names from your [version](../sites.versions) that you want
@@ -749,21 +749,19 @@
{ # A `Version` is the collection of configuration and
# [static files](sites.versions.files) that determine how a site is displayed.
- "fileCount": "A String", # Output only. The total number of files associated with the version.
- # <br>This value is calculated after a version is `FINALIZED`.
"deleteUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `DELETED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
- "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"finalizeUser": { # Contains metadata about the user who performed an action, such as creating # Output only. Identifies the user who `FINALIZED` the version.
# a release or finalizing a version.
"email": "A String", # The email address of the user when the user performed the action.
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "deleteTime": "A String", # Output only. The time at which the version was `DELETED`.
"preview": { # Version preview configuration. If active and unexpired, # Version preview configuration for the site version. This configuration
# specfies whether previewing is enabled for this site version. Version
# previews allow you to preview your site at a custom URL before
@@ -800,49 +798,6 @@
# processed before serving content. The patterns are matched and applied
# according to a specific
# [priority order](/docs/hosting/full-config#hosting_priority_order).
- "headers": [ # A list of custom response headers that are added to the content if the
- # request URL path matches the glob.
- { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
- # add to a response should the request URL path match the pattern.
- "headers": { # Required. The additional headers to add to the response.
- "a_key": "A String",
- },
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- },
- ],
- "appAssociation": "A String", # How to handle well known App Association files.
- "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
- "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
- "rewrites": [ # A list of rewrites that will act as if the service were given the
- # destination URL.
- { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
- # content rewrite on the version. If the pattern matches, the request will be
- # handled as if it were to the destination path specified in the
- # configuration.
- "function": "A String", # The function to proxy requests to. Must match the exported function
- # name exactly.
- "regex": "A String", # The user-supplied RE2 regular expression to match against the request
- # URL path.
- "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
- "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
- # Cloud Run service does not exist when setting or updating your Firebase
- # Hosting configuration, then the request fails. Any errors from the Cloud Run
- # service are passed to the end user (for example, if you delete a service, any
- # requests directed to that service receive a `404` error).
- "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
- # Defaults to `us-central1` if not supplied.
- "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
- },
- "glob": "A String", # The user-supplied [glob
- # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
- # against the request URL path.
- "path": "A String", # The URL path to rewrite the request to.
- },
- ],
"redirects": [ # A list of globs that will cause the response to redirect to another
# location.
{ # A [`redirect`](/docs/hosting/full-config#redirects) represents the
@@ -865,6 +820,49 @@
# <br>"location": "https://example.com/foo/:capture"</code>
},
],
+ "headers": [ # A list of custom response headers that are added to the content if the
+ # request URL path matches the glob.
+ { # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
+ # add to a response should the request URL path match the pattern.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "headers": { # Required. The additional headers to add to the response.
+ "a_key": "A String",
+ },
+ },
+ ],
+ "appAssociation": "A String", # How to handle well known App Association files.
+ "trailingSlashBehavior": "A String", # Defines how to handle a trailing slash in the URL path.
+ "cleanUrls": True or False, # Defines whether to drop the file extension from uploaded files.
+ "rewrites": [ # A list of rewrites that will act as if the service were given the
+ # destination URL.
+ { # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
+ # content rewrite on the version. If the pattern matches, the request will be
+ # handled as if it were to the destination path specified in the
+ # configuration.
+ "regex": "A String", # The user-supplied RE2 regular expression to match against the request
+ # URL path.
+ "dynamicLinks": True or False, # The request will be forwarded to Firebase Dynamic Links.
+ "run": { # A configured rewrite that directs requests to a Cloud Run service. If the # The request will be forwarded to Cloud Run.
+ # Cloud Run service does not exist when setting or updating your Firebase
+ # Hosting configuration, then the request fails. Any errors from the Cloud Run
+ # service are passed to the end user (for example, if you delete a service, any
+ # requests directed to that service receive a `404` error).
+ "region": "A String", # Optional. User-provided region where the Cloud Run service is hosted.<br>
+ # Defaults to `us-central1` if not supplied.
+ "serviceId": "A String", # Required. User-defined ID of the Cloud Run service.
+ },
+ "glob": "A String", # The user-supplied [glob
+ # pattern](/docs/hosting/full-config#glob_pattern_matching) to match
+ # against the request URL path.
+ "path": "A String", # The URL path to rewrite the request to.
+ "function": "A String", # The function to proxy requests to. Must match the exported function
+ # name exactly.
+ },
+ ],
},
"name": "A String", # The unique identifier for a version, in the format:
# <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
@@ -876,6 +874,8 @@
"imageUrl": "A String", # A profile image URL for the user. May not be present if the user has
# changed their email address or deleted their account.
},
+ "fileCount": "A String", # Output only. The total number of files associated with the version.
+ # <br>This value is calculated after a version is `FINALIZED`.
}</pre>
</div>