Skip to content

Commit 331024d

Browse files
author
Nishu Goel
committed
Remove readonly fields comment and source
1 parent 3ca37f7 commit 331024d

File tree

21 files changed

+88
-178
lines changed

21 files changed

+88
-178
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 1300c9c0-985d-410d-a64e-d96ec26c685a
33
management:
4-
docChecksum: af8859f948e8ad3e3121452147bed01a
4+
docChecksum: e520af2e5169f6933f36583b9a9e7b1e
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.366.0
7-
generationVersion: 2.396.0
8-
releaseVersion: 0.9.1
9-
configChecksum: d5fd30c9ad7bbf01bd7332f241133b7d
6+
speakeasyVersion: 1.390.0
7+
generationVersion: 2.409.0
8+
releaseVersion: 0.9.2
9+
configChecksum: 687ba08e4cf951fa7135cafb1142474d
1010
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-schema.git
1111
repoSubDirectory: .
1212
published: true
@@ -15,7 +15,7 @@ features:
1515
additionalDependencies: 0.1.0
1616
additionalProperties: 0.1.2
1717
constsAndDefaults: 0.1.4
18-
core: 3.24.6
18+
core: 3.24.7
1919
deprecations: 2.81.1
2020
envVarSecurityUsage: 0.1.0
2121
globalSecurity: 2.81.8
@@ -298,7 +298,6 @@ generatedFiles:
298298
- internal/provider/types/info_tooltip_title.go
299299
- internal/provider/types/entity_schema_group.go
300300
- internal/provider/types/entity_schema_layout_settings.go
301-
- internal/provider/types/source.go
302301
- internal/provider/types/entity_default_create.go
303302
- internal/provider/types/entity_view_disabled.go
304303
- internal/provider/types/redirect_entity_view.go

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: true
1414
terraform:
15-
version: 0.9.1
15+
version: 0.9.2
1616
additionalDataSources: []
1717
additionalDependencies: {}
1818
additionalResources: []

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,23 @@ TF_REATTACH_PROVIDERS=... terraform apply
4949

5050
<!-- End SDK <no value> -->
5151

52+
<!-- Start Summary [summary] -->
53+
## Summary
54+
55+
Entity API: Flexible data layer for epilot Entities.
56+
57+
Use this API configure and access your business objects like Contacts, Opportunities and Products.
58+
59+
[Feature Documentation](https://docs.epilot.io/docs/entities/flexible-entities)
60+
<!-- End Summary [summary] -->
61+
62+
<!-- Start Table of Contents [toc] -->
63+
## Table of Contents
64+
65+
* [SDK Installation](#sdk-installation)
66+
* [SDK Example Usage](#sdk-example-usage)
67+
<!-- End Table of Contents [toc] -->
68+
5269
<!-- Start SDK Installation [installation] -->
5370
## SDK Installation
5471

@@ -59,7 +76,7 @@ terraform {
5976
required_providers {
6077
epilot-schema = {
6178
source = "epilot/epilot-schema"
62-
version = "0.9.1"
79+
version = "0.9.2"
6380
}
6481
}
6582
}
@@ -91,12 +108,6 @@ TF_REATTACH_PROVIDERS=... terraform apply
91108
```
92109
<!-- End SDK Example Usage [usage] -->
93110

94-
<!-- Start Available Resources and Operations [operations] -->
95-
## Available Resources and Operations
96-
97-
98-
<!-- End Available Resources and Operations [operations] -->
99-
100111
<!-- Placeholder for Future Speakeasy SDK Sections -->
101112

102113
Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods.

docs/data-sources/schema.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ data "epilot-schema_schema" "my_schema" {
3131
- `attributes` (Attributes List) An ordered list of attributes the entity contains (see [below for nested schema](#nestedatt--attributes))
3232
- `blueprint` (String) Reference to blueprint
3333
- `capabilities` (Attributes List) (see [below for nested schema](#nestedatt--capabilities))
34-
- `comment` (String)
3534
- `created_at` (String)
3635
- `dialog_config` (Map of String)
3736
- `draft` (Boolean)
@@ -48,7 +47,6 @@ data "epilot-schema_schema" "my_schema" {
4847
- `plural` (String)
4948
- `published` (Boolean)
5049
- `purpose` (List of String)
51-
- `source` (Attributes) (see [below for nested schema](#nestedatt--source))
5250
- `title_template` (String) Template for rendering the title field. Uses handlebars
5351
- `ui_config` (Attributes) (see [below for nested schema](#nestedatt--ui_config))
5452
- `updated_at` (String)
@@ -4361,15 +4359,6 @@ Read-Only:
43614359
- `grid_template_columns` (String) Defines the grid column template for the mounting node of the attribute.
43624360

43634361

4364-
<a id="nestedatt--source"></a>
4365-
### Nested Schema for `source`
4366-
4367-
Read-Only:
4368-
4369-
- `id` (String)
4370-
- `type` (String)
4371-
4372-
43734362
<a id="nestedatt--ui_config"></a>
43744363
### Nested Schema for `ui_config`
43754364

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ terraform {
2323
required_providers {
2424
epilot-schema = {
2525
source = "epilot/epilot-schema"
26-
version = "0.9.1"
26+
version = "0.9.2"
2727
}
2828
}
2929
}

docs/resources/schema.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,8 @@ resource "epilot-schema_schema" "my_schema" {
188188

189189
### Read-Only
190190

191-
- `comment` (String)
192191
- `created_at` (String)
193192
- `id` (String) Generated uuid for schema
194-
- `source` (Attributes) (see [below for nested schema](#nestedatt--source))
195193
- `updated_at` (String)
196194

197195
<a id="nestedatt--attributes"></a>
@@ -4803,17 +4801,6 @@ Optional:
48034801
- `route` (String)
48044802
- `view_type` (String) must be one of ["redirect"]
48054803

4806-
4807-
4808-
4809-
<a id="nestedatt--source"></a>
4810-
### Nested Schema for `source`
4811-
4812-
Read-Only:
4813-
4814-
- `id` (String)
4815-
- `type` (String)
4816-
48174804
## Import
48184805

48194806
Import is supported using the following syntax:

examples/provider/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
epilot-schema = {
44
source = "epilot/epilot-schema"
5-
version = "0.9.1"
5+
version = "0.9.2"
66
}
77
}
88
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
resource "epilot-schema_schema_group" "my_schemagroup" {
2+
expanded = false
3+
feature_flag = "FF_MY_FEATURE_FLAG"
4+
id = "e18a532b-ae79-4d86-a6a5-e5dbfb579d14"
5+
label = "Contact Details"
6+
order = 4
7+
render_condition = "_is_composite_price = \"false\""
8+
schema = "contact"
9+
}

internal/provider/schema_data_source.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ type SchemaDataSourceModel struct {
3232
Attributes []tfTypes.Attribute `tfsdk:"attributes"`
3333
Blueprint types.String `tfsdk:"blueprint"`
3434
Capabilities []tfTypes.EntityCapability `tfsdk:"capabilities"`
35-
Comment types.String `tfsdk:"comment"`
3635
CreatedAt types.String `tfsdk:"created_at"`
3736
DialogConfig map[string]types.String `tfsdk:"dialog_config"`
3837
Draft types.Bool `tfsdk:"draft"`
@@ -48,7 +47,6 @@ type SchemaDataSourceModel struct {
4847
Published types.Bool `tfsdk:"published"`
4948
Purpose []types.String `tfsdk:"purpose"`
5049
Slug types.String `tfsdk:"slug"`
51-
Source *tfTypes.Source `tfsdk:"source"`
5250
TitleTemplate types.String `tfsdk:"title_template"`
5351
UIConfig *tfTypes.EntitySchemaUIConfig `tfsdk:"ui_config"`
5452
UpdatedAt types.String `tfsdk:"updated_at"`
@@ -9449,9 +9447,6 @@ func (r *SchemaDataSource) Schema(ctx context.Context, req datasource.SchemaRequ
94499447
},
94509448
},
94519449
},
9452-
"comment": schema.StringAttribute{
9453-
Computed: true,
9454-
},
94559450
"created_at": schema.StringAttribute{
94569451
Computed: true,
94579452
},
@@ -9601,17 +9596,6 @@ func (r *SchemaDataSource) Schema(ctx context.Context, req datasource.SchemaRequ
96019596
Required: true,
96029597
Description: `Entity Type`,
96039598
},
9604-
"source": schema.SingleNestedAttribute{
9605-
Computed: true,
9606-
Attributes: map[string]schema.Attribute{
9607-
"id": schema.StringAttribute{
9608-
Computed: true,
9609-
},
9610-
"type": schema.StringAttribute{
9611-
Computed: true,
9612-
},
9613-
},
9614-
},
96159599
"title_template": schema.StringAttribute{
96169600
Computed: true,
96179601
Description: `Template for rendering the title field. Uses handlebars`,

internal/provider/schema_data_source_sdk.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4342,7 +4342,6 @@ func (r *SchemaDataSourceModel) RefreshFromSharedEntitySchemaItem(resp *shared.E
43424342
r.Capabilities[capabilitiesCount].UIHooks = capabilities1.UIHooks
43434343
}
43444344
}
4345-
r.Comment = types.StringPointerValue(resp.Comment)
43464345
r.CreatedAt = types.StringPointerValue(resp.CreatedAt)
43474346
if len(resp.DialogConfig) > 0 {
43484347
r.DialogConfig = make(map[string]types.String)
@@ -4445,13 +4444,6 @@ func (r *SchemaDataSourceModel) RefreshFromSharedEntitySchemaItem(resp *shared.E
44454444
r.Plural = types.StringValue(resp.Plural)
44464445
r.Published = types.BoolPointerValue(resp.Published)
44474446
r.Slug = types.StringValue(resp.Slug)
4448-
if resp.Source == nil {
4449-
r.Source = nil
4450-
} else {
4451-
r.Source = &tfTypes.Source{}
4452-
r.Source.ID = types.StringPointerValue(resp.Source.ID)
4453-
r.Source.Type = types.StringPointerValue(resp.Source.Type)
4454-
}
44554447
r.TitleTemplate = types.StringPointerValue(resp.TitleTemplate)
44564448
if resp.UIConfig == nil {
44574449
r.UIConfig = nil

0 commit comments

Comments
 (0)