-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce option to modify specifications of a service.
- Loading branch information
Showing
16 changed files
with
487 additions
and
34 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
...nse/terraform/boot/models/request/directory/TerraformAsyncModifyFromDirectoryRequest.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.terraform.boot.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.terraform.boot.models.request.webhook.WebhookConfig; | ||
|
||
/** | ||
* Data model for the terraform async modify requests. | ||
*/ | ||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class TerraformAsyncModifyFromDirectoryRequest extends TerraformModifyFromDirectoryRequest { | ||
|
||
@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
...e/xpanse/terraform/boot/models/request/directory/TerraformModifyFromDirectoryRequest.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.terraform.boot.models.request.directory; | ||
|
||
import static io.swagger.v3.oas.annotations.media.Schema.AdditionalPropertiesValue.TRUE; | ||
|
||
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.terraform.boot.models.enums.DeploymentScenario; | ||
|
||
/** | ||
* Data model for the terraform modify requests. | ||
*/ | ||
@Data | ||
public class TerraformModifyFromDirectoryRequest { | ||
@NotNull | ||
@Schema(description = "Flag to control if the deployment must only generate the terraform " | ||
+ "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 terraform-boot. 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 regular variables that must be used to execute the " | ||
+ "Terraform request.", additionalProperties = TRUE) | ||
Map<String, Object> variables; | ||
|
||
@Schema(description = "Key-value pairs of variables that must be injected as environment " | ||
+ "variables to terraform process.", additionalProperties = TRUE) | ||
Map<String, String> envVariables = new HashMap<>(); | ||
} |
24 changes: 24 additions & 0 deletions
24
...ipse/xpanse/terraform/boot/models/request/git/TerraformAsyncModifyFromGitRepoRequest.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.terraform.boot.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.terraform.boot.models.request.webhook.WebhookConfig; | ||
|
||
/** | ||
* Data model for terraform async modify requests using scripts from a GIT Repo. | ||
*/ | ||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class TerraformAsyncModifyFromGitRepoRequest extends TerraformModifyFromGitRepoRequest { | ||
|
||
@NotNull | ||
@Schema(description = "Configuration information of webhook.") | ||
private WebhookConfig webhookConfig; | ||
} |
Oops, something went wrong.