Skip to content

Commit 75cd01f

Browse files
docs(samples): add example tags to generated samples (#14)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 408439482 Source-Link: googleapis/googleapis@b9f6184 Source-Link: googleapis/googleapis-gen@eb888bc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
1 parent 88b8a27 commit 75cd01f

19 files changed

+423
-471
lines changed

packages/google-cloud-orchestration-airflow-service/linkinator.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"img.shields.io"
77
],
88
"silent": true,
9-
"concurrency": 10
9+
"concurrency": 5
1010
}

packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_environment.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function main() {
2727
/**
2828
* The environment to create.
2929
*/
30-
// const environment = ''
30+
// const environment = {}
3131

3232
// Imports the Service library
3333
const {EnvironmentsClient} =
@@ -36,7 +36,7 @@ function main() {
3636
// Instantiates a client
3737
const serviceClient = new EnvironmentsClient();
3838

39-
async function createEnvironment() {
39+
async function callCreateEnvironment() {
4040
// Construct request
4141
const request = {};
4242

@@ -46,7 +46,7 @@ function main() {
4646
console.log(response);
4747
}
4848

49-
createEnvironment();
49+
callCreateEnvironment();
5050
// [END composer_v1_generated_Environments_CreateEnvironment_async]
5151
}
5252

packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_environment.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main() {
3232
// Instantiates a client
3333
const serviceClient = new EnvironmentsClient();
3434

35-
async function deleteEnvironment() {
35+
async function callDeleteEnvironment() {
3636
// Construct request
3737
const request = {};
3838

@@ -42,7 +42,7 @@ function main() {
4242
console.log(response);
4343
}
4444

45-
deleteEnvironment();
45+
callDeleteEnvironment();
4646
// [END composer_v1_generated_Environments_DeleteEnvironment_async]
4747
}
4848

packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_environment.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main() {
3232
// Instantiates a client
3333
const serviceClient = new EnvironmentsClient();
3434

35-
async function getEnvironment() {
35+
async function callGetEnvironment() {
3636
// Construct request
3737
const request = {};
3838

@@ -41,7 +41,7 @@ function main() {
4141
console.log(response);
4242
}
4343

44-
getEnvironment();
44+
callGetEnvironment();
4545
// [END composer_v1_generated_Environments_GetEnvironment_async]
4646
}
4747

packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_environments.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function main() {
4040
// Instantiates a client
4141
const serviceClient = new EnvironmentsClient();
4242

43-
async function listEnvironments() {
43+
async function callListEnvironments() {
4444
// Construct request
4545
const request = {};
4646

@@ -51,7 +51,7 @@ function main() {
5151
}
5252
}
5353

54-
listEnvironments();
54+
callListEnvironments();
5555
// [END composer_v1_generated_Environments_ListEnvironments_async]
5656
}
5757

packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_environment.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function main() {
2828
* A patch environment. Fields specified by the `updateMask` will be copied
2929
* from the patch environment into the environment under update.
3030
*/
31-
// const environment = ''
31+
// const environment = {}
3232
/**
3333
* Required. A comma-separated list of paths, relative to `Environment`, of
3434
* fields to update.
@@ -135,7 +135,7 @@ function main() {
135135
* It is an error to provide both this mask and a mask specifying one or
136136
* more individual environment variables.
137137
*/
138-
// const updateMask = ''
138+
// const updateMask = {}
139139

140140
// Imports the Service library
141141
const {EnvironmentsClient} =
@@ -144,7 +144,7 @@ function main() {
144144
// Instantiates a client
145145
const serviceClient = new EnvironmentsClient();
146146

147-
async function updateEnvironment() {
147+
async function callUpdateEnvironment() {
148148
// Construct request
149149
const request = {};
150150

@@ -154,7 +154,7 @@ function main() {
154154
console.log(response);
155155
}
156156

157-
updateEnvironment();
157+
callUpdateEnvironment();
158158
// [END composer_v1_generated_Environments_UpdateEnvironment_async]
159159
}
160160

packages/google-cloud-orchestration-airflow-service/samples/generated/v1/image_versions.list_image_versions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function main() {
4444
// Instantiates a client
4545
const serviceClient = new ImageVersionsClient();
4646

47-
async function listImageVersions() {
47+
async function callListImageVersions() {
4848
// Construct request
4949
const request = {};
5050

@@ -55,7 +55,7 @@ function main() {
5555
}
5656
}
5757

58-
listImageVersions();
58+
callListImageVersions();
5959
// [END composer_v1_generated_ImageVersions_ListImageVersions_async]
6060
}
6161

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.check_upgrade.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ function main() {
3333
* When used as input, the server also checks if the provided version is
3434
* supported and denies the request for an unsupported version.
3535
* The Cloud Composer portion of the version is a
36-
* [semantic version](https://semver.org) or `latest`. When the patch version
36+
* semantic version (https://semver.org) or `latest`. When the patch version
3737
* is omitted, the current Cloud Composer patch version is selected.
3838
* When `latest` is provided instead of an explicit version number,
3939
* the server replaces `latest` with the current Cloud Composer version
4040
* and stores that version number in the same field.
4141
* The portion of the image version that follows `airflow-` is an
4242
* official Apache Airflow repository
43-
* [release name](https://github.com/apache/incubator-airflow/releases).
44-
* See also [Version List]
43+
* release name (https://github.com/apache/incubator-airflow/releases).
44+
* See also Version List
4545
* (/composer/docs/concepts/versioning/composer-versions).
4646
*/
4747
// const imageVersion = 'abc123'
@@ -53,7 +53,7 @@ function main() {
5353
// Instantiates a client
5454
const serviceClient = new EnvironmentsClient();
5555

56-
async function checkUpgrade() {
56+
async function callCheckUpgrade() {
5757
// Construct request
5858
const request = {};
5959

@@ -63,7 +63,7 @@ function main() {
6363
console.log(response);
6464
}
6565

66-
checkUpgrade();
66+
callCheckUpgrade();
6767
// [END composer_v1beta1_generated_Environments_CheckUpgrade_async]
6868
}
6969

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_environment.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function main() {
2727
/**
2828
* The environment to create.
2929
*/
30-
// const environment = ''
30+
// const environment = {}
3131

3232
// Imports the Service library
3333
const {EnvironmentsClient} =
@@ -36,7 +36,7 @@ function main() {
3636
// Instantiates a client
3737
const serviceClient = new EnvironmentsClient();
3838

39-
async function createEnvironment() {
39+
async function callCreateEnvironment() {
4040
// Construct request
4141
const request = {};
4242

@@ -46,7 +46,7 @@ function main() {
4646
console.log(response);
4747
}
4848

49-
createEnvironment();
49+
callCreateEnvironment();
5050
// [END composer_v1beta1_generated_Environments_CreateEnvironment_async]
5151
}
5252

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_environment.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main() {
3232
// Instantiates a client
3333
const serviceClient = new EnvironmentsClient();
3434

35-
async function deleteEnvironment() {
35+
async function callDeleteEnvironment() {
3636
// Construct request
3737
const request = {};
3838

@@ -42,7 +42,7 @@ function main() {
4242
console.log(response);
4343
}
4444

45-
deleteEnvironment();
45+
callDeleteEnvironment();
4646
// [END composer_v1beta1_generated_Environments_DeleteEnvironment_async]
4747
}
4848

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_environment.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main() {
3232
// Instantiates a client
3333
const serviceClient = new EnvironmentsClient();
3434

35-
async function getEnvironment() {
35+
async function callGetEnvironment() {
3636
// Construct request
3737
const request = {};
3838

@@ -41,7 +41,7 @@ function main() {
4141
console.log(response);
4242
}
4343

44-
getEnvironment();
44+
callGetEnvironment();
4545
// [END composer_v1beta1_generated_Environments_GetEnvironment_async]
4646
}
4747

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_environments.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function main() {
4040
// Instantiates a client
4141
const serviceClient = new EnvironmentsClient();
4242

43-
async function listEnvironments() {
43+
async function callListEnvironments() {
4444
// Construct request
4545
const request = {};
4646

@@ -51,7 +51,7 @@ function main() {
5151
}
5252
}
5353

54-
listEnvironments();
54+
callListEnvironments();
5555
// [END composer_v1beta1_generated_Environments_ListEnvironments_async]
5656
}
5757

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.restart_web_server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function main() {
3333
// Instantiates a client
3434
const serviceClient = new EnvironmentsClient();
3535

36-
async function restartWebServer() {
36+
async function callRestartWebServer() {
3737
// Construct request
3838
const request = {};
3939

@@ -43,7 +43,7 @@ function main() {
4343
console.log(response);
4444
}
4545

46-
restartWebServer();
46+
callRestartWebServer();
4747
// [END composer_v1beta1_generated_Environments_RestartWebServer_async]
4848
}
4949

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_environment.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function main(updateMask) {
2828
* A patch environment. Fields specified by the `updateMask` will be copied
2929
* from the patch environment into the environment under update.
3030
*/
31-
// const environment = ''
31+
// const environment = {}
3232
/**
3333
* Required. A comma-separated list of paths, relative to `Environment`, of
3434
* fields to update.
@@ -135,8 +135,8 @@ function main(updateMask) {
135135
* new image version. Additionally, the new image version cannot effect
136136
* a version downgrade and must match the current image version's
137137
* Composer major version and Airflow major and minor versions. Consult
138-
* the [Cloud Composer Version
139-
* List](https://cloud.google.com/composer/docs/concepts/versioning/composer-versions)
138+
* the Cloud Composer Version
139+
* List (https://cloud.google.com/composer/docs/concepts/versioning/composer-versions)
140140
* for valid values.
141141
* * `config.softwareConfig.schedulerCount`
142142
* * Horizontally scale the number of schedulers in Airflow. A positive
@@ -151,7 +151,7 @@ function main(updateMask) {
151151
* * Maintenance window during which Cloud Composer components may be
152152
* under maintenance.
153153
*/
154-
// const updateMask = ''
154+
// const updateMask = {}
155155

156156
// Imports the Service library
157157
const {EnvironmentsClient} =
@@ -160,7 +160,7 @@ function main(updateMask) {
160160
// Instantiates a client
161161
const serviceClient = new EnvironmentsClient();
162162

163-
async function updateEnvironment() {
163+
async function callUpdateEnvironment() {
164164
// Construct request
165165
const request = {
166166
updateMask,
@@ -172,7 +172,7 @@ function main(updateMask) {
172172
console.log(response);
173173
}
174174

175-
updateEnvironment();
175+
callUpdateEnvironment();
176176
// [END composer_v1beta1_generated_Environments_UpdateEnvironment_async]
177177
}
178178

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/image_versions.list_image_versions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function main() {
4444
// Instantiates a client
4545
const serviceClient = new ImageVersionsClient();
4646

47-
async function listImageVersions() {
47+
async function callListImageVersions() {
4848
// Construct request
4949
const request = {};
5050

@@ -55,7 +55,7 @@ function main() {
5555
}
5656
}
5757

58-
listImageVersions();
58+
callListImageVersions();
5959
// [END composer_v1beta1_generated_ImageVersions_ListImageVersions_async]
6060
}
6161

0 commit comments

Comments
 (0)