Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.348.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and pauly4it committed Jul 29, 2024
1 parent b09682d commit a907dd8
Show file tree
Hide file tree
Showing 258 changed files with 858 additions and 469 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ id: 53fed213-041c-4563-833e-e9ee4d3bb0ba
management:
docChecksum: a7e410ce4ea3cf8ce114a7de9a81e855
docVersion: 2.0.0
speakeasyVersion: 1.346.0
generationVersion: 2.379.3
releaseVersion: 0.3.0
configChecksum: 8c6b794ba56ade403cb8a76a8237f651
speakeasyVersion: 1.348.0
generationVersion: 2.380.1
releaseVersion: 0.3.1
configChecksum: 34da216f9b612b156c0a8012d98fa121
repoURL: https://github.com/StyraInc/terraform-provider-styra.git
features:
terraform:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.4
core: 3.24.3
core: 3.24.5
globalSecurity: 2.81.6
globalServerURLs: 2.82.1
ignores: 2.81.1
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
terraform:
version: 0.3.0
version: 0.3.1
additionalDataSources: []
additionalDependencies: {}
additionalResources: []
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.346.0
speakeasyVersion: 1.348.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:b95fc028b2180a8841267eb30cead2fcf1c09e7d1892603ffb21bbacc6ecf23a
sourceBlobDigest: sha256:c73f05d895ed9fe008e85e2e6fb8f53a6afb46735431c3c8b9306117611e1a83
sourceRevisionDigest: sha256:19828ac4b51c628039423b2c8c8b5e47f7dda027517a1673a83ce6b34e0ac0ad
sourceBlobDigest: sha256:2e0e2168800256a8ace8bd2f1575da9ab65a87995ecfb1cbcf8005447d4bb0f9
tags:
- latest
- main
targets:
styra-terraform:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:b95fc028b2180a8841267eb30cead2fcf1c09e7d1892603ffb21bbacc6ecf23a
sourceBlobDigest: sha256:c73f05d895ed9fe008e85e2e6fb8f53a6afb46735431c3c8b9306117611e1a83
sourceRevisionDigest: sha256:19828ac4b51c628039423b2c8c8b5e47f7dda027517a1673a83ce6b34e0ac0ad
sourceBlobDigest: sha256:2e0e2168800256a8ace8bd2f1575da9ab65a87995ecfb1cbcf8005447d4bb0f9
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,14 @@ Based on:
### Generated
- [terraform v0.3.0] .
### Releases
- [Terraform v0.3.0] https://registry.terraform.io/providers/StyraInc/styra/0.3.0 - .
- [Terraform v0.3.0] https://registry.terraform.io/providers/StyraInc/styra/0.3.0 - .

## 2024-07-29 16:52:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.348.0 (2.380.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.3.1] .
### Releases
- [Terraform v0.3.1] https://registry.terraform.io/providers/StyraInc/styra/0.3.1 - .
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ terraform {
required_providers {
styra = {
source = "StyraInc/styra"
version = "0.3.0"
version = "0.3.1"
}
}
}
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 {
styra = {
source = "StyraInc/styra"
version = "0.3.0"
version = "0.3.1"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/boolplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package boolplanmodifier

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package float64planmodifier

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/int64planmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package int64planmodifier

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/listplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package listplanmodifier

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/mapplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package mapplanmodifier

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/numberplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package numberplanmodifier

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/objectplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package objectplanmodifier

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/setplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package setplanmodifier

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/stringplanmodifier/suppress_diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package stringplanmodifier

Expand Down
2 changes: 1 addition & 1 deletion internal/planmodifiers/utils/state_check.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package utils

Expand Down
6 changes: 4 additions & 2 deletions internal/provider/library_data_source.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package provider

Expand Down Expand Up @@ -368,7 +368,9 @@ func (r *LibraryDataSource) Read(ctx context.Context, req datasource.ReadRequest
return
}

id := data.ID.ValueString()
var id string
id = data.ID.ValueString()

dependantBundles := new(string)
if !data.DependantBundles.IsUnknown() && !data.DependantBundles.IsNull() {
*dependantBundles = data.DependantBundles.ValueString()
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/library_data_source_sdk.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package provider

Expand Down
38 changes: 25 additions & 13 deletions internal/provider/library_resource.go

Large diffs are not rendered by default.

42 changes: 31 additions & 11 deletions internal/provider/library_resource_sdk.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package provider

Expand All @@ -10,26 +10,44 @@ import (
)

func (r *LibraryResourceModel) ToSharedLibrariesV1CreateLibraryRequest() *shared.LibrariesV1CreateLibraryRequest {
description := r.Description.ValueString()
readOnly := r.ReadOnly.ValueBool()
var description string
description = r.Description.ValueString()

var readOnly bool
readOnly = r.ReadOnly.ValueBool()

var sourceControl *shared.LibrariesV1SourceControlConfig
if r.SourceControl != nil {
var libraryOrigin *shared.GitV1GitRepoConfig
if r.SourceControl.LibraryOrigin != nil {
commit := r.SourceControl.LibraryOrigin.Commit.ValueString()
credentials := r.SourceControl.LibraryOrigin.Credentials.ValueString()
path := r.SourceControl.LibraryOrigin.Path.ValueString()
reference := r.SourceControl.LibraryOrigin.Reference.ValueString()
var commit string
commit = r.SourceControl.LibraryOrigin.Commit.ValueString()

var credentials string
credentials = r.SourceControl.LibraryOrigin.Credentials.ValueString()

var path string
path = r.SourceControl.LibraryOrigin.Path.ValueString()

var reference string
reference = r.SourceControl.LibraryOrigin.Reference.ValueString()

var sshCredentials *shared.GitV1SSHCredentials
if r.SourceControl.LibraryOrigin.SSHCredentials != nil {
passphrase := r.SourceControl.LibraryOrigin.SSHCredentials.Passphrase.ValueString()
privateKey := r.SourceControl.LibraryOrigin.SSHCredentials.PrivateKey.ValueString()
var passphrase string
passphrase = r.SourceControl.LibraryOrigin.SSHCredentials.Passphrase.ValueString()

var privateKey string
privateKey = r.SourceControl.LibraryOrigin.SSHCredentials.PrivateKey.ValueString()

sshCredentials = &shared.GitV1SSHCredentials{
Passphrase: passphrase,
PrivateKey: privateKey,
}
}
url := r.SourceControl.LibraryOrigin.URL.ValueString()
var url string
url = r.SourceControl.LibraryOrigin.URL.ValueString()

libraryOrigin = &shared.GitV1GitRepoConfig{
Commit: commit,
Credentials: credentials,
Expand All @@ -39,7 +57,9 @@ func (r *LibraryResourceModel) ToSharedLibrariesV1CreateLibraryRequest() *shared
URL: url,
}
}
useWorkspaceSettings := r.SourceControl.UseWorkspaceSettings.ValueBool()
var useWorkspaceSettings bool
useWorkspaceSettings = r.SourceControl.UseWorkspaceSettings.ValueBool()

sourceControl = &shared.LibrariesV1SourceControlConfig{
LibraryOrigin: libraryOrigin,
UseWorkspaceSettings: useWorkspaceSettings,
Expand Down
6 changes: 4 additions & 2 deletions internal/provider/policy_data_source.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package provider

Expand Down Expand Up @@ -102,7 +102,9 @@ func (r *PolicyDataSource) Read(ctx context.Context, req datasource.ReadRequest,
return
}

policy := data.Policy.ValueString()
var policy string
policy = data.Policy.ValueString()

dependencies := new(bool)
if !data.Dependencies.IsUnknown() && !data.Dependencies.IsNull() {
*dependencies = data.Dependencies.ValueBool()
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/policy_data_source_sdk.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package provider

Expand Down
42 changes: 27 additions & 15 deletions internal/provider/policy_resource.go

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions internal/provider/policy_resource_sdk.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package provider

Expand All @@ -11,7 +11,9 @@ import (
func (r *PolicyResourceModel) ToSharedPoliciesV1PoliciesPutRequest() *shared.PoliciesV1PoliciesPutRequest {
modules := make(map[string]string)
for modulesKey, modulesValue := range r.Modules {
modulesInst := modulesValue.ValueString()
var modulesInst string
modulesInst = modulesValue.ValueString()

modules[modulesKey] = modulesInst
}
var signature *shared.CryptoSignature
Expand Down
11 changes: 9 additions & 2 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package provider

Expand All @@ -12,6 +12,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/types"
"net/http"
"os"
)

var _ provider.Provider = &StyraProvider{}
Expand Down Expand Up @@ -72,7 +73,13 @@ func (p *StyraProvider) Configure(ctx context.Context, req provider.ConfigureReq
ServerURL = "https://TENANT.styra.com/"
}

bearer := data.Bearer.ValueString()
var bearer string
if len(os.Getenv("STYRA_TOKEN")) > 0 {
bearer = os.Getenv("STYRA_TOKEN")
} else {
bearer = data.Bearer.ValueString()
}

security := shared.Security{
Bearer: bearer,
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/diags.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

// Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect
// that has been modified to support speakeasy's terraform generator.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/generic_attr_value.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/helpers.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/interfaces.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/into.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/map.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/number.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/options.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/outof.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/pointer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/primitive.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/slice.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/reflect/struct.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package reflect

Expand Down
Loading

0 comments on commit a907dd8

Please sign in to comment.