Skip to content

Commit 8dcf23c

Browse files
feat: [orchestration] added ListWorkloads RPC (#5044)
* feat: added ListWorkloads RPC feat: added field data_retention_config to EnvironmentConfig feat: added field web_server_plugins_mode to SoftwareConfig feat: added field storage_config to Environment PiperOrigin-RevId: 606533667 Source-Link: googleapis/googleapis@1d0a2bd Source-Link: googleapis/googleapis-gen@397f8b2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yY2hlc3RyYXRpb24tYWlyZmxvdy1zZXJ2aWNlLy5Pd2xCb3QueWFtbCIsImgiOiIzOTdmOGIyNThkODY3ZTBkN2ZmMmZiZGE1MTM1YmJmMzQxODExZDI2In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added ListWorkloads RPC feat: added field data_retention_config to EnvironmentConfig feat: added field web_server_plugins_mode to SoftwareConfig feat: added field storage_config to Environment PiperOrigin-RevId: 606927106 Source-Link: googleapis/googleapis@7a518dd Source-Link: googleapis/googleapis-gen@5ef1725 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yY2hlc3RyYXRpb24tYWlyZmxvdy1zZXJ2aWNlLy5Pd2xCb3QueWFtbCIsImgiOiI1ZWYxNzI1NTcxZmY2NDA4NjRhNjE1NTI4YWExNDRhOTFjYzE3ZjgxIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent b646c46 commit 8dcf23c

43 files changed

Lines changed: 47579 additions & 15288 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-orchestration-airflow-service/README.md

Lines changed: 22 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 604 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 578 additions & 0 deletions
Large diffs are not rendered by default.

packages/google-cloud-orchestration-airflow-service/protos/protos.d.ts

Lines changed: 8371 additions & 2969 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-orchestration-airflow-service/protos/protos.js

Lines changed: 21367 additions & 8976 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-orchestration-airflow-service/protos/protos.json

Lines changed: 1918 additions & 460 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-orchestration-airflow-service/samples/README.md

Lines changed: 396 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Copyright 2024 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+
// https://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+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
20+
21+
'use strict';
22+
23+
function main(parent, userWorkloadsConfigMap) {
24+
// [START composer_v1_generated_Environments_CreateUserWorkloadsConfigMap_async]
25+
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
29+
* TODO(developer): Uncomment these variables before running the sample.
30+
*/
31+
/**
32+
* Required. The environment name to create a ConfigMap for, in the form:
33+
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
34+
*/
35+
// const parent = 'abc123'
36+
/**
37+
* Required. User workloads ConfigMap to create.
38+
*/
39+
// const userWorkloadsConfigMap = {}
40+
41+
// Imports the Service library
42+
const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1;
43+
44+
// Instantiates a client
45+
const serviceClient = new EnvironmentsClient();
46+
47+
async function callCreateUserWorkloadsConfigMap() {
48+
// Construct request
49+
const request = {
50+
parent,
51+
userWorkloadsConfigMap,
52+
};
53+
54+
// Run request
55+
const response = await serviceClient.createUserWorkloadsConfigMap(request);
56+
console.log(response);
57+
}
58+
59+
callCreateUserWorkloadsConfigMap();
60+
// [END composer_v1_generated_Environments_CreateUserWorkloadsConfigMap_async]
61+
}
62+
63+
process.on('unhandledRejection', err => {
64+
console.error(err.message);
65+
process.exitCode = 1;
66+
});
67+
main(...process.argv.slice(2));
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Copyright 2024 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+
// https://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+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
20+
21+
'use strict';
22+
23+
function main(parent, userWorkloadsSecret) {
24+
// [START composer_v1_generated_Environments_CreateUserWorkloadsSecret_async]
25+
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
29+
* TODO(developer): Uncomment these variables before running the sample.
30+
*/
31+
/**
32+
* Required. The environment name to create a Secret for, in the form:
33+
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
34+
*/
35+
// const parent = 'abc123'
36+
/**
37+
* Required. User workloads Secret to create.
38+
*/
39+
// const userWorkloadsSecret = {}
40+
41+
// Imports the Service library
42+
const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1;
43+
44+
// Instantiates a client
45+
const serviceClient = new EnvironmentsClient();
46+
47+
async function callCreateUserWorkloadsSecret() {
48+
// Construct request
49+
const request = {
50+
parent,
51+
userWorkloadsSecret,
52+
};
53+
54+
// Run request
55+
const response = await serviceClient.createUserWorkloadsSecret(request);
56+
console.log(response);
57+
}
58+
59+
callCreateUserWorkloadsSecret();
60+
// [END composer_v1_generated_Environments_CreateUserWorkloadsSecret_async]
61+
}
62+
63+
process.on('unhandledRejection', err => {
64+
console.error(err.message);
65+
process.exitCode = 1;
66+
});
67+
main(...process.argv.slice(2));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Copyright 2024 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+
// https://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+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
20+
21+
'use strict';
22+
23+
function main(name) {
24+
// [START composer_v1_generated_Environments_DeleteUserWorkloadsConfigMap_async]
25+
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
29+
* TODO(developer): Uncomment these variables before running the sample.
30+
*/
31+
/**
32+
* Required. The ConfigMap to delete, in the form:
33+
* "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
34+
*/
35+
// const name = 'abc123'
36+
37+
// Imports the Service library
38+
const {EnvironmentsClient} = require('@google-cloud/orchestration-airflow').v1;
39+
40+
// Instantiates a client
41+
const serviceClient = new EnvironmentsClient();
42+
43+
async function callDeleteUserWorkloadsConfigMap() {
44+
// Construct request
45+
const request = {
46+
name,
47+
};
48+
49+
// Run request
50+
const response = await serviceClient.deleteUserWorkloadsConfigMap(request);
51+
console.log(response);
52+
}
53+
54+
callDeleteUserWorkloadsConfigMap();
55+
// [END composer_v1_generated_Environments_DeleteUserWorkloadsConfigMap_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)