Skip to content

Commit 9f2d613

Browse files
feat(cloudfunctions): update the api
#### cloudfunctions:v2 The following keys were added: - schemas.Function.properties.kmsKeyName.type (Total Keys: 1) #### cloudfunctions:v2alpha The following keys were added: - schemas.Function.properties.kmsKeyName.type (Total Keys: 1) #### cloudfunctions:v2beta The following keys were added: - schemas.Function.properties.kmsKeyName.type (Total Keys: 1)
1 parent f5d0c81 commit 9f2d613

7 files changed

+49
-7
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ <h3>Method Details</h3>
188188
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
189189
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
190190
},
191+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
191192
&quot;labels&quot;: { # Labels associated with this Cloud Function.
192193
&quot;a_key&quot;: &quot;A String&quot;,
193194
},
@@ -344,6 +345,7 @@ <h3>Method Details</h3>
344345
The object takes the form of:
345346

346347
{ # Request of `GenerateSourceUploadUrl` method.
348+
&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 intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. 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).
347349
}
348350

349351
x__xgafv: string, V1 error format.
@@ -441,6 +443,7 @@ <h3>Method Details</h3>
441443
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
442444
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
443445
},
446+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
444447
&quot;labels&quot;: { # Labels associated with this Cloud Function.
445448
&quot;a_key&quot;: &quot;A String&quot;,
446449
},
@@ -629,6 +632,7 @@ <h3>Method Details</h3>
629632
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
630633
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
631634
},
635+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
632636
&quot;labels&quot;: { # Labels associated with this Cloud Function.
633637
&quot;a_key&quot;: &quot;A String&quot;,
634638
},
@@ -778,6 +782,7 @@ <h3>Method Details</h3>
778782
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
779783
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
780784
},
785+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
781786
&quot;labels&quot;: { # Labels associated with this Cloud Function.
782787
&quot;a_key&quot;: &quot;A String&quot;,
783788
},

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ <h3>Method Details</h3>
188188
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
189189
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
190190
},
191+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
191192
&quot;labels&quot;: { # Labels associated with this Cloud Function.
192193
&quot;a_key&quot;: &quot;A String&quot;,
193194
},
@@ -344,6 +345,7 @@ <h3>Method Details</h3>
344345
The object takes the form of:
345346

346347
{ # Request of `GenerateSourceUploadUrl` method.
348+
&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 intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. 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).
347349
}
348350

349351
x__xgafv: string, V1 error format.
@@ -441,6 +443,7 @@ <h3>Method Details</h3>
441443
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
442444
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
443445
},
446+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
444447
&quot;labels&quot;: { # Labels associated with this Cloud Function.
445448
&quot;a_key&quot;: &quot;A String&quot;,
446449
},
@@ -629,6 +632,7 @@ <h3>Method Details</h3>
629632
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
630633
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
631634
},
635+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
632636
&quot;labels&quot;: { # Labels associated with this Cloud Function.
633637
&quot;a_key&quot;: &quot;A String&quot;,
634638
},
@@ -778,6 +782,7 @@ <h3>Method Details</h3>
778782
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
779783
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
780784
},
785+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
781786
&quot;labels&quot;: { # Labels associated with this Cloud Function.
782787
&quot;a_key&quot;: &quot;A String&quot;,
783788
},

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ <h3>Method Details</h3>
188188
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
189189
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
190190
},
191+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
191192
&quot;labels&quot;: { # Labels associated with this Cloud Function.
192193
&quot;a_key&quot;: &quot;A String&quot;,
193194
},
@@ -344,6 +345,7 @@ <h3>Method Details</h3>
344345
The object takes the form of:
345346

346347
{ # Request of `GenerateSourceUploadUrl` method.
348+
&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 intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. 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).
347349
}
348350

349351
x__xgafv: string, V1 error format.
@@ -441,6 +443,7 @@ <h3>Method Details</h3>
441443
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
442444
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
443445
},
446+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
444447
&quot;labels&quot;: { # Labels associated with this Cloud Function.
445448
&quot;a_key&quot;: &quot;A String&quot;,
446449
},
@@ -629,6 +632,7 @@ <h3>Method Details</h3>
629632
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
630633
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
631634
},
635+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
632636
&quot;labels&quot;: { # Labels associated with this Cloud Function.
633637
&quot;a_key&quot;: &quot;A String&quot;,
634638
},
@@ -778,6 +782,7 @@ <h3>Method Details</h3>
778782
&quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
779783
&quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
780784
},
785+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
781786
&quot;labels&quot;: { # Labels associated with this Cloud Function.
782787
&quot;a_key&quot;: &quot;A String&quot;,
783788
},

googleapiclient/discovery_cache/documents/cloudfunctions.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@
546546
}
547547
}
548548
},
549-
"revision": "20230206",
549+
"revision": "20230221",
550550
"rootUrl": "https://cloudfunctions.googleapis.com/",
551551
"schemas": {
552552
"AuditConfig": {

googleapiclient/discovery_cache/documents/cloudfunctions.v2.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
}
572572
}
573573
},
574-
"revision": "20230206",
574+
"revision": "20230221",
575575
"rootUrl": "https://cloudfunctions.googleapis.com/",
576576
"schemas": {
577577
"AuditConfig": {
@@ -831,6 +831,10 @@
831831
"$ref": "EventTrigger",
832832
"description": "An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service."
833833
},
834+
"kmsKeyName": {
835+
"description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
836+
"type": "string"
837+
},
834838
"labels": {
835839
"additionalProperties": {
836840
"type": "string"
@@ -904,7 +908,12 @@
904908
"GenerateUploadUrlRequest": {
905909
"description": "Request of `GenerateSourceUploadUrl` method.",
906910
"id": "GenerateUploadUrlRequest",
907-
"properties": {},
911+
"properties": {
912+
"kmsKeyName": {
913+
"description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. 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 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).",
914+
"type": "string"
915+
}
916+
},
908917
"type": "object"
909918
},
910919
"GenerateUploadUrlResponse": {

googleapiclient/discovery_cache/documents/cloudfunctions.v2alpha.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
}
572572
}
573573
},
574-
"revision": "20230206",
574+
"revision": "20230221",
575575
"rootUrl": "https://cloudfunctions.googleapis.com/",
576576
"schemas": {
577577
"AuditConfig": {
@@ -831,6 +831,10 @@
831831
"$ref": "EventTrigger",
832832
"description": "An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service."
833833
},
834+
"kmsKeyName": {
835+
"description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
836+
"type": "string"
837+
},
834838
"labels": {
835839
"additionalProperties": {
836840
"type": "string"
@@ -904,7 +908,12 @@
904908
"GenerateUploadUrlRequest": {
905909
"description": "Request of `GenerateSourceUploadUrl` method.",
906910
"id": "GenerateUploadUrlRequest",
907-
"properties": {},
911+
"properties": {
912+
"kmsKeyName": {
913+
"description": "Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. 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 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).",
914+
"type": "string"
915+
}
916+
},
908917
"type": "object"
909918
},
910919
"GenerateUploadUrlResponse": {

0 commit comments

Comments
 (0)