This commit is contained in:
asteam
2025-01-21 12:16:49 +03:00
parent 76ea459b3d
commit 60e23338ad
751 changed files with 17877 additions and 1908 deletions

View File

@@ -5,11 +5,11 @@ import (
"fmt"
"github.com/hashicorp/terraform-plugin-log/tflog"
decort "repository.basistech.ru/BASIS/decort-golang-sdk"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/stack"
"repository.basistech.ru/BASIS/terraform-provider-dynamix/internal/client"
)
func StackDataSourceCheckPresence(ctx context.Context, stackID uint64, c *decort.DecortClient) (*stack.InfoStack, error) {
func StackDataSourceCheckPresence(ctx context.Context, stackID uint64, c *client.Client) (*stack.InfoStack, error) {
tflog.Info(ctx, fmt.Sprintf("StackDataSourceCheckPresence: Get info about stack with ID - %v", stackID))
record, err := c.CloudBroker().Stack().Get(ctx, stack.GetRequest{StackId: stackID})

View File

@@ -5,12 +5,12 @@ import (
"fmt"
"github.com/hashicorp/terraform-plugin-log/tflog"
decort "repository.basistech.ru/BASIS/decort-golang-sdk"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/stack"
"repository.basistech.ru/BASIS/terraform-provider-dynamix/internal/client"
"repository.basistech.ru/BASIS/terraform-provider-dynamix/internal/service/cloudbroker/stack/models"
)
func StackListDataSourceCheckPresence(ctx context.Context, plan *models.DataSourceStackListModel, c *decort.DecortClient) (*stack.ListStacks, error) {
func StackListDataSourceCheckPresence(ctx context.Context, plan *models.DataSourceStackListModel, c *client.Client) (*stack.ListStacks, error) {
tflog.Info(ctx, "StackListDataSourceCheckPresence: Get info about list stacks")
req := stack.ListRequest{}