Skip to content

Commit c7aeaf0

Browse files
yoshi-automationsofisl
authored andcommitted
feat(speech): update the API
#### speech:v1p1beta1 The following keys were added: - schemas.CustomClass.properties.kmsKeyName.description - schemas.CustomClass.properties.kmsKeyName.readOnly - schemas.CustomClass.properties.kmsKeyName.type - schemas.CustomClass.properties.kmsKeyVersionName.description - schemas.CustomClass.properties.kmsKeyVersionName.readOnly - schemas.CustomClass.properties.kmsKeyVersionName.type - schemas.PhraseSet.properties.kmsKeyName.description - schemas.PhraseSet.properties.kmsKeyName.readOnly - schemas.PhraseSet.properties.kmsKeyName.type - schemas.PhraseSet.properties.kmsKeyVersionName.description - schemas.PhraseSet.properties.kmsKeyVersionName.readOnly - schemas.PhraseSet.properties.kmsKeyVersionName.type #### speech:v1 The following keys were added: - schemas.CustomClass.properties.kmsKeyName.description - schemas.CustomClass.properties.kmsKeyName.readOnly - schemas.CustomClass.properties.kmsKeyName.type - schemas.CustomClass.properties.kmsKeyVersionName.description - schemas.CustomClass.properties.kmsKeyVersionName.readOnly - schemas.CustomClass.properties.kmsKeyVersionName.type - schemas.PhraseSet.properties.kmsKeyName.description - schemas.PhraseSet.properties.kmsKeyName.readOnly - schemas.PhraseSet.properties.kmsKeyName.type - schemas.PhraseSet.properties.kmsKeyVersionName.description - schemas.PhraseSet.properties.kmsKeyVersionName.readOnly - schemas.PhraseSet.properties.kmsKeyVersionName.type
1 parent 599c09f commit c7aeaf0

File tree

4 files changed

+106
-2
lines changed

4 files changed

+106
-2
lines changed

