Skip to content

Commit

Permalink
feat(cloudfunctions): update the api
Browse files Browse the repository at this point in the history
#### cloudfunctions:v2

The following keys were added:
- schemas.BuildConfig.properties.buildpackStack.type (Total Keys: 1)
- schemas.BuildConfig.properties.dockerRegistry.type (Total Keys: 1)
- schemas.ServiceConfig.properties.securityLevel.type (Total Keys: 1)

#### cloudfunctions:v2alpha

The following keys were added:
- schemas.BuildConfig.properties.buildpackStack.type (Total Keys: 1)
- schemas.BuildConfig.properties.dockerRegistry.type (Total Keys: 1)
- schemas.ServiceConfig.properties.securityLevel.type (Total Keys: 1)

#### cloudfunctions:v2beta

The following keys were added:
- schemas.BuildConfig.properties.buildpackStack.type (Total Keys: 1)
- schemas.BuildConfig.properties.dockerRegistry.type (Total Keys: 1)
- schemas.ServiceConfig.properties.securityLevel.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Nov 1, 2022
1 parent 2712d19 commit ef7b407
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 19 deletions.
20 changes: 16 additions & 4 deletions docs/dyn/cloudfunctions_v2.projects.locations.functions.html
Expand Up @@ -128,7 +128,9 @@ <h3>Method Details</h3>
{ # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
&quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container from the given source.
&quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
&quot;dockerRepository&quot;: &quot;A String&quot;, # Optional. User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be &#x27;DOCKER&#x27;.
&quot;buildpackStack&quot;: &quot;A String&quot;, # Specifies one of the Google provided buildpack stacks.
&quot;dockerRegistry&quot;: &quot;A String&quot;, # Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
&quot;dockerRepository&quot;: &quot;A String&quot;, # User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be &#x27;DOCKER&#x27;.
&quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
&quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -221,6 +223,7 @@ <h3>Method Details</h3>
],
},
],
&quot;securityLevel&quot;: &quot;A String&quot;, # Optional. Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
&quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.
&quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
Expand Down Expand Up @@ -376,7 +379,9 @@ <h3>Method Details</h3>
{ # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
&quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container from the given source.
&quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
&quot;dockerRepository&quot;: &quot;A String&quot;, # Optional. User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be &#x27;DOCKER&#x27;.
&quot;buildpackStack&quot;: &quot;A String&quot;, # Specifies one of the Google provided buildpack stacks.
&quot;dockerRegistry&quot;: &quot;A String&quot;, # Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
&quot;dockerRepository&quot;: &quot;A String&quot;, # User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be &#x27;DOCKER&#x27;.
&quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
&quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -469,6 +474,7 @@ <h3>Method Details</h3>
],
},
],
&quot;securityLevel&quot;: &quot;A String&quot;, # Optional. Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
&quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.
&quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
Expand Down Expand Up @@ -559,7 +565,9 @@ <h3>Method Details</h3>
{ # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
&quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container from the given source.
&quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
&quot;dockerRepository&quot;: &quot;A String&quot;, # Optional. User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be &#x27;DOCKER&#x27;.
&quot;buildpackStack&quot;: &quot;A String&quot;, # Specifies one of the Google provided buildpack stacks.
&quot;dockerRegistry&quot;: &quot;A String&quot;, # Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
&quot;dockerRepository&quot;: &quot;A String&quot;, # User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be &#x27;DOCKER&#x27;.
&quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
&quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -652,6 +660,7 @@ <h3>Method Details</h3>
],
},
],
&quot;securityLevel&quot;: &quot;A String&quot;, # Optional. Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
&quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.
&quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
Expand Down Expand Up @@ -703,7 +712,9 @@ <h3>Method Details</h3>
{ # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
&quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container from the given source.
&quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
&quot;dockerRepository&quot;: &quot;A String&quot;, # Optional. User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be &#x27;DOCKER&#x27;.
&quot;buildpackStack&quot;: &quot;A String&quot;, # Specifies one of the Google provided buildpack stacks.
&quot;dockerRegistry&quot;: &quot;A String&quot;, # Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository` field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the backend for eligible deployments.
&quot;dockerRepository&quot;: &quot;A String&quot;, # User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be &#x27;DOCKER&#x27;.
&quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
&quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -796,6 +807,7 @@ <h3>Method Details</h3>
],
},
],
&quot;securityLevel&quot;: &quot;A String&quot;, # Optional. Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
&quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.
&quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
Expand Down

0 comments on commit ef7b407

Please sign in to comment.