Skip to content

Commit

Permalink
Regenerate with _manifest on saveFile payload
Browse files Browse the repository at this point in the history
  • Loading branch information
blomqma committed Sep 23, 2024
1 parent bf720e2 commit 4ebfc15
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 11c8545a-deb6-44f9-ba56-e71722af6a51
management:
docChecksum: 1c118012fa9137969bd948e2375be0b5
docChecksum: 1c56c7ca8bb88e9f3f0a7643ee3863a4
docVersion: 0.2.0
speakeasyVersion: 1.396.7
generationVersion: 2.415.6
releaseVersion: 0.4.1
configChecksum: 82a10c0503f9db25ac41c8bdc280746e
releaseVersion: 0.4.2
configChecksum: 122c582ae34924cbbbf36d5bcaf65981
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-file.git
repoSubDirectory: .
published: true
Expand Down Expand Up @@ -158,7 +158,7 @@ examples:
query:
activity_id: "01F130Q52Q6MWSNS8N2AVXV4JN"
requestBody:
application/json: {"_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "relations": [], "source_url": "https://some-api-url.com/download?file_id=123", "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}
application/json: {"_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_manifest": ["123e4567-e89b-12d3-a456-426614174000"], "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "relations": [], "source_url": "https://some-api-url.com/download?file_id=123", "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}}
responses:
"201":
application/json: {"_acl": {"delete": ["org:456"], "edit": ["org:456"], "view": ["org:456"]}, "_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8", "_manifest": ["123e4567-e89b-12d3-a456-426614174000"], "_org": "123", "_owners": [], "_purpose": ["8d396871-95a0-4c9d-bb4d-9eda9c35776c", "da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"], "_tags": ["tag1", "tag2"], "_title": "document.pdf", "custom_download_url": "https://some-api-url.com/download?file_id=123", "filename": "document.pdf", "mime_type": "application/pdf", "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf", "readable_size": "1.2 MB", "s3ref": {"bucket": "epilot-prod-user-content", "key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"}, "size_bytes": 1234, "source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf", "versions": []}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ terraform {
required_providers {
epilot-file = {
source = "epilot-dev/epilot-file"
version = "0.4.1"
version = "0.4.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ terraform {
required_providers {
epilot-file = {
source = "epilot-dev/epilot-file"
version = "0.4.1"
version = "0.4.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
epilot-file = {
source = "epilot-dev/epilot-file"
version = "0.4.1"
version = "0.4.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ go:
outputModelSuffix: output
packageName: openapi
terraform:
version: 0.4.1
version: 0.4.2
additionalDataSources: []
additionalDependencies: {}
additionalResources: []
Expand Down
19 changes: 14 additions & 5 deletions internal/sdk/models/shared/savecustomfilepayload.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ func (e *SaveCustomFilePayloadAccessControl) UnmarshalJSON(data []byte) error {
}

type SaveCustomFilePayload struct {
AdditionalProperties any `additionalProperties:"true" json:"-"`
ID *string `json:"_id,omitempty"`
Purpose []string `json:"_purpose,omitempty"`
Tags []string `json:"_tags,omitempty"`
AccessControl *SaveCustomFilePayloadAccessControl `default:"private" json:"access_control"`
AdditionalProperties any `additionalProperties:"true" json:"-"`
ID *string `json:"_id,omitempty"`
// Manifest ID used to create/update the entity
Manifest []string `json:"_manifest,omitempty"`
Purpose []string `json:"_purpose,omitempty"`
Tags []string `json:"_tags,omitempty"`
AccessControl *SaveCustomFilePayloadAccessControl `default:"private" json:"access_control"`
// Custom external download url used for the file
CustomDownloadURL *string `json:"custom_download_url,omitempty"`
// Deprecated, use _id instead
Expand Down Expand Up @@ -79,6 +81,13 @@ func (o *SaveCustomFilePayload) GetID() *string {
return o.ID
}

func (o *SaveCustomFilePayload) GetManifest() []string {
if o == nil {
return nil
}
return o.Manifest
}

func (o *SaveCustomFilePayload) GetPurpose() []string {
if o == nil {
return nil
Expand Down
19 changes: 14 additions & 5 deletions internal/sdk/models/shared/savefilefromsourceurlpayload.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ func (e *SaveFileFromSourceURLPayloadAccessControl) UnmarshalJSON(data []byte) e
}

type SaveFileFromSourceURLPayload struct {
AdditionalProperties any `additionalProperties:"true" json:"-"`
ID *string `json:"_id,omitempty"`
Purpose []string `json:"_purpose,omitempty"`
Tags []string `json:"_tags,omitempty"`
AccessControl *SaveFileFromSourceURLPayloadAccessControl `default:"private" json:"access_control"`
AdditionalProperties any `additionalProperties:"true" json:"-"`
ID *string `json:"_id,omitempty"`
// Manifest ID used to create/update the entity
Manifest []string `json:"_manifest,omitempty"`
Purpose []string `json:"_purpose,omitempty"`
Tags []string `json:"_tags,omitempty"`
AccessControl *SaveFileFromSourceURLPayloadAccessControl `default:"private" json:"access_control"`
// Custom external download url used for the file
CustomDownloadURL *string `json:"custom_download_url,omitempty"`
// Deprecated, use _id instead
Expand Down Expand Up @@ -81,6 +83,13 @@ func (o *SaveFileFromSourceURLPayload) GetID() *string {
return o.ID
}

func (o *SaveFileFromSourceURLPayload) GetManifest() []string {
if o == nil {
return nil
}
return o.Manifest
}

func (o *SaveFileFromSourceURLPayload) GetPurpose() []string {
if o == nil {
return nil
Expand Down
19 changes: 14 additions & 5 deletions internal/sdk/models/shared/saves3filepayload.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ func (e *SaveS3FilePayloadAccessControl) UnmarshalJSON(data []byte) error {
}

type SaveS3FilePayload struct {
AdditionalProperties any `additionalProperties:"true" json:"-"`
ID *string `json:"_id,omitempty"`
Purpose []string `json:"_purpose,omitempty"`
Tags []string `json:"_tags,omitempty"`
AccessControl *SaveS3FilePayloadAccessControl `default:"private" json:"access_control"`
AdditionalProperties any `additionalProperties:"true" json:"-"`
ID *string `json:"_id,omitempty"`
// Manifest ID used to create/update the entity
Manifest []string `json:"_manifest,omitempty"`
Purpose []string `json:"_purpose,omitempty"`
Tags []string `json:"_tags,omitempty"`
AccessControl *SaveS3FilePayloadAccessControl `default:"private" json:"access_control"`
// Custom external download url used for the file
CustomDownloadURL *string `json:"custom_download_url,omitempty"`
// Deprecated, use _id instead
Expand Down Expand Up @@ -80,6 +82,13 @@ func (o *SaveS3FilePayload) GetID() *string {
return o.ID
}

func (o *SaveS3FilePayload) GetManifest() []string {
if o == nil {
return nil
}
return o.Manifest
}

func (o *SaveS3FilePayload) GetPurpose() []string {
if o == nil {
return nil
Expand Down

0 comments on commit 4ebfc15

Please sign in to comment.