Skip to content

Commit 20c1e96

Browse files
feat(cloudfunctions): update the api
#### cloudfunctions:v2alpha The following keys were added: - schemas.EventFilter.properties.operator.type (Total Keys: 1) #### cloudfunctions:v2beta The following keys were added: - schemas.EventFilter.properties.operator.type (Total Keys: 1)
1 parent ef6853d commit 20c1e96

6 files changed

+44
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ <h3>Method Details</h3>
331331
The object takes the form of:
332332

333333
{ # Request of `GenerateSourceUploadUrl` method.
334+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in staging Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to a staging Cloud Storage bucket in an internal regional project. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role &#x27;Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)&#x27; on the Key/KeyRing/Project/Organization (least access preferred). GCF will delegate access to the Google Storage service account in the internal project.
334335
}
335336

336337
x__xgafv: string, V1 error format.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ <h3>Method Details</h3>
174174
&quot;eventFilters&quot;: [ # Criteria used to filter events.
175175
{ # Filters events based on exact matches on the CloudEvents attributes.
176176
&quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
177+
&quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
177178
&quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
178179
},
179180
],
@@ -197,6 +198,7 @@ <h3>Method Details</h3>
197198
&quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
198199
&quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
199200
&quot;minInstanceCount&quot;: 42, # 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.
201+
&quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
200202
&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}`
201203
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
202204
&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.
@@ -398,6 +400,7 @@ <h3>Method Details</h3>
398400
&quot;eventFilters&quot;: [ # Criteria used to filter events.
399401
{ # Filters events based on exact matches on the CloudEvents attributes.
400402
&quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
403+
&quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
401404
&quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
402405
},
403406
],
@@ -421,6 +424,7 @@ <h3>Method Details</h3>
421424
&quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
422425
&quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
423426
&quot;minInstanceCount&quot;: 42, # 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.
427+
&quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
424428
&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}`
425429
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
426430
&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.
@@ -557,6 +561,7 @@ <h3>Method Details</h3>
557561
&quot;eventFilters&quot;: [ # Criteria used to filter events.
558562
{ # Filters events based on exact matches on the CloudEvents attributes.
559563
&quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
564+
&quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
560565
&quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
561566
},
562567
],
@@ -580,6 +585,7 @@ <h3>Method Details</h3>
580585
&quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
581586
&quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
582587
&quot;minInstanceCount&quot;: 42, # 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.
588+
&quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
583589
&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}`
584590
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
585591
&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.
@@ -677,6 +683,7 @@ <h3>Method Details</h3>
677683
&quot;eventFilters&quot;: [ # Criteria used to filter events.
678684
{ # Filters events based on exact matches on the CloudEvents attributes.
679685
&quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
686+
&quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
680687
&quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
681688
},
682689
],
@@ -700,6 +707,7 @@ <h3>Method Details</h3>
700707
&quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
701708
&quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
702709
&quot;minInstanceCount&quot;: 42, # 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.
710+
&quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
703711
&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}`
704712
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
705713
&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.

0 commit comments

Comments
 (0)