discovery/speech-v1.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@
524524
}
525525
}
526526
},
527-
"revision": "20230323",
527+
"revision": "20230420",
528528
"rootUrl": "https://speech.googleapis.com/",
529529
"schemas": {
530530
"ABNFGrammar": {
@@ -596,6 +596,16 @@
596596
},
597597
"type": "array"
598598
},
599+
"kmsKeyName": {
600+
"description": "Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
601+
"readOnly": true,
602+
"type": "string"
603+
},
604+
"kmsKeyVersionName": {
605+
"description": "Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.",
606+
"readOnly": true,
607+
"type": "string"
608+
},
599609
"name": {
600610
"description": "The resource name of the custom class.",
601611
"type": "string"
@@ -805,6 +815,16 @@
805815
"format": "float",
806816
"type": "number"
807817
},
818+
"kmsKeyName": {
819+
"description": "Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the PhraseSet is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
820+
"readOnly": true,
821+
"type": "string"
822+
},
823+
"kmsKeyVersionName": {
824+
"description": "Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the PhraseSet is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.",
825+
"readOnly": true,
826+
"type": "string"
827+
},
808828
"name": {
809829
"description": "The resource name of the phrase set.",
810830
"type": "string"

discovery/speech-v1p1beta1.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@
524524
}
525525
}
526526
},
527-
"revision": "20230323",
527+
"revision": "20230420",
528528
"rootUrl": "https://speech.googleapis.com/",
529529
"schemas": {
530530
"ABNFGrammar": {
@@ -596,6 +596,16 @@
596596
},
597597
"type": "array"
598598
},
599+
"kmsKeyName": {
600+
"description": "Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
601+
"readOnly": true,
602+
"type": "string"
603+
},
604+
"kmsKeyVersionName": {
605+
"description": "Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.",
606+
"readOnly": true,
607+
"type": "string"
608+
},
599609
"name": {
600610
"description": "The resource name of the custom class.",
601611
"type": "string"
@@ -829,6 +839,16 @@
829839
"format": "float",
830840
"type": "number"
831841
},
842+
"kmsKeyName": {
843+
"description": "Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the PhraseSet is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
844+
"readOnly": true,
845+
"type": "string"
846+
},
847+
"kmsKeyVersionName": {
848+
"description": "Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the PhraseSet is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.",
849+
"readOnly": true,
850+
"type": "string"
851+
},
832852
"name": {
833853
"description": "The resource name of the phrase set.",
834854
"type": "string"

src/apis/speech/v1.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ export namespace speech_v1 {
181181
* A collection of class items.
182182
*/
183183
items?: Schema$ClassItem[];
184+
/**
185+
* Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/{crypto_key\}`.
186+
*/
187+
kmsKeyName?: string | null;
188+
/**
189+
* Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the ClassItem is encrypted. The expected format is `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/{crypto_key\}/cryptoKeyVersions/{crypto_key_version\}`.
190+
*/
191+
kmsKeyVersionName?: string | null;
184192
/**
185193
* The resource name of the custom class.
186194
*/
@@ -342,6 +350,14 @@ export namespace speech_v1 {
342350
* Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
343351
*/
344352
boost?: number | null;
353+
/**
354+
* Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the PhraseSet is encrypted. The expected format is `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/{crypto_key\}`.
355+
*/
356+
kmsKeyName?: string | null;
357+
/**
358+
* Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the PhraseSet is encrypted. The expected format is `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/{crypto_key\}/cryptoKeyVersions/{crypto_key_version\}`.
359+
*/
360+
kmsKeyVersionName?: string | null;
345361
/**
346362
* The resource name of the phrase set.
347363
*/
@@ -1054,6 +1070,8 @@ export namespace speech_v1 {
10541070
* // {
10551071
* // "customClassId": "my_customClassId",
10561072
* // "items": [],
1073+
* // "kmsKeyName": "my_kmsKeyName",
1074+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
10571075
* // "name": "my_name"
10581076
* // }
10591077
* }
@@ -1309,6 +1327,8 @@ export namespace speech_v1 {
13091327
* // {
13101328
* // "customClassId": "my_customClassId",
13111329
* // "items": [],
1330+
* // "kmsKeyName": "my_kmsKeyName",
1331+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
13121332
* // "name": "my_name"
13131333
* // }
13141334
* }
@@ -1580,6 +1600,8 @@ export namespace speech_v1 {
15801600
* // {
15811601
* // "customClassId": "my_customClassId",
15821602
* // "items": [],
1603+
* // "kmsKeyName": "my_kmsKeyName",
1604+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
15831605
* // "name": "my_name"
15841606
* // }
15851607
* },
@@ -1590,6 +1612,8 @@ export namespace speech_v1 {
15901612
* // {
15911613
* // "customClassId": "my_customClassId",
15921614
* // "items": [],
1615+
* // "kmsKeyName": "my_kmsKeyName",
1616+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
15931617
* // "name": "my_name"
15941618
* // }
15951619
* }
@@ -1791,6 +1815,8 @@ export namespace speech_v1 {
17911815
* // Example response
17921816
* // {
17931817
* // "boost": {},
1818+
* // "kmsKeyName": "my_kmsKeyName",
1819+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
17941820
* // "name": "my_name",
17951821
* // "phrases": []
17961822
* // }
@@ -2046,6 +2072,8 @@ export namespace speech_v1 {
20462072
* // Example response
20472073
* // {
20482074
* // "boost": {},
2075+
* // "kmsKeyName": "my_kmsKeyName",
2076+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
20492077
* // "name": "my_name",
20502078
* // "phrases": []
20512079
* // }
@@ -2315,6 +2343,8 @@ export namespace speech_v1 {
23152343
* // request body parameters
23162344
* // {
23172345
* // "boost": {},
2346+
* // "kmsKeyName": "my_kmsKeyName",
2347+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
23182348
* // "name": "my_name",
23192349
* // "phrases": []
23202350
* // }
@@ -2325,6 +2355,8 @@ export namespace speech_v1 {
23252355
* // Example response
23262356
* // {
23272357
* // "boost": {},
2358+
* // "kmsKeyName": "my_kmsKeyName",
2359+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
23282360
* // "name": "my_name",
23292361
* // "phrases": []
23302362
* // }

src/apis/speech/v1p1beta1.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ export namespace speech_v1p1beta1 {
181181
* A collection of class items.
182182
*/
183183
items?: Schema$ClassItem[];
184+
/**
185+
* Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/{crypto_key\}`.
186+
*/
187+
kmsKeyName?: string | null;
188+
/**
189+
* Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the ClassItem is encrypted. The expected format is `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/{crypto_key\}/cryptoKeyVersions/{crypto_key_version\}`.
190+
*/
191+
kmsKeyVersionName?: string | null;
184192
/**
185193
* The resource name of the custom class.
186194
*/
@@ -363,6 +371,14 @@ export namespace speech_v1p1beta1 {
363371
* Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
364372
*/
365373
boost?: number | null;
374+
/**
375+
* Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the PhraseSet is encrypted. The expected format is `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/{crypto_key\}`.
376+
*/
377+
kmsKeyName?: string | null;
378+
/**
379+
* Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the PhraseSet is encrypted. The expected format is `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/{crypto_key\}/cryptoKeyVersions/{crypto_key_version\}`.
380+
*/
381+
kmsKeyVersionName?: string | null;
366382
/**
367383
* The resource name of the phrase set.
368384
*/
@@ -1103,6 +1119,8 @@ export namespace speech_v1p1beta1 {
11031119
* // {
11041120
* // "customClassId": "my_customClassId",
11051121
* // "items": [],
1122+
* // "kmsKeyName": "my_kmsKeyName",
1123+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
11061124
* // "name": "my_name"
11071125
* // }
11081126
* }
@@ -1358,6 +1376,8 @@ export namespace speech_v1p1beta1 {
13581376
* // {
13591377
* // "customClassId": "my_customClassId",
13601378
* // "items": [],
1379+
* // "kmsKeyName": "my_kmsKeyName",
1380+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
13611381
* // "name": "my_name"
13621382
* // }
13631383
* }
@@ -1629,6 +1649,8 @@ export namespace speech_v1p1beta1 {
16291649
* // {
16301650
* // "customClassId": "my_customClassId",
16311651
* // "items": [],
1652+
* // "kmsKeyName": "my_kmsKeyName",
1653+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
16321654
* // "name": "my_name"
16331655
* // }
16341656
* },
@@ -1639,6 +1661,8 @@ export namespace speech_v1p1beta1 {
16391661
* // {
16401662
* // "customClassId": "my_customClassId",
16411663
* // "items": [],
1664+
* // "kmsKeyName": "my_kmsKeyName",
1665+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
16421666
* // "name": "my_name"
16431667
* // }
16441668
* }
@@ -1840,6 +1864,8 @@ export namespace speech_v1p1beta1 {
18401864
* // Example response
18411865
* // {
18421866
* // "boost": {},
1867+
* // "kmsKeyName": "my_kmsKeyName",
1868+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
18431869
* // "name": "my_name",
18441870
* // "phrases": []
18451871
* // }
@@ -2095,6 +2121,8 @@ export namespace speech_v1p1beta1 {
20952121
* // Example response
20962122
* // {
20972123
* // "boost": {},
2124+
* // "kmsKeyName": "my_kmsKeyName",
2125+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
20982126
* // "name": "my_name",
20992127
* // "phrases": []
21002128
* // }
@@ -2364,6 +2392,8 @@ export namespace speech_v1p1beta1 {
23642392
* // request body parameters
23652393
* // {
23662394
* // "boost": {},
2395+
* // "kmsKeyName": "my_kmsKeyName",
2396+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
23672397
* // "name": "my_name",
23682398
* // "phrases": []
23692399
* // }
@@ -2374,6 +2404,8 @@ export namespace speech_v1p1beta1 {
23742404
* // Example response
23752405
* // {
23762406
* // "boost": {},
2407+
* // "kmsKeyName": "my_kmsKeyName",
2408+
* // "kmsKeyVersionName": "my_kmsKeyVersionName",
23772409
* // "name": "my_name",
23782410
* // "phrases": []
23792411
* // }

0 commit comments

Comments
 (0)