Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.295.2 (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored May 24, 2024
1 parent 17aa0e4 commit c2152a0
Show file tree
Hide file tree
Showing 30 changed files with 138 additions and 36 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: b5c8bf75-06e1-47c8-b9ae-ce49ba56069d
management:
docChecksum: cb6fd48c2698b0e0aa8480a4557ef627
docChecksum: e3cb6b93e32e12628dfa380bb884b5bb
docVersion: "1.0"
speakeasyVersion: 1.293.1
generationVersion: 2.333.3
releaseVersion: 0.20.2
configChecksum: a30ab4c868de410dea951302019d4c9c
speakeasyVersion: 1.295.2
generationVersion: 2.335.5
releaseVersion: 0.20.3
configChecksum: d97df565a07f4d28a63e894c68a76bc0
repoURL: https://github.com/opalsecurity/terraform-provider-opal.git
repoSubDirectory: .
published: true
Expand Down
11 changes: 6 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
speakeasyVersion: 1.293.1
speakeasyVersion: 1.295.2
sources:
opal-terraform-provider:
sourceNamespace: opal-terraform-provider
sourceRevisionDigest: sha256:37bb149eb8cc00ea3c9fc2da5cdde6d0975acb9ed1d85d21e14874d8df418edb
sourceBlobDigest: sha256:1c9e8cd246ac865b1367c6ba21f19c8a17a6c5ce9fc0a044b8ae527b15857f49
sourceRevisionDigest: sha256:4607aac498872df8ebaeafe6a96cd40a30fbb6fa4ca216953db3f9eec7309867
sourceBlobDigest: sha256:1d6d2919b0f91c1722050a4f6ea1cc45f356a51fec3ac8b6167fa963d59e6080
tags:
- latest
- main
targets:
terraform:
source: opal-terraform-provider
sourceNamespace: opal-terraform-provider
sourceRevisionDigest: sha256:37bb149eb8cc00ea3c9fc2da5cdde6d0975acb9ed1d85d21e14874d8df418edb
sourceBlobDigest: sha256:1c9e8cd246ac865b1367c6ba21f19c8a17a6c5ce9fc0a044b8ae527b15857f49
sourceRevisionDigest: sha256:4607aac498872df8ebaeafe6a96cd40a30fbb6fa4ca216953db3f9eec7309867
sourceBlobDigest: sha256:1d6d2919b0f91c1722050a4f6ea1cc45f356a51fec3ac8b6167fa963d59e6080
outLocation: .
workflow:
workflowVersion: 1.0.0
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ terraform {
required_providers {
opal = {
source = "opalsecurity/opal"
<<<<<<< HEAD
version = "0.20.2"
=======
version = "0.21.0"
>>>>>>> main
version = "0.20.3"
}
}
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,14 @@ Based on:
### Generated
- [terraform v0.21.0] .
### Releases
- [Terraform v0.21.0] https://registry.terraform.io/providers/opalsecurity/opal/0.21.0 - .
- [Terraform v0.21.0] https://registry.terraform.io/providers/opalsecurity/opal/0.21.0 - .

## 2024-05-24 00:12:44
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.295.2 (2.335.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.20.3] .
### Releases
- [Terraform v0.20.3] https://registry.terraform.io/providers/opalsecurity/opal/0.20.3 - .
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 {
opal = {
source = "opalsecurity/opal"
version = "0.20.2"
version = "0.20.3"
}
}
}
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 {
opal = {
source = "opalsecurity/opal"
version = "0.20.2"
version = "0.20.3"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
baseServerURL: ""
flattenGlobalSecurity: true
terraform:
version: 0.20.2
version: 0.20.3
additionalDataSources: []
additionalDependencies: {}
additionalResources: []
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/opalsecurity/terraform-provider-opal

go 1.21

toolchain go1.21.1
toolchain go1.21.10

require (
github.com/cenkalti/backoff/v4 v4.2.0
Expand Down
2 changes: 2 additions & 0 deletions internal/sdk/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func (s *Apps) Get(ctx context.Context, request operations.GetAppsRequest, opts
}

return res, nil

}

// GetID - Returns an `App` object.
Expand Down Expand Up @@ -286,4 +287,5 @@ func (s *Apps) GetID(ctx context.Context, request operations.GetAppIDRequest, op
}

return res, nil

}
4 changes: 4 additions & 0 deletions internal/sdk/configurationtemplates.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ func (s *ConfigurationTemplates) Create(ctx context.Context, request shared.Crea
}

return res, nil

}

// Delete - Deletes a configuration template.
Expand Down Expand Up @@ -277,6 +278,7 @@ func (s *ConfigurationTemplates) Delete(ctx context.Context, request operations.
}

return res, nil

}

// Get - Returns a list of `ConfigurationTemplate` objects.
Expand Down Expand Up @@ -405,6 +407,7 @@ func (s *ConfigurationTemplates) Get(ctx context.Context, opts ...operations.Opt
}

return res, nil

}

// Update a configuration template.
Expand Down Expand Up @@ -539,4 +542,5 @@ func (s *ConfigurationTemplates) Update(ctx context.Context, request shared.Upda
}

return res, nil

}
1 change: 1 addition & 0 deletions internal/sdk/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,5 @@ func (s *Events) Get(ctx context.Context, request operations.GetEventsRequest, o
}

return res, nil

}
5 changes: 5 additions & 0 deletions internal/sdk/groupbindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func (s *GroupBindings) CreateGroupBinding(ctx context.Context, request shared.C
}

return res, nil

}

// DeleteGroupBinding - Deletes a group binding.
Expand Down Expand Up @@ -276,6 +277,7 @@ func (s *GroupBindings) DeleteGroupBinding(ctx context.Context, request operatio
}

return res, nil

}

// GetGroupBinding - Returns a `GroupBinding` object.
Expand Down Expand Up @@ -404,6 +406,7 @@ func (s *GroupBindings) GetGroupBinding(ctx context.Context, request operations.
}

return res, nil

}

// GetGroupBindings - Returns a list of `GroupBinding` objects.
Expand Down Expand Up @@ -536,6 +539,7 @@ func (s *GroupBindings) GetGroupBindings(ctx context.Context, request operations
}

return res, nil

}

// UpdateGroupBindings - Bulk updates a list of group bindings.
Expand Down Expand Up @@ -659,4 +663,5 @@ func (s *GroupBindings) UpdateGroupBindings(ctx context.Context, request shared.
}

return res, nil

}
20 changes: 20 additions & 0 deletions internal/sdk/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ func (s *Groups) Create(ctx context.Context, request shared.CreateGroupInfo, opt
}

return res, nil

}

// CreateResources - Adds a resource to a group.
Expand Down Expand Up @@ -298,6 +299,7 @@ func (s *Groups) CreateResources(ctx context.Context, request operations.CreateG
}

return res, nil

}

// CreateUser - Adds a user to this group.
Expand Down Expand Up @@ -432,6 +434,7 @@ func (s *Groups) CreateUser(ctx context.Context, request operations.CreateGroupU
}

return res, nil

}

// Delete - Deletes a group.
Expand Down Expand Up @@ -549,6 +552,7 @@ func (s *Groups) Delete(ctx context.Context, request operations.DeleteGroupReque
}

return res, nil

}

// DeleteUser - Removes a user's access from this group.
Expand Down Expand Up @@ -666,6 +670,7 @@ func (s *Groups) DeleteUser(ctx context.Context, request operations.DeleteGroupU
}

return res, nil

}

// GetGroup - Returns a `Group` object.
Expand Down Expand Up @@ -794,6 +799,7 @@ func (s *Groups) GetGroup(ctx context.Context, request operations.GetGroupReques
}

return res, nil

}

// GetMessageChannels - Gets the list of audit and reviewer message channels attached to a group.
Expand Down Expand Up @@ -922,6 +928,7 @@ func (s *Groups) GetMessageChannels(ctx context.Context, request operations.GetG
}

return res, nil

}

// GetOnCallSchedule - Gets the list of on call schedules attached to a group.
Expand Down Expand Up @@ -1050,6 +1057,7 @@ func (s *Groups) GetOnCallSchedule(ctx context.Context, request operations.GetGr
}

return res, nil

}

// GetResources - Gets the list of resources that the group gives access to.
Expand Down Expand Up @@ -1178,6 +1186,7 @@ func (s *Groups) GetResources(ctx context.Context, request operations.GetGroupRe
}

return res, nil

}

// GetReviewersStages - Gets the list of reviewer stages for a group.
Expand Down Expand Up @@ -1306,6 +1315,7 @@ func (s *Groups) GetReviewersStages(ctx context.Context, request operations.GetG
}

return res, nil

}

// GetTags - Returns all tags applied to the group.
Expand Down Expand Up @@ -1434,6 +1444,7 @@ func (s *Groups) GetTags(ctx context.Context, request operations.GetGroupTagsReq
}

return res, nil

}

// GetUsers - Gets the list of users for this group.
Expand Down Expand Up @@ -1562,6 +1573,7 @@ func (s *Groups) GetUsers(ctx context.Context, request operations.GetGroupUsersR
}

return res, nil

}

// GetVisibility - Gets the visibility of this group.
Expand Down Expand Up @@ -1690,6 +1702,7 @@ func (s *Groups) GetVisibility(ctx context.Context, request operations.GetGroupV
}

return res, nil

}

// List - Returns a list of groups for your organization.
Expand Down Expand Up @@ -1822,6 +1835,7 @@ func (s *Groups) List(ctx context.Context, request operations.GetGroupsRequest,
}

return res, nil

}

// Update - Bulk updates a list of groups.
Expand Down Expand Up @@ -1956,6 +1970,7 @@ func (s *Groups) Update(ctx context.Context, request shared.UpdateGroupInfoList,
}

return res, nil

}

// UpdateMessageChannels - Sets the list of audit message channels attached to a group.
Expand Down Expand Up @@ -2079,6 +2094,7 @@ func (s *Groups) UpdateMessageChannels(ctx context.Context, request operations.U
}

return res, nil

}

// UpdateOnCallSchedule - Sets the list of on call schedules attached to a group.
Expand Down Expand Up @@ -2202,6 +2218,7 @@ func (s *Groups) UpdateOnCallSchedule(ctx context.Context, request operations.Up
}

return res, nil

}

// UpdateResources - Sets the list of resources that the group gives access to.
Expand Down Expand Up @@ -2325,6 +2342,7 @@ func (s *Groups) UpdateResources(ctx context.Context, request operations.UpdateG
}

return res, nil

}

// UpdateReviewersStages - Sets the list of reviewer stages for a group.
Expand Down Expand Up @@ -2459,6 +2477,7 @@ func (s *Groups) UpdateReviewersStages(ctx context.Context, request operations.U
}

return res, nil

}

// UpdateVisibility - Sets the visibility of this group.
Expand Down Expand Up @@ -2582,4 +2601,5 @@ func (s *Groups) UpdateVisibility(ctx context.Context, request operations.Update
}

return res, nil

}
3 changes: 1 addition & 2 deletions internal/sdk/internal/utils/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ func PopulateHeaders(_ context.Context, req *http.Request, headers interface{},
}

func populateHeaders(headers interface{}, globals interface{}, reqHeaders http.Header, skipFields []string) []string {
headerParamsStructType := reflect.TypeOf(headers)
headerParamsValType := reflect.ValueOf(headers)
headerParamsStructType, headerParamsValType := dereferencePointers(reflect.TypeOf(headers), reflect.ValueOf(headers))

globalsAlreadyPopulated := []string{}

Expand Down
3 changes: 1 addition & 2 deletions internal/sdk/internal/utils/pathparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ func GenerateURL(_ context.Context, serverURL, path string, pathParams interface
}

func populateParsedParameters(pathParams interface{}, globals interface{}, parsedParameters map[string]string, skipFields []string) ([]string, error) {
pathParamsStructType := reflect.TypeOf(pathParams)
pathParamsValType := reflect.ValueOf(pathParams)
pathParamsStructType, pathParamsValType := dereferencePointers(reflect.TypeOf(pathParams), reflect.ValueOf(pathParams))

globalsAlreadyPopulated := []string{}

Expand Down
3 changes: 1 addition & 2 deletions internal/sdk/internal/utils/queryparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ func PopulateQueryParams(_ context.Context, req *http.Request, queryParams inter
}

func populateQueryParams(queryParams interface{}, globals interface{}, values url.Values, skipFields []string) ([]string, error) {
queryParamsStructType := reflect.TypeOf(queryParams)
queryParamsValType := reflect.ValueOf(queryParams)
queryParamsStructType, queryParamsValType := dereferencePointers(reflect.TypeOf(queryParams), reflect.ValueOf(queryParams))

globalsAlreadyPopulated := []string{}

Expand Down
4 changes: 4 additions & 0 deletions internal/sdk/internal/utils/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ func handleBasicAuthScheme(headers map[string]string, scheme interface{}) {
fieldType := schemeStructType.Field(i)
valType := schemeValType.Field(i)

if fieldType.Type.Kind() == reflect.Ptr {
valType = valType.Elem()
}

secTag := parseSecurityTag(fieldType)
if secTag == nil || secTag.Name == "" {
continue
Expand Down
Loading

0 comments on commit c2152a0

Please sign in to comment.