Skip to content

Commit c909357

Browse files
fix: [Many APIs] fix typings for IAM methods (#4464)
* fix: fix typings for IAM methods docs: fixed links in the generated Markdown documentation PiperOrigin-RevId: 551610576 Source-Link: googleapis/googleapis@73b1313 Source-Link: googleapis/googleapis-gen@8bec066 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRleHR0b3NwZWVjaC8uT3dsQm90LnlhbWwiLCJoIjoiOGJlYzA2NjQ5MmE2ZGEyODU1YjFiOGNlNTYyNjY0YzBhNmIzMGIwMSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLWxpdmVzdHJlYW0vLk93bEJvdC55YW1sIiwiaCI6IjhiZWMwNjY0OTJhNmRhMjg1NWIxYjhjZTU2MjY2NGMwYTZiMzBiMDEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLXN0aXRjaGVyLy5Pd2xCb3QueWFtbCIsImgiOiI4YmVjMDY2NDkyYTZkYTI4NTViMWI4Y2U1NjI2NjRjMGE2YjMwYjAxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvLXRyYW5zY29kZXIvLk93bEJvdC55YW1sIiwiaCI6IjhiZWMwNjY0OTJhNmRhMjg1NWIxYjhjZTU2MjY2NGMwYTZiMzBiMDEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpZGVvaW50ZWxsaWdlbmNlLy5Pd2xCb3QueWFtbCIsImgiOiI4YmVjMDY2NDkyYTZkYTI4NTViMWI4Y2U1NjI2NjRjMGE2YjMwYjAxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZpc2lvbi8uT3dsQm90LnlhbWwiLCJoIjoiOGJlYzA2NjQ5MmE2ZGEyODU1YjFiOGNlNTYyNjY0YzBhNmIzMGIwMSJ9 Copy-Tag: eyJwIj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Z29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiOGJlYzA2NjQ5MmE2ZGEyODU1YjFiOGNlNTYyNjY0YzBhNmIzMGIwMSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWRhdGFmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiI4YmVjMDY2NDkyYTZkYTI4NTViMWI4Y2U1NjI2NjRjMGE2YjMwYjAxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWRldnRvb2xzLWFydGlmYWN0cmVnaXN0cnkvLk93bEJvdC55YW1sIiwiaCI6IjhiZWMwNjY0OTJhNmRhMjg1NWIxYjhjZTU2MjY2NGMwYTZiMzBiMDEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWRldnRvb2xzLWNvbnRhaW5lcmFuYWx5c2lzLy5Pd2xCb3QueWFtbCIsImgiOiI4YmVjMDY2NDkyYTZkYTI4NTViMWI4Y2U1NjI2NjRjMGE2YjMwYjAxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWlhbS1jcmVkZW50aWFscy8uT3dsQm90LnlhbWwiLCJoIjoiOGJlYzA2NjQ5MmE2ZGEyODU1YjFiOGNlNTYyNjY0YzBhNmIzMGIwMSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWlhbS8uT3dsQm90LnlhbWwiLCJoIjoiOGJlYzA2NjQ5MmE2ZGEyODU1YjFiOGNlNTYyNjY0YzBhNmIzMGIwMSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWlkZW50aXR5LWFjY2Vzc2NvbnRleHRtYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiI4YmVjMDY2NDkyYTZkYTI4NTViMWI4Y2U1NjI2NjRjMGE2YjMwYjAxIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore!: update to Node 14 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <[email protected]> Co-authored-by: Sofia Leon <[email protected]>
1 parent 44d81b3 commit c909357

218 files changed

Lines changed: 28700 additions & 3257 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-texttospeech/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "Apache-2.0",
66
"author": "Google LLC",
77
"engines": {
8-
"node": ">=12.0.0"
8+
"node": ">=14.0.0"
99
},
1010
"repository": {
1111
"type": "git",
@@ -48,15 +48,16 @@
4848
"test": "c8 mocha build/test"
4949
},
5050
"dependencies": {
51-
"google-gax": "^3.5.8"
51+
"google-gax": "^4.0.3"
5252
},
5353
"devDependencies": {
5454
"@types/mocha": "^9.0.0",
55-
"@types/node": "^18.0.0",
55+
"@types/node": "^20.4.5",
5656
"@types/sinon": "^10.0.0",
5757
"c8": "^7.0.0",
5858
"codecov": "^3.0.0",
59-
"gts": "^3.1.0",
59+
"gapic-tools": "^0.1.8",
60+
"gts": "^5.0.0",
6061
"jsdoc": "^4.0.0",
6162
"jsdoc-fresh": "^2.0.0",
6263
"jsdoc-region-tag": "^2.0.0",
@@ -67,7 +68,7 @@
6768
"pack-n-play": "^1.0.0-2",
6869
"sinon": "^15.0.0",
6970
"ts-loader": "^9.0.0",
70-
"typescript": "^4.6.4",
71+
"typescript": "^5.1.6",
7172
"webpack": "^5.0.0",
7273
"webpack-cli": "^5.0.0"
7374
},
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
{
2+
"clientLibrary": {
3+
"name": "nodejs-texttospeech",
4+
"version": "4.2.3",
5+
"language": "TYPESCRIPT",
6+
"apis": [
7+
{
8+
"id": "google.cloud.texttospeech.v1",
9+
"version": "v1"
10+
}
11+
]
12+
},
13+
"snippets": [
14+
{
15+
"regionTag": "texttospeech_v1_generated_TextToSpeech_ListVoices_async",
16+
"title": "TextToSpeech listVoices Sample",
17+
"origin": "API_DEFINITION",
18+
"description": " Returns a list of Voice supported for synthesis.",
19+
"canonical": true,
20+
"file": "text_to_speech.list_voices.js",
21+
"language": "JAVASCRIPT",
22+
"segments": [
23+
{
24+
"start": 25,
25+
"end": 59,
26+
"type": "FULL"
27+
}
28+
],
29+
"clientMethod": {
30+
"shortName": "ListVoices",
31+
"fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices",
32+
"async": true,
33+
"parameters": [
34+
{
35+
"name": "language_code",
36+
"type": "TYPE_STRING"
37+
}
38+
],
39+
"resultType": ".google.cloud.texttospeech.v1.ListVoicesResponse",
40+
"client": {
41+
"shortName": "TextToSpeechClient",
42+
"fullName": "google.cloud.texttospeech.v1.TextToSpeechClient"
43+
},
44+
"method": {
45+
"shortName": "ListVoices",
46+
"fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices",
47+
"service": {
48+
"shortName": "TextToSpeech",
49+
"fullName": "google.cloud.texttospeech.v1.TextToSpeech"
50+
}
51+
}
52+
}
53+
},
54+
{
55+
"regionTag": "texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_async",
56+
"title": "TextToSpeech synthesizeSpeech Sample",
57+
"origin": "API_DEFINITION",
58+
"description": " Synthesizes speech synchronously: receive results after all text input has been processed.",
59+
"canonical": true,
60+
"file": "text_to_speech.synthesize_speech.js",
61+
"language": "JAVASCRIPT",
62+
"segments": [
63+
{
64+
"start": 25,
65+
"end": 63,
66+
"type": "FULL"
67+
}
68+
],
69+
"clientMethod": {
70+
"shortName": "SynthesizeSpeech",
71+
"fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech",
72+
"async": true,
73+
"parameters": [
74+
{
75+
"name": "input",
76+
"type": ".google.cloud.texttospeech.v1.SynthesisInput"
77+
},
78+
{
79+
"name": "voice",
80+
"type": ".google.cloud.texttospeech.v1.VoiceSelectionParams"
81+
},
82+
{
83+
"name": "audio_config",
84+
"type": ".google.cloud.texttospeech.v1.AudioConfig"
85+
}
86+
],
87+
"resultType": ".google.cloud.texttospeech.v1.SynthesizeSpeechResponse",
88+
"client": {
89+
"shortName": "TextToSpeechClient",
90+
"fullName": "google.cloud.texttospeech.v1.TextToSpeechClient"
91+
},
92+
"method": {
93+
"shortName": "SynthesizeSpeech",
94+
"fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech",
95+
"service": {
96+
"shortName": "TextToSpeech",
97+
"fullName": "google.cloud.texttospeech.v1.TextToSpeech"
98+
}
99+
}
100+
}
101+
},
102+
{
103+
"regionTag": "texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_async",
104+
"title": "TextToSpeech synthesizeLongAudio Sample",
105+
"origin": "API_DEFINITION",
106+
"description": " Synthesizes long form text asynchronously.",
107+
"canonical": true,
108+
"file": "text_to_speech_long_audio_synthesize.synthesize_long_audio.js",
109+
"language": "JAVASCRIPT",
110+
"segments": [
111+
{
112+
"start": 25,
113+
"end": 77,
114+
"type": "FULL"
115+
}
116+
],
117+
"clientMethod": {
118+
"shortName": "SynthesizeLongAudio",
119+
"fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio",
120+
"async": true,
121+
"parameters": [
122+
{
123+
"name": "parent",
124+
"type": "TYPE_STRING"
125+
},
126+
{
127+
"name": "input",
128+
"type": ".google.cloud.texttospeech.v1.SynthesisInput"
129+
},
130+
{
131+
"name": "audio_config",
132+
"type": ".google.cloud.texttospeech.v1.AudioConfig"
133+
},
134+
{
135+
"name": "output_gcs_uri",
136+
"type": "TYPE_STRING"
137+
},
138+
{
139+
"name": "voice",
140+
"type": ".google.cloud.texttospeech.v1.VoiceSelectionParams"
141+
}
142+
],
143+
"resultType": ".google.longrunning.Operation",
144+
"client": {
145+
"shortName": "TextToSpeechLongAudioSynthesizeClient",
146+
"fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClient"
147+
},
148+
"method": {
149+
"shortName": "SynthesizeLongAudio",
150+
"fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio",
151+
"service": {
152+
"shortName": "TextToSpeechLongAudioSynthesize",
153+
"fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize"
154+
}
155+
}
156+
}
157+
}
158+
]
159+
}
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
{
2+
"clientLibrary": {
3+
"name": "nodejs-texttospeech",
4+
"version": "4.2.3",
5+
"language": "TYPESCRIPT",
6+
"apis": [
7+
{
8+
"id": "google.cloud.texttospeech.v1beta1",
9+
"version": "v1beta1"
10+
}
11+
]
12+
},
13+
"snippets": [
14+
{
15+
"regionTag": "texttospeech_v1beta1_generated_TextToSpeech_ListVoices_async",
16+
"title": "TextToSpeech listVoices Sample",
17+
"origin": "API_DEFINITION",
18+
"description": " Returns a list of Voice supported for synthesis.",
19+
"canonical": true,
20+
"file": "text_to_speech.list_voices.js",
21+
"language": "JAVASCRIPT",
22+
"segments": [
23+
{
24+
"start": 25,
25+
"end": 59,
26+
"type": "FULL"
27+
}
28+
],
29+
"clientMethod": {
30+
"shortName": "ListVoices",
31+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices",
32+
"async": true,
33+
"parameters": [
34+
{
35+
"name": "language_code",
36+
"type": "TYPE_STRING"
37+
}
38+
],
39+
"resultType": ".google.cloud.texttospeech.v1beta1.ListVoicesResponse",
40+
"client": {
41+
"shortName": "TextToSpeechClient",
42+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechClient"
43+
},
44+
"method": {
45+
"shortName": "ListVoices",
46+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices",
47+
"service": {
48+
"shortName": "TextToSpeech",
49+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech"
50+
}
51+
}
52+
}
53+
},
54+
{
55+
"regionTag": "texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_async",
56+
"title": "TextToSpeech synthesizeSpeech Sample",
57+
"origin": "API_DEFINITION",
58+
"description": " Synthesizes speech synchronously: receive results after all text input has been processed.",
59+
"canonical": true,
60+
"file": "text_to_speech.synthesize_speech.js",
61+
"language": "JAVASCRIPT",
62+
"segments": [
63+
{
64+
"start": 25,
65+
"end": 67,
66+
"type": "FULL"
67+
}
68+
],
69+
"clientMethod": {
70+
"shortName": "SynthesizeSpeech",
71+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech",
72+
"async": true,
73+
"parameters": [
74+
{
75+
"name": "input",
76+
"type": ".google.cloud.texttospeech.v1beta1.SynthesisInput"
77+
},
78+
{
79+
"name": "voice",
80+
"type": ".google.cloud.texttospeech.v1beta1.VoiceSelectionParams"
81+
},
82+
{
83+
"name": "audio_config",
84+
"type": ".google.cloud.texttospeech.v1beta1.AudioConfig"
85+
},
86+
{
87+
"name": "enable_time_pointing",
88+
"type": "TYPE_ENUM[]"
89+
}
90+
],
91+
"resultType": ".google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse",
92+
"client": {
93+
"shortName": "TextToSpeechClient",
94+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechClient"
95+
},
96+
"method": {
97+
"shortName": "SynthesizeSpeech",
98+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech",
99+
"service": {
100+
"shortName": "TextToSpeech",
101+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech"
102+
}
103+
}
104+
}
105+
},
106+
{
107+
"regionTag": "texttospeech_v1beta1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_async",
108+
"title": "TextToSpeech synthesizeLongAudio Sample",
109+
"origin": "API_DEFINITION",
110+
"description": " Synthesizes long form text asynchronously.",
111+
"canonical": true,
112+
"file": "text_to_speech_long_audio_synthesize.synthesize_long_audio.js",
113+
"language": "JAVASCRIPT",
114+
"segments": [
115+
{
116+
"start": 25,
117+
"end": 77,
118+
"type": "FULL"
119+
}
120+
],
121+
"clientMethod": {
122+
"shortName": "SynthesizeLongAudio",
123+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio",
124+
"async": true,
125+
"parameters": [
126+
{
127+
"name": "parent",
128+
"type": "TYPE_STRING"
129+
},
130+
{
131+
"name": "input",
132+
"type": ".google.cloud.texttospeech.v1beta1.SynthesisInput"
133+
},
134+
{
135+
"name": "audio_config",
136+
"type": ".google.cloud.texttospeech.v1beta1.AudioConfig"
137+
},
138+
{
139+
"name": "output_gcs_uri",
140+
"type": "TYPE_STRING"
141+
},
142+
{
143+
"name": "voice",
144+
"type": ".google.cloud.texttospeech.v1beta1.VoiceSelectionParams"
145+
}
146+
],
147+
"resultType": ".google.longrunning.Operation",
148+
"client": {
149+
"shortName": "TextToSpeechLongAudioSynthesizeClient",
150+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesizeClient"
151+
},
152+
"method": {
153+
"shortName": "SynthesizeLongAudio",
154+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio",
155+
"service": {
156+
"shortName": "TextToSpeechLongAudioSynthesize",
157+
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize"
158+
}
159+
}
160+
}
161+
}
162+
]
163+
}

packages/google-cloud-texttospeech/samples/generated/v1beta1/text_to_speech.synthesize_speech.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function main(input, voice, audioConfig) {
4343
/**
4444
* Whether and what timepoints are returned in the response.
4545
*/
46-
// const enableTimePointing = 1234
46+
// const enableTimePointing = [1,2,3,4]
4747

4848
// Imports the Texttospeech library
4949
const {TextToSpeechClient} = require('@google-cloud/text-to-speech').v1beta1;

packages/google-cloud-texttospeech/samples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"*.js"
99
],
1010
"engines": {
11-
"node": ">=12.0.0"
11+
"node": ">=14.0.0"
1212
},
1313
"scripts": {
1414
"test": "mocha --timeout=60000"
@@ -21,4 +21,4 @@
2121
"chai": "^4.2.0",
2222
"mocha": "^8.0.0"
2323
}
24-
}
24+
}

0 commit comments

Comments
 (0)