Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [orchestration-airflow] Add an API method for reordering firewall policies #10363

Merged
merged 4 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion java-orchestration-airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.34.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.35.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,6 +17,9 @@
package com.google.cloud.orchestration.airflow.service.v1;

import static com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListEnvironmentsPagedResponse;
import static com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListUserWorkloadsConfigMapsPagedResponse;
import static com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListUserWorkloadsSecretsPagedResponse;
import static com.google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListWorkloadsPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -140,6 +143,78 @@ public UnaryCallSettings<DeleteEnvironmentRequest, Operation> deleteEnvironmentS
return ((EnvironmentsStubSettings) getStubSettings()).pollAirflowCommandSettings();
}

/** Returns the object with the settings used for calls to listWorkloads. */
public PagedCallSettings<ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsPagedResponse>
listWorkloadsSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).listWorkloadsSettings();
}

/** Returns the object with the settings used for calls to createUserWorkloadsSecret. */
public UnaryCallSettings<CreateUserWorkloadsSecretRequest, UserWorkloadsSecret>
createUserWorkloadsSecretSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).createUserWorkloadsSecretSettings();
}

/** Returns the object with the settings used for calls to getUserWorkloadsSecret. */
public UnaryCallSettings<GetUserWorkloadsSecretRequest, UserWorkloadsSecret>
getUserWorkloadsSecretSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).getUserWorkloadsSecretSettings();
}

/** Returns the object with the settings used for calls to listUserWorkloadsSecrets. */
public PagedCallSettings<
ListUserWorkloadsSecretsRequest,
ListUserWorkloadsSecretsResponse,
ListUserWorkloadsSecretsPagedResponse>
listUserWorkloadsSecretsSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).listUserWorkloadsSecretsSettings();
}

/** Returns the object with the settings used for calls to updateUserWorkloadsSecret. */
public UnaryCallSettings<UpdateUserWorkloadsSecretRequest, UserWorkloadsSecret>
updateUserWorkloadsSecretSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).updateUserWorkloadsSecretSettings();
}

/** Returns the object with the settings used for calls to deleteUserWorkloadsSecret. */
public UnaryCallSettings<DeleteUserWorkloadsSecretRequest, Empty>
deleteUserWorkloadsSecretSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).deleteUserWorkloadsSecretSettings();
}

/** Returns the object with the settings used for calls to createUserWorkloadsConfigMap. */
public UnaryCallSettings<CreateUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
createUserWorkloadsConfigMapSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).createUserWorkloadsConfigMapSettings();
}

/** Returns the object with the settings used for calls to getUserWorkloadsConfigMap. */
public UnaryCallSettings<GetUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
getUserWorkloadsConfigMapSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).getUserWorkloadsConfigMapSettings();
}

/** Returns the object with the settings used for calls to listUserWorkloadsConfigMaps. */
public PagedCallSettings<
ListUserWorkloadsConfigMapsRequest,
ListUserWorkloadsConfigMapsResponse,
ListUserWorkloadsConfigMapsPagedResponse>
listUserWorkloadsConfigMapsSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).listUserWorkloadsConfigMapsSettings();
}

/** Returns the object with the settings used for calls to updateUserWorkloadsConfigMap. */
public UnaryCallSettings<UpdateUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
updateUserWorkloadsConfigMapSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).updateUserWorkloadsConfigMapSettings();
}

/** Returns the object with the settings used for calls to deleteUserWorkloadsConfigMap. */
public UnaryCallSettings<DeleteUserWorkloadsConfigMapRequest, Empty>
deleteUserWorkloadsConfigMapSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).deleteUserWorkloadsConfigMapSettings();
}

/** Returns the object with the settings used for calls to saveSnapshot. */
public UnaryCallSettings<SaveSnapshotRequest, Operation> saveSnapshotSettings() {
return ((EnvironmentsStubSettings) getStubSettings()).saveSnapshotSettings();
Expand Down Expand Up @@ -220,7 +295,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
return EnvironmentsStubSettings.defaultTransportChannelProvider();
}

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

/** Returns the builder for the settings used for calls to listWorkloads. */
public PagedCallSettings.Builder<
ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsPagedResponse>
listWorkloadsSettings() {
return getStubSettingsBuilder().listWorkloadsSettings();
}

/** Returns the builder for the settings used for calls to createUserWorkloadsSecret. */
public UnaryCallSettings.Builder<CreateUserWorkloadsSecretRequest, UserWorkloadsSecret>
createUserWorkloadsSecretSettings() {
return getStubSettingsBuilder().createUserWorkloadsSecretSettings();
}

/** Returns the builder for the settings used for calls to getUserWorkloadsSecret. */
public UnaryCallSettings.Builder<GetUserWorkloadsSecretRequest, UserWorkloadsSecret>
getUserWorkloadsSecretSettings() {
return getStubSettingsBuilder().getUserWorkloadsSecretSettings();
}

/** Returns the builder for the settings used for calls to listUserWorkloadsSecrets. */
public PagedCallSettings.Builder<
ListUserWorkloadsSecretsRequest,
ListUserWorkloadsSecretsResponse,
ListUserWorkloadsSecretsPagedResponse>
listUserWorkloadsSecretsSettings() {
return getStubSettingsBuilder().listUserWorkloadsSecretsSettings();
}

/** Returns the builder for the settings used for calls to updateUserWorkloadsSecret. */
public UnaryCallSettings.Builder<UpdateUserWorkloadsSecretRequest, UserWorkloadsSecret>
updateUserWorkloadsSecretSettings() {
return getStubSettingsBuilder().updateUserWorkloadsSecretSettings();
}

/** Returns the builder for the settings used for calls to deleteUserWorkloadsSecret. */
public UnaryCallSettings.Builder<DeleteUserWorkloadsSecretRequest, Empty>
deleteUserWorkloadsSecretSettings() {
return getStubSettingsBuilder().deleteUserWorkloadsSecretSettings();
}

/** Returns the builder for the settings used for calls to createUserWorkloadsConfigMap. */
public UnaryCallSettings.Builder<CreateUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
createUserWorkloadsConfigMapSettings() {
return getStubSettingsBuilder().createUserWorkloadsConfigMapSettings();
}

/** Returns the builder for the settings used for calls to getUserWorkloadsConfigMap. */
public UnaryCallSettings.Builder<GetUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
getUserWorkloadsConfigMapSettings() {
return getStubSettingsBuilder().getUserWorkloadsConfigMapSettings();
}

/** Returns the builder for the settings used for calls to listUserWorkloadsConfigMaps. */
public PagedCallSettings.Builder<
ListUserWorkloadsConfigMapsRequest,
ListUserWorkloadsConfigMapsResponse,
ListUserWorkloadsConfigMapsPagedResponse>
listUserWorkloadsConfigMapsSettings() {
return getStubSettingsBuilder().listUserWorkloadsConfigMapsSettings();
}

/** Returns the builder for the settings used for calls to updateUserWorkloadsConfigMap. */
public UnaryCallSettings.Builder<UpdateUserWorkloadsConfigMapRequest, UserWorkloadsConfigMap>
updateUserWorkloadsConfigMapSettings() {
return getStubSettingsBuilder().updateUserWorkloadsConfigMapSettings();
}

/** Returns the builder for the settings used for calls to deleteUserWorkloadsConfigMap. */
public UnaryCallSettings.Builder<DeleteUserWorkloadsConfigMapRequest, Empty>
deleteUserWorkloadsConfigMapSettings() {
return getStubSettingsBuilder().deleteUserWorkloadsConfigMapSettings();
}

/** Returns the builder for the settings used for calls to saveSnapshot. */
public UnaryCallSettings.Builder<SaveSnapshotRequest, Operation> saveSnapshotSettings() {
return getStubSettingsBuilder().saveSnapshotSettings();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -122,7 +122,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
return ImageVersionsStubSettings.defaultTransportChannelProvider();
}

@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return ImageVersionsStubSettings.defaultApiClientHeaderProviderBuilder();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,24 @@
"CreateEnvironment": {
"methods": ["createEnvironmentAsync", "createEnvironmentAsync", "createEnvironmentOperationCallable", "createEnvironmentCallable"]
},
"CreateUserWorkloadsConfigMap": {
"methods": ["createUserWorkloadsConfigMap", "createUserWorkloadsConfigMap", "createUserWorkloadsConfigMap", "createUserWorkloadsConfigMapCallable"]
},
"CreateUserWorkloadsSecret": {
"methods": ["createUserWorkloadsSecret", "createUserWorkloadsSecret", "createUserWorkloadsSecret", "createUserWorkloadsSecretCallable"]
},
"DatabaseFailover": {
"methods": ["databaseFailoverAsync", "databaseFailoverOperationCallable", "databaseFailoverCallable"]
},
"DeleteEnvironment": {
"methods": ["deleteEnvironmentAsync", "deleteEnvironmentAsync", "deleteEnvironmentOperationCallable", "deleteEnvironmentCallable"]
},
"DeleteUserWorkloadsConfigMap": {
"methods": ["deleteUserWorkloadsConfigMap", "deleteUserWorkloadsConfigMap", "deleteUserWorkloadsConfigMap", "deleteUserWorkloadsConfigMapCallable"]
},
"DeleteUserWorkloadsSecret": {
"methods": ["deleteUserWorkloadsSecret", "deleteUserWorkloadsSecret", "deleteUserWorkloadsSecret", "deleteUserWorkloadsSecretCallable"]
},
"ExecuteAirflowCommand": {
"methods": ["executeAirflowCommand", "executeAirflowCommandCallable"]
},
Expand All @@ -28,9 +40,24 @@
"GetEnvironment": {
"methods": ["getEnvironment", "getEnvironment", "getEnvironmentCallable"]
},
"GetUserWorkloadsConfigMap": {
"methods": ["getUserWorkloadsConfigMap", "getUserWorkloadsConfigMap", "getUserWorkloadsConfigMap", "getUserWorkloadsConfigMapCallable"]
},
"GetUserWorkloadsSecret": {
"methods": ["getUserWorkloadsSecret", "getUserWorkloadsSecret", "getUserWorkloadsSecret", "getUserWorkloadsSecretCallable"]
},
"ListEnvironments": {
"methods": ["listEnvironments", "listEnvironments", "listEnvironmentsPagedCallable", "listEnvironmentsCallable"]
},
"ListUserWorkloadsConfigMaps": {
"methods": ["listUserWorkloadsConfigMaps", "listUserWorkloadsConfigMaps", "listUserWorkloadsConfigMaps", "listUserWorkloadsConfigMapsPagedCallable", "listUserWorkloadsConfigMapsCallable"]
},
"ListUserWorkloadsSecrets": {
"methods": ["listUserWorkloadsSecrets", "listUserWorkloadsSecrets", "listUserWorkloadsSecrets", "listUserWorkloadsSecretsPagedCallable", "listUserWorkloadsSecretsCallable"]
},
"ListWorkloads": {
"methods": ["listWorkloads", "listWorkloads", "listWorkloads", "listWorkloadsPagedCallable", "listWorkloadsCallable"]
},
"LoadSnapshot": {
"methods": ["loadSnapshotAsync", "loadSnapshotOperationCallable", "loadSnapshotCallable"]
},
Expand All @@ -45,6 +72,12 @@
},
"UpdateEnvironment": {
"methods": ["updateEnvironmentAsync", "updateEnvironmentAsync", "updateEnvironmentOperationCallable", "updateEnvironmentCallable"]
},
"UpdateUserWorkloadsConfigMap": {
"methods": ["updateUserWorkloadsConfigMap", "updateUserWorkloadsConfigMap", "updateUserWorkloadsConfigMapCallable"]
},
"UpdateUserWorkloadsSecret": {
"methods": ["updateUserWorkloadsSecret", "updateUserWorkloadsSecret", "updateUserWorkloadsSecretCallable"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading
Loading