diff --git a/docs/data-sources/metal_organization.md b/docs/data-sources/metal_organization.md index 3040ecd57..8bc93e2f1 100644 --- a/docs/data-sources/metal_organization.md +++ b/docs/data-sources/metal_organization.md @@ -36,7 +36,7 @@ In addition to all arguments above, the following attributes are exported: * `description` - Description string. * `website` - Website link. * `twitter` - Twitter handle. -* `logo` - Logo URL. +* `logo` - (Deprecated) Logo URL. * `address` - Address information * `address` - Postal address. * `city` - City name. diff --git a/docs/resources/metal_organization.md b/docs/resources/metal_organization.md index ebf4adcd4..2b86b3a82 100644 --- a/docs/resources/metal_organization.md +++ b/docs/resources/metal_organization.md @@ -25,7 +25,7 @@ The following arguments are supported: * `description` - (Optional) Description string. * `website` - (Optional) Website link. * `twitter` - (Optional) Twitter handle. -* `logo` - (Optional) Logo URL. +* `logo` - (Deprecated) Logo URL. ### Address diff --git a/go.mod b/go.mod index 1109bd2a4..213279c73 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/equinix/terraform-provider-equinix go 1.22 require ( - github.com/equinix/equinix-sdk-go v0.42.0 + github.com/equinix/equinix-sdk-go v0.43.0 github.com/equinix/ne-go v1.17.0 github.com/equinix/oauth2-go v1.0.0 github.com/equinix/rest-go v1.3.0 diff --git a/go.sum b/go.sum index 6f925f160..9fa2d1edb 100644 --- a/go.sum +++ b/go.sum @@ -39,8 +39,8 @@ github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= -github.com/equinix/equinix-sdk-go v0.42.0 h1:jjgdFs0rx6nOwsu/dLh6ImopD0M1Rn7QIn9ZSMWzWUc= -github.com/equinix/equinix-sdk-go v0.42.0/go.mod h1:hEb3XLaedz7xhl/dpPIS6eOIiXNPeqNiVoyDrT6paIg= +github.com/equinix/equinix-sdk-go v0.43.0 h1:7i5x6aM1ZDVcIuAr1+yPNSDqsMp1Jye+kVQraGsOBBM= +github.com/equinix/equinix-sdk-go v0.43.0/go.mod h1:hEb3XLaedz7xhl/dpPIS6eOIiXNPeqNiVoyDrT6paIg= github.com/equinix/ne-go v1.17.0 h1:+wZq0GNognpiTHTsBXtATOCphTFvnowF046NzQXj0n0= github.com/equinix/ne-go v1.17.0/go.mod h1:eHkkxM4nbTB7DZ9X9zGnwfYnxIJWIsU3aHA+FAoZ1EI= github.com/equinix/oauth2-go v1.0.0 h1:fHtAPGq82PdgtK5vEThs8Vwz6f7D/8SX4tE3NJu+KcU= diff --git a/internal/resources/metal/organization/datasource_schema.go b/internal/resources/metal/organization/datasource_schema.go index 09a2b6d85..4c4dbac7a 100644 --- a/internal/resources/metal/organization/datasource_schema.go +++ b/internal/resources/metal/organization/datasource_schema.go @@ -46,8 +46,9 @@ func dataSourceSchema(ctx context.Context) schema.Schema { Computed: true, }, "logo": schema.StringAttribute{ - Description: "Logo URL", - Computed: true, + DeprecationMessage: "Empty string is the only valid value. Support for this field has been removed from the API", + Description: "**Deprecated** Logo URL", + Computed: true, }, "project_ids": schema.ListAttribute{ diff --git a/internal/resources/metal/organization/models.go b/internal/resources/metal/organization/models.go index cfb5f2738..9a5e4a1a3 100644 --- a/internal/resources/metal/organization/models.go +++ b/internal/resources/metal/organization/models.go @@ -36,7 +36,7 @@ func (m *ResourceModel) parse(ctx context.Context, org *packngo.Organization) di m.Description = types.StringValue(org.Description) m.Website = types.StringValue(org.Website) m.Twitter = types.StringValue(org.Twitter) - m.Logo = types.StringValue(org.Logo) + m.Logo = types.StringValue("") m.Created = types.StringValue(org.Created) m.Updated = types.StringValue(org.Updated) @@ -66,7 +66,7 @@ func (m *DataSourceModel) parse(ctx context.Context, org *packngo.Organization) m.Description = types.StringValue(org.Description) m.Website = types.StringValue(org.Website) m.Twitter = types.StringValue(org.Twitter) - m.Logo = types.StringValue(org.Logo) + m.Logo = types.StringValue("") m.Address = parseAddress(ctx, org.Address) projects := make([]string, len(org.Projects)) diff --git a/internal/resources/metal/organization/resource_schema.go b/internal/resources/metal/organization/resource_schema.go index eb03c4af2..dabab1277 100644 --- a/internal/resources/metal/organization/resource_schema.go +++ b/internal/resources/metal/organization/resource_schema.go @@ -40,10 +40,11 @@ func GetResourceSchema(ctx context.Context) schema.Schema { Default: stringdefault.StaticString(""), }, "logo": schema.StringAttribute{ - Description: "Logo URL", - Optional: true, - Computed: true, - Default: stringdefault.StaticString(""), + DeprecationMessage: "The default (empty string) is the only valid value. Support for this field has been removed from the API", + Description: "**Deprecated** Logo URL", + Optional: true, + Computed: true, + Default: stringdefault.StaticString(""), }, "created": schema.StringAttribute{ Computed: true, diff --git a/templates/data-sources/metal_organization.md.tmpl b/templates/data-sources/metal_organization.md.tmpl index 6d2153f9a..83d963624 100644 --- a/templates/data-sources/metal_organization.md.tmpl +++ b/templates/data-sources/metal_organization.md.tmpl @@ -31,7 +31,7 @@ In addition to all arguments above, the following attributes are exported: * `description` - Description string. * `website` - Website link. * `twitter` - Twitter handle. -* `logo` - Logo URL. +* `logo` - (Deprecated) Logo URL. * `address` - Address information * `address` - Postal address. * `city` - City name. diff --git a/templates/resources/metal_organization.md.tmpl b/templates/resources/metal_organization.md.tmpl index 420fe9f60..1cc19c5f3 100644 --- a/templates/resources/metal_organization.md.tmpl +++ b/templates/resources/metal_organization.md.tmpl @@ -23,7 +23,7 @@ The following arguments are supported: * `description` - (Optional) Description string. * `website` - (Optional) Website link. * `twitter` - (Optional) Twitter handle. -* `logo` - (Optional) Logo URL. +* `logo` - (Deprecated) Logo URL. ### Address