-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Alice1319/feature/add_service_modify
introduce option to modify specifications of a service.
- Loading branch information
Showing
16 changed files
with
490 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...e/xpanse/tofu/maker/models/request/directory/OpenTofuAsyncModifyFromDirectoryRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* SPDX-FileCopyrightText: Huawei Inc. | ||
*/ | ||
|
||
package org.eclipse.xpanse.tofu.maker.models.request.directory; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import org.eclipse.xpanse.tofu.maker.models.request.webhook.WebhookConfig; | ||
|
||
/** | ||
* Data model for the OpenTofu async modify requests. | ||
*/ | ||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class OpenTofuAsyncModifyFromDirectoryRequest extends OpenTofuModifyFromDirectoryRequest { | ||
|
||
@NotNull | ||
@Schema(description = "Configuration information of webhook.") | ||
private WebhookConfig webhookConfig; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...clipse/xpanse/tofu/maker/models/request/directory/OpenTofuModifyFromDirectoryRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* SPDX-FileCopyrightText: Huawei Inc. | ||
*/ | ||
|
||
package org.eclipse.xpanse.tofu.maker.models.request.directory; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
import lombok.Data; | ||
import org.eclipse.xpanse.tofu.maker.models.enums.DeploymentScenario; | ||
|
||
/** | ||
* Data model for the OpenTofu modify requests. | ||
*/ | ||
@Data | ||
public class OpenTofuModifyFromDirectoryRequest { | ||
|
||
@NotNull | ||
@Schema(description = "Flag to control if the deployment must only generate the OpenTofu " | ||
+ "or it must also apply the changes.") | ||
Boolean isPlanOnly; | ||
|
||
@Schema(description = "This value can be set by the client if they wish to know the type of" | ||
+ "request for which the callback response is generated from tofu-maker. There will be" | ||
+ "no difference in the way request is executed. This information is only set in the" | ||
+ "callback response again for the client to handle the callback response accordingly.") | ||
DeploymentScenario deploymentScenario; | ||
|
||
@NotNull | ||
@Schema(description = "Key-value pairs of variables that must be used to execute the " | ||
+ "OpenTofu request.", | ||
additionalProperties = Schema.AdditionalPropertiesValue.TRUE) | ||
Map<String, Object> variables; | ||
|
||
@Schema(description = "Key-value pairs of variables that must be injected as environment " | ||
+ "variables to OpenTofu process.", | ||
additionalProperties = Schema.AdditionalPropertiesValue.TRUE) | ||
Map<String, String> envVariables = new HashMap<>(); | ||
} |
25 changes: 25 additions & 0 deletions
25
...g/eclipse/xpanse/tofu/maker/models/request/git/OpenTofuAsyncModifyFromGitRepoRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* SPDX-FileCopyrightText: Huawei Inc. | ||
*/ | ||
|
||
package org.eclipse.xpanse.tofu.maker.models.request.git; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import org.eclipse.xpanse.tofu.maker.models.request.webhook.WebhookConfig; | ||
|
||
/** | ||
* Data model for open tofu async modify requests using scripts from a GIT Repo. | ||
*/ | ||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class OpenTofuAsyncModifyFromGitRepoRequest extends OpenTofuModifyFromGitRepoRequest { | ||
|
||
@NotNull | ||
@Schema(description = "Configuration information of webhook.") | ||
private WebhookConfig webhookConfig; | ||
|
||
} |
Oops, something went wrong.