Skip to content

Commit

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

The following keys were added:
- schemas.ServiceConfig.properties.availableCpu.type (Total Keys: 1)
- schemas.ServiceConfig.properties.maxInstanceRequestConcurrency (Total Keys: 2)

#### cloudfunctions:v2alpha

The following keys were added:
- schemas.ServiceConfig.properties.availableCpu.type (Total Keys: 1)
- schemas.ServiceConfig.properties.maxInstanceRequestConcurrency (Total Keys: 2)

#### cloudfunctions:v2beta

The following keys were added:
- schemas.ServiceConfig.properties.availableCpu.type (Total Keys: 1)
- schemas.ServiceConfig.properties.maxInstanceRequestConcurrency (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Dec 6, 2022
1 parent 42d7975 commit 27456f0
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 19 deletions.
16 changes: 12 additions & 4 deletions docs/dyn/cloudfunctions_v2.projects.locations.functions.html

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions docs/dyn/cloudfunctions_v2alpha.projects.locations.functions.html

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions docs/dyn/cloudfunctions_v2beta.projects.locations.functions.html

Large diffs are not rendered by default.

Expand Up @@ -546,7 +546,7 @@
}
}
},
"revision": "20221110",
"revision": "20221129",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down
13 changes: 11 additions & 2 deletions googleapiclient/discovery_cache/documents/cloudfunctions.v2.json
Expand Up @@ -571,7 +571,7 @@
}
}
},
"revision": "20221110",
"revision": "20221129",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -1760,6 +1760,10 @@
"description": "Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.",
"type": "boolean"
},
"availableCpu": {
"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",
"type": "string"
},
"availableMemory": {
"description": "The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.",
"type": "string"
Expand Down Expand Up @@ -1792,6 +1796,11 @@
"format": "int32",
"type": "integer"
},
"maxInstanceRequestConcurrency": {
"description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
"format": "int32",
"type": "integer"
},
"minInstanceCount": {
"description": "The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.",
"format": "int32",
Expand All @@ -1817,7 +1826,7 @@
"type": "array"
},
"securityLevel": {
"description": "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.",
"description": "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.",
"enum": [
"SECURITY_LEVEL_UNSPECIFIED",
"SECURE_ALWAYS",
Expand Down
Expand Up @@ -571,7 +571,7 @@
}
}
},
"revision": "20221110",
"revision": "20221129",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -1760,6 +1760,10 @@
"description": "Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.",
"type": "boolean"
},
"availableCpu": {
"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",
"type": "string"
},
"availableMemory": {
"description": "The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.",
"type": "string"
Expand Down Expand Up @@ -1792,6 +1796,11 @@
"format": "int32",
"type": "integer"
},
"maxInstanceRequestConcurrency": {
"description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
"format": "int32",
"type": "integer"
},
"minInstanceCount": {
"description": "The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.",
"format": "int32",
Expand All @@ -1817,7 +1826,7 @@
"type": "array"
},
"securityLevel": {
"description": "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.",
"description": "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.",
"enum": [
"SECURITY_LEVEL_UNSPECIFIED",
"SECURE_ALWAYS",
Expand Down
Expand Up @@ -571,7 +571,7 @@
}
}
},
"revision": "20221110",
"revision": "20221129",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -1760,6 +1760,10 @@
"description": "Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.",
"type": "boolean"
},
"availableCpu": {
"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",
"type": "string"
},
"availableMemory": {
"description": "The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.",
"type": "string"
Expand Down Expand Up @@ -1792,6 +1796,11 @@
"format": "int32",
"type": "integer"
},
"maxInstanceRequestConcurrency": {
"description": "Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.",
"format": "int32",
"type": "integer"
},
"minInstanceCount": {
"description": "The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.",
"format": "int32",
Expand All @@ -1817,7 +1826,7 @@
"type": "array"
},
"securityLevel": {
"description": "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.",
"description": "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.",
"enum": [
"SECURITY_LEVEL_UNSPECIFIED",
"SECURE_ALWAYS",
Expand Down

0 comments on commit 27456f0

Please sign in to comment.