Skip to content

Commit 9edafb2

Browse files
authored
feat(logs): update logs service from v1beta to v1 (#1217)
relates to STACKITTPR-506
1 parent 33830cc commit 9edafb2

8 files changed

Lines changed: 12 additions & 42 deletions

File tree

docs/data-sources/logs_access_token.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
page_title: "stackit_logs_access_token Data Source - stackit"
44
subcategory: ""
55
description: |-
6-
Logs access token data source schema.
7-
~> This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
6+
Logs access token data source schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on datasource level.
87
---
98

109
# stackit_logs_access_token (Data Source)
1110

12-
Logs access token data source schema.
13-
14-
~> This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
11+
Logs access token data source schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on datasource level.
1512

1613
## Example Usage
1714

docs/data-sources/logs_instance.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
page_title: "stackit_logs_instance Data Source - stackit"
44
subcategory: ""
55
description: |-
6-
Logs instance data source schema.
7-
~> This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
6+
Logs instance data source schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on datasource level.
87
---
98

109
# stackit_logs_instance (Data Source)
1110

12-
Logs instance data source schema.
13-
14-
~> This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
11+
Logs instance data source schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on datasource level.
1512

1613
## Example Usage
1714

docs/resources/logs_access_token.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
page_title: "stackit_logs_access_token Resource - stackit"
44
subcategory: ""
55
description: |-
6-
Logs access token resource schema.
7-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
6+
Logs access token resource schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on resource level.
87
---
98

109
# stackit_logs_access_token (Resource)
1110

12-
Logs access token resource schema.
13-
14-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
11+
Logs access token resource schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on resource level.
1512

1613
## Example Usage
1714

docs/resources/logs_instance.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
page_title: "stackit_logs_instance Resource - stackit"
44
subcategory: ""
55
description: |-
6-
Logs instance resource schema.
7-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
6+
Logs instance resource schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on resource level.
87
---
98

109
# stackit_logs_instance (Resource)
1110

12-
Logs instance resource schema.
13-
14-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
11+
Logs instance resource schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on resource level.
1512

1613
## Example Usage
1714

stackit/internal/services/logs/accesstoken/datasource.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"github.com/stackitcloud/stackit-sdk-go/services/logs"
1717
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
1818
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
19-
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
2019
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/logs/utils"
2120
tfutils "github.com/stackitcloud/terraform-provider-stackit/stackit/internal/utils"
2221
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
@@ -72,8 +71,7 @@ func (d *logsAccessTokenDataSource) Configure(ctx context.Context, req datasourc
7271

7372
func (d *logsAccessTokenDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
7473
resp.Schema = schema.Schema{
75-
MarkdownDescription: features.AddBetaDescription("Logs access token data source schema.", core.Datasource),
76-
Description: fmt.Sprintf("Logs access token data source schema. %s", core.DatasourceRegionFallbackDocstring),
74+
Description: fmt.Sprintf("Logs access token data source schema. %s", core.DatasourceRegionFallbackDocstring),
7775
Attributes: map[string]schema.Attribute{
7876
"id": schema.StringAttribute{
7977
Description: schemaDescriptions["id"],

stackit/internal/services/logs/accesstoken/resource.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"github.com/stackitcloud/stackit-sdk-go/services/logs"
2626
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
2727
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
28-
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
2928
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/logs/utils"
3029
tfutils "github.com/stackitcloud/terraform-provider-stackit/stackit/internal/utils"
3130
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
@@ -91,11 +90,6 @@ func (r *logsAccessTokenResource) Configure(ctx context.Context, req resource.Co
9190
return
9291
}
9392

94-
features.CheckBetaResourcesEnabled(ctx, &r.providerData, &resp.Diagnostics, "stackit_logs_access_token", "resource")
95-
if resp.Diagnostics.HasError() {
96-
return
97-
}
98-
9993
r.client = utils.ConfigureClient(ctx, &r.providerData, &resp.Diagnostics)
10094
if resp.Diagnostics.HasError() {
10195
return
@@ -136,8 +130,7 @@ func (r *logsAccessTokenResource) Metadata(_ context.Context, req resource.Metad
136130

137131
func (r *logsAccessTokenResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
138132
resp.Schema = schema.Schema{
139-
MarkdownDescription: features.AddBetaDescription("Logs access token resource schema.", core.Resource),
140-
Description: fmt.Sprintf("Logs access token resource schema. %s", core.ResourceRegionFallbackDocstring),
133+
Description: fmt.Sprintf("Logs access token resource schema. %s", core.ResourceRegionFallbackDocstring),
141134
Attributes: map[string]schema.Attribute{
142135
"id": schema.StringAttribute{
143136
Description: schemaDescriptions["id"],

stackit/internal/services/logs/instance/datasource.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"github.com/stackitcloud/stackit-sdk-go/services/logs"
1717
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
1818
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
19-
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
2019
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/logs/utils"
2120
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
2221
)
@@ -55,8 +54,7 @@ func (d *logsInstanceDataSource) Configure(ctx context.Context, req datasource.C
5554

5655
func (d *logsInstanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
5756
resp.Schema = schema.Schema{
58-
MarkdownDescription: features.AddBetaDescription("Logs instance data source schema.", core.Datasource),
59-
Description: fmt.Sprintf("Logs instance resource schema. %s", core.DatasourceRegionFallbackDocstring),
57+
Description: fmt.Sprintf("Logs instance data source schema. %s", core.DatasourceRegionFallbackDocstring),
6058
Attributes: map[string]schema.Attribute{
6159
"id": schema.StringAttribute{
6260
Description: schemaDescriptions["id"],

stackit/internal/services/logs/instance/resource.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"github.com/stackitcloud/stackit-sdk-go/services/logs/wait"
2323
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
2424
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
25-
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
2625
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/logs/utils"
2726
tfutils "github.com/stackitcloud/terraform-provider-stackit/stackit/internal/utils"
2827
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
@@ -89,11 +88,6 @@ func (r *logsInstanceResource) Configure(ctx context.Context, req resource.Confi
8988
return
9089
}
9190

92-
features.CheckBetaResourcesEnabled(ctx, &providerData, &resp.Diagnostics, "stackit_logs_instance", "resource")
93-
if resp.Diagnostics.HasError() {
94-
return
95-
}
96-
9791
apiClient := utils.ConfigureClient(ctx, &providerData, &resp.Diagnostics)
9892
if resp.Diagnostics.HasError() {
9993
return
@@ -136,8 +130,7 @@ func (r *logsInstanceResource) Metadata(_ context.Context, req resource.Metadata
136130

137131
func (r *logsInstanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
138132
resp.Schema = schema.Schema{
139-
MarkdownDescription: features.AddBetaDescription("Logs instance resource schema.", core.Resource),
140-
Description: fmt.Sprintf("Logs instance resource schema. %s", core.ResourceRegionFallbackDocstring),
133+
Description: fmt.Sprintf("Logs instance resource schema. %s", core.ResourceRegionFallbackDocstring),
141134
Attributes: map[string]schema.Attribute{
142135
"id": schema.StringAttribute{
143136
Description: schemaDescriptions["id"],

0 commit comments

Comments
 (0)