1.0.1
This commit is contained in:
@@ -77,7 +77,7 @@ func (d *dataSourceAccountListDeleted) Schema(ctx context.Context, _ datasource.
|
||||
}
|
||||
|
||||
func (d *dataSourceAccountListDeleted) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
|
||||
resp.TypeName = req.ProviderTypeName + "_account_deleted_list"
|
||||
resp.TypeName = req.ProviderTypeName + "_account_list_deleted"
|
||||
}
|
||||
|
||||
// Configure adds the provider configured client to the data source.
|
||||
|
||||
@@ -41,7 +41,7 @@ type resourceAccount struct {
|
||||
func (r *resourceAccount) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) {
|
||||
resp.Diagnostics.AddError(
|
||||
"Only users with admin privileges are able to create accounts. Contact your platform administrator or import existing account.",
|
||||
"Use 'terraform import basis_account.<NAME> <ID>' command to import existing account configuration",
|
||||
"Use 'terraform import dynamix_account.<NAME> <ID>' command to import existing account configuration",
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ func AccountDataSourceCheckPresence(ctx context.Context, accountId uint64, c *de
|
||||
|
||||
recordAccount, err := c.CloudAPI().Account().Get(ctx, account.GetRequest{AccountID: accountId})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot get info about extnet with error: %w", err)
|
||||
return nil, fmt.Errorf("cannot get info about account with error: %w", err)
|
||||
}
|
||||
|
||||
tflog.Info(ctx, "AccountDataSourceCheckPresence: response from CloudAPI().Account().Get",
|
||||
|
||||
@@ -24,7 +24,7 @@ func LBListDataSourceCheckPresence(ctx context.Context, plan *models.DataSourceL
|
||||
listLBReq.AccountID = uint64(plan.AccountID.ValueInt64())
|
||||
}
|
||||
if !plan.RgID.IsNull() {
|
||||
listLBReq.RGID = uint64(plan.ByID.ValueInt64())
|
||||
listLBReq.RGID = uint64(plan.RgID.ValueInt64())
|
||||
}
|
||||
if !plan.TechStatus.IsNull() {
|
||||
listLBReq.TechStatus = plan.TechStatus.ValueString()
|
||||
|
||||
@@ -113,7 +113,7 @@ func MakeSchemaResourceVINS() map[string]schema.Attribute {
|
||||
Required: true,
|
||||
Description: "type of the reservation",
|
||||
Validators: []validator.String{
|
||||
stringvalidator.OneOfCaseInsensitive("DHCP", "VIP", "EXCLUDE"), // case is ignored
|
||||
stringvalidator.OneOfCaseInsensitive("DHCP", "VIP", "EXCLUDED"), // case is ignored
|
||||
},
|
||||
},
|
||||
"ip_addr": schema.StringAttribute{
|
||||
|
||||
@@ -17,7 +17,7 @@ func VINSExtNetListDataSourceCheckPresence(ctx context.Context, vinsId uint64, c
|
||||
|
||||
extnetList, err := c.CloudAPI().VINS().ExtNetList(ctx, vins.ExtNetListRequest{VINSID: vinsId})
|
||||
if err != nil {
|
||||
diags.AddError(fmt.Sprintf("Cannot get info about ext net list for vins with ID %v", vinsId), err.Error())
|
||||
diags.AddError(fmt.Sprintf("Cannot get info about extnet list for vins with ID %v", vinsId), err.Error())
|
||||
return nil, diags
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ func VINSListDeletedDataSourceCheckPresence(ctx context.Context, plan *models.Da
|
||||
tflog.Info(ctx, "VINSListDeletedDataSourceCheckPresence: before call CloudAPI().VINS().ListDeleted", map[string]any{"req": listReq})
|
||||
list, err := c.CloudAPI().VINS().ListDeleted(ctx, listReq)
|
||||
if err != nil {
|
||||
diags.AddError("Cannot get info about vins list", err.Error())
|
||||
diags.AddError("Cannot get info about vins deleted list", err.Error())
|
||||
return nil, diags
|
||||
}
|
||||
tflog.Info(ctx, "VINSListDeletedDataSourceCheckPresence: successfull response from CloudAPI().VINS().ListDeleted")
|
||||
|
||||
Reference in New Issue
Block a user