Skip to content

Commit 3895b19

Browse files
feat(cloudfunctions): update the api
#### cloudfunctions:v2 The following keys were added: - schemas.Source.properties.gitUri.type (Total Keys: 1) - schemas.SourceProvenance.properties.gitUri.type (Total Keys: 1) #### cloudfunctions:v2alpha The following keys were added: - schemas.Source.properties.gitUri.type (Total Keys: 1) - schemas.SourceProvenance.properties.gitUri.type (Total Keys: 1) #### cloudfunctions:v2beta The following keys were added: - schemas.Source.properties.gitUri.type (Total Keys: 1) - schemas.SourceProvenance.properties.gitUri.type (Total Keys: 1)
1 parent 79d241b commit 3895b19

8 files changed

+69
-21
lines changed

docs/dyn/cloudfunctions_v1.projects.locations.functions.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ <h3>Method Details</h3>
167167
&quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
168168
&quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. 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.
169169
&quot;dockerRepository&quot;: &quot;A String&quot;, # User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. 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;.
170-
&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`.
170+
&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 (ID of the function), if not specified.
171171
&quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
172172
&quot;a_key&quot;: &quot;A String&quot;,
173173
},
@@ -372,7 +372,7 @@ <h3>Method Details</h3>
372372
&quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
373373
&quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. 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.
374374
&quot;dockerRepository&quot;: &quot;A String&quot;, # User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. 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;.
375-
&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`.
375+
&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 (ID of the function), if not specified.
376376
&quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
377377
&quot;a_key&quot;: &quot;A String&quot;,
378378
},
@@ -514,7 +514,7 @@ <h3>Method Details</h3>
514514
&quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
515515
&quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. 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.
516516
&quot;dockerRepository&quot;: &quot;A String&quot;, # User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. 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;.
517-
&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`.
517+
&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 (ID of the function), if not specified.
518518
&quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
519519
&quot;a_key&quot;: &quot;A String&quot;,
520520
},
@@ -619,7 +619,7 @@ <h3>Method Details</h3>
619619
&quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
620620
&quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. 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.
621621
&quot;dockerRepository&quot;: &quot;A String&quot;, # User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. If unspecified and the deployment is eligible to use Artifact Registry, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. 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;.
622-
&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`.
622+
&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 (ID of the function), if not specified.
623623
&quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
624624
&quot;a_key&quot;: &quot;A String&quot;,
625625
},

docs/dyn/cloudfunctions_v2.projects.locations.functions.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ <h3>Method Details</h3>
136136
},
137137
&quot;runtime&quot;: &quot;A String&quot;, # The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
138138
&quot;source&quot;: { # The location of the function source code. # The location of the function source code.
139+
&quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
139140
&quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
140141
&quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
141142
&quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
@@ -152,6 +153,7 @@ <h3>Method Details</h3>
152153
},
153154
},
154155
&quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
156+
&quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
155157
&quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
156158
&quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
157159
&quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
@@ -391,6 +393,7 @@ <h3>Method Details</h3>
391393
},
392394
&quot;runtime&quot;: &quot;A String&quot;, # The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
393395
&quot;source&quot;: { # The location of the function source code. # The location of the function source code.
396+
&quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
394397
&quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
395398
&quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
396399
&quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
@@ -407,6 +410,7 @@ <h3>Method Details</h3>
407410
},
408411
},
409412
&quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
413+
&quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
410414
&quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
411415
&quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
412416
&quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
@@ -580,6 +584,7 @@ <h3>Method Details</h3>
580584
},
581585
&quot;runtime&quot;: &quot;A String&quot;, # The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
582586
&quot;source&quot;: { # The location of the function source code. # The location of the function source code.
587+
&quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
583588
&quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
584589
&quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
585590
&quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
@@ -596,6 +601,7 @@ <h3>Method Details</h3>
596601
},
597602
},
598603
&quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
604+
&quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
599605
&quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
600606
&quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
601607
&quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
@@ -730,6 +736,7 @@ <h3>Method Details</h3>
730736
},
731737
&quot;runtime&quot;: &quot;A String&quot;, # The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
732738
&quot;source&quot;: { # The location of the function source code. # The location of the function source code.
739+
&quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
733740
&quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
734741
&quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
735742
&quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
@@ -746,6 +753,7 @@ <h3>Method Details</h3>
746753
},
747754
},
748755
&quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
756+
&quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
749757
&quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
750758
&quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
751759
&quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.

0 commit comments

Comments
 (0)