Skip to content

Commit 517f580

Browse files
docs: fix docstring formatting (#8)
Committer: @parthea PiperOrigin-RevId: 403986397 Source-Link: googleapis/googleapis@c3d010d Source-Link: googleapis/googleapis-gen@cb5ac69 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I1YWM2OTBkODI3ZjBmZjdhZWYwY2MxZjc3NTI1NWQzMTFmOWExYSJ9
1 parent 5e8c3e8 commit 517f580

20 files changed

+1082
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
{"recurse":true,"skip":["https://codecov.io/gh/googleapis/","www.googleapis.com","img.shields.io"],"silent":true,"concurrency":10}
1+
{
2+
"recurse": true,
3+
"skip": [
4+
"https://codecov.io/gh/googleapis/",
5+
"www.googleapis.com",
6+
"img.shields.io"
7+
],
8+
"silent": true,
9+
"concurrency": 10
10+
}

packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto

-1
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,6 @@ message EncryptionConfig {
758758
}
759759

760760
// The configuration settings for Cloud Composer maintenance window.
761-
//
762761
// The following example:
763762
//
764763
// {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
'use strict';
16+
17+
function main() {
18+
// [START composer_v1_generated_Environments_CreateEnvironment_async]
19+
/**
20+
* TODO(developer): Uncomment these variables before running the sample.
21+
*/
22+
/**
23+
* The parent must be of the form
24+
* "projects/{projectId}/locations/{locationId}".
25+
*/
26+
// const parent = 'abc123'
27+
/**
28+
* The environment to create.
29+
*/
30+
// const environment = ''
31+
32+
// Imports the Service library
33+
const {EnvironmentsClient} =
34+
require('@google-cloud/orchestration-airflow').v1;
35+
36+
// Instantiates a client
37+
const serviceClient = new EnvironmentsClient();
38+
39+
async function createEnvironment() {
40+
// Construct request
41+
const request = {};
42+
43+
// Run request
44+
const [operation] = await serviceClient.createEnvironment(request);
45+
const [response] = await operation.promise();
46+
console.log(response);
47+
}
48+
49+
createEnvironment();
50+
// [END composer_v1_generated_Environments_CreateEnvironment_async]
51+
}
52+
53+
process.on('unhandledRejection', err => {
54+
console.error(err.message);
55+
process.exitCode = 1;
56+
});
57+
main(...process.argv.slice(2));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
'use strict';
16+
17+
function main() {
18+
// [START composer_v1_generated_Environments_DeleteEnvironment_async]
19+
/**
20+
* TODO(developer): Uncomment these variables before running the sample.
21+
*/
22+
/**
23+
* The environment to delete, in the form:
24+
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
25+
*/
26+
// const name = 'abc123'
27+
28+
// Imports the Service library
29+
const {EnvironmentsClient} =
30+
require('@google-cloud/orchestration-airflow').v1;
31+
32+
// Instantiates a client
33+
const serviceClient = new EnvironmentsClient();
34+
35+
async function deleteEnvironment() {
36+
// Construct request
37+
const request = {};
38+
39+
// Run request
40+
const [operation] = await serviceClient.deleteEnvironment(request);
41+
const [response] = await operation.promise();
42+
console.log(response);
43+
}
44+
45+
deleteEnvironment();
46+
// [END composer_v1_generated_Environments_DeleteEnvironment_async]
47+
}
48+
49+
process.on('unhandledRejection', err => {
50+
console.error(err.message);
51+
process.exitCode = 1;
52+
});
53+
main(...process.argv.slice(2));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
'use strict';
16+
17+
function main() {
18+
// [START composer_v1_generated_Environments_GetEnvironment_async]
19+
/**
20+
* TODO(developer): Uncomment these variables before running the sample.
21+
*/
22+
/**
23+
* The resource name of the environment to get, in the form:
24+
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
25+
*/
26+
// const name = 'abc123'
27+
28+
// Imports the Service library
29+
const {EnvironmentsClient} =
30+
require('@google-cloud/orchestration-airflow').v1;
31+
32+
// Instantiates a client
33+
const serviceClient = new EnvironmentsClient();
34+
35+
async function getEnvironment() {
36+
// Construct request
37+
const request = {};
38+
39+
// Run request
40+
const response = await serviceClient.getEnvironment(request);
41+
console.log(response);
42+
}
43+
44+
getEnvironment();
45+
// [END composer_v1_generated_Environments_GetEnvironment_async]
46+
}
47+
48+
process.on('unhandledRejection', err => {
49+
console.error(err.message);
50+
process.exitCode = 1;
51+
});
52+
main(...process.argv.slice(2));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
'use strict';
16+
17+
function main() {
18+
// [START composer_v1_generated_Environments_ListEnvironments_async]
19+
/**
20+
* TODO(developer): Uncomment these variables before running the sample.
21+
*/
22+
/**
23+
* List environments in the given project and location, in the form:
24+
* "projects/{projectId}/locations/{locationId}"
25+
*/
26+
// const parent = 'abc123'
27+
/**
28+
* The maximum number of environments to return.
29+
*/
30+
// const pageSize = 1234
31+
/**
32+
* The next_page_token value returned from a previous List request, if any.
33+
*/
34+
// const pageToken = 'abc123'
35+
36+
// Imports the Service library
37+
const {EnvironmentsClient} =
38+
require('@google-cloud/orchestration-airflow').v1;
39+
40+
// Instantiates a client
41+
const serviceClient = new EnvironmentsClient();
42+
43+
async function listEnvironments() {
44+
// Construct request
45+
const request = {};
46+
47+
// Run request
48+
const iterable = await serviceClient.listEnvironmentsAsync(request);
49+
for await (const response of iterable) {
50+
console.log(response);
51+
}
52+
}
53+
54+
listEnvironments();
55+
// [END composer_v1_generated_Environments_ListEnvironments_async]
56+
}
57+
58+
process.on('unhandledRejection', err => {
59+
console.error(err.message);
60+
process.exitCode = 1;
61+
});
62+
main(...process.argv.slice(2));

0 commit comments

Comments
 (0)