Skip to content

Commit 3e269e6

Browse files
feat: [orchestration-airflow] Add an API method for reordering firewall policies (#10363)
* 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: https://github.com/googleapis/googleapis-gen/commit/5ef1725571ff640864a615528aa144a91cc17f81 Copy-Tag: eyJwIjoiamF2YS1vcmNoZXN0cmF0aW9uLWFpcmZsb3cvLk93bEJvdC55YW1sIiwiaCI6IjVlZjE3MjU1NzFmZjY0MDg2NGE2MTU1MjhhYTE0NGE5MWNjMTdmODEifQ== 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: https://github.com/googleapis/googleapis-gen/commit/397f8b258d867e0d7ff2fbda5135bbf341811d26 Copy-Tag: eyJwIjoiamF2YS1vcmNoZXN0cmF0aW9uLWFpcmZsb3cvLk93bEJvdC55YW1sIiwiaCI6IjM5N2Y4YjI1OGQ4NjdlMGQ3ZmYyZmJkYTUxMzViYmYzNDE4MTFkMjYifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add an API method for reordering firewall policies PiperOrigin-RevId: 607015517 Source-Link: googleapis/googleapis@c43e216 Source-Link: https://github.com/googleapis/googleapis-gen/commit/71c27adc96b0c80093b4a413815bd93943196bb2 Copy-Tag: eyJwIjoiamF2YS1vcmNoZXN0cmF0aW9uLWFpcmZsb3cvLk93bEJvdC55YW1sIiwiaCI6IjcxYzI3YWRjOTZiMGM4MDA5M2I0YTQxMzgxNWJkOTM5NDMxOTZiYjIifQ== * 🦉 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 04d5f55 commit 3e269e6

File tree

369 files changed

+80741
-2387
lines changed

Some content is hidden

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

369 files changed

+80741
-2387
lines changed

java-orchestration-airflow/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.34.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.35.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java

Lines changed: 2181 additions & 81 deletions
Large diffs are not rendered by default.

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsSettings.java

Lines changed: 149 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,6 +17,9 @@
1717
package com.google.cloud.orchestration.airflow.service.v1;
1818

1919
import static com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListEnvironmentsPagedResponse;
20+
import static com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListUserWorkloadsConfigMapsPagedResponse;
21+
import static com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListUserWorkloadsSecretsPagedResponse;
22+
import static com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListWorkloadsPagedResponse;
2023

2124
import com.google.api.core.ApiFunction;
2225
import com.google.api.core.BetaApi;
@@ -140,6 +143,78 @@ public UnaryCallSettings<DeleteEnvironmentRequest, Operation> deleteEnvironmentS
140143
return ((EnvironmentsStubSettings) getStubSettings()).pollAirflowCommandSettings();
141144
}
142145

146+
/** Returns the object with the settings used for calls to listWorkloads. */
147+
public PagedCallSettings<ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsPagedResponse>
148+
listWorkloadsSettings() {
149+
return ((EnvironmentsStubSettings) getStubSettings()).listWorkloadsSettings();
150+
}
151+
152+
/** Returns the object with the settings used for calls to createUserWorkloadsSecret. */
153+
public UnaryCallSettings<CreateUserWorkloadsSecretRequest, UserWorkloadsSecret>
154+
createUserWorkloadsSecretSettings() {
155+
return ((EnvironmentsStubSettings) getStubSettings()).createUserWorkloadsSecretSettings();
156+
}
157+
158+
/** Returns the object with the settings used for calls to getUserWorkloadsSecret. */
159+
public UnaryCallSettings<GetUserWorkloadsSecretRequest, UserWorkloadsSecret>
160+
getUserWorkloadsSecretSettings() {
161+
return ((EnvironmentsStubSettings) getStubSettings()).getUserWorkloadsSecretSettings();
162+
}
163+
164+
/** Returns the object with the settings used for calls to listUserWorkloadsSecrets. */
165+
public PagedCallSettings<
166+
ListUserWorkloadsSecretsRequest,
167+
ListUserWorkloadsSecretsResponse,
168+
ListUserWorkloadsSecretsPagedResponse>
169+
listUserWorkloadsSecretsSettings() {
170+
return ((EnvironmentsStubSettings) getStubSettings()).listUserWorkloadsSecretsSettings();
171+
}
172+
173+
/** Returns the object with the settings used for calls to updateUserWorkloadsSecret. */
174+
public UnaryCallSettings<UpdateUserWorkloadsSecretRequest, UserWorkloadsSecret>
175+
updateUserWorkloadsSecretSettings() {
176+
return ((EnvironmentsStubSettings) getStubSettings()).updateUserWorkloadsSecretSettings();
177+
}
178+
179+
/** Returns the object with the settings used for calls to deleteUserWorkloadsSecret. */
180+
public UnaryCallSettings<DeleteUserWorkloadsSecretRequest, Empty>
181+
deleteUserWorkloadsSecretSettings() {
182+
return ((EnvironmentsStubSettings) getStubSettings()).deleteUserWorkloadsSecretSettings();
183+
}
184+
185+
/** Returns the object with the settings used for calls to createUserWorkloadsConfigMap. */
186+
public UnaryCallSettings<CreateUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
187+
createUserWorkloadsConfigMapSettings() {
188+
return ((EnvironmentsStubSettings) getStubSettings()).createUserWorkloadsConfigMapSettings();
189+
}
190+
191+
/** Returns the object with the settings used for calls to getUserWorkloadsConfigMap. */
192+
public UnaryCallSettings<GetUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
193+
getUserWorkloadsConfigMapSettings() {
194+
return ((EnvironmentsStubSettings) getStubSettings()).getUserWorkloadsConfigMapSettings();
195+
}
196+
197+
/** Returns the object with the settings used for calls to listUserWorkloadsConfigMaps. */
198+
public PagedCallSettings<
199+
ListUserWorkloadsConfigMapsRequest,
200+
ListUserWorkloadsConfigMapsResponse,
201+
ListUserWorkloadsConfigMapsPagedResponse>
202+
listUserWorkloadsConfigMapsSettings() {
203+
return ((EnvironmentsStubSettings) getStubSettings()).listUserWorkloadsConfigMapsSettings();
204+
}
205+
206+
/** Returns the object with the settings used for calls to updateUserWorkloadsConfigMap. */
207+
public UnaryCallSettings<UpdateUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
208+
updateUserWorkloadsConfigMapSettings() {
209+
return ((EnvironmentsStubSettings) getStubSettings()).updateUserWorkloadsConfigMapSettings();
210+
}
211+
212+
/** Returns the object with the settings used for calls to deleteUserWorkloadsConfigMap. */
213+
public UnaryCallSettings<DeleteUserWorkloadsConfigMapRequest, Empty>
214+
deleteUserWorkloadsConfigMapSettings() {
215+
return ((EnvironmentsStubSettings) getStubSettings()).deleteUserWorkloadsConfigMapSettings();
216+
}
217+
143218
/** Returns the object with the settings used for calls to saveSnapshot. */
144219
public UnaryCallSettings<SaveSnapshotRequest, Operation> saveSnapshotSettings() {
145220
return ((EnvironmentsStubSettings) getStubSettings()).saveSnapshotSettings();
@@ -220,7 +295,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
220295
return EnvironmentsStubSettings.defaultTransportChannelProvider();
221296
}
222297

223-
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
224298
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
225299
return EnvironmentsStubSettings.defaultApiClientHeaderProviderBuilder();
226300
}
@@ -360,6 +434,79 @@ public UnaryCallSettings.Builder<GetEnvironmentRequest, Environment> getEnvironm
360434
return getStubSettingsBuilder().pollAirflowCommandSettings();
361435
}
362436

437+
/** Returns the builder for the settings used for calls to listWorkloads. */
438+
public PagedCallSettings.Builder<
439+
ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsPagedResponse>
440+
listWorkloadsSettings() {
441+
return getStubSettingsBuilder().listWorkloadsSettings();
442+
}
443+
444+
/** Returns the builder for the settings used for calls to createUserWorkloadsSecret. */
445+
public UnaryCallSettings.Builder<CreateUserWorkloadsSecretRequest, UserWorkloadsSecret>
446+
createUserWorkloadsSecretSettings() {
447+
return getStubSettingsBuilder().createUserWorkloadsSecretSettings();
448+
}
449+
450+
/** Returns the builder for the settings used for calls to getUserWorkloadsSecret. */
451+
public UnaryCallSettings.Builder<GetUserWorkloadsSecretRequest, UserWorkloadsSecret>
452+
getUserWorkloadsSecretSettings() {
453+
return getStubSettingsBuilder().getUserWorkloadsSecretSettings();
454+
}
455+
456+
/** Returns the builder for the settings used for calls to listUserWorkloadsSecrets. */
457+
public PagedCallSettings.Builder<
458+
ListUserWorkloadsSecretsRequest,
459+
ListUserWorkloadsSecretsResponse,
460+
ListUserWorkloadsSecretsPagedResponse>
461+
listUserWorkloadsSecretsSettings() {
462+
return getStubSettingsBuilder().listUserWorkloadsSecretsSettings();
463+
}
464+
465+
/** Returns the builder for the settings used for calls to updateUserWorkloadsSecret. */
466+
public UnaryCallSettings.Builder<UpdateUserWorkloadsSecretRequest, UserWorkloadsSecret>
467+
updateUserWorkloadsSecretSettings() {
468+
return getStubSettingsBuilder().updateUserWorkloadsSecretSettings();
469+
}
470+
471+
/** Returns the builder for the settings used for calls to deleteUserWorkloadsSecret. */
472+
public UnaryCallSettings.Builder<DeleteUserWorkloadsSecretRequest, Empty>
473+
deleteUserWorkloadsSecretSettings() {
474+
return getStubSettingsBuilder().deleteUserWorkloadsSecretSettings();
475+
}
476+
477+
/** Returns the builder for the settings used for calls to createUserWorkloadsConfigMap. */
478+
public UnaryCallSettings.Builder<CreateUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
479+
createUserWorkloadsConfigMapSettings() {
480+
return getStubSettingsBuilder().createUserWorkloadsConfigMapSettings();
481+
}
482+
483+
/** Returns the builder for the settings used for calls to getUserWorkloadsConfigMap. */
484+
public UnaryCallSettings.Builder<GetUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
485+
getUserWorkloadsConfigMapSettings() {
486+
return getStubSettingsBuilder().getUserWorkloadsConfigMapSettings();
487+
}
488+
489+
/** Returns the builder for the settings used for calls to listUserWorkloadsConfigMaps. */
490+
public PagedCallSettings.Builder<
491+
ListUserWorkloadsConfigMapsRequest,
492+
ListUserWorkloadsConfigMapsResponse,
493+
ListUserWorkloadsConfigMapsPagedResponse>
494+
listUserWorkloadsConfigMapsSettings() {
495+
return getStubSettingsBuilder().listUserWorkloadsConfigMapsSettings();
496+
}
497+
498+
/** Returns the builder for the settings used for calls to updateUserWorkloadsConfigMap. */
499+
public UnaryCallSettings.Builder<UpdateUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
500+
updateUserWorkloadsConfigMapSettings() {
501+
return getStubSettingsBuilder().updateUserWorkloadsConfigMapSettings();
502+
}
503+
504+
/** Returns the builder for the settings used for calls to deleteUserWorkloadsConfigMap. */
505+
public UnaryCallSettings.Builder<DeleteUserWorkloadsConfigMapRequest, Empty>
506+
deleteUserWorkloadsConfigMapSettings() {
507+
return getStubSettingsBuilder().deleteUserWorkloadsConfigMapSettings();
508+
}
509+
363510
/** Returns the builder for the settings used for calls to saveSnapshot. */
364511
public UnaryCallSettings.Builder<SaveSnapshotRequest, Operation> saveSnapshotSettings() {
365512
return getStubSettingsBuilder().saveSnapshotSettings();

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -122,7 +122,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
122122
return ImageVersionsStubSettings.defaultTransportChannelProvider();
123123
}
124124

125-
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
126125
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
127126
return ImageVersionsStubSettings.defaultApiClientHeaderProviderBuilder();
128127
}

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/gapic_metadata.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,24 @@
1313
"CreateEnvironment": {
1414
"methods": ["createEnvironmentAsync", "createEnvironmentAsync", "createEnvironmentOperationCallable", "createEnvironmentCallable"]
1515
},
16+
"CreateUserWorkloadsConfigMap": {
17+
"methods": ["createUserWorkloadsConfigMap", "createUserWorkloadsConfigMap", "createUserWorkloadsConfigMap", "createUserWorkloadsConfigMapCallable"]
18+
},
19+
"CreateUserWorkloadsSecret": {
20+
"methods": ["createUserWorkloadsSecret", "createUserWorkloadsSecret", "createUserWorkloadsSecret", "createUserWorkloadsSecretCallable"]
21+
},
1622
"DatabaseFailover": {
1723
"methods": ["databaseFailoverAsync", "databaseFailoverOperationCallable", "databaseFailoverCallable"]
1824
},
1925
"DeleteEnvironment": {
2026
"methods": ["deleteEnvironmentAsync", "deleteEnvironmentAsync", "deleteEnvironmentOperationCallable", "deleteEnvironmentCallable"]
2127
},
28+
"DeleteUserWorkloadsConfigMap": {
29+
"methods": ["deleteUserWorkloadsConfigMap", "deleteUserWorkloadsConfigMap", "deleteUserWorkloadsConfigMap", "deleteUserWorkloadsConfigMapCallable"]
30+
},
31+
"DeleteUserWorkloadsSecret": {
32+
"methods": ["deleteUserWorkloadsSecret", "deleteUserWorkloadsSecret", "deleteUserWorkloadsSecret", "deleteUserWorkloadsSecretCallable"]
33+
},
2234
"ExecuteAirflowCommand": {
2335
"methods": ["executeAirflowCommand", "executeAirflowCommandCallable"]
2436
},
@@ -28,9 +40,24 @@
2840
"GetEnvironment": {
2941
"methods": ["getEnvironment", "getEnvironment", "getEnvironmentCallable"]
3042
},
43+
"GetUserWorkloadsConfigMap": {
44+
"methods": ["getUserWorkloadsConfigMap", "getUserWorkloadsConfigMap", "getUserWorkloadsConfigMap", "getUserWorkloadsConfigMapCallable"]
45+
},
46+
"GetUserWorkloadsSecret": {
47+
"methods": ["getUserWorkloadsSecret", "getUserWorkloadsSecret", "getUserWorkloadsSecret", "getUserWorkloadsSecretCallable"]
48+
},
3149
"ListEnvironments": {
3250
"methods": ["listEnvironments", "listEnvironments", "listEnvironmentsPagedCallable", "listEnvironmentsCallable"]
3351
},
52+
"ListUserWorkloadsConfigMaps": {
53+
"methods": ["listUserWorkloadsConfigMaps", "listUserWorkloadsConfigMaps", "listUserWorkloadsConfigMaps", "listUserWorkloadsConfigMapsPagedCallable", "listUserWorkloadsConfigMapsCallable"]
54+
},
55+
"ListUserWorkloadsSecrets": {
56+
"methods": ["listUserWorkloadsSecrets", "listUserWorkloadsSecrets", "listUserWorkloadsSecrets", "listUserWorkloadsSecretsPagedCallable", "listUserWorkloadsSecretsCallable"]
57+
},
58+
"ListWorkloads": {
59+
"methods": ["listWorkloads", "listWorkloads", "listWorkloads", "listWorkloadsPagedCallable", "listWorkloadsCallable"]
60+
},
3461
"LoadSnapshot": {
3562
"methods": ["loadSnapshotAsync", "loadSnapshotOperationCallable", "loadSnapshotCallable"]
3663
},
@@ -45,6 +72,12 @@
4572
},
4673
"UpdateEnvironment": {
4774
"methods": ["updateEnvironmentAsync", "updateEnvironmentAsync", "updateEnvironmentOperationCallable", "updateEnvironmentCallable"]
75+
},
76+
"UpdateUserWorkloadsConfigMap": {
77+
"methods": ["updateUserWorkloadsConfigMap", "updateUserWorkloadsConfigMap", "updateUserWorkloadsConfigMapCallable"]
78+
},
79+
"UpdateUserWorkloadsSecret": {
80+
"methods": ["updateUserWorkloadsSecret", "updateUserWorkloadsSecret", "updateUserWorkloadsSecretCallable"]
4881
}
4982
}
5083
}

java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)