Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e0465dc

Browse files
committedDec 7, 2023
feat(cloudfunctions): update the api
#### cloudfunctions:v1 The following keys were added: - schemas.AutomaticUpdatePolicy (Total Keys: 2) - schemas.CloudFunction.properties.automaticUpdatePolicy.$ref (Total Keys: 1) - schemas.CloudFunction.properties.onDeployUpdatePolicy.$ref (Total Keys: 1) - schemas.OnDeployUpdatePolicy (Total Keys: 4) #### cloudfunctions:v2 The following keys were added: - schemas.EventTrigger.properties.service.type (Total Keys: 1) #### cloudfunctions:v2alpha The following keys were added: - schemas.EventTrigger.properties.service.type (Total Keys: 1) #### cloudfunctions:v2beta The following keys were added: - schemas.EventTrigger.properties.service.type (Total Keys: 1)
1 parent f74daa2 commit e0465dc

8 files changed

+104
-34
lines changed
 

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

+20
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ <h3>Method Details</h3>
157157
The object takes the form of:
158158

159159
{ # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulate function and triggers configurations.
160+
&quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed. # See the comment next to this message for more details.
161+
},
160162
&quot;availableMemoryMb&quot;: 42, # The amount of memory in MB available for a function. Defaults to 256MB.
161163
&quot;buildEnvironmentVariables&quot;: { # Build environment variables that shall be available during build time.
162164
&quot;a_key&quot;: &quot;A String&quot;,
@@ -193,6 +195,9 @@ <h3>Method Details</h3>
193195
&quot;minInstances&quot;: 42, # A lower bound for the number function instances that may coexist at a given time.
194196
&quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
195197
&quot;network&quot;: &quot;A String&quot;, # Deprecated: use vpc_connector
198+
&quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed. # See the comment next to this message for more details.
199+
&quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
200+
},
196201
&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).
197202
&quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
198203
{ # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
@@ -363,6 +368,8 @@ <h3>Method Details</h3>
363368
An object of the form:
364369

365370
{ # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulate function and triggers configurations.
371+
&quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed. # See the comment next to this message for more details.
372+
},
366373
&quot;availableMemoryMb&quot;: 42, # The amount of memory in MB available for a function. Defaults to 256MB.
367374
&quot;buildEnvironmentVariables&quot;: { # Build environment variables that shall be available during build time.
368375
&quot;a_key&quot;: &quot;A String&quot;,
@@ -399,6 +406,9 @@ <h3>Method Details</h3>
399406
&quot;minInstances&quot;: 42, # A lower bound for the number function instances that may coexist at a given time.
400407
&quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
401408
&quot;network&quot;: &quot;A String&quot;, # Deprecated: use vpc_connector
409+
&quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed. # See the comment next to this message for more details.
410+
&quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
411+
},
402412
&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).
403413
&quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
404414
{ # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
@@ -505,6 +515,8 @@ <h3>Method Details</h3>
505515
{ # Response for the `ListFunctions` method.
506516
&quot;functions&quot;: [ # The functions that match the request.
507517
{ # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulate function and triggers configurations.
518+
&quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed. # See the comment next to this message for more details.
519+
},
508520
&quot;availableMemoryMb&quot;: 42, # The amount of memory in MB available for a function. Defaults to 256MB.
509521
&quot;buildEnvironmentVariables&quot;: { # Build environment variables that shall be available during build time.
510522
&quot;a_key&quot;: &quot;A String&quot;,
@@ -541,6 +553,9 @@ <h3>Method Details</h3>
541553
&quot;minInstances&quot;: 42, # A lower bound for the number function instances that may coexist at a given time.
542554
&quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
543555
&quot;network&quot;: &quot;A String&quot;, # Deprecated: use vpc_connector
556+
&quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed. # See the comment next to this message for more details.
557+
&quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
558+
},
544559
&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).
545560
&quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
546561
{ # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
@@ -610,6 +625,8 @@ <h3>Method Details</h3>
610625
The object takes the form of:
611626

612627
{ # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulate function and triggers configurations.
628+
&quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed. # See the comment next to this message for more details.
629+
},
613630
&quot;availableMemoryMb&quot;: 42, # The amount of memory in MB available for a function. Defaults to 256MB.
614631
&quot;buildEnvironmentVariables&quot;: { # Build environment variables that shall be available during build time.
615632
&quot;a_key&quot;: &quot;A String&quot;,
@@ -646,6 +663,9 @@ <h3>Method Details</h3>
646663
&quot;minInstances&quot;: 42, # A lower bound for the number function instances that may coexist at a given time.
647664
&quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
648665
&quot;network&quot;: &quot;A String&quot;, # Deprecated: use vpc_connector
666+
&quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed. # See the comment next to this message for more details.
667+
&quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
668+
},
649669
&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).
650670
&quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
651671
{ # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.

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

+12-8
Large diffs are not rendered by default.

‎docs/dyn/cloudfunctions_v2alpha.projects.locations.functions.html

+12-8
Large diffs are not rendered by default.

‎docs/dyn/cloudfunctions_v2beta.projects.locations.functions.html

+12-8
Large diffs are not rendered by default.

‎googleapiclient/discovery_cache/documents/cloudfunctions.v1.json

+27-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@
552552
}
553553
}
554554
},
555-
"revision": "20231109",
555+
"revision": "20231130",
556556
"rootUrl": "https://cloudfunctions.googleapis.com/",
557557
"schemas": {
558558
"AuditConfig": {
@@ -603,6 +603,12 @@
603603
},
604604
"type": "object"
605605
},
606+
"AutomaticUpdatePolicy": {
607+
"description": "Security patches are applied automatically to the runtime without requiring the function to be redeployed.",
608+
"id": "AutomaticUpdatePolicy",
609+
"properties": {},
610+
"type": "object"
611+
},
606612
"Binding": {
607613
"description": "Associates `members`, or principals, with a `role`.",
608614
"id": "Binding",
@@ -659,6 +665,10 @@
659665
"description": "Describes a Cloud Function that contains user computation executed in response to an event. It encapsulate function and triggers configurations.",
660666
"id": "CloudFunction",
661667
"properties": {
668+
"automaticUpdatePolicy": {
669+
"$ref": "AutomaticUpdatePolicy",
670+
"description": "See the comment next to this message for more details."
671+
},
662672
"availableMemoryMb": {
663673
"description": "The amount of memory in MB available for a function. Defaults to 256MB.",
664674
"format": "int32",
@@ -772,6 +782,10 @@
772782
"description": "Deprecated: use vpc_connector",
773783
"type": "string"
774784
},
785+
"onDeployUpdatePolicy": {
786+
"$ref": "OnDeployUpdatePolicy",
787+
"description": "See the comment next to this message for more details."
788+
},
775789
"runtime": {
776790
"description": "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).",
777791
"type": "string"
@@ -1617,6 +1631,18 @@
16171631
},
16181632
"type": "object"
16191633
},
1634+
"OnDeployUpdatePolicy": {
1635+
"description": "Security patches are only applied when a function is redeployed.",
1636+
"id": "OnDeployUpdatePolicy",
1637+
"properties": {
1638+
"runtimeVersion": {
1639+
"description": "Output only. contains the runtime version which was used during latest function deployment.",
1640+
"readOnly": true,
1641+
"type": "string"
1642+
}
1643+
},
1644+
"type": "object"
1645+
},
16201646
"Operation": {
16211647
"description": "This resource represents a long-running operation that is the result of a network API call.",
16221648
"id": "Operation",

‎googleapiclient/discovery_cache/documents/cloudfunctions.v2.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
}
572572
}
573573
},
574-
"revision": "20231109",
574+
"revision": "20231130",
575575
"rootUrl": "https://cloudfunctions.googleapis.com/",
576576
"schemas": {
577577
"AuditConfig": {
@@ -784,6 +784,10 @@
784784
],
785785
"type": "string"
786786
},
787+
"service": {
788+
"description": "Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.",
789+
"type": "string"
790+
},
787791
"serviceAccountEmail": {
788792
"description": "Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.",
789793
"type": "string"
@@ -1890,7 +1894,7 @@
18901894
"type": "boolean"
18911895
},
18921896
"availableCpu": {
1893-
"description": "[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU",
1897+
"description": "The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU",
18941898
"type": "string"
18951899
},
18961900
"availableMemory": {
@@ -1926,7 +1930,7 @@
19261930
"type": "integer"
19271931
},
19281932
"maxInstanceRequestConcurrency": {
1929-
"description": "[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
1933+
"description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
19301934
"format": "int32",
19311935
"type": "integer"
19321936
},

‎googleapiclient/discovery_cache/documents/cloudfunctions.v2alpha.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
}
572572
}
573573
},
574-
"revision": "20231109",
574+
"revision": "20231130",
575575
"rootUrl": "https://cloudfunctions.googleapis.com/",
576576
"schemas": {
577577
"AuditConfig": {
@@ -784,6 +784,10 @@
784784
],
785785
"type": "string"
786786
},
787+
"service": {
788+
"description": "Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.",
789+
"type": "string"
790+
},
787791
"serviceAccountEmail": {
788792
"description": "Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.",
789793
"type": "string"
@@ -1890,7 +1894,7 @@
18901894
"type": "boolean"
18911895
},
18921896
"availableCpu": {
1893-
"description": "[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU",
1897+
"description": "The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU",
18941898
"type": "string"
18951899
},
18961900
"availableMemory": {
@@ -1926,7 +1930,7 @@
19261930
"type": "integer"
19271931
},
19281932
"maxInstanceRequestConcurrency": {
1929-
"description": "[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
1933+
"description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
19301934
"format": "int32",
19311935
"type": "integer"
19321936
},

‎googleapiclient/discovery_cache/documents/cloudfunctions.v2beta.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
}
572572
}
573573
},
574-
"revision": "20231109",
574+
"revision": "20231130",
575575
"rootUrl": "https://cloudfunctions.googleapis.com/",
576576
"schemas": {
577577
"AuditConfig": {
@@ -784,6 +784,10 @@
784784
],
785785
"type": "string"
786786
},
787+
"service": {
788+
"description": "Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.",
789+
"type": "string"
790+
},
787791
"serviceAccountEmail": {
788792
"description": "Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.",
789793
"type": "string"
@@ -1890,7 +1894,7 @@
18901894
"type": "boolean"
18911895
},
18921896
"availableCpu": {
1893-
"description": "[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU",
1897+
"description": "The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: \"1\" indicates 1 vCPU",
18941898
"type": "string"
18951899
},
18961900
"availableMemory": {
@@ -1926,7 +1930,7 @@
19261930
"type": "integer"
19271931
},
19281932
"maxInstanceRequestConcurrency": {
1929-
"description": "[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
1933+
"description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
19301934
"format": "int32",
19311935
"type": "integer"
19321936
},

0 commit comments

Comments
 (0)
Please sign in to comment.