diff --git a/cmd/cone/form_fields.go b/cmd/cone/form_fields.go index 97ffd45d..8613ee63 100644 --- a/cmd/cone/form_fields.go +++ b/cmd/cone/form_fields.go @@ -81,7 +81,7 @@ func collectFormFields(ctx context.Context, v *viper.Viper, form *shared.FormInp } // collectFieldValue collects a single field value from the user based on field type. -func collectFieldValue(ctx context.Context, field shared.Field, displayName, description string) (any, error) { +func collectFieldValue(ctx context.Context, field shared.FieldInput, displayName, description string) (any, error) { // Check for default value first if defaultValue := getFieldDefaultValue(field); defaultValue != nil { // Show default value and ask for confirmation @@ -235,7 +235,7 @@ func collectStringSliceField(ctx context.Context, field *shared.StringSliceField } // getFieldDefaultValue extracts the default value from a field based on its type. -func getFieldDefaultValue(field shared.Field) any { +func getFieldDefaultValue(field shared.FieldInput) any { switch { case field.StringField != nil && field.StringField.DefaultValue != nil: return *field.StringField.DefaultValue @@ -385,7 +385,7 @@ func (v Int64FieldValidator) Prompt(isFirstRun bool) { } // isFieldRequired checks if a field is required based on its validation rules. -func isFieldRequired(field shared.Field) bool { +func isFieldRequired(field shared.FieldInput) bool { switch { case field.StringField != nil: rules := field.StringField.StringRules diff --git a/cmd/cone/get_user.go b/cmd/cone/get_user.go index 52c39db1..903d1915 100644 --- a/cmd/cone/get_user.go +++ b/cmd/cone/get_user.go @@ -63,9 +63,16 @@ func (r *User) WideHeader() []string { } func (r *User) rows() []string { + var statusStr string + if r.Status != nil { + statusStr = userStatusToString[*r.Status] + } else { + statusStr = "Unknown" + } + return []string{ client.StringFromPtr(r.Email), - userStatusToString[*r.Status], + statusStr, client.StringFromPtr(r.JobTitle), client.StringFromPtr(r.Department), client.StringFromPtr(r.EmploymentStatus), @@ -82,8 +89,9 @@ func (r *User) Rows() [][]string { return [][]string{r.rows()} } -var userStatusToString = map[shared.UserStatus]string{ - shared.UserStatusEnabled: "Enabled", - shared.UserStatusDisabled: "Disabled", - shared.UserStatusDeleted: "Deleted", +var userStatusToString = map[shared.UserSchemasStatus]string{ + shared.UserSchemasStatusUnknown: "Unknown", + shared.UserSchemasStatusEnabled: "Enabled", + shared.UserSchemasStatusDisabled: "Disabled", + shared.UserSchemasStatusDeleted: "Deleted", } diff --git a/go.mod b/go.mod index 77724db2..bd38f72e 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( require ( github.com/conductorone/baton-sdk v0.3.17 - github.com/conductorone/conductorone-sdk-go v1.26.0 + github.com/conductorone/conductorone-sdk-go v1.27.1 github.com/pterm/pterm v0.12.81 github.com/toqueteos/webbrowser v1.2.0 github.com/xhit/go-str2duration/v2 v2.1.0 @@ -26,7 +26,6 @@ require ( filippo.io/edwards25519 v1.1.0 // indirect github.com/containerd/console v1.0.5 // indirect github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect - github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731 // indirect github.com/go-jose/go-jose/v4 v4.1.1 // indirect github.com/go-viper/mapstructure/v2 v2.3.0 // indirect github.com/gookit/color v1.5.4 // indirect diff --git a/go.sum b/go.sum index 01f35694..0102ada0 100644 --- a/go.sum +++ b/go.sum @@ -30,8 +30,8 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/conductorone/baton-sdk v0.3.17 h1:aJNr4T2xr7rDa4P2nwKEHjJngI5JcNgfBZZ9aeeliHc= github.com/conductorone/baton-sdk v0.3.17/go.mod h1:lWZHgu025Rsgs5jvBrhilGti0zWF2+YfaFY/bWOS/g0= -github.com/conductorone/conductorone-sdk-go v1.26.0 h1:rttrr9oZTI3EijF9i/httTlQJVFEuPcDBCWYROim1M8= -github.com/conductorone/conductorone-sdk-go v1.26.0/go.mod h1:8rB6lh/HUjl0hode8Vhf4U9/bR+FyANEDffGG2JaLJY= +github.com/conductorone/conductorone-sdk-go v1.27.1 h1:qKiUR4uFDlNJmpNlJd4dDJsl7sFxfmaAO1p8xGDrTSg= +github.com/conductorone/conductorone-sdk-go v1.27.1/go.mod h1:XfnxsPIsLn6s01PD46kU9tEUUljTRik7aviJIwB7D0k= github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= github.com/containerd/console v1.0.5 h1:R0ymNeydRqH2DmakFNdmjR2k0t7UPuiOV/N/27/qqsc= github.com/containerd/console v1.0.5/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk= @@ -46,8 +46,6 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8= github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU= -github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731 h1:R/ZjJpjQKsZ6L/+Gf9WHbt31GG8NMVcpRqUE+1mMIyo= -github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/README.md b/vendor/github.com/conductorone/conductorone-sdk-go/README.md index 6c3f0f3d..cfbe1c91 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/README.md +++ b/vendor/github.com/conductorone/conductorone-sdk-go/README.md @@ -81,6 +81,21 @@ func main() { * [GetMonitor](docs/sdks/accessconflict/README.md#getmonitor) - Get Monitor * [UpdateMonitor](docs/sdks/accessconflict/README.md#updatemonitor) - Update Monitor +### [AccessReview](docs/sdks/accessreview/README.md) + +* [Create](docs/sdks/accessreview/README.md#create) - Create +* [Delete](docs/sdks/accessreview/README.md#delete) - Delete +* [Get](docs/sdks/accessreview/README.md#get) - Get +* [List](docs/sdks/accessreview/README.md#list) - List +* [Update](docs/sdks/accessreview/README.md#update) - Update + +### [AccessReviewTemplate](docs/sdks/accessreviewtemplate/README.md) + +* [Create](docs/sdks/accessreviewtemplate/README.md#create) - Create +* [Delete](docs/sdks/accessreviewtemplate/README.md#delete) - Delete +* [Get](docs/sdks/accessreviewtemplate/README.md#get) - Get +* [Update](docs/sdks/accessreviewtemplate/README.md#update) - Update + ### [AccountProvisionPolicyTest](docs/sdks/accountprovisionpolicytest/README.md) * [Test](docs/sdks/accountprovisionpolicytest/README.md#test) - Test @@ -100,7 +115,9 @@ func main() { ### [AppEntitlementOwners](docs/sdks/appentitlementowners/README.md) * [Add](docs/sdks/appentitlementowners/README.md#add) - Add +* [Delete](docs/sdks/appentitlementowners/README.md#delete) - Delete * [List](docs/sdks/appentitlementowners/README.md#list) - List +* [ListOwnerIDs](docs/sdks/appentitlementowners/README.md#listownerids) - List Owner I Ds * [Remove](docs/sdks/appentitlementowners/README.md#remove) - Remove * [Set](docs/sdks/appentitlementowners/README.md#set) - Set @@ -148,7 +165,9 @@ func main() { ### [AppOwners](docs/sdks/appowners/README.md) * [Add](docs/sdks/appowners/README.md#add) - Add +* [Delete](docs/sdks/appowners/README.md#delete) - Delete * [List](docs/sdks/appowners/README.md#list) - List +* [ListOwnerIDs](docs/sdks/appowners/README.md#listownerids) - List Owner I Ds * [Remove](docs/sdks/appowners/README.md#remove) - Remove * [Set](docs/sdks/appowners/README.md#set) - Set @@ -171,8 +190,11 @@ func main() { ### [AppResourceOwners](docs/sdks/appresourceowners/README.md) * [Add](docs/sdks/appresourceowners/README.md#add) - Add +* [Delete](docs/sdks/appresourceowners/README.md#delete) - Delete * [List](docs/sdks/appresourceowners/README.md#list) - List +* [ListOwnerIDs](docs/sdks/appresourceowners/README.md#listownerids) - List Owner I Ds * [Remove](docs/sdks/appresourceowners/README.md#remove) - Remove +* [Set](docs/sdks/appresourceowners/README.md#set) - Set ### [AppResourceSearch](docs/sdks/appresourcesearch/README.md) @@ -225,6 +247,8 @@ func main() { * [GetRiskLevelAttributeValue](docs/sdks/attributes/README.md#getrisklevelattributevalue) - Get Risk Level Attribute Value * [ListAttributeTypes](docs/sdks/attributes/README.md#listattributetypes) - List Attribute Types * [ListAttributeValues](docs/sdks/attributes/README.md#listattributevalues) - List Attribute Values +* [ListComplianceFrameworks](docs/sdks/attributes/README.md#listcomplianceframeworks) - List Compliance Frameworks +* [ListRiskLevels](docs/sdks/attributes/README.md#listrisklevels) - List Risk Levels ### [AttributeSearch](docs/sdks/attributesearch/README.md) @@ -265,14 +289,15 @@ func main() { * [Get](docs/sdks/awsexternalidsettings/README.md#get) - Get - ### [Connector](docs/sdks/connector/README.md) +* [ConfirmSyncValid](docs/sdks/connector/README.md#confirmsyncvalid) - Confirm Sync Valid * [Create](docs/sdks/connector/README.md#create) - Create * [CreateDelegated](docs/sdks/connector/README.md#createdelegated) - Create Delegated * [Delete](docs/sdks/connector/README.md#delete) - Delete * [ForceSync](docs/sdks/connector/README.md#forcesync) - Force Sync * [Get](docs/sdks/connector/README.md#get) - Get +* [GetConnectorSyncDownloadURL](docs/sdks/connector/README.md#getconnectorsyncdownloadurl) - Get Connector Sync Download Url * [GetCredentials](docs/sdks/connector/README.md#getcredentials) - Get Credentials * [List](docs/sdks/connector/README.md#list) - List * [PauseSync](docs/sdks/connector/README.md#pausesync) - Pause Sync @@ -280,15 +305,21 @@ func main() { * [RevokeCredential](docs/sdks/connector/README.md#revokecredential) - Revoke Credential * [RotateCredential](docs/sdks/connector/README.md#rotatecredential) - Rotate Credential * [Update](docs/sdks/connector/README.md#update) - Update +* [UpdateConnectorSchedule](docs/sdks/connector/README.md#updateconnectorschedule) - Update Connector Schedule * [UpdateDelegated](docs/sdks/connector/README.md#updatedelegated) - Update Delegated * [ValidateHTTPConnectorConfig](docs/sdks/connector/README.md#validatehttpconnectorconfig) - Validate Http Connector Config +### [ConnectorCatalog](docs/sdks/connectorcatalog/README.md) + +* [ConfigurationSchema](docs/sdks/connectorcatalog/README.md#configurationschema) - Configuration Schema + ### [Directory](docs/sdks/directory/README.md) * [Create](docs/sdks/directory/README.md#create) - Create * [Delete](docs/sdks/directory/README.md#delete) - Delete * [Get](docs/sdks/directory/README.md#get) - Get * [List](docs/sdks/directory/README.md#list) - List +* [Update](docs/sdks/directory/README.md#update) - Update ### [Export](docs/sdks/export/README.md) @@ -305,18 +336,22 @@ func main() { ### [Functions](docs/sdks/functions/README.md) -* [Commit](docs/sdks/functions/README.md#commit) - Commit * [CreateFunction](docs/sdks/functions/README.md#createfunction) - Create Function * [CreateTag](docs/sdks/functions/README.md#createtag) - Create Tag * [DeleteFunction](docs/sdks/functions/README.md#deletefunction) - Delete Function -* [GetCommit](docs/sdks/functions/README.md#getcommit) - Get Commit * [GetFunction](docs/sdks/functions/README.md#getfunction) - Get Function +* [GetFunctionSecretEncryptionKey](docs/sdks/functions/README.md#getfunctionsecretencryptionkey) - Get Function Secret Encryption Key * [Invoke](docs/sdks/functions/README.md#invoke) - Invoke * [ListCommits](docs/sdks/functions/README.md#listcommits) - List Commits * [ListFunctions](docs/sdks/functions/README.md#listfunctions) - List Functions * [ListTags](docs/sdks/functions/README.md#listtags) - List Tags * [UpdateFunction](docs/sdks/functions/README.md#updatefunction) - Update Function +### [FunctionsInvocation](docs/sdks/functionsinvocation/README.md) + +* [Get](docs/sdks/functionsinvocation/README.md#get) - Get +* [List](docs/sdks/functionsinvocation/README.md#list) - List + ### [FunctionsSearch](docs/sdks/functionssearch/README.md) * [Search](docs/sdks/functionssearch/README.md#search) - Search @@ -360,11 +395,14 @@ func main() { * [AddAppEntitlements](docs/sdks/requestcatalogmanagement/README.md#addappentitlements) - Add App Entitlements * [Create](docs/sdks/requestcatalogmanagement/README.md#create) - Create * [CreateBundleAutomation](docs/sdks/requestcatalogmanagement/README.md#createbundleautomation) - Create Bundle Automation +* [CreateRequestableEntry](docs/sdks/requestcatalogmanagement/README.md#createrequestableentry) - Create Requestable Entry * [Delete](docs/sdks/requestcatalogmanagement/README.md#delete) - Delete * [DeleteBundleAutomation](docs/sdks/requestcatalogmanagement/README.md#deletebundleautomation) - Delete Bundle Automation +* [DeleteRequestableEntry](docs/sdks/requestcatalogmanagement/README.md#deleterequestableentry) - Delete Requestable Entry * [ForceRunBundleAutomation](docs/sdks/requestcatalogmanagement/README.md#forcerunbundleautomation) - Force Run Bundle Automation * [Get](docs/sdks/requestcatalogmanagement/README.md#get) - Get * [GetBundleAutomation](docs/sdks/requestcatalogmanagement/README.md#getbundleautomation) - Get Bundle Automation +* [GetRequestableEntry](docs/sdks/requestcatalogmanagement/README.md#getrequestableentry) - Get Requestable Entry * [List](docs/sdks/requestcatalogmanagement/README.md#list) - List * [ListAllEntitlementIdsPerApp](docs/sdks/requestcatalogmanagement/README.md#listallentitlementidsperapp) - List All Entitlement Ids Per App * [ListEntitlementsForAccess](docs/sdks/requestcatalogmanagement/README.md#listentitlementsforaccess) - List Entitlements For Access @@ -380,6 +418,16 @@ func main() { * [SearchEntitlements](docs/sdks/requestcatalogsearch/README.md#searchentitlements) - Search Entitlements +### [RequestSchema](docs/sdks/requestschema/README.md) + +* [Create](docs/sdks/requestschema/README.md#create) - Create +* [CreateEntitlementBinding](docs/sdks/requestschema/README.md#createentitlementbinding) - Create Entitlement Binding +* [Delete](docs/sdks/requestschema/README.md#delete) - Delete +* [FindBindingForAppEntitlement](docs/sdks/requestschema/README.md#findbindingforappentitlement) - Find Binding For App Entitlement +* [Get](docs/sdks/requestschema/README.md#get) - Get +* [RemoveEntitlementBinding](docs/sdks/requestschema/README.md#removeentitlementbinding) - Remove Entitlement Binding +* [Update](docs/sdks/requestschema/README.md#update) - Update + ### [Roles](docs/sdks/roles/README.md) * [Get](docs/sdks/roles/README.md#get) - Get @@ -446,12 +494,21 @@ func main() { ### [User](docs/sdks/user/README.md) * [Get](docs/sdks/user/README.md#get) - Get +* [GetUserProfileTypes](docs/sdks/user/README.md#getuserprofiletypes) - Get User Profile Types * [List](docs/sdks/user/README.md#list) - List +* [SetExpiringUserDelegationBindingByAdmin](docs/sdks/user/README.md#setexpiringuserdelegationbindingbyadmin) - Set Expiring User Delegation Binding By Admin ### [UserSearch](docs/sdks/usersearch/README.md) * [Search](docs/sdks/usersearch/README.md#search) - Search +### [Vault](docs/sdks/vault/README.md) + +* [Create](docs/sdks/vault/README.md#create) - Create +* [Delete](docs/sdks/vault/README.md#delete) - Delete +* [Get](docs/sdks/vault/README.md#get) - Get +* [Update](docs/sdks/vault/README.md#update) - Update + ### [Webhooks](docs/sdks/webhooks/README.md) * [Create](docs/sdks/webhooks/README.md#create) - Create @@ -651,7 +708,7 @@ func main() { }), ) - res, err := s.AccessConflict.CreateMonitor(ctx, nil, operations.WithRetries( + res, err := s.AccessReview.Create(ctx, nil, operations.WithRetries( retry.Config{ Strategy: "backoff", Backoff: &retry.BackoffStrategy{ @@ -665,7 +722,7 @@ func main() { if err != nil { log.Fatal(err) } - if res.ConflictMonitor != nil { + if res.AccessReviewServiceCreateResponse != nil { // handle response } } @@ -705,11 +762,11 @@ func main() { }), ) - res, err := s.AccessConflict.CreateMonitor(ctx, nil) + res, err := s.AccessReview.Create(ctx, nil) if err != nil { log.Fatal(err) } - if res.ConflictMonitor != nil { + if res.AccessReviewServiceCreateResponse != nil { // handle response } } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/RELEASES.md b/vendor/github.com/conductorone/conductorone-sdk-go/RELEASES.md index 79143d2c..27568f6f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/RELEASES.md +++ b/vendor/github.com/conductorone/conductorone-sdk-go/RELEASES.md @@ -68,4 +68,24 @@ Based on: ### Generated - [go v1.24.0] . ### Releases -- [Go v1.24.0] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.24.0 - . \ No newline at end of file +- [Go v1.24.0] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.24.0 - . + +## 2026-01-09 00:31:14 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.683.0 (2.792.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v1.26.0] . +### Releases +- [Go v1.26.0] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.26.0 - . + +## 2026-01-13 01:26:39 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.685.0 (2.794.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v1.26.1] . +### Releases +- [Go v1.26.1] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.26.1 - . \ No newline at end of file diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/accessconflict.go b/vendor/github.com/conductorone/conductorone-sdk-go/accessconflict.go index bb2a1ed7..e0010947 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/accessconflict.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/accessconflict.go @@ -63,7 +63,7 @@ func (s *AccessConflict) CreateMonitor(ctx context.Context, request *shared.Conf BaseURL: baseURL, Context: ctx, OperationID: "c1.api.accessconflict.v1.AccessConflictService.CreateMonitor", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *AccessConflict) DeleteMonitor(ctx context.Context, request operations.C BaseURL: baseURL, Context: ctx, OperationID: "c1.api.accessconflict.v1.AccessConflictService.DeleteMonitor", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConflictMonitorDeleteRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *AccessConflict) GetMonitor(ctx context.Context, request operations.C1AP BaseURL: baseURL, Context: ctx, OperationID: "c1.api.accessconflict.v1.AccessConflictService.GetMonitor", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -692,7 +692,7 @@ func (s *AccessConflict) UpdateMonitor(ctx context.Context, request operations.C BaseURL: baseURL, Context: ctx, OperationID: "c1.api.accessconflict.v1.AccessConflictService.UpdateMonitor", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConflictMonitorUpdateRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/accessreview.go b/vendor/github.com/conductorone/conductorone-sdk-go/accessreview.go new file mode 100644 index 00000000..2cbf086b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/accessreview.go @@ -0,0 +1,1082 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package conductoronesdkgo + +import ( + "bytes" + "context" + "fmt" + "github.com/conductorone/conductorone-sdk-go/internal/config" + "github.com/conductorone/conductorone-sdk-go/internal/hooks" + "github.com/conductorone/conductorone-sdk-go/pkg/models/operations" + "github.com/conductorone/conductorone-sdk-go/pkg/models/sdkerrors" + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "github.com/conductorone/conductorone-sdk-go/pkg/retry" + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "net/http" + "net/url" +) + +type AccessReview struct { + rootSDK *ConductoroneAPI + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newAccessReview(rootSDK *ConductoroneAPI, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *AccessReview { + return &AccessReview{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// Create +// Invokes the c1.api.accessreview.v1.AccessReviewService.Create method. +func (s *AccessReview) Create(ctx context.Context, request *shared.AccessReviewServiceCreateRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewServiceCreateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/access_review") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewService.Create", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewServiceCreateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewServiceCreateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewServiceCreateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Delete +// Invokes the c1.api.accessreview.v1.AccessReviewService.Delete method. +func (s *AccessReview) Delete(ctx context.Context, request operations.C1APIAccessreviewV1AccessReviewServiceDeleteRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewServiceDeleteResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/access_review/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewService.Delete", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AccessReviewServiceDeleteRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewServiceDeleteResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewServiceDeleteResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewServiceDeleteResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Get +// Invokes the c1.api.accessreview.v1.AccessReviewService.Get method. +func (s *AccessReview) Get(ctx context.Context, request operations.C1APIAccessreviewV1AccessReviewServiceGetRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewServiceGetResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/access_review/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewService.Get", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewServiceGetResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewServiceGetResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewServiceGetResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// List +// Invokes the c1.api.accessreview.v1.AccessReviewService.List method. +func (s *AccessReview) List(ctx context.Context, request operations.C1APIAccessreviewV1AccessReviewServiceListRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewServiceListResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/access_reviews") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewService.List", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewServiceListResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewServiceListResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewServiceListResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Update +// Invokes the c1.api.accessreview.v1.AccessReviewService.Update method. +func (s *AccessReview) Update(ctx context.Context, request operations.C1APIAccessreviewV1AccessReviewServiceUpdateRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewServiceUpdateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/access_review/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewService.Update", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AccessReviewServiceUpdateRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewServiceUpdateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewServiceUpdateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewServiceUpdateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/accessreviewtemplate.go b/vendor/github.com/conductorone/conductorone-sdk-go/accessreviewtemplate.go new file mode 100644 index 00000000..22aa9ad8 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/accessreviewtemplate.go @@ -0,0 +1,873 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package conductoronesdkgo + +import ( + "bytes" + "context" + "fmt" + "github.com/conductorone/conductorone-sdk-go/internal/config" + "github.com/conductorone/conductorone-sdk-go/internal/hooks" + "github.com/conductorone/conductorone-sdk-go/pkg/models/operations" + "github.com/conductorone/conductorone-sdk-go/pkg/models/sdkerrors" + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "github.com/conductorone/conductorone-sdk-go/pkg/retry" + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "net/http" + "net/url" +) + +type AccessReviewTemplate struct { + rootSDK *ConductoroneAPI + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newAccessReviewTemplate(rootSDK *ConductoroneAPI, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *AccessReviewTemplate { + return &AccessReviewTemplate{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// Create +// Invokes the c1.api.accessreview.v1.AccessReviewTemplateService.Create method. +func (s *AccessReviewTemplate) Create(ctx context.Context, request *shared.AccessReviewTemplateServiceCreateRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewTemplateServiceCreateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/access_review_template") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewTemplateService.Create", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewTemplateServiceCreateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewTemplateServiceCreateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewTemplateServiceCreateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Delete +// Invokes the c1.api.accessreview.v1.AccessReviewTemplateService.Delete method. +func (s *AccessReviewTemplate) Delete(ctx context.Context, request operations.C1APIAccessreviewV1AccessReviewTemplateServiceDeleteRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewTemplateServiceDeleteResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/access_review_template/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewTemplateService.Delete", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AccessReviewTemplateServiceDeleteRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewTemplateServiceDeleteResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewTemplateServiceDeleteResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewTemplateServiceDeleteResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Get +// Invokes the c1.api.accessreview.v1.AccessReviewTemplateService.Get method. +func (s *AccessReviewTemplate) Get(ctx context.Context, request operations.C1APIAccessreviewV1AccessReviewTemplateServiceGetRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewTemplateServiceGetResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/access_review_template/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewTemplateService.Get", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewTemplateServiceGetResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewTemplateServiceGetResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewTemplateServiceGetResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Update +// Invokes the c1.api.accessreview.v1.AccessReviewTemplateService.Update method. +func (s *AccessReviewTemplate) Update(ctx context.Context, request operations.C1APIAccessreviewV1AccessReviewTemplateServiceUpdateRequest, opts ...operations.Option) (*operations.C1APIAccessreviewV1AccessReviewTemplateServiceUpdateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/access_review_template/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.accessreview.v1.AccessReviewTemplateService.Update", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AccessReviewTemplateServiceUpdateRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAccessreviewV1AccessReviewTemplateServiceUpdateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.AccessReviewTemplateServiceUpdateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.AccessReviewTemplateServiceUpdateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/accountprovisionpolicytest.go b/vendor/github.com/conductorone/conductorone-sdk-go/accountprovisionpolicytest.go index f8b60279..45ee0903 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/accountprovisionpolicytest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/accountprovisionpolicytest.go @@ -63,7 +63,7 @@ func (s *AccountProvisionPolicyTest) Test(ctx context.Context, request *shared.T BaseURL: baseURL, Context: ctx, OperationID: "c1.api.policy.v1.AccountProvisionPolicyTest.Test", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appaccessrequestsdefaults.go b/vendor/github.com/conductorone/conductorone-sdk-go/appaccessrequestsdefaults.go index 39bc085c..c52a2b10 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appaccessrequestsdefaults.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appaccessrequestsdefaults.go @@ -62,7 +62,7 @@ func (s *AppAccessRequestsDefaults) CancelAppAccessRequestsDefaults(ctx context. BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppAccessRequestsDefaultsService.CancelAppAccessRequestsDefaults", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CancelAccessRequestDefaultsRequest", "json", `request:"mediaType=application/json"`) @@ -274,7 +274,7 @@ func (s *AppAccessRequestsDefaults) CreateAppAccessRequestsDefaults(ctx context. BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppAccessRequestsDefaultsService.CreateAppAccessRequestsDefaults", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AppAccessRequestDefaults", "json", `request:"mediaType=application/json"`) @@ -486,7 +486,7 @@ func (s *AppAccessRequestsDefaults) GetAppAccessRequestsDefaults(ctx context.Con BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppAccessRequestsDefaultsService.GetAppAccessRequestsDefaults", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementmonitorbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementmonitorbinding.go index 062d6928..c93aaa6f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementmonitorbinding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementmonitorbinding.go @@ -63,7 +63,7 @@ func (s *AppEntitlementMonitorBinding) CreateAppEntitlementMonitorBinding(ctx co BaseURL: baseURL, Context: ctx, OperationID: "c1.api.accessconflict.v1.AppEntitlementMonitorBindingService.CreateAppEntitlementMonitorBinding", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *AppEntitlementMonitorBinding) DeleteAppEntitlementMonitorBinding(ctx co BaseURL: baseURL, Context: ctx, OperationID: "c1.api.accessconflict.v1.AppEntitlementMonitorBindingService.DeleteAppEntitlementMonitorBinding", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *AppEntitlementMonitorBinding) GetAppEntitlementMonitorBinding(ctx conte BaseURL: baseURL, Context: ctx, OperationID: "c1.api.accessconflict.v1.AppEntitlementMonitorBindingService.GetAppEntitlementMonitorBinding", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementowners.go b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementowners.go index 0c298001..e020deb5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementowners.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementowners.go @@ -62,7 +62,7 @@ func (s *AppEntitlementOwners) Add(ctx context.Context, request operations.C1API BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementOwners.Add", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AddAppEntitlementOwnerRequest", "json", `request:"mediaType=application/json"`) @@ -242,6 +242,218 @@ func (s *AppEntitlementOwners) Add(ctx context.Context, request operations.C1API } +// Delete +// Delete deletes the owners from a given app entitlement. +func (s *AppEntitlementOwners) Delete(ctx context.Context, request operations.C1APIAppV1AppEntitlementOwnersDeleteRequest, opts ...operations.Option) (*operations.C1APIAppV1AppEntitlementOwnersDeleteResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/entitlements/{entitlement_id}/owners", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.AppEntitlementOwners.Delete", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAppEntitlementOwnersRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1AppEntitlementOwnersDeleteResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.DeleteAppEntitlementOwnersResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DeleteAppEntitlementOwnersResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // List // List owners for a given app entitlement. func (s *AppEntitlementOwners) List(ctx context.Context, request operations.C1APIAppV1AppEntitlementOwnersListRequest, opts ...operations.Option) (*operations.C1APIAppV1AppEntitlementOwnersListResponse, error) { @@ -274,7 +486,7 @@ func (s *AppEntitlementOwners) List(ctx context.Context, request operations.C1AP BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementOwners.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -296,7 +508,7 @@ func (s *AppEntitlementOwners) List(ctx context.Context, request operations.C1AP req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -451,6 +663,211 @@ func (s *AppEntitlementOwners) List(ctx context.Context, request operations.C1AP } +// ListOwnerIDs - List Owner I Ds +// ListUserIDs lists owner IDs for a given app entitlement. +func (s *AppEntitlementOwners) ListOwnerIDs(ctx context.Context, request operations.C1APIAppV1AppEntitlementOwnersListOwnerIDsRequest, opts ...operations.Option) (*operations.C1APIAppV1AppEntitlementOwnersListOwnerIDsResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/entitlements/{entitlement_id}/ownerids", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.AppEntitlementOwners.ListOwnerIDs", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1AppEntitlementOwnersListOwnerIDsResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ListAppEntitlementOwnerIDsResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ListAppEntitlementOwnerIDsResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // Remove // Remove an owner from a given app entitlement. func (s *AppEntitlementOwners) Remove(ctx context.Context, request operations.C1APIAppV1AppEntitlementOwnersRemoveRequest, opts ...operations.Option) (*operations.C1APIAppV1AppEntitlementOwnersRemoveResponse, error) { @@ -483,7 +900,7 @@ func (s *AppEntitlementOwners) Remove(ctx context.Context, request operations.C1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementOwners.Remove", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RemoveAppEntitlementOwnerRequest", "json", `request:"mediaType=application/json"`) @@ -695,7 +1112,7 @@ func (s *AppEntitlementOwners) Set(ctx context.Context, request operations.C1API BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementOwners.Set", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SetAppEntitlementOwnersRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlements.go b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlements.go index 85dcba7c..98312d36 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlements.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlements.go @@ -62,7 +62,7 @@ func (s *AppEntitlements) AddAutomationExclusion(ctx context.Context, request op BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.AddAutomationExclusion", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AddAutomationExclusionRequest", "json", `request:"mediaType=application/json"`) @@ -274,7 +274,7 @@ func (s *AppEntitlements) AddManuallyManagedMembers(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.AddManuallyManagedMembers", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AddManuallyManagedUsersRequest", "json", `request:"mediaType=application/json"`) @@ -486,7 +486,7 @@ func (s *AppEntitlements) Create(ctx context.Context, request operations.C1APIAp BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CreateAppEntitlementRequest", "json", `request:"mediaType=application/json"`) @@ -698,7 +698,7 @@ func (s *AppEntitlements) CreateAutomation(ctx context.Context, request operatio BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.CreateAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CreateAutomationRequest", "json", `request:"mediaType=application/json"`) @@ -910,7 +910,7 @@ func (s *AppEntitlements) Delete(ctx context.Context, request operations.C1APIAp BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAppEntitlementRequest", "json", `request:"mediaType=application/json"`) @@ -1122,7 +1122,7 @@ func (s *AppEntitlements) DeleteAutomation(ctx context.Context, request operatio BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.DeleteAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAutomationRequest", "json", `request:"mediaType=application/json"`) @@ -1334,7 +1334,7 @@ func (s *AppEntitlements) Get(ctx context.Context, request operations.C1APIAppV1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1539,7 +1539,7 @@ func (s *AppEntitlements) GetAutomation(ctx context.Context, request operations. BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.GetAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1744,7 +1744,7 @@ func (s *AppEntitlements) List(ctx context.Context, request operations.C1APIAppV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1766,7 +1766,7 @@ func (s *AppEntitlements) List(ctx context.Context, request operations.C1APIAppV req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -1953,7 +1953,7 @@ func (s *AppEntitlements) ListAutomationExclusions(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.ListAutomationExclusions", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2158,7 +2158,7 @@ func (s *AppEntitlements) ListForAppResource(ctx context.Context, request operat BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.ListForAppResource", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2180,7 +2180,7 @@ func (s *AppEntitlements) ListForAppResource(ctx context.Context, request operat req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -2367,7 +2367,7 @@ func (s *AppEntitlements) ListForAppUser(ctx context.Context, request operations BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.ListForAppUser", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2389,7 +2389,7 @@ func (s *AppEntitlements) ListForAppUser(ctx context.Context, request operations req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -2578,7 +2578,7 @@ func (s *AppEntitlements) ListUsers(ctx context.Context, request operations.C1AP BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.ListUsers", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2600,7 +2600,7 @@ func (s *AppEntitlements) ListUsers(ctx context.Context, request operations.C1AP req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -2787,7 +2787,7 @@ func (s *AppEntitlements) RemoveAutomationExclusion(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.RemoveAutomationExclusion", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RemoveAutomationExclusionRequest", "json", `request:"mediaType=application/json"`) @@ -2999,7 +2999,7 @@ func (s *AppEntitlements) RemoveEntitlementMembership(ctx context.Context, reque BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.RemoveEntitlementMembership", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RemoveEntitlementMembershipRequest", "json", `request:"mediaType=application/json"`) @@ -3211,7 +3211,7 @@ func (s *AppEntitlements) Update(ctx context.Context, request operations.C1APIAp BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateAppEntitlementRequest", "json", `request:"mediaType=application/json"`) @@ -3423,7 +3423,7 @@ func (s *AppEntitlements) UpdateAutomation(ctx context.Context, request operatio BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlements.UpdateAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AppEntitlementServiceUpdateAutomationRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementsearch.go index 140060fc..a83b9823 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementsearch.go @@ -17,6 +17,7 @@ import ( "net/http" "net/url" "strconv" + "strings" ) type AppEntitlementSearch struct { @@ -65,7 +66,7 @@ func (s *AppEntitlementSearch) Search(ctx context.Context, request *shared.AppEn BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementSearchService.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -230,6 +231,9 @@ func (s *AppEntitlementSearch) Search(ctx context.Context, request *shared.AppEn return nil, nil } nCVal = val.(string) + if strings.TrimSpace(nCVal) == "" { + return nil, nil + } } return s.Search( @@ -344,7 +348,7 @@ func (s *AppEntitlementSearch) SearchAppEntitlementsForAppUser(ctx context.Conte BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementSearchService.SearchAppEntitlementsForAppUser", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -366,7 +370,7 @@ func (s *AppEntitlementSearch) SearchAppEntitlementsForAppUser(ctx context.Conte req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -553,7 +557,7 @@ func (s *AppEntitlementSearch) SearchAppEntitlementsWithExpired(ctx context.Cont BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementSearchService.SearchAppEntitlementsWithExpired", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -575,7 +579,7 @@ func (s *AppEntitlementSearch) SearchAppEntitlementsWithExpired(ctx context.Cont req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -762,7 +766,7 @@ func (s *AppEntitlementSearch) SearchGrants(ctx context.Context, request *shared BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementSearchService.SearchGrants", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementsproxy.go b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementsproxy.go index 7f19877b..bdd4c736 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementsproxy.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementsproxy.go @@ -62,7 +62,7 @@ func (s *AppEntitlementsProxy) Create(ctx context.Context, request operations.C1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementsProxy.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CreateAppEntitlementProxyRequest", "json", `request:"mediaType=application/json"`) @@ -274,7 +274,7 @@ func (s *AppEntitlementsProxy) Delete(ctx context.Context, request operations.C1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementsProxy.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAppEntitlementProxyRequest", "json", `request:"mediaType=application/json"`) @@ -486,7 +486,7 @@ func (s *AppEntitlementsProxy) Get(ctx context.Context, request operations.C1API BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementsProxy.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementuserbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementuserbinding.go index cf41481d..c905667c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementuserbinding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appentitlementuserbinding.go @@ -63,7 +63,7 @@ func (s *AppEntitlementUserBinding) ListAppUsersForIdentityWithGrant(ctx context BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementUserBindingService.ListAppUsersForIdentityWithGrant", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -268,7 +268,7 @@ func (s *AppEntitlementUserBinding) RemoveGrantDuration(ctx context.Context, req BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementUserBindingService.RemoveGrantDuration", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RemoveGrantDurationRequest", "json", `request:"mediaType=application/json"`) @@ -480,7 +480,7 @@ func (s *AppEntitlementUserBinding) SearchGrantFeed(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementUserBindingService.SearchGrantFeed", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -692,7 +692,7 @@ func (s *AppEntitlementUserBinding) SearchPastGrants(ctx context.Context, reques BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementUserBindingService.SearchPastGrants", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -904,7 +904,7 @@ func (s *AppEntitlementUserBinding) UpdateGrantDuration(ctx context.Context, req BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppEntitlementUserBindingService.UpdateGrantDuration", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateGrantDurationRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appowners.go b/vendor/github.com/conductorone/conductorone-sdk-go/appowners.go index bf950a42..c0c9a7cf 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appowners.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appowners.go @@ -62,7 +62,7 @@ func (s *AppOwners) Add(ctx context.Context, request operations.C1APIAppV1AppOwn BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppOwners.Add", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AddAppOwnerRequest", "json", `request:"mediaType=application/json"`) @@ -242,6 +242,218 @@ func (s *AppOwners) Add(ctx context.Context, request operations.C1APIAppV1AppOwn } +// Delete +// Delete deletes the owners from a given app. +func (s *AppOwners) Delete(ctx context.Context, request operations.C1APIAppV1AppOwnersDeleteRequest, opts ...operations.Option) (*operations.C1APIAppV1AppOwnersDeleteResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/owners", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.AppOwners.Delete", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAppOwnersRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1AppOwnersDeleteResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.DeleteAppOwnersResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DeleteAppOwnersResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // List // List owners of an app. func (s *AppOwners) List(ctx context.Context, request operations.C1APIAppV1AppOwnersListRequest, opts ...operations.Option) (*operations.C1APIAppV1AppOwnersListResponse, error) { @@ -274,7 +486,7 @@ func (s *AppOwners) List(ctx context.Context, request operations.C1APIAppV1AppOw BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppOwners.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -296,7 +508,7 @@ func (s *AppOwners) List(ctx context.Context, request operations.C1APIAppV1AppOw req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -451,6 +663,211 @@ func (s *AppOwners) List(ctx context.Context, request operations.C1APIAppV1AppOw } +// ListOwnerIDs - List Owner I Ds +// ListOwnerIDs lists owner IDs for a given app. +func (s *AppOwners) ListOwnerIDs(ctx context.Context, request operations.C1APIAppV1AppOwnersListOwnerIDsRequest, opts ...operations.Option) (*operations.C1APIAppV1AppOwnersListOwnerIDsResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/ownerids", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.AppOwners.ListOwnerIDs", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1AppOwnersListOwnerIDsResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ListAppOwnerIDsResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ListAppOwnerIDsResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // Remove // Removes an owner from an app. func (s *AppOwners) Remove(ctx context.Context, request operations.C1APIAppV1AppOwnersRemoveRequest, opts ...operations.Option) (*operations.C1APIAppV1AppOwnersRemoveResponse, error) { @@ -483,7 +900,7 @@ func (s *AppOwners) Remove(ctx context.Context, request operations.C1APIAppV1App BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppOwners.Remove", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RemoveAppOwnerRequest", "json", `request:"mediaType=application/json"`) @@ -695,7 +1112,7 @@ func (s *AppOwners) Set(ctx context.Context, request operations.C1APIAppV1AppOwn BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppOwners.Set", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SetAppOwnersRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appreport.go b/vendor/github.com/conductorone/conductorone-sdk-go/appreport.go index 38c90810..597bb11d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appreport.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appreport.go @@ -62,7 +62,7 @@ func (s *AppReport) List(ctx context.Context, request operations.C1APIAppV1AppRe BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppReportService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -84,7 +84,7 @@ func (s *AppReport) List(ctx context.Context, request operations.C1APIAppV1AppRe req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appreportaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/appreportaction.go index 373ab77b..ebb50102 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appreportaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appreportaction.go @@ -62,7 +62,7 @@ func (s *AppReportAction) GenerateReport(ctx context.Context, request operations BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppReportActionService.GenerateReport", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AppActionsServiceGenerateReportRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appresource.go b/vendor/github.com/conductorone/conductorone-sdk-go/appresource.go index a7ba461d..75f81593 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appresource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appresource.go @@ -62,7 +62,7 @@ func (s *AppResource) CreateManuallyManagedAppResource(ctx context.Context, requ BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceService.CreateManuallyManagedAppResource", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CreateManuallyManagedAppResourceRequest", "json", `request:"mediaType=application/json"`) @@ -274,7 +274,7 @@ func (s *AppResource) DeleteManuallyManagedAppResource(ctx context.Context, requ BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceService.DeleteManuallyManagedAppResource", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteManuallyManagedAppResourceRequest", "json", `request:"mediaType=application/json"`) @@ -486,7 +486,7 @@ func (s *AppResource) Get(ctx context.Context, request operations.C1APIAppV1AppR BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -691,7 +691,7 @@ func (s *AppResource) List(ctx context.Context, request operations.C1APIAppV1App BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -713,7 +713,7 @@ func (s *AppResource) List(ctx context.Context, request operations.C1APIAppV1App req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -900,7 +900,7 @@ func (s *AppResource) Update(ctx context.Context, request operations.C1APIAppV1A BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AppResourceServiceUpdateRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appresourceowners.go b/vendor/github.com/conductorone/conductorone-sdk-go/appresourceowners.go index bc9a1abb..e1d1c793 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appresourceowners.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appresourceowners.go @@ -62,7 +62,7 @@ func (s *AppResourceOwners) Add(ctx context.Context, request operations.C1APIApp BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceOwners.Add", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AddAppResourceOwnerRequest", "json", `request:"mediaType=application/json"`) @@ -242,6 +242,218 @@ func (s *AppResourceOwners) Add(ctx context.Context, request operations.C1APIApp } +// Delete +// Delete deletes the owners from a given app resource. +func (s *AppResourceOwners) Delete(ctx context.Context, request operations.C1APIAppV1AppResourceOwnersDeleteRequest, opts ...operations.Option) (*operations.C1APIAppV1AppResourceOwnersDeleteResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/resource_types/{resource_type_id}/resource/{resource_id}/ownerids", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.AppResourceOwners.Delete", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAppResourceOwnersRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1AppResourceOwnersDeleteResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.DeleteAppResourceOwnersResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DeleteAppResourceOwnersResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // List // List all owners of an app resource. func (s *AppResourceOwners) List(ctx context.Context, request operations.C1APIAppV1AppResourceOwnersListRequest, opts ...operations.Option) (*operations.C1APIAppV1AppResourceOwnersListResponse, error) { @@ -263,7 +475,216 @@ func (s *AppResourceOwners) List(ctx context.Context, request operations.C1APIAp } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/resource_types/{resource_type_id}/resource/{resource_id}/owners", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/resource_types/{resource_type_id}/resource/{resource_id}/owners", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.AppResourceOwners.List", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1AppResourceOwnersListResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ListAppResourceOwnersResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ListAppResourceOwnersResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// ListOwnerIDs - List Owner I Ds +// ListOwnerIDs lists owner IDs for a given app resource. +func (s *AppResourceOwners) ListOwnerIDs(ctx context.Context, request operations.C1APIAppV1AppResourceOwnersListOwnerIDsRequest, opts ...operations.Option) (*operations.C1APIAppV1AppResourceOwnersListOwnerIDsResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/resource_types/{resource_type_id}/resource/{resource_id}/ownerids", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -273,8 +694,8 @@ func (s *AppResourceOwners) List(ctx context.Context, request operations.C1APIAp SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.AppResourceOwners.List", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.AppResourceOwners.ListOwnerIDs", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -296,10 +717,6 @@ func (s *AppResourceOwners) List(ctx context.Context, request operations.C1APIAp req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) - } - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err } @@ -399,7 +816,7 @@ func (s *AppResourceOwners) List(ctx context.Context, request operations.C1APIAp } } - res := &operations.C1APIAppV1AppResourceOwnersListResponse{ + res := &operations.C1APIAppV1AppResourceOwnersListOwnerIDsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -414,12 +831,12 @@ func (s *AppResourceOwners) List(ctx context.Context, request operations.C1APIAp return nil, err } - var out shared.ListAppResourceOwnersResponse + var out shared.ListAppResourceOwnerIDsResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ListAppResourceOwnersResponse = &out + res.ListAppResourceOwnerIDsResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -483,7 +900,7 @@ func (s *AppResourceOwners) Remove(ctx context.Context, request operations.C1API BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceOwners.Remove", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RemoveAppResourceOwnerRequest", "json", `request:"mediaType=application/json"`) @@ -662,3 +1079,215 @@ func (s *AppResourceOwners) Remove(ctx context.Context, request operations.C1API return res, nil } + +// Set +// Sets the owners for a given app resource to the specified list of users. +func (s *AppResourceOwners) Set(ctx context.Context, request operations.C1APIAppV1AppResourceOwnersSetRequest, opts ...operations.Option) (*operations.C1APIAppV1AppResourceOwnersSetResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/resource_types/{resource_type_id}/resource/{resource_id}/owners", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.AppResourceOwners.Set", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SetAppResourceOwnersRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1AppResourceOwnersSetResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.SetAppResourceOwnersResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SetAppResourceOwnersResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appresourcesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/appresourcesearch.go index a114a95a..76a0f7b7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appresourcesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appresourcesearch.go @@ -17,6 +17,7 @@ import ( "net/http" "net/url" "strconv" + "strings" ) type AppResourceSearch struct { @@ -65,7 +66,7 @@ func (s *AppResourceSearch) SearchAppResourceTypes(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceSearch.SearchAppResourceTypes", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -198,6 +199,60 @@ func (s *AppResourceSearch) SearchAppResourceTypes(ctx context.Context, request ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, } + res.Next = func() (*operations.C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse, error) { + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + b, err := ajson.Unmarshal(rawBody) + if err != nil { + return nil, err + } + nC, err := ajson.Eval(b, "$.nextPageToken") + if err != nil { + return nil, err + } + var nCVal string + + if nC.IsNumeric() { + numVal, err := nC.GetNumeric() + if err != nil { + return nil, err + } + // GetNumeric returns as float64 so convert to the appropriate type. + nCVal = strconv.FormatFloat(numVal, 'f', 0, 64) + } else { + val, err := nC.Value() + if err != nil { + return nil, err + } + if val == nil { + return nil, nil + } + nCVal = val.(string) + if strings.TrimSpace(nCVal) == "" { + return nil, nil + } + } + + return s.SearchAppResourceTypes( + ctx, + &shared.SearchAppResourceTypesRequest{ + AppIds: request.AppIds, + AppUserIds: request.AppUserIds, + DisplayName: request.DisplayName, + ExcludeResourceTypeIds: request.ExcludeResourceTypeIds, + ExcludeResourceTypeTraitIds: request.ExcludeResourceTypeTraitIds, + PageSize: request.PageSize, + PageToken: &nCVal, + Query: request.Query, + ResourceTypeIds: request.ResourceTypeIds, + ResourceTypeTraitIds: request.ResourceTypeTraitIds, + }, + opts..., + ) + } switch { case httpRes.StatusCode == 200: @@ -277,7 +332,7 @@ func (s *AppResourceSearch) SearchAppResources(ctx context.Context, request *sha BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceSearch.SearchAppResources", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -442,6 +497,9 @@ func (s *AppResourceSearch) SearchAppResources(ctx context.Context, request *sha return nil, nil } nCVal = val.(string) + if strings.TrimSpace(nCVal) == "" { + return nil, nil + } } return s.SearchAppResources( @@ -452,6 +510,7 @@ func (s *AppResourceSearch) SearchAppResources(ctx context.Context, request *sha ExcludeDeletedResourceBindings: request.ExcludeDeletedResourceBindings, ExcludeResourceIds: request.ExcludeResourceIds, ExcludeResourceTypeTraitIds: request.ExcludeResourceTypeTraitIds, + OwnerUserIds: request.OwnerUserIds, PageSize: request.PageSize, PageToken: &nCVal, Query: request.Query, diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appresourcetype.go b/vendor/github.com/conductorone/conductorone-sdk-go/appresourcetype.go index 10c1b949..9db3a69a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appresourcetype.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appresourcetype.go @@ -62,7 +62,7 @@ func (s *AppResourceType) CreateManuallyManagedResourceType(ctx context.Context, BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceTypeService.CreateManuallyManagedResourceType", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CreateManuallyManagedResourceTypeRequest", "json", `request:"mediaType=application/json"`) @@ -274,7 +274,7 @@ func (s *AppResourceType) DeleteManuallyManagedResourceType(ctx context.Context, BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceTypeService.DeleteManuallyManagedResourceType", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteManuallyManagedResourceTypeRequest", "json", `request:"mediaType=application/json"`) @@ -486,7 +486,7 @@ func (s *AppResourceType) Get(ctx context.Context, request operations.C1APIAppV1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceTypeService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -691,7 +691,7 @@ func (s *AppResourceType) List(ctx context.Context, request operations.C1APIAppV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceTypeService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -713,7 +713,7 @@ func (s *AppResourceType) List(ctx context.Context, request operations.C1APIAppV req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -900,7 +900,7 @@ func (s *AppResourceType) UpdateManuallyManagedResourceType(ctx context.Context, BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppResourceTypeService.UpdateManuallyManagedResourceType", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateManuallyManagedResourceTypeRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/apps.go b/vendor/github.com/conductorone/conductorone-sdk-go/apps.go index 8bb94b0b..0debd85b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/apps.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/apps.go @@ -63,7 +63,7 @@ func (s *Apps) Create(ctx context.Context, request *shared.CreateAppRequest, opt BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.Apps.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *Apps) Delete(ctx context.Context, request operations.C1APIAppV1AppsDele BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.Apps.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAppRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *Apps) Get(ctx context.Context, request operations.C1APIAppV1AppsGetRequ BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.Apps.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -692,7 +692,7 @@ func (s *Apps) List(ctx context.Context, request operations.C1APIAppV1AppsListRe BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.Apps.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -714,7 +714,7 @@ func (s *Apps) List(ctx context.Context, request operations.C1APIAppV1AppsListRe req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -901,7 +901,7 @@ func (s *Apps) Update(ctx context.Context, request operations.C1APIAppV1AppsUpda BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.Apps.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateAppRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/appsearch.go index dcbb34d9..9be353a6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appsearch.go @@ -13,8 +13,11 @@ import ( "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" "github.com/conductorone/conductorone-sdk-go/pkg/retry" "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "github.com/spyzhov/ajson" "net/http" "net/url" + "strconv" + "strings" ) type AppSearch struct { @@ -63,7 +66,7 @@ func (s *AppSearch) Search(ctx context.Context, request *shared.SearchAppsReques BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppSearch.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -196,6 +199,58 @@ func (s *AppSearch) Search(ctx context.Context, request *shared.SearchAppsReques ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, } + res.Next = func() (*operations.C1APIAppV1AppSearchSearchResponse, error) { + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + b, err := ajson.Unmarshal(rawBody) + if err != nil { + return nil, err + } + nC, err := ajson.Eval(b, "$.nextPageToken") + if err != nil { + return nil, err + } + var nCVal string + + if nC.IsNumeric() { + numVal, err := nC.GetNumeric() + if err != nil { + return nil, err + } + // GetNumeric returns as float64 so convert to the appropriate type. + nCVal = strconv.FormatFloat(numVal, 'f', 0, 64) + } else { + val, err := nC.Value() + if err != nil { + return nil, err + } + if val == nil { + return nil, nil + } + nCVal = val.(string) + if strings.TrimSpace(nCVal) == "" { + return nil, nil + } + } + + return s.Search( + ctx, + &shared.SearchAppsRequest{ + AppIds: request.AppIds, + DisplayName: request.DisplayName, + ExcludeAppIds: request.ExcludeAppIds, + OnlyDirectories: request.OnlyDirectories, + PageSize: request.PageSize, + PageToken: &nCVal, + PolicyRefs: request.PolicyRefs, + Query: request.Query, + }, + opts..., + ) + } switch { case httpRes.StatusCode == 200: diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appusagecontrols.go b/vendor/github.com/conductorone/conductorone-sdk-go/appusagecontrols.go index 5aca01b8..1c8f8645 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appusagecontrols.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appusagecontrols.go @@ -62,7 +62,7 @@ func (s *AppUsageControls) Get(ctx context.Context, request operations.C1APIAppV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppUsageControlsService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -267,7 +267,7 @@ func (s *AppUsageControls) Update(ctx context.Context, request operations.C1APIA BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppUsageControlsService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateAppUsageControlsRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/appuser.go b/vendor/github.com/conductorone/conductorone-sdk-go/appuser.go index 66b43cbe..47ab6d77 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/appuser.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/appuser.go @@ -63,7 +63,7 @@ func (s *AppUser) List(ctx context.Context, request operations.C1APIAppV1AppUser BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppUserService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -85,7 +85,7 @@ func (s *AppUser) List(ctx context.Context, request operations.C1APIAppV1AppUser req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -272,7 +272,7 @@ func (s *AppUser) ListAppUserCredentials(ctx context.Context, request operations BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppUserService.ListAppUserCredentials", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -294,7 +294,7 @@ func (s *AppUser) ListAppUserCredentials(ctx context.Context, request operations req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -481,7 +481,7 @@ func (s *AppUser) ListAppUsersForUser(ctx context.Context, request operations.C1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppUserService.ListAppUsersForUser", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -503,7 +503,7 @@ func (s *AppUser) ListAppUsersForUser(ctx context.Context, request operations.C1 req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -690,7 +690,7 @@ func (s *AppUser) Search(ctx context.Context, request *shared.AppUserServiceSear BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppUserService.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -904,7 +904,7 @@ func (s *AppUser) Update(ctx context.Context, request operations.C1APIAppV1AppUs BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.AppUserService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AppUserServiceUpdateRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/attributes.go b/vendor/github.com/conductorone/conductorone-sdk-go/attributes.go index c7d6e9ac..ac8630bc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/attributes.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/attributes.go @@ -63,7 +63,7 @@ func (s *Attributes) CreateAttributeValue(ctx context.Context, request *shared.C BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.CreateAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *Attributes) CreateComplianceFrameworkAttributeValue(ctx context.Context BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.CreateComplianceFrameworkAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *Attributes) CreateRiskLevelAttributeValue(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.CreateRiskLevelAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -699,7 +699,7 @@ func (s *Attributes) DeleteAttributeValue(ctx context.Context, request operation BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.DeleteAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAttributeValueRequest", "json", `request:"mediaType=application/json"`) @@ -911,7 +911,7 @@ func (s *Attributes) DeleteComplianceFrameworkAttributeValue(ctx context.Context BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.DeleteComplianceFrameworkAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteComplianceFrameworkAttributeValueRequest", "json", `request:"mediaType=application/json"`) @@ -1123,7 +1123,7 @@ func (s *Attributes) DeleteRiskLevelAttributeValue(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.DeleteRiskLevelAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteRiskLevelAttributeValueRequest", "json", `request:"mediaType=application/json"`) @@ -1335,7 +1335,7 @@ func (s *Attributes) GetAttributeValue(ctx context.Context, request operations.C BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.GetAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1540,7 +1540,7 @@ func (s *Attributes) GetComplianceFrameworkAttributeValue(ctx context.Context, r BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.GetComplianceFrameworkAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1745,7 +1745,7 @@ func (s *Attributes) GetRiskLevelAttributeValue(ctx context.Context, request ope BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.GetRiskLevelAttributeValue", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1950,7 +1950,7 @@ func (s *Attributes) ListAttributeTypes(ctx context.Context, request operations. BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.ListAttributeTypes", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1972,7 +1972,7 @@ func (s *Attributes) ListAttributeTypes(ctx context.Context, request operations. req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -2159,7 +2159,7 @@ func (s *Attributes) ListAttributeValues(ctx context.Context, request operations BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.Attributes.ListAttributeValues", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2181,7 +2181,7 @@ func (s *Attributes) ListAttributeValues(ctx context.Context, request operations req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -2335,3 +2335,421 @@ func (s *Attributes) ListAttributeValues(ctx context.Context, request operations return res, nil } + +// ListComplianceFrameworks - List Compliance Frameworks +// Invokes the c1.api.attribute.v1.Attributes.ListComplianceFrameworks method. +func (s *Attributes) ListComplianceFrameworks(ctx context.Context, request operations.C1APIAttributeV1AttributesListComplianceFrameworksRequest, opts ...operations.Option) (*operations.C1APIAttributeV1AttributesListComplianceFrameworksResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/attributes/compliance_frameworks") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.attribute.v1.Attributes.ListComplianceFrameworks", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAttributeV1AttributesListComplianceFrameworksResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ListComplianceFrameworksResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ListComplianceFrameworksResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// ListRiskLevels - List Risk Levels +// Invokes the c1.api.attribute.v1.Attributes.ListRiskLevels method. +func (s *Attributes) ListRiskLevels(ctx context.Context, request operations.C1APIAttributeV1AttributesListRiskLevelsRequest, opts ...operations.Option) (*operations.C1APIAttributeV1AttributesListRiskLevelsResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/attributes/risk_levels") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.attribute.v1.Attributes.ListRiskLevels", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAttributeV1AttributesListRiskLevelsResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ListRiskLevelsResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ListRiskLevelsResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/attributesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/attributesearch.go index 9e2afb70..e9af3559 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/attributesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/attributesearch.go @@ -63,7 +63,7 @@ func (s *AttributeSearch) SearchAttributeValues(ctx context.Context, request *sh BaseURL: baseURL, Context: ctx, OperationID: "c1.api.attribute.v1.AttributeSearch.SearchAttributeValues", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/auth.go b/vendor/github.com/conductorone/conductorone-sdk-go/auth.go index e5612d5d..34f29532 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/auth.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/auth.go @@ -63,7 +63,7 @@ func (s *Auth) Introspect(ctx context.Context, opts ...operations.Option) (*oper BaseURL: baseURL, Context: ctx, OperationID: "c1.api.auth.v1.Auth.Introspect", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/automation.go b/vendor/github.com/conductorone/conductorone-sdk-go/automation.go index b43355cd..ab8700cb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/automation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/automation.go @@ -63,7 +63,7 @@ func (s *Automation) CreateAutomation(ctx context.Context, request *shared.Creat BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationService.CreateAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *Automation) DeleteAutomation(ctx context.Context, request operations.C1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationService.DeleteAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteAutomationRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *Automation) ExecuteAutomation(ctx context.Context, request operations.C BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationService.ExecuteAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ExecuteAutomationRequest", "json", `request:"mediaType=application/json"`) @@ -699,7 +699,7 @@ func (s *Automation) GetAutomation(ctx context.Context, request operations.C1API BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationService.GetAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -904,7 +904,7 @@ func (s *Automation) ListAutomations(ctx context.Context, opts ...operations.Opt BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationService.ListAutomations", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1109,7 +1109,7 @@ func (s *Automation) UpdateAutomation(ctx context.Context, request operations.C1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationService.UpdateAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateAutomationRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/automationexecution.go b/vendor/github.com/conductorone/conductorone-sdk-go/automationexecution.go index 14b2388b..befabca7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/automationexecution.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/automationexecution.go @@ -63,7 +63,7 @@ func (s *AutomationExecution) GetAutomationExecution(ctx context.Context, reques BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationExecutionService.GetAutomationExecution", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -268,7 +268,7 @@ func (s *AutomationExecution) ListAutomationExecutions(ctx context.Context, opts BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationExecutionService.ListAutomationExecutions", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/automationexecutionactions.go b/vendor/github.com/conductorone/conductorone-sdk-go/automationexecutionactions.go index fe1951fa..c47aee11 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/automationexecutionactions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/automationexecutionactions.go @@ -62,7 +62,7 @@ func (s *AutomationExecutionActions) TerminateAutomation(ctx context.Context, re BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationExecutionActionsService.TerminateAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TerminateAutomationRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/automationexecutionsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/automationexecutionsearch.go index d724b8f5..99a03ce8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/automationexecutionsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/automationexecutionsearch.go @@ -63,7 +63,7 @@ func (s *AutomationExecutionSearch) SearchAutomationExecutions(ctx context.Conte BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationExecutionSearchService.SearchAutomationExecutions", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/automationsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/automationsearch.go index 3c0a0f75..25967c99 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/automationsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/automationsearch.go @@ -63,7 +63,7 @@ func (s *AutomationSearch) SearchAutomationTemplateVersions(ctx context.Context, BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationSearchService.SearchAutomationTemplateVersions", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *AutomationSearch) SearchAutomations(ctx context.Context, request *share BaseURL: baseURL, Context: ctx, OperationID: "c1.api.automations.v1.AutomationSearchService.SearchAutomations", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/awsexternalidsettings.go b/vendor/github.com/conductorone/conductorone-sdk-go/awsexternalidsettings.go index f43c0931..8a02b640 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/awsexternalidsettings.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/awsexternalidsettings.go @@ -63,7 +63,7 @@ func (s *AWSExternalIDSettings) Get(ctx context.Context, opts ...operations.Opti BaseURL: baseURL, Context: ctx, OperationID: "c1.api.settings.v1.AWSExternalIDSettings.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/conductoroneapi.go b/vendor/github.com/conductorone/conductorone-sdk-go/conductoroneapi.go index ff47e4de..834d5d05 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/conductoroneapi.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/conductoroneapi.go @@ -2,7 +2,7 @@ package conductoronesdkgo -// Generated from OpenAPI doc version 0.1.0-alpha and generator version 2.687.1 +// Generated from OpenAPI doc version 0.1.0-alpha and generator version 2.794.1 import ( "context" @@ -51,6 +51,8 @@ func Pointer[T any](v T) *T { return &v } // ConductoroneAPI - ConductorOne API: The ConductorOne API is a HTTP API for managing ConductorOne resources. type ConductoroneAPI struct { SDKVersion string + AccessReview *AccessReview + AccessReviewTemplate *AccessReviewTemplate AccessConflict *AccessConflict AppEntitlementMonitorBinding *AppEntitlementMonitorBinding Apps *Apps @@ -77,13 +79,16 @@ type ConductoroneAPI struct { AutomationSearch *AutomationSearch Automation *Automation RequestCatalogManagement *RequestCatalogManagement + ConnectorCatalog *ConnectorCatalog Directory *Directory Functions *Functions + FunctionsInvocation *FunctionsInvocation PersonalClient *PersonalClient Roles *Roles Policies *Policies AccountProvisionPolicyTest *AccountProvisionPolicyTest PolicyValidate *PolicyValidate + RequestSchema *RequestSchema AppResourceSearch *AppResourceSearch AppSearch *AppSearch AttributeSearch *AttributeSearch @@ -106,6 +111,7 @@ type ConductoroneAPI struct { Task *Task TaskActions *TaskActions User *User + Vault *Vault Webhooks *Webhooks sdkConfiguration config.SDKConfiguration @@ -195,9 +201,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *ConductoroneAPI { sdk := &ConductoroneAPI{ - SDKVersion: "1.25.0", + SDKVersion: "1.26.1", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 1.25.0 2.687.1 0.1.0-alpha github.com/conductorone/conductorone-sdk-go", + UserAgent: "speakeasy-sdk/go 1.26.1 2.794.1 0.1.0-alpha github.com/conductorone/conductorone-sdk-go", ServerList: ServerList, ServerVariables: []map[string]string{ { @@ -223,6 +229,8 @@ func New(opts ...SDKOption) *ConductoroneAPI { sdk.sdkConfiguration.ServerURL = serverURL } + sdk.AccessReview = newAccessReview(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.AccessReviewTemplate = newAccessReviewTemplate(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.AccessConflict = newAccessConflict(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.AppEntitlementMonitorBinding = newAppEntitlementMonitorBinding(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Apps = newApps(sdk, sdk.sdkConfiguration, sdk.hooks) @@ -249,13 +257,16 @@ func New(opts ...SDKOption) *ConductoroneAPI { sdk.AutomationSearch = newAutomationSearch(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Automation = newAutomation(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.RequestCatalogManagement = newRequestCatalogManagement(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.ConnectorCatalog = newConnectorCatalog(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Directory = newDirectory(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Functions = newFunctions(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.FunctionsInvocation = newFunctionsInvocation(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.PersonalClient = newPersonalClient(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Roles = newRoles(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Policies = newPolicies(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.AccountProvisionPolicyTest = newAccountProvisionPolicyTest(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.PolicyValidate = newPolicyValidate(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.RequestSchema = newRequestSchema(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.AppResourceSearch = newAppResourceSearch(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.AppSearch = newAppSearch(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.AttributeSearch = newAttributeSearch(sdk, sdk.sdkConfiguration, sdk.hooks) @@ -278,6 +289,7 @@ func New(opts ...SDKOption) *ConductoroneAPI { sdk.Task = newTask(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.TaskActions = newTaskActions(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.User = newUser(sdk, sdk.sdkConfiguration, sdk.hooks) + sdk.Vault = newVault(sdk, sdk.sdkConfiguration, sdk.hooks) sdk.Webhooks = newWebhooks(sdk, sdk.sdkConfiguration, sdk.hooks) return sdk diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/connector.go b/vendor/github.com/conductorone/conductorone-sdk-go/connector.go index 2ec497e6..99048755 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/connector.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/connector.go @@ -31,6 +31,218 @@ func newConnector(rootSDK *ConductoroneAPI, sdkConfig config.SDKConfiguration, h } } +// ConfirmSyncValid - Confirm Sync Valid +// Invokes the c1.api.app.v1.ConnectorService.ConfirmSyncValid method. +func (s *Connector) ConfirmSyncValid(ctx context.Context, request operations.C1APIAppV1ConnectorServiceConfirmSyncValidRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceConfirmSyncValidResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/confirm_sync_valid/{sync_lifecycle_id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.ConnectorService.ConfirmSyncValid", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConfirmSyncValidRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1ConnectorServiceConfirmSyncValidResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ConfirmSyncValidResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ConfirmSyncValidResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // Create // Create a configured connector. func (s *Connector) Create(ctx context.Context, request operations.C1APIAppV1ConnectorServiceCreateRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceCreateResponse, error) { @@ -52,7 +264,431 @@ func (s *Connector) Create(ctx context.Context, request operations.C1APIAppV1Con } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/create", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/create", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.ConnectorService.Create", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceCreateRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1ConnectorServiceCreateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ConnectorServiceCreateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ConnectorServiceCreateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// CreateDelegated - Create Delegated +// Create a connector that is pending a connector config. +func (s *Connector) CreateDelegated(ctx context.Context, request operations.C1APIAppV1ConnectorServiceCreateDelegatedRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceCreateDelegatedResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.app.v1.ConnectorService.CreateDelegated", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceCreateDelegatedRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIAppV1ConnectorServiceCreateDelegatedResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ConnectorServiceCreateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ConnectorServiceCreateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Delete +// Delete a connector. +func (s *Connector) Delete(ctx context.Context, request operations.C1APIAppV1ConnectorServiceDeleteRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceDeleteResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{id}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -62,11 +698,11 @@ func (s *Connector) Create(ctx context.Context, request operations.C1APIAppV1Con SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.Create", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.Delete", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceCreateRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceDeleteRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -82,7 +718,7 @@ func (s *Connector) Create(ctx context.Context, request operations.C1APIAppV1Con defer cancel() } - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } @@ -191,7 +827,7 @@ func (s *Connector) Create(ctx context.Context, request operations.C1APIAppV1Con } } - res := &operations.C1APIAppV1ConnectorServiceCreateResponse{ + res := &operations.C1APIAppV1ConnectorServiceDeleteResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -206,12 +842,12 @@ func (s *Connector) Create(ctx context.Context, request operations.C1APIAppV1Con return nil, err } - var out shared.ConnectorServiceCreateResponse + var out shared.ConnectorServiceDeleteResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceCreateResponse = &out + res.ConnectorServiceDeleteResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -243,9 +879,9 @@ func (s *Connector) Create(ctx context.Context, request operations.C1APIAppV1Con } -// CreateDelegated - Create Delegated -// Create a connector that is pending a connector config. -func (s *Connector) CreateDelegated(ctx context.Context, request operations.C1APIAppV1ConnectorServiceCreateDelegatedRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceCreateDelegatedResponse, error) { +// ForceSync - Force Sync +// Invokes the c1.api.app.v1.ConnectorService.ForceSync method. +func (s *Connector) ForceSync(ctx context.Context, request operations.C1APIAppV1ConnectorServiceForceSyncRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceForceSyncResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -264,7 +900,7 @@ func (s *Connector) CreateDelegated(ctx context.Context, request operations.C1AP } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/force_sync", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -274,11 +910,11 @@ func (s *Connector) CreateDelegated(ctx context.Context, request operations.C1AP SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.CreateDelegated", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.ForceSync", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceCreateDelegatedRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ForceSyncRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -403,7 +1039,7 @@ func (s *Connector) CreateDelegated(ctx context.Context, request operations.C1AP } } - res := &operations.C1APIAppV1ConnectorServiceCreateDelegatedResponse{ + res := &operations.C1APIAppV1ConnectorServiceForceSyncResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -418,12 +1054,12 @@ func (s *Connector) CreateDelegated(ctx context.Context, request operations.C1AP return nil, err } - var out shared.ConnectorServiceCreateResponse + var out shared.ForceSyncResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceCreateResponse = &out + res.ForceSyncResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -455,9 +1091,9 @@ func (s *Connector) CreateDelegated(ctx context.Context, request operations.C1AP } -// Delete -// Delete a connector. -func (s *Connector) Delete(ctx context.Context, request operations.C1APIAppV1ConnectorServiceDeleteRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceDeleteResponse, error) { +// Get +// Get a connector. +func (s *Connector) Get(ctx context.Context, request operations.C1APIAppV1ConnectorServiceGetRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceGetResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -486,14 +1122,10 @@ func (s *Connector) Delete(ctx context.Context, request operations.C1APIAppV1Con SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.Delete", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.Get", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceDeleteRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } timeout := o.Timeout if timeout == nil { @@ -506,15 +1138,12 @@ func (s *Connector) Delete(ctx context.Context, request operations.C1APIAppV1Con defer cancel() } - req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -615,7 +1244,7 @@ func (s *Connector) Delete(ctx context.Context, request operations.C1APIAppV1Con } } - res := &operations.C1APIAppV1ConnectorServiceDeleteResponse{ + res := &operations.C1APIAppV1ConnectorServiceGetResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -630,12 +1259,12 @@ func (s *Connector) Delete(ctx context.Context, request operations.C1APIAppV1Con return nil, err } - var out shared.ConnectorServiceDeleteResponse + var out shared.ConnectorServiceGetResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceDeleteResponse = &out + res.ConnectorServiceGetResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -667,9 +1296,9 @@ func (s *Connector) Delete(ctx context.Context, request operations.C1APIAppV1Con } -// ForceSync - Force Sync -// Invokes the c1.api.app.v1.ConnectorService.ForceSync method. -func (s *Connector) ForceSync(ctx context.Context, request operations.C1APIAppV1ConnectorServiceForceSyncRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceForceSyncResponse, error) { +// GetConnectorSyncDownloadURL - Get Connector Sync Download Url +// GetConnectorSyncDownloadURL generates a short-lived download URL for a completed connector sync artifact. +func (s *Connector) GetConnectorSyncDownloadURL(ctx context.Context, request operations.C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -688,7 +1317,7 @@ func (s *Connector) ForceSync(ctx context.Context, request operations.C1APIAppV1 } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/force_sync", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/syncs/{sync_id}/download_url", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -698,14 +1327,10 @@ func (s *Connector) ForceSync(ctx context.Context, request operations.C1APIAppV1 SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.ForceSync", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.GetConnectorSyncDownloadURL", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ForceSyncRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } timeout := o.Timeout if timeout == nil { @@ -718,15 +1343,12 @@ func (s *Connector) ForceSync(ctx context.Context, request operations.C1APIAppV1 defer cancel() } - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err @@ -827,7 +1449,7 @@ func (s *Connector) ForceSync(ctx context.Context, request operations.C1APIAppV1 } } - res := &operations.C1APIAppV1ConnectorServiceForceSyncResponse{ + res := &operations.C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -842,12 +1464,12 @@ func (s *Connector) ForceSync(ctx context.Context, request operations.C1APIAppV1 return nil, err } - var out shared.ForceSyncResponse + var out shared.GetConnectorSyncDownloadURLResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ForceSyncResponse = &out + res.GetConnectorSyncDownloadURLResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -879,9 +1501,9 @@ func (s *Connector) ForceSync(ctx context.Context, request operations.C1APIAppV1 } -// Get -// Get a connector. -func (s *Connector) Get(ctx context.Context, request operations.C1APIAppV1ConnectorServiceGetRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceGetResponse, error) { +// GetCredentials - Get Credentials +// Get credentials for a connector. +func (s *Connector) GetCredentials(ctx context.Context, request operations.C1APIAppV1ConnectorServiceGetCredentialsRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceGetCredentialsResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -900,7 +1522,7 @@ func (s *Connector) Get(ctx context.Context, request operations.C1APIAppV1Connec } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{id}", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/credentials/{id}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -910,8 +1532,8 @@ func (s *Connector) Get(ctx context.Context, request operations.C1APIAppV1Connec SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.Get", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.GetCredentials", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1032,7 +1654,7 @@ func (s *Connector) Get(ctx context.Context, request operations.C1APIAppV1Connec } } - res := &operations.C1APIAppV1ConnectorServiceGetResponse{ + res := &operations.C1APIAppV1ConnectorServiceGetCredentialsResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1047,12 +1669,12 @@ func (s *Connector) Get(ctx context.Context, request operations.C1APIAppV1Connec return nil, err } - var out shared.ConnectorServiceGetResponse + var out shared.ConnectorServiceGetCredentialsResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceGetResponse = &out + res.ConnectorServiceGetCredentialsResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1084,9 +1706,9 @@ func (s *Connector) Get(ctx context.Context, request operations.C1APIAppV1Connec } -// GetCredentials - Get Credentials -// Get credentials for a connector. -func (s *Connector) GetCredentials(ctx context.Context, request operations.C1APIAppV1ConnectorServiceGetCredentialsRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceGetCredentialsResponse, error) { +// List +// List connectors for an app. +func (s *Connector) List(ctx context.Context, request operations.C1APIAppV1ConnectorServiceListRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceListResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1105,7 +1727,7 @@ func (s *Connector) GetCredentials(ctx context.Context, request operations.C1API } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/credentials/{id}", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -1115,8 +1737,8 @@ func (s *Connector) GetCredentials(ctx context.Context, request operations.C1API SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.GetCredentials", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.List", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1138,6 +1760,10 @@ func (s *Connector) GetCredentials(ctx context.Context, request operations.C1API req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { return nil, err } @@ -1237,7 +1863,7 @@ func (s *Connector) GetCredentials(ctx context.Context, request operations.C1API } } - res := &operations.C1APIAppV1ConnectorServiceGetCredentialsResponse{ + res := &operations.C1APIAppV1ConnectorServiceListResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1252,12 +1878,12 @@ func (s *Connector) GetCredentials(ctx context.Context, request operations.C1API return nil, err } - var out shared.ConnectorServiceGetCredentialsResponse + var out shared.ConnectorServiceListResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceGetCredentialsResponse = &out + res.ConnectorServiceListResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1289,9 +1915,9 @@ func (s *Connector) GetCredentials(ctx context.Context, request operations.C1API } -// List -// List connectors for an app. -func (s *Connector) List(ctx context.Context, request operations.C1APIAppV1ConnectorServiceListRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceListResponse, error) { +// PauseSync - Pause Sync +// Invokes the c1.api.app.v1.ConnectorService.PauseSync method. +func (s *Connector) PauseSync(ctx context.Context, request operations.C1APIAppV1ConnectorServicePauseSyncRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServicePauseSyncResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1310,7 +1936,7 @@ func (s *Connector) List(ctx context.Context, request operations.C1APIAppV1Conne } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/pause", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -1320,10 +1946,14 @@ func (s *Connector) List(ctx context.Context, request operations.C1APIAppV1Conne SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.List", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.PauseSync", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "PauseSyncRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } timeout := o.Timeout if timeout == nil { @@ -1336,15 +1966,14 @@ func (s *Connector) List(ctx context.Context, request operations.C1APIAppV1Conne defer cancel() } - req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) if err != nil { return nil, fmt.Errorf("error creating request: %w", err) } req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { - return nil, fmt.Errorf("error populating query params: %w", err) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) } if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { @@ -1446,7 +2075,7 @@ func (s *Connector) List(ctx context.Context, request operations.C1APIAppV1Conne } } - res := &operations.C1APIAppV1ConnectorServiceListResponse{ + res := &operations.C1APIAppV1ConnectorServicePauseSyncResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1461,12 +2090,12 @@ func (s *Connector) List(ctx context.Context, request operations.C1APIAppV1Conne return nil, err } - var out shared.ConnectorServiceListResponse + var out shared.PauseSyncResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceListResponse = &out + res.PauseSyncResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1498,9 +2127,9 @@ func (s *Connector) List(ctx context.Context, request operations.C1APIAppV1Conne } -// PauseSync - Pause Sync -// Invokes the c1.api.app.v1.ConnectorService.PauseSync method. -func (s *Connector) PauseSync(ctx context.Context, request operations.C1APIAppV1ConnectorServicePauseSyncRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServicePauseSyncResponse, error) { +// ResumeSync - Resume Sync +// Invokes the c1.api.app.v1.ConnectorService.ResumeSync method. +func (s *Connector) ResumeSync(ctx context.Context, request operations.C1APIAppV1ConnectorServiceResumeSyncRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceResumeSyncResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1519,7 +2148,7 @@ func (s *Connector) PauseSync(ctx context.Context, request operations.C1APIAppV1 } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/pause", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/resume", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -1529,11 +2158,11 @@ func (s *Connector) PauseSync(ctx context.Context, request operations.C1APIAppV1 SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.PauseSync", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.ResumeSync", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "PauseSyncRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ResumeSyncRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -1658,7 +2287,7 @@ func (s *Connector) PauseSync(ctx context.Context, request operations.C1APIAppV1 } } - res := &operations.C1APIAppV1ConnectorServicePauseSyncResponse{ + res := &operations.C1APIAppV1ConnectorServiceResumeSyncResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1673,12 +2302,12 @@ func (s *Connector) PauseSync(ctx context.Context, request operations.C1APIAppV1 return nil, err } - var out shared.PauseSyncResponse + var out shared.ResumeSyncResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.PauseSyncResponse = &out + res.ResumeSyncResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1710,9 +2339,9 @@ func (s *Connector) PauseSync(ctx context.Context, request operations.C1APIAppV1 } -// ResumeSync - Resume Sync -// Invokes the c1.api.app.v1.ConnectorService.ResumeSync method. -func (s *Connector) ResumeSync(ctx context.Context, request operations.C1APIAppV1ConnectorServiceResumeSyncRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceResumeSyncResponse, error) { +// RevokeCredential - Revoke Credential +// Revoke credentials for a connector. +func (s *Connector) RevokeCredential(ctx context.Context, request operations.C1APIAppV1ConnectorServiceRevokeCredentialRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceRevokeCredentialResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1731,7 +2360,7 @@ func (s *Connector) ResumeSync(ctx context.Context, request operations.C1APIAppV } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/resume", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/credentials/{id}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -1741,11 +2370,11 @@ func (s *Connector) ResumeSync(ctx context.Context, request operations.C1APIAppV SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.ResumeSync", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.RevokeCredential", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ResumeSyncRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceRevokeCredentialRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -1870,7 +2499,7 @@ func (s *Connector) ResumeSync(ctx context.Context, request operations.C1APIAppV } } - res := &operations.C1APIAppV1ConnectorServiceResumeSyncResponse{ + res := &operations.C1APIAppV1ConnectorServiceRevokeCredentialResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1885,12 +2514,12 @@ func (s *Connector) ResumeSync(ctx context.Context, request operations.C1APIAppV return nil, err } - var out shared.ResumeSyncResponse + var out shared.ConnectorServiceRevokeCredentialResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ResumeSyncResponse = &out + res.ConnectorServiceRevokeCredentialResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1922,9 +2551,9 @@ func (s *Connector) ResumeSync(ctx context.Context, request operations.C1APIAppV } -// RevokeCredential - Revoke Credential -// Revoke credentials for a connector. -func (s *Connector) RevokeCredential(ctx context.Context, request operations.C1APIAppV1ConnectorServiceRevokeCredentialRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceRevokeCredentialResponse, error) { +// RotateCredential - Rotate Credential +// Rotate credentials for a connector. +func (s *Connector) RotateCredential(ctx context.Context, request *shared.ConnectorServiceRotateCredentialRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceRotateCredentialResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1943,7 +2572,7 @@ func (s *Connector) RevokeCredential(ctx context.Context, request operations.C1A } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/credentials/{id}", request, nil) + opURL, err := url.JoinPath(baseURL, "/api/v1/apps/connectors/credentials") if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -1953,11 +2582,11 @@ func (s *Connector) RevokeCredential(ctx context.Context, request operations.C1A SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.RevokeCredential", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.RotateCredential", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceRevokeCredentialRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -2082,7 +2711,7 @@ func (s *Connector) RevokeCredential(ctx context.Context, request operations.C1A } } - res := &operations.C1APIAppV1ConnectorServiceRevokeCredentialResponse{ + res := &operations.C1APIAppV1ConnectorServiceRotateCredentialResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2097,12 +2726,12 @@ func (s *Connector) RevokeCredential(ctx context.Context, request operations.C1A return nil, err } - var out shared.ConnectorServiceRevokeCredentialResponse + var out shared.ConnectorServiceRotateCredentialResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceRevokeCredentialResponse = &out + res.ConnectorServiceRotateCredentialResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -2134,9 +2763,9 @@ func (s *Connector) RevokeCredential(ctx context.Context, request operations.C1A } -// RotateCredential - Rotate Credential -// Rotate credentials for a connector. -func (s *Connector) RotateCredential(ctx context.Context, request operations.C1APIAppV1ConnectorServiceRotateCredentialRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceRotateCredentialResponse, error) { +// Update +// Update a connector. +func (s *Connector) Update(ctx context.Context, request operations.C1APIAppV1ConnectorServiceUpdateRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceUpdateResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -2155,7 +2784,7 @@ func (s *Connector) RotateCredential(ctx context.Context, request operations.C1A } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/credentials", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{id}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -2165,11 +2794,11 @@ func (s *Connector) RotateCredential(ctx context.Context, request operations.C1A SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.RotateCredential", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.Update", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceRotateCredentialRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceUpdateRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -2294,7 +2923,7 @@ func (s *Connector) RotateCredential(ctx context.Context, request operations.C1A } } - res := &operations.C1APIAppV1ConnectorServiceRotateCredentialResponse{ + res := &operations.C1APIAppV1ConnectorServiceUpdateResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2309,12 +2938,12 @@ func (s *Connector) RotateCredential(ctx context.Context, request operations.C1A return nil, err } - var out shared.ConnectorServiceRotateCredentialResponse + var out shared.ConnectorServiceUpdateResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceRotateCredentialResponse = &out + res.ConnectorServiceUpdateResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -2346,9 +2975,9 @@ func (s *Connector) RotateCredential(ctx context.Context, request operations.C1A } -// Update -// Update a connector. -func (s *Connector) Update(ctx context.Context, request operations.C1APIAppV1ConnectorServiceUpdateRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceUpdateResponse, error) { +// UpdateConnectorSchedule - Update Connector Schedule +// Invokes the c1.api.app.v1.ConnectorService.UpdateConnectorSchedule method. +func (s *Connector) UpdateConnectorSchedule(ctx context.Context, request operations.C1APIAppV1ConnectorServiceUpdateConnectorScheduleRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -2367,7 +2996,7 @@ func (s *Connector) Update(ctx context.Context, request operations.C1APIAppV1Con } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{id}", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/schedule", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -2377,11 +3006,11 @@ func (s *Connector) Update(ctx context.Context, request operations.C1APIAppV1Con SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.app.v1.ConnectorService.Update", - OAuth2Scopes: []string{}, + OperationID: "c1.api.app.v1.ConnectorService.UpdateConnectorSchedule", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceUpdateRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateConnectorScheduleRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -2506,7 +3135,7 @@ func (s *Connector) Update(ctx context.Context, request operations.C1APIAppV1Con } } - res := &operations.C1APIAppV1ConnectorServiceUpdateResponse{ + res := &operations.C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -2521,12 +3150,12 @@ func (s *Connector) Update(ctx context.Context, request operations.C1APIAppV1Con return nil, err } - var out shared.ConnectorServiceUpdateResponse + var out shared.UpdateConnectorScheduleResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.ConnectorServiceUpdateResponse = &out + res.UpdateConnectorScheduleResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -2590,7 +3219,7 @@ func (s *Connector) UpdateDelegated(ctx context.Context, request operations.C1AP BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.ConnectorService.UpdateDelegated", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ConnectorServiceUpdateDelegatedRequest", "json", `request:"mediaType=application/json"`) @@ -2802,7 +3431,7 @@ func (s *Connector) ValidateHTTPConnectorConfig(ctx context.Context, request *sh BaseURL: baseURL, Context: ctx, OperationID: "c1.api.app.v1.ConnectorService.ValidateHTTPConnectorConfig", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/connectorcatalog.go b/vendor/github.com/conductorone/conductorone-sdk-go/connectorcatalog.go new file mode 100644 index 00000000..f4894c98 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/connectorcatalog.go @@ -0,0 +1,244 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package conductoronesdkgo + +import ( + "bytes" + "context" + "fmt" + "github.com/conductorone/conductorone-sdk-go/internal/config" + "github.com/conductorone/conductorone-sdk-go/internal/hooks" + "github.com/conductorone/conductorone-sdk-go/pkg/models/operations" + "github.com/conductorone/conductorone-sdk-go/pkg/models/sdkerrors" + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "github.com/conductorone/conductorone-sdk-go/pkg/retry" + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "net/http" + "net/url" +) + +type ConnectorCatalog struct { + rootSDK *ConductoroneAPI + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newConnectorCatalog(rootSDK *ConductoroneAPI, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *ConnectorCatalog { + return &ConnectorCatalog{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// ConfigurationSchema - Configuration Schema +// Invokes the c1.api.integration.connector.v1.ConnectorCatalogService.ConfigurationSchema method. +func (s *ConnectorCatalog) ConfigurationSchema(ctx context.Context, request *shared.ConnectorCatalogServiceConfigurationSchemaRequest, opts ...operations.Option) (*operations.C1APIIntegrationConnectorV1ConnectorCatalogServiceConfigurationSchemaResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/connectorcatalog") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.integration.connector.v1.ConnectorCatalogService.ConfigurationSchema", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIIntegrationConnectorV1ConnectorCatalogServiceConfigurationSchemaResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.ConnectorCatalogServiceConfigurationSchemaResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ConnectorCatalogServiceConfigurationSchemaResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/directory.go b/vendor/github.com/conductorone/conductorone-sdk-go/directory.go index 0e832c91..4c276031 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/directory.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/directory.go @@ -63,7 +63,7 @@ func (s *Directory) Create(ctx context.Context, request *shared.DirectoryService BaseURL: baseURL, Context: ctx, OperationID: "c1.api.directory.v1.DirectoryService.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *Directory) Delete(ctx context.Context, request operations.C1APIDirector BaseURL: baseURL, Context: ctx, OperationID: "c1.api.directory.v1.DirectoryService.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DirectoryServiceDeleteRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *Directory) Get(ctx context.Context, request operations.C1APIDirectoryV1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.directory.v1.DirectoryService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -692,7 +692,7 @@ func (s *Directory) List(ctx context.Context, request operations.C1APIDirectoryV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.directory.v1.DirectoryService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -714,7 +714,7 @@ func (s *Directory) List(ctx context.Context, request operations.C1APIDirectoryV req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -868,3 +868,215 @@ func (s *Directory) List(ctx context.Context, request operations.C1APIDirectoryV return res, nil } + +// Update +// Update a directory by app_id. +func (s *Directory) Update(ctx context.Context, request operations.C1APIDirectoryV1DirectoryServiceUpdateRequest, opts ...operations.Option) (*operations.C1APIDirectoryV1DirectoryServiceUpdateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/directories/{app_id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.directory.v1.DirectoryService.Update", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DirectoryServiceUpdateRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIDirectoryV1DirectoryServiceUpdateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.DirectoryServiceUpdateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.DirectoryServiceUpdateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/export.go b/vendor/github.com/conductorone/conductorone-sdk-go/export.go index 9a523ab7..2b169c16 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/export.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/export.go @@ -63,7 +63,7 @@ func (s *Export) Create(ctx context.Context, request *shared.ExportServiceCreate BaseURL: baseURL, Context: ctx, OperationID: "c1.api.systemlog.v1.ExportService.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *Export) Delete(ctx context.Context, request operations.C1APISystemlogV1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.systemlog.v1.ExportService.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ExportServiceDeleteRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *Export) Get(ctx context.Context, request operations.C1APISystemlogV1Exp BaseURL: baseURL, Context: ctx, OperationID: "c1.api.systemlog.v1.ExportService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -692,7 +692,7 @@ func (s *Export) List(ctx context.Context, request operations.C1APISystemlogV1Ex BaseURL: baseURL, Context: ctx, OperationID: "c1.api.systemlog.v1.ExportService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -714,7 +714,7 @@ func (s *Export) List(ctx context.Context, request operations.C1APISystemlogV1Ex req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -901,7 +901,7 @@ func (s *Export) ListEvents(ctx context.Context, request operations.C1APISysteml BaseURL: baseURL, Context: ctx, OperationID: "c1.api.systemlog.v1.ExportService.ListEvents", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ExportServiceListEventsRequest", "json", `request:"mediaType=application/json"`) @@ -1113,7 +1113,7 @@ func (s *Export) Update(ctx context.Context, request operations.C1APISystemlogV1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.systemlog.v1.ExportService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ExportServiceUpdateRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/exportssearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/exportssearch.go index 2c53e3ab..e7014690 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/exportssearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/exportssearch.go @@ -63,7 +63,7 @@ func (s *ExportsSearch) Search(ctx context.Context, request *shared.ExportsSearc BaseURL: baseURL, Context: ctx, OperationID: "c1.api.systemlog.v1.ExportsSearchService.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/functions.go b/vendor/github.com/conductorone/conductorone-sdk-go/functions.go index 218d691d..0d8619f7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/functions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/functions.go @@ -31,218 +31,6 @@ func newFunctions(rootSDK *ConductoroneAPI, sdkConfig config.SDKConfiguration, h } } -// Commit -// Commit saves a new version of the function code -func (s *Functions) Commit(ctx context.Context, request operations.C1APIFunctionsV1FunctionsServiceCommitRequest, opts ...operations.Option) (*operations.C1APIFunctionsV1FunctionsServiceCommitResponse, error) { - o := operations.Options{} - supportedOptions := []string{ - operations.SupportedOptionRetries, - operations.SupportedOptionTimeout, - } - - for _, opt := range opts { - if err := opt(&o, supportedOptions...); err != nil { - return nil, fmt.Errorf("error applying option: %w", err) - } - } - - var baseURL string - if o.ServerURL == nil { - baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) - } else { - baseURL = *o.ServerURL - } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/functions/{function_id}/commits", request, nil) - if err != nil { - return nil, fmt.Errorf("error generating URL: %w", err) - } - - hookCtx := hooks.HookContext{ - SDK: s.rootSDK, - SDKConfiguration: s.sdkConfiguration, - BaseURL: baseURL, - Context: ctx, - OperationID: "c1.api.functions.v1.FunctionsService.Commit", - OAuth2Scopes: []string{}, - SecuritySource: s.sdkConfiguration.Security, - } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "FunctionsServiceCommitRequest", "json", `request:"mediaType=application/json"`) - if err != nil { - return nil, err - } - - timeout := o.Timeout - if timeout == nil { - timeout = s.sdkConfiguration.Timeout - } - - if timeout != nil { - var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, *timeout) - defer cancel() - } - - req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) - if err != nil { - return nil, fmt.Errorf("error creating request: %w", err) - } - req.Header.Set("Accept", "application/json") - req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if reqContentType != "" { - req.Header.Set("Content-Type", reqContentType) - } - - if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { - return nil, err - } - - for k, v := range o.SetHeaders { - req.Header.Set(k, v) - } - - globalRetryConfig := s.sdkConfiguration.RetryConfig - retryConfig := o.Retries - if retryConfig == nil { - if globalRetryConfig != nil { - retryConfig = globalRetryConfig - } - } - - var httpRes *http.Response - if retryConfig != nil { - httpRes, err = utils.Retry(ctx, utils.Retries{ - Config: retryConfig, - StatusCodes: []string{ - "429", - "500", - "502", - "503", - "504", - }, - }, func() (*http.Response, error) { - if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { - copyBody, err := req.GetBody() - - if err != nil { - return nil, err - } - - req.Body = copyBody - } - - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { - return nil, err - } - - return nil, retry.Permanent(err) - } - - httpRes, err := s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - } - return httpRes, err - }) - - if err != nil { - return nil, err - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } else { - req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) - if err != nil { - return nil, err - } - - httpRes, err = s.sdkConfiguration.Client.Do(req) - if err != nil || httpRes == nil { - if err != nil { - err = fmt.Errorf("error sending request: %w", err) - } else { - err = fmt.Errorf("error sending request: no response") - } - - _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) - return nil, err - } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { - _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) - if err != nil { - return nil, err - } else if _httpRes != nil { - httpRes = _httpRes - } - } else { - httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) - if err != nil { - return nil, err - } - } - } - - res := &operations.C1APIFunctionsV1FunctionsServiceCommitResponse{ - StatusCode: httpRes.StatusCode, - ContentType: httpRes.Header.Get("Content-Type"), - RawResponse: httpRes, - } - - switch { - case httpRes.StatusCode == 200: - switch { - case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - - var out shared.FunctionsServiceCommitResponse - if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { - return nil, err - } - - res.FunctionsServiceCommitResponse = &out - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) - } - case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) - default: - rawBody, err := utils.ConsumeRawBody(httpRes) - if err != nil { - return nil, err - } - return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) - } - - return res, nil - -} - // CreateFunction - Create Function // Invokes the c1.api.functions.v1.FunctionsService.CreateFunction method. func (s *Functions) CreateFunction(ctx context.Context, request *shared.FunctionsServiceCreateFunctionRequest, opts ...operations.Option) (*operations.C1APIFunctionsV1FunctionsServiceCreateFunctionResponse, error) { @@ -275,7 +63,7 @@ func (s *Functions) CreateFunction(ctx context.Context, request *shared.Function BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsService.CreateFunction", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -487,7 +275,7 @@ func (s *Functions) CreateTag(ctx context.Context, request operations.C1APIFunct BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsService.CreateTag", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "FunctionsServiceCreateTagRequest", "json", `request:"mediaType=application/json"`) @@ -699,7 +487,7 @@ func (s *Functions) DeleteFunction(ctx context.Context, request operations.C1API BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsService.DeleteFunction", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "FunctionsServiceDeleteFunctionRequest", "json", `request:"mediaType=application/json"`) @@ -879,9 +667,9 @@ func (s *Functions) DeleteFunction(ctx context.Context, request operations.C1API } -// GetCommit - Get Commit -// GetCommit retrieves the commit and its code content for a specific version -func (s *Functions) GetCommit(ctx context.Context, request operations.C1APIFunctionsV1FunctionsServiceGetCommitRequest, opts ...operations.Option) (*operations.C1APIFunctionsV1FunctionsServiceGetCommitResponse, error) { +// GetFunction - Get Function +// Get retrieves a specific function by ID +func (s *Functions) GetFunction(ctx context.Context, request operations.C1APIFunctionsV1FunctionsServiceGetFunctionRequest, opts ...operations.Option) (*operations.C1APIFunctionsV1FunctionsServiceGetFunctionResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -900,7 +688,7 @@ func (s *Functions) GetCommit(ctx context.Context, request operations.C1APIFunct } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/functions/{function_id}/commits/{id}", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/functions/{id}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -910,8 +698,8 @@ func (s *Functions) GetCommit(ctx context.Context, request operations.C1APIFunct SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.functions.v1.FunctionsService.GetCommit", - OAuth2Scopes: []string{}, + OperationID: "c1.api.functions.v1.FunctionsService.GetFunction", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1032,7 +820,7 @@ func (s *Functions) GetCommit(ctx context.Context, request operations.C1APIFunct } } - res := &operations.C1APIFunctionsV1FunctionsServiceGetCommitResponse{ + res := &operations.C1APIFunctionsV1FunctionsServiceGetFunctionResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1047,12 +835,12 @@ func (s *Functions) GetCommit(ctx context.Context, request operations.C1APIFunct return nil, err } - var out shared.FunctionsServiceGetCommitResponse + var out shared.FunctionsServiceGetFunctionResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.FunctionsServiceGetCommitResponse = &out + res.FunctionsServiceGetFunctionResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1084,9 +872,9 @@ func (s *Functions) GetCommit(ctx context.Context, request operations.C1APIFunct } -// GetFunction - Get Function -// Get retrieves a specific function by ID -func (s *Functions) GetFunction(ctx context.Context, request operations.C1APIFunctionsV1FunctionsServiceGetFunctionRequest, opts ...operations.Option) (*operations.C1APIFunctionsV1FunctionsServiceGetFunctionResponse, error) { +// GetFunctionSecretEncryptionKey - Get Function Secret Encryption Key +// GetFunctionSecretEncryptionKey retrieves or generates the public key for encrypting function secrets +func (s *Functions) GetFunctionSecretEncryptionKey(ctx context.Context, request operations.C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyRequest, opts ...operations.Option) (*operations.C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1105,7 +893,7 @@ func (s *Functions) GetFunction(ctx context.Context, request operations.C1APIFun } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/functions/{id}", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/functions/{function_id}/secret-encryption-key", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -1115,8 +903,8 @@ func (s *Functions) GetFunction(ctx context.Context, request operations.C1APIFun SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.functions.v1.FunctionsService.GetFunction", - OAuth2Scopes: []string{}, + OperationID: "c1.api.functions.v1.FunctionsService.GetFunctionSecretEncryptionKey", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1237,7 +1025,7 @@ func (s *Functions) GetFunction(ctx context.Context, request operations.C1APIFun } } - res := &operations.C1APIFunctionsV1FunctionsServiceGetFunctionResponse{ + res := &operations.C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1252,12 +1040,12 @@ func (s *Functions) GetFunction(ctx context.Context, request operations.C1APIFun return nil, err } - var out shared.FunctionsServiceGetFunctionResponse + var out shared.FunctionsServiceGetFunctionSecretEncryptionKeyResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.FunctionsServiceGetFunctionResponse = &out + res.FunctionsServiceGetFunctionSecretEncryptionKeyResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1321,7 +1109,7 @@ func (s *Functions) Invoke(ctx context.Context, request operations.C1APIFunction BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsService.Invoke", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "FunctionsServiceInvokeRequest", "json", `request:"mediaType=application/json"`) @@ -1533,7 +1321,7 @@ func (s *Functions) ListCommits(ctx context.Context, request operations.C1APIFun BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsService.ListCommits", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1738,7 +1526,7 @@ func (s *Functions) ListFunctions(ctx context.Context, opts ...operations.Option BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsService.ListFunctions", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1943,7 +1731,7 @@ func (s *Functions) ListTags(ctx context.Context, request operations.C1APIFuncti BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsService.ListTags", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2148,7 +1936,7 @@ func (s *Functions) UpdateFunction(ctx context.Context, request *shared.Function BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsService.UpdateFunction", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/functionsinvocation.go b/vendor/github.com/conductorone/conductorone-sdk-go/functionsinvocation.go new file mode 100644 index 00000000..4c1ec9b1 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/functionsinvocation.go @@ -0,0 +1,441 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package conductoronesdkgo + +import ( + "bytes" + "context" + "fmt" + "github.com/conductorone/conductorone-sdk-go/internal/config" + "github.com/conductorone/conductorone-sdk-go/internal/hooks" + "github.com/conductorone/conductorone-sdk-go/pkg/models/operations" + "github.com/conductorone/conductorone-sdk-go/pkg/models/sdkerrors" + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "github.com/conductorone/conductorone-sdk-go/pkg/retry" + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "net/http" +) + +type FunctionsInvocation struct { + rootSDK *ConductoroneAPI + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newFunctionsInvocation(rootSDK *ConductoroneAPI, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *FunctionsInvocation { + return &FunctionsInvocation{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// Get +// Get retrieves a specific invocation by ID +func (s *FunctionsInvocation) Get(ctx context.Context, request operations.C1APIFunctionsV1FunctionsInvocationServiceGetRequest, opts ...operations.Option) (*operations.C1APIFunctionsV1FunctionsInvocationServiceGetResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/functions/{function_id}/invocations/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.functions.v1.FunctionsInvocationService.Get", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIFunctionsV1FunctionsInvocationServiceGetResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.FunctionsInvocationServiceGetResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.FunctionsInvocationServiceGetResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// List +// List retrieves the invocation history for a function +func (s *FunctionsInvocation) List(ctx context.Context, request operations.C1APIFunctionsV1FunctionsInvocationServiceListRequest, opts ...operations.Option) (*operations.C1APIFunctionsV1FunctionsInvocationServiceListResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/functions/{function_id}/invocations", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.functions.v1.FunctionsInvocationService.List", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIFunctionsV1FunctionsInvocationServiceListResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.FunctionsInvocationServiceListResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.FunctionsInvocationServiceListResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/functionssearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/functionssearch.go index 1df4ae13..f208345f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/functionssearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/functionssearch.go @@ -63,7 +63,7 @@ func (s *FunctionsSearch) Search(ctx context.Context, request *shared.FunctionsS BaseURL: baseURL, Context: ctx, OperationID: "c1.api.functions.v1.FunctionsSearch.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/gen.yaml b/vendor/github.com/conductorone/conductorone-sdk-go/gen.yaml index 338cb6a7..05707310 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/gen.yaml +++ b/vendor/github.com/conductorone/conductorone-sdk-go/gen.yaml @@ -13,18 +13,24 @@ generation: auth: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false + hoistGlobalSecurity: true + schemas: + allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" + persistentEdits: {} tests: generateTests: true generateNewTests: false skipResponseBodyAssertions: false go: - version: 1.25.0 + version: 1.26.1 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: ConductoroneAPIError clientServerStatusCodesAsErrors: true defaultErrorName: SDKError flattenGlobalSecurity: true + forwardCompatibleEnumsByDefault: false imports: option: openapi paths: @@ -33,11 +39,17 @@ go: operations: pkg/models/operations shared: pkg/models/shared webhooks: pkg/models/webhooks + includeEmptyObjects: false + inferUnionDiscriminators: false inputModelSuffix: input maxMethodParams: 0 methodArguments: require-security-and-request modulePath: "" + multipartArrayFormat: legacy + nullableOptionalWrapper: false outputModelSuffix: output packageName: github.com/conductorone/conductorone-sdk-go + respectRequiredFields: false responseFormat: envelope sdkPackageName: "" + unionStrategy: left-to-right diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/orgdomain.go b/vendor/github.com/conductorone/conductorone-sdk-go/orgdomain.go index f0b8b247..961d495c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/orgdomain.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/orgdomain.go @@ -63,7 +63,7 @@ func (s *OrgDomain) List(ctx context.Context, request operations.C1APISettingsV1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.settings.v1.OrgDomainService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -85,7 +85,7 @@ func (s *OrgDomain) List(ctx context.Context, request operations.C1APISettingsV1 req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -272,7 +272,7 @@ func (s *OrgDomain) Update(ctx context.Context, request *shared.UpdateOrgDomainR BaseURL: baseURL, Context: ctx, OperationID: "c1.api.settings.v1.OrgDomainService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/personalclient.go b/vendor/github.com/conductorone/conductorone-sdk-go/personalclient.go index 9efaab49..0bf7ba7c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/personalclient.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/personalclient.go @@ -63,7 +63,7 @@ func (s *PersonalClient) Create(ctx context.Context, request *shared.PersonalCli BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.PersonalClientService.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *PersonalClient) Delete(ctx context.Context, request operations.C1APIIam BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.PersonalClientService.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "PersonalClientServiceDeleteRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *PersonalClient) Get(ctx context.Context, request operations.C1APIIamV1P BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.PersonalClientService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -692,7 +692,7 @@ func (s *PersonalClient) List(ctx context.Context, opts ...operations.Option) (* BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.PersonalClientService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -897,7 +897,7 @@ func (s *PersonalClient) Update(ctx context.Context, request operations.C1APIIam BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.PersonalClientService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "PersonalClientServiceUpdateRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/personalclientsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/personalclientsearch.go index 282586b8..680df852 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/personalclientsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/personalclientsearch.go @@ -63,7 +63,7 @@ func (s *PersonalClientSearch) Search(ctx context.Context, request *shared.Perso BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.PersonalClientSearchService.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicecreatemonitor.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicecreatemonitor.go index dc2584c6..ce8da5da 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicecreatemonitor.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicecreatemonitor.go @@ -18,30 +18,30 @@ type C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse struct { RawResponse *http.Response } -func (o *C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse) GetConflictMonitor() *shared.ConflictMonitor { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse) GetConflictMonitor() *shared.ConflictMonitor { + if c == nil { return nil } - return o.ConflictMonitor + return c.ConflictMonitor } -func (o *C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse) GetContentType() string { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceCreateMonitorResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicedeletemonitor.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicedeletemonitor.go index adc3b4b7..a646a2b5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicedeletemonitor.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicedeletemonitor.go @@ -12,18 +12,18 @@ type C1APIAccessconflictV1AccessConflictServiceDeleteMonitorRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorRequest) GetConflictMonitorDeleteRequest() *shared.ConflictMonitorDeleteRequest { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorRequest) GetConflictMonitorDeleteRequest() *shared.ConflictMonitorDeleteRequest { + if c == nil { return nil } - return o.ConflictMonitorDeleteRequest + return c.ConflictMonitorDeleteRequest } -func (o *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorRequest) GetID() string { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse struct { @@ -37,30 +37,30 @@ type C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse struct { RawResponse *http.Response } -func (o *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse) GetConflictMonitorDeleteResponse() *shared.ConflictMonitorDeleteResponse { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse) GetConflictMonitorDeleteResponse() *shared.ConflictMonitorDeleteResponse { + if c == nil { return nil } - return o.ConflictMonitorDeleteResponse + return c.ConflictMonitorDeleteResponse } -func (o *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse) GetContentType() string { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceDeleteMonitorResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicegetmonitor.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicegetmonitor.go index cc17ae0a..66dc127f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicegetmonitor.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictservicegetmonitor.go @@ -11,11 +11,11 @@ type C1APIAccessconflictV1AccessConflictServiceGetMonitorRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAccessconflictV1AccessConflictServiceGetMonitorRequest) GetID() string { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceGetMonitorRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse struct { @@ -29,30 +29,30 @@ type C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse struct { RawResponse *http.Response } -func (o *C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse) GetConflictMonitor() *shared.ConflictMonitor { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse) GetConflictMonitor() *shared.ConflictMonitor { + if c == nil { return nil } - return o.ConflictMonitor + return c.ConflictMonitor } -func (o *C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse) GetContentType() string { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceGetMonitorResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictserviceupdatemonitor.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictserviceupdatemonitor.go index 73d04b6a..58729f21 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictserviceupdatemonitor.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1accessconflictserviceupdatemonitor.go @@ -12,18 +12,18 @@ type C1APIAccessconflictV1AccessConflictServiceUpdateMonitorRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorRequest) GetConflictMonitorUpdateRequest() *shared.ConflictMonitorUpdateRequest { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorRequest) GetConflictMonitorUpdateRequest() *shared.ConflictMonitorUpdateRequest { + if c == nil { return nil } - return o.ConflictMonitorUpdateRequest + return c.ConflictMonitorUpdateRequest } -func (o *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorRequest) GetID() string { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse struct { @@ -37,30 +37,30 @@ type C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse struct { RawResponse *http.Response } -func (o *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse) GetConflictMonitor() *shared.ConflictMonitor { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse) GetConflictMonitor() *shared.ConflictMonitor { + if c == nil { return nil } - return o.ConflictMonitor + return c.ConflictMonitor } -func (o *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse) GetContentType() string { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAccessconflictV1AccessConflictServiceUpdateMonitorResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicecreateappentitlementmonitorbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicecreateappentitlementmonitorbinding.go index 67bfb77c..7086c3bb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicecreateappentitlementmonitorbinding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicecreateappentitlementmonitorbinding.go @@ -18,30 +18,30 @@ type C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlemen RawResponse *http.Response } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlementMonitorBindingResponse) GetAppEntitlementMonitorBinding() *shared.AppEntitlementMonitorBinding { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlementMonitorBindingResponse) GetAppEntitlementMonitorBinding() *shared.AppEntitlementMonitorBinding { + if c == nil { return nil } - return o.AppEntitlementMonitorBinding + return c.AppEntitlementMonitorBinding } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlementMonitorBindingResponse) GetContentType() string { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlementMonitorBindingResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlementMonitorBindingResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlementMonitorBindingResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlementMonitorBindingResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceCreateAppEntitlementMonitorBindingResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicedeleteappentitlementmonitorbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicedeleteappentitlementmonitorbinding.go index 7c28bf93..54822c24 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicedeleteappentitlementmonitorbinding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicedeleteappentitlementmonitorbinding.go @@ -18,30 +18,30 @@ type C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlemen RawResponse *http.Response } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlementMonitorBindingResponse) GetContentType() string { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlementMonitorBindingResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlementMonitorBindingResponse) GetDeleteAppEntitlementMonitorBindingResponse() *shared.DeleteAppEntitlementMonitorBindingResponse { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlementMonitorBindingResponse) GetDeleteAppEntitlementMonitorBindingResponse() *shared.DeleteAppEntitlementMonitorBindingResponse { + if c == nil { return nil } - return o.DeleteAppEntitlementMonitorBindingResponse + return c.DeleteAppEntitlementMonitorBindingResponse } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlementMonitorBindingResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlementMonitorBindingResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlementMonitorBindingResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceDeleteAppEntitlementMonitorBindingResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicegetappentitlementmonitorbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicegetappentitlementmonitorbinding.go index f3d44f7c..1721bacb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicegetappentitlementmonitorbinding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessconflictv1appentitlementmonitorbindingservicegetappentitlementmonitorbinding.go @@ -18,30 +18,30 @@ type C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMo RawResponse *http.Response } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMonitorBindingResponse) GetAppEntitlementMonitorBinding() *shared.AppEntitlementMonitorBinding { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMonitorBindingResponse) GetAppEntitlementMonitorBinding() *shared.AppEntitlementMonitorBinding { + if c == nil { return nil } - return o.AppEntitlementMonitorBinding + return c.AppEntitlementMonitorBinding } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMonitorBindingResponse) GetContentType() string { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMonitorBindingResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMonitorBindingResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMonitorBindingResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMonitorBindingResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAccessconflictV1AppEntitlementMonitorBindingServiceGetAppEntitlementMonitorBindingResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicecreate.go new file mode 100644 index 00000000..f7ee38fb --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicecreate.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewServiceCreateResponse struct { + // Successful response + AccessReviewServiceCreateResponse *shared.AccessReviewServiceCreateResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewServiceCreateResponse) GetAccessReviewServiceCreateResponse() *shared.AccessReviewServiceCreateResponse { + if c == nil { + return nil + } + return c.AccessReviewServiceCreateResponse +} + +func (c *C1APIAccessreviewV1AccessReviewServiceCreateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewServiceCreateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicedelete.go new file mode 100644 index 00000000..cfb4aa1c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicedelete.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewServiceDeleteRequest struct { + AccessReviewServiceDeleteRequest *shared.AccessReviewServiceDeleteRequest `request:"mediaType=application/json"` + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIAccessreviewV1AccessReviewServiceDeleteRequest) GetAccessReviewServiceDeleteRequest() *shared.AccessReviewServiceDeleteRequest { + if c == nil { + return nil + } + return c.AccessReviewServiceDeleteRequest +} + +func (c *C1APIAccessreviewV1AccessReviewServiceDeleteRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIAccessreviewV1AccessReviewServiceDeleteResponse struct { + // Successful response + AccessReviewServiceDeleteResponse *shared.AccessReviewServiceDeleteResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewServiceDeleteResponse) GetAccessReviewServiceDeleteResponse() *shared.AccessReviewServiceDeleteResponse { + if c == nil { + return nil + } + return c.AccessReviewServiceDeleteResponse +} + +func (c *C1APIAccessreviewV1AccessReviewServiceDeleteResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewServiceDeleteResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewserviceget.go new file mode 100644 index 00000000..747ab1cf --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewserviceget.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewServiceGetRequest struct { + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIAccessreviewV1AccessReviewServiceGetRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIAccessreviewV1AccessReviewServiceGetResponse struct { + // Successful response + AccessReviewServiceGetResponse *shared.AccessReviewServiceGetResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewServiceGetResponse) GetAccessReviewServiceGetResponse() *shared.AccessReviewServiceGetResponse { + if c == nil { + return nil + } + return c.AccessReviewServiceGetResponse +} + +func (c *C1APIAccessreviewV1AccessReviewServiceGetResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewServiceGetResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicelist.go new file mode 100644 index 00000000..ef3829b4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewservicelist.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewServiceListRequest struct { + PageSize *int `queryParam:"style=form,explode=true,name=page_size"` + PageToken *string `queryParam:"style=form,explode=true,name=page_token"` +} + +func (c *C1APIAccessreviewV1AccessReviewServiceListRequest) GetPageSize() *int { + if c == nil { + return nil + } + return c.PageSize +} + +func (c *C1APIAccessreviewV1AccessReviewServiceListRequest) GetPageToken() *string { + if c == nil { + return nil + } + return c.PageToken +} + +type C1APIAccessreviewV1AccessReviewServiceListResponse struct { + // Successful response + AccessReviewServiceListResponse *shared.AccessReviewServiceListResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewServiceListResponse) GetAccessReviewServiceListResponse() *shared.AccessReviewServiceListResponse { + if c == nil { + return nil + } + return c.AccessReviewServiceListResponse +} + +func (c *C1APIAccessreviewV1AccessReviewServiceListResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewServiceListResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewServiceListResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewserviceupdate.go new file mode 100644 index 00000000..29bc9c9f --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewserviceupdate.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewServiceUpdateRequest struct { + AccessReviewServiceUpdateRequest *shared.AccessReviewServiceUpdateRequest `request:"mediaType=application/json"` + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIAccessreviewV1AccessReviewServiceUpdateRequest) GetAccessReviewServiceUpdateRequest() *shared.AccessReviewServiceUpdateRequest { + if c == nil { + return nil + } + return c.AccessReviewServiceUpdateRequest +} + +func (c *C1APIAccessreviewV1AccessReviewServiceUpdateRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIAccessreviewV1AccessReviewServiceUpdateResponse struct { + // Successful response + AccessReviewServiceUpdateResponse *shared.AccessReviewServiceUpdateResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewServiceUpdateResponse) GetAccessReviewServiceUpdateResponse() *shared.AccessReviewServiceUpdateResponse { + if c == nil { + return nil + } + return c.AccessReviewServiceUpdateResponse +} + +func (c *C1APIAccessreviewV1AccessReviewServiceUpdateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewServiceUpdateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateservicecreate.go new file mode 100644 index 00000000..576c3249 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateservicecreate.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewTemplateServiceCreateResponse struct { + // Successful response + AccessReviewTemplateServiceCreateResponse *shared.AccessReviewTemplateServiceCreateResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceCreateResponse) GetAccessReviewTemplateServiceCreateResponse() *shared.AccessReviewTemplateServiceCreateResponse { + if c == nil { + return nil + } + return c.AccessReviewTemplateServiceCreateResponse +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceCreateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceCreateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateservicedelete.go new file mode 100644 index 00000000..885131c9 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateservicedelete.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewTemplateServiceDeleteRequest struct { + AccessReviewTemplateServiceDeleteRequest *shared.AccessReviewTemplateServiceDeleteRequest `request:"mediaType=application/json"` + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceDeleteRequest) GetAccessReviewTemplateServiceDeleteRequest() *shared.AccessReviewTemplateServiceDeleteRequest { + if c == nil { + return nil + } + return c.AccessReviewTemplateServiceDeleteRequest +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceDeleteRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIAccessreviewV1AccessReviewTemplateServiceDeleteResponse struct { + // Successful response + AccessReviewTemplateServiceDeleteResponse *shared.AccessReviewTemplateServiceDeleteResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceDeleteResponse) GetAccessReviewTemplateServiceDeleteResponse() *shared.AccessReviewTemplateServiceDeleteResponse { + if c == nil { + return nil + } + return c.AccessReviewTemplateServiceDeleteResponse +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceDeleteResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceDeleteResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateserviceget.go new file mode 100644 index 00000000..f037139b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateserviceget.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewTemplateServiceGetRequest struct { + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceGetRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIAccessreviewV1AccessReviewTemplateServiceGetResponse struct { + // Successful response + AccessReviewTemplateServiceGetResponse *shared.AccessReviewTemplateServiceGetResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceGetResponse) GetAccessReviewTemplateServiceGetResponse() *shared.AccessReviewTemplateServiceGetResponse { + if c == nil { + return nil + } + return c.AccessReviewTemplateServiceGetResponse +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceGetResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceGetResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateserviceupdate.go new file mode 100644 index 00000000..5ccc3218 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiaccessreviewv1accessreviewtemplateserviceupdate.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAccessreviewV1AccessReviewTemplateServiceUpdateRequest struct { + AccessReviewTemplateServiceUpdateRequest *shared.AccessReviewTemplateServiceUpdateRequest `request:"mediaType=application/json"` + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceUpdateRequest) GetAccessReviewTemplateServiceUpdateRequest() *shared.AccessReviewTemplateServiceUpdateRequest { + if c == nil { + return nil + } + return c.AccessReviewTemplateServiceUpdateRequest +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceUpdateRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIAccessreviewV1AccessReviewTemplateServiceUpdateResponse struct { + // Successful response + AccessReviewTemplateServiceUpdateResponse *shared.AccessReviewTemplateServiceUpdateResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceUpdateResponse) GetAccessReviewTemplateServiceUpdateResponse() *shared.AccessReviewTemplateServiceUpdateResponse { + if c == nil { + return nil + } + return c.AccessReviewTemplateServiceUpdateResponse +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceUpdateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceUpdateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAccessreviewV1AccessReviewTemplateServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicecancelappaccessrequestsdefaults.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicecancelappaccessrequestsdefaults.go index b9c887ec..7e1fdc8d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicecancelappaccessrequestsdefaults.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicecancelappaccessrequestsdefaults.go @@ -12,18 +12,18 @@ type C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsRe AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsRequest) GetCancelAccessRequestDefaultsRequest() *shared.CancelAccessRequestDefaultsRequest { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsRequest) GetCancelAccessRequestDefaultsRequest() *shared.CancelAccessRequestDefaultsRequest { + if c == nil { return nil } - return o.CancelAccessRequestDefaultsRequest + return c.CancelAccessRequestDefaultsRequest } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsRe RawResponse *http.Response } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse) GetAppAccessRequestDefaults() *shared.AppAccessRequestDefaults { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse) GetAppAccessRequestDefaults() *shared.AppAccessRequestDefaults { + if c == nil { return nil } - return o.AppAccessRequestDefaults + return c.AppAccessRequestDefaults } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCancelAppAccessRequestsDefaultsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicecreateappaccessrequestsdefaults.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicecreateappaccessrequestsdefaults.go index b28371a0..618a498f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicecreateappaccessrequestsdefaults.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicecreateappaccessrequestsdefaults.go @@ -12,18 +12,18 @@ type C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsRe AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsRequest) GetAppAccessRequestDefaults() *shared.AppAccessRequestDefaults1 { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsRequest) GetAppAccessRequestDefaults() *shared.AppAccessRequestDefaults1 { + if c == nil { return nil } - return o.AppAccessRequestDefaults + return c.AppAccessRequestDefaults } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsRe RawResponse *http.Response } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse) GetAppAccessRequestDefaults() *shared.AppAccessRequestDefaults { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse) GetAppAccessRequestDefaults() *shared.AppAccessRequestDefaults { + if c == nil { return nil } - return o.AppAccessRequestDefaults + return c.AppAccessRequestDefaults } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceCreateAppAccessRequestsDefaultsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicegetappaccessrequestsdefaults.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicegetappaccessrequestsdefaults.go index 9473a360..faf95bf7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicegetappaccessrequestsdefaults.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appaccessrequestsdefaultsservicegetappaccessrequestsdefaults.go @@ -11,11 +11,11 @@ type C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsReque AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse struct { @@ -29,30 +29,30 @@ type C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsRespo RawResponse *http.Response } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse) GetAppAccessRequestDefaults() *shared.AppAccessRequestDefaults { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse) GetAppAccessRequestDefaults() *shared.AppAccessRequestDefaults { + if c == nil { return nil } - return o.AppAccessRequestDefaults + return c.AppAccessRequestDefaults } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppAccessRequestsDefaultsServiceGetAppAccessRequestsDefaultsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersadd.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersadd.go index b94fd701..1493fec8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersadd.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersadd.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementOwnersAddRequest struct { EntitlementID string `pathParam:"style=simple,explode=false,name=entitlement_id"` } -func (o *C1APIAppV1AppEntitlementOwnersAddRequest) GetAddAppEntitlementOwnerRequest() *shared.AddAppEntitlementOwnerRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersAddRequest) GetAddAppEntitlementOwnerRequest() *shared.AddAppEntitlementOwnerRequest { + if c == nil { return nil } - return o.AddAppEntitlementOwnerRequest + return c.AddAppEntitlementOwnerRequest } -func (o *C1APIAppV1AppEntitlementOwnersAddRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersAddRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementOwnersAddRequest) GetEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersAddRequest) GetEntitlementID() string { + if c == nil { return "" } - return o.EntitlementID + return c.EntitlementID } type C1APIAppV1AppEntitlementOwnersAddResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementOwnersAddResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementOwnersAddResponse) GetAddAppEntitlementOwnerResponse() *shared.AddAppEntitlementOwnerResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersAddResponse) GetAddAppEntitlementOwnerResponse() *shared.AddAppEntitlementOwnerResponse { + if c == nil { return nil } - return o.AddAppEntitlementOwnerResponse + return c.AddAppEntitlementOwnerResponse } -func (o *C1APIAppV1AppEntitlementOwnersAddResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersAddResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementOwnersAddResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersAddResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementOwnersAddResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersAddResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersdelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersdelete.go new file mode 100644 index 00000000..d5872f5a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersdelete.go @@ -0,0 +1,74 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1AppEntitlementOwnersDeleteRequest struct { + DeleteAppEntitlementOwnersRequest *shared.DeleteAppEntitlementOwnersRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + EntitlementID string `pathParam:"style=simple,explode=false,name=entitlement_id"` +} + +func (c *C1APIAppV1AppEntitlementOwnersDeleteRequest) GetDeleteAppEntitlementOwnersRequest() *shared.DeleteAppEntitlementOwnersRequest { + if c == nil { + return nil + } + return c.DeleteAppEntitlementOwnersRequest +} + +func (c *C1APIAppV1AppEntitlementOwnersDeleteRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIAppV1AppEntitlementOwnersDeleteRequest) GetEntitlementID() string { + if c == nil { + return "" + } + return c.EntitlementID +} + +type C1APIAppV1AppEntitlementOwnersDeleteResponse struct { + // HTTP response content type for this operation + ContentType string + // the empty response message for deleting app entitlement owners. + DeleteAppEntitlementOwnersResponse *shared.DeleteAppEntitlementOwnersResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1AppEntitlementOwnersDeleteResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1AppEntitlementOwnersDeleteResponse) GetDeleteAppEntitlementOwnersResponse() *shared.DeleteAppEntitlementOwnersResponse { + if c == nil { + return nil + } + return c.DeleteAppEntitlementOwnersResponse +} + +func (c *C1APIAppV1AppEntitlementOwnersDeleteResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1AppEntitlementOwnersDeleteResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownerslist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownerslist.go index 90e4aeb6..2084c5ee 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownerslist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownerslist.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementOwnersListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppEntitlementOwnersListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementOwnersListRequest) GetEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersListRequest) GetEntitlementID() string { + if c == nil { return "" } - return o.EntitlementID + return c.EntitlementID } -func (o *C1APIAppV1AppEntitlementOwnersListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppEntitlementOwnersListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppEntitlementOwnersListResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementOwnersListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementOwnersListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementOwnersListResponse) GetListAppEntitlementOwnersResponse() *shared.ListAppEntitlementOwnersResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersListResponse) GetListAppEntitlementOwnersResponse() *shared.ListAppEntitlementOwnersResponse { + if c == nil { return nil } - return o.ListAppEntitlementOwnersResponse + return c.ListAppEntitlementOwnersResponse } -func (o *C1APIAppV1AppEntitlementOwnersListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementOwnersListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownerslistownerids.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownerslistownerids.go new file mode 100644 index 00000000..e2b10eee --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownerslistownerids.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1AppEntitlementOwnersListOwnerIDsRequest struct { + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + EntitlementID string `pathParam:"style=simple,explode=false,name=entitlement_id"` +} + +func (c *C1APIAppV1AppEntitlementOwnersListOwnerIDsRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIAppV1AppEntitlementOwnersListOwnerIDsRequest) GetEntitlementID() string { + if c == nil { + return "" + } + return c.EntitlementID +} + +type C1APIAppV1AppEntitlementOwnersListOwnerIDsResponse struct { + // HTTP response content type for this operation + ContentType string + // The response message for listing app entitlement owners IDs. + ListAppEntitlementOwnerIDsResponse *shared.ListAppEntitlementOwnerIDsResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1AppEntitlementOwnersListOwnerIDsResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1AppEntitlementOwnersListOwnerIDsResponse) GetListAppEntitlementOwnerIDsResponse() *shared.ListAppEntitlementOwnerIDsResponse { + if c == nil { + return nil + } + return c.ListAppEntitlementOwnerIDsResponse +} + +func (c *C1APIAppV1AppEntitlementOwnersListOwnerIDsResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1AppEntitlementOwnersListOwnerIDsResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersremove.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersremove.go index 06594db7..290e9ed2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersremove.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersremove.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementOwnersRemoveRequest struct { UserID string `pathParam:"style=simple,explode=false,name=user_id"` } -func (o *C1APIAppV1AppEntitlementOwnersRemoveRequest) GetRemoveAppEntitlementOwnerRequest() *shared.RemoveAppEntitlementOwnerRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersRemoveRequest) GetRemoveAppEntitlementOwnerRequest() *shared.RemoveAppEntitlementOwnerRequest { + if c == nil { return nil } - return o.RemoveAppEntitlementOwnerRequest + return c.RemoveAppEntitlementOwnerRequest } -func (o *C1APIAppV1AppEntitlementOwnersRemoveRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersRemoveRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementOwnersRemoveRequest) GetEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersRemoveRequest) GetEntitlementID() string { + if c == nil { return "" } - return o.EntitlementID + return c.EntitlementID } -func (o *C1APIAppV1AppEntitlementOwnersRemoveRequest) GetUserID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersRemoveRequest) GetUserID() string { + if c == nil { return "" } - return o.UserID + return c.UserID } type C1APIAppV1AppEntitlementOwnersRemoveResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementOwnersRemoveResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementOwnersRemoveResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersRemoveResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementOwnersRemoveResponse) GetRemoveAppEntitlementOwnerResponse() *shared.RemoveAppEntitlementOwnerResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersRemoveResponse) GetRemoveAppEntitlementOwnerResponse() *shared.RemoveAppEntitlementOwnerResponse { + if c == nil { return nil } - return o.RemoveAppEntitlementOwnerResponse + return c.RemoveAppEntitlementOwnerResponse } -func (o *C1APIAppV1AppEntitlementOwnersRemoveResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersRemoveResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementOwnersRemoveResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersRemoveResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersset.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersset.go index fe1f4a18..36c3b6e5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersset.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementownersset.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementOwnersSetRequest struct { EntitlementID string `pathParam:"style=simple,explode=false,name=entitlement_id"` } -func (o *C1APIAppV1AppEntitlementOwnersSetRequest) GetSetAppEntitlementOwnersRequest() *shared.SetAppEntitlementOwnersRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersSetRequest) GetSetAppEntitlementOwnersRequest() *shared.SetAppEntitlementOwnersRequest { + if c == nil { return nil } - return o.SetAppEntitlementOwnersRequest + return c.SetAppEntitlementOwnersRequest } -func (o *C1APIAppV1AppEntitlementOwnersSetRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersSetRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementOwnersSetRequest) GetEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersSetRequest) GetEntitlementID() string { + if c == nil { return "" } - return o.EntitlementID + return c.EntitlementID } type C1APIAppV1AppEntitlementOwnersSetResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementOwnersSetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementOwnersSetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersSetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementOwnersSetResponse) GetSetAppEntitlementOwnersResponse() *shared.SetAppEntitlementOwnersResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersSetResponse) GetSetAppEntitlementOwnersResponse() *shared.SetAppEntitlementOwnersResponse { + if c == nil { return nil } - return o.SetAppEntitlementOwnersResponse + return c.SetAppEntitlementOwnersResponse } -func (o *C1APIAppV1AppEntitlementOwnersSetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersSetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementOwnersSetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementOwnersSetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsaddautomationexclusion.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsaddautomationexclusion.go index 4aee4f1f..bed0d6fe 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsaddautomationexclusion.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsaddautomationexclusion.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsAddAutomationExclusionRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsAddAutomationExclusionRequest) GetAddAutomationExclusionRequest() *shared.AddAutomationExclusionRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddAutomationExclusionRequest) GetAddAutomationExclusionRequest() *shared.AddAutomationExclusionRequest { + if c == nil { return nil } - return o.AddAutomationExclusionRequest + return c.AddAutomationExclusionRequest } -func (o *C1APIAppV1AppEntitlementsAddAutomationExclusionRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddAutomationExclusionRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsAddAutomationExclusionRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddAutomationExclusionRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsAddAutomationExclusionResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsAddAutomationExclusionResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsAddAutomationExclusionResponse) GetAddAutomationExclusionResponse() *shared.AddAutomationExclusionResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddAutomationExclusionResponse) GetAddAutomationExclusionResponse() *shared.AddAutomationExclusionResponse { + if c == nil { return nil } - return o.AddAutomationExclusionResponse + return c.AddAutomationExclusionResponse } -func (o *C1APIAppV1AppEntitlementsAddAutomationExclusionResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddAutomationExclusionResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsAddAutomationExclusionResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddAutomationExclusionResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsAddAutomationExclusionResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddAutomationExclusionResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsaddmanuallymanagedmembers.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsaddmanuallymanagedmembers.go index 02221271..7d7f3d68 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsaddmanuallymanagedmembers.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsaddmanuallymanagedmembers.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsAddManuallyManagedMembersRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsAddManuallyManagedMembersRequest) GetAddManuallyManagedUsersRequest() *shared.AddManuallyManagedUsersRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddManuallyManagedMembersRequest) GetAddManuallyManagedUsersRequest() *shared.AddManuallyManagedUsersRequest { + if c == nil { return nil } - return o.AddManuallyManagedUsersRequest + return c.AddManuallyManagedUsersRequest } -func (o *C1APIAppV1AppEntitlementsAddManuallyManagedMembersRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddManuallyManagedMembersRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsAddManuallyManagedMembersRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddManuallyManagedMembersRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse) GetManuallyManagedUsersResponse() *shared.ManuallyManagedUsersResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse) GetManuallyManagedUsersResponse() *shared.ManuallyManagedUsersResponse { + if c == nil { return nil } - return o.ManuallyManagedUsersResponse + return c.ManuallyManagedUsersResponse } -func (o *C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsAddManuallyManagedMembersResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementscreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementscreate.go index e5745ab5..183c2473 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementscreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementscreate.go @@ -12,18 +12,18 @@ type C1APIAppV1AppEntitlementsCreateRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsCreateRequest) GetCreateAppEntitlementRequest() *shared.CreateAppEntitlementRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateRequest) GetCreateAppEntitlementRequest() *shared.CreateAppEntitlementRequest { + if c == nil { return nil } - return o.CreateAppEntitlementRequest + return c.CreateAppEntitlementRequest } -func (o *C1APIAppV1AppEntitlementsCreateRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsCreateResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppEntitlementsCreateResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsCreateResponse) GetCreateAppEntitlementResponse() *shared.CreateAppEntitlementResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateResponse) GetCreateAppEntitlementResponse() *shared.CreateAppEntitlementResponse { + if c == nil { return nil } - return o.CreateAppEntitlementResponse + return c.CreateAppEntitlementResponse } -func (o *C1APIAppV1AppEntitlementsCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementscreateautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementscreateautomation.go index afc5b401..d18e782c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementscreateautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementscreateautomation.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsCreateAutomationRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsCreateAutomationRequest) GetCreateAutomationRequest() *shared.CreateAutomationRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateAutomationRequest) GetCreateAutomationRequest() *shared.CreateAutomationRequest { + if c == nil { return nil } - return o.CreateAutomationRequest + return c.CreateAutomationRequest } -func (o *C1APIAppV1AppEntitlementsCreateAutomationRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateAutomationRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsCreateAutomationRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateAutomationRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsCreateAutomationResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsCreateAutomationResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsCreateAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsCreateAutomationResponse) GetCreateAutomationResponse() *shared.CreateAutomationResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateAutomationResponse) GetCreateAutomationResponse() *shared.CreateAutomationResponse { + if c == nil { return nil } - return o.CreateAutomationResponse + return c.CreateAutomationResponse } -func (o *C1APIAppV1AppEntitlementsCreateAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsCreateAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsCreateAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsdelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsdelete.go index 30bd12c9..a2b1a2db 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsdelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsdelete.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsDeleteRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppEntitlementsDeleteRequest) GetDeleteAppEntitlementRequest() *shared.DeleteAppEntitlementRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteRequest) GetDeleteAppEntitlementRequest() *shared.DeleteAppEntitlementRequest { + if c == nil { return nil } - return o.DeleteAppEntitlementRequest + return c.DeleteAppEntitlementRequest } -func (o *C1APIAppV1AppEntitlementsDeleteRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementsDeleteRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppEntitlementsDeleteResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsDeleteResponse) GetDeleteAppEntitlementResponse() *shared.DeleteAppEntitlementResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteResponse) GetDeleteAppEntitlementResponse() *shared.DeleteAppEntitlementResponse { + if c == nil { return nil } - return o.DeleteAppEntitlementResponse + return c.DeleteAppEntitlementResponse } -func (o *C1APIAppV1AppEntitlementsDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsdeleteautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsdeleteautomation.go index 8ff9e432..06f944e2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsdeleteautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsdeleteautomation.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsDeleteAutomationRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsDeleteAutomationRequest) GetDeleteAutomationRequest() *shared.DeleteAutomationRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteAutomationRequest) GetDeleteAutomationRequest() *shared.DeleteAutomationRequest { + if c == nil { return nil } - return o.DeleteAutomationRequest + return c.DeleteAutomationRequest } -func (o *C1APIAppV1AppEntitlementsDeleteAutomationRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteAutomationRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsDeleteAutomationRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteAutomationRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsDeleteAutomationResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsDeleteAutomationResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsDeleteAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsDeleteAutomationResponse) GetDeleteAutomationResponse() *shared.DeleteAutomationResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteAutomationResponse) GetDeleteAutomationResponse() *shared.DeleteAutomationResponse { + if c == nil { return nil } - return o.DeleteAutomationResponse + return c.DeleteAutomationResponse } -func (o *C1APIAppV1AppEntitlementsDeleteAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsDeleteAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsDeleteAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearch.go index 389d1833..d7bd1abc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearch.go @@ -20,30 +20,30 @@ type C1APIAppV1AppEntitlementSearchServiceSearchResponse struct { Next func() (*C1APIAppV1AppEntitlementSearchServiceSearchResponse, error) } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchResponse) GetAppEntitlementSearchServiceSearchResponse() *shared.AppEntitlementSearchServiceSearchResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchResponse) GetAppEntitlementSearchServiceSearchResponse() *shared.AppEntitlementSearchServiceSearchResponse { + if c == nil { return nil } - return o.AppEntitlementSearchServiceSearchResponse + return c.AppEntitlementSearchServiceSearchResponse } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchappentitlementsforappuser.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchappentitlementsforappuser.go index ea9aa2cc..77a0356f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchappentitlementsforappuser.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchappentitlementsforappuser.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest) GetAppUserID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest) GetAppUserID() string { + if c == nil { return "" } - return o.AppUserID + return c.AppUserID } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserRespons RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse) GetListAppEntitlementsResponse() *shared.ListAppEntitlementsResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse) GetListAppEntitlementsResponse() *shared.ListAppEntitlementsResponse { + if c == nil { return nil } - return o.ListAppEntitlementsResponse + return c.ListAppEntitlementsResponse } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsForAppUserResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchappentitlementswithexpired.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchappentitlementswithexpired.go index dc647702..a82aeecc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchappentitlementswithexpired.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchappentitlementswithexpired.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredReques PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredRespon RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse) GetSearchAppEntitlementsWithExpiredResponse() *shared.SearchAppEntitlementsWithExpiredResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse) GetSearchAppEntitlementsWithExpiredResponse() *shared.SearchAppEntitlementsWithExpiredResponse { + if c == nil { return nil } - return o.SearchAppEntitlementsWithExpiredResponse + return c.SearchAppEntitlementsWithExpiredResponse } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchAppEntitlementsWithExpiredResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchgrants.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchgrants.go index d77197e8..6439b2d7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchgrants.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsearchservicesearchgrants.go @@ -18,30 +18,30 @@ type C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse) GetAppEntitlementSearchServiceSearchGrantsResponse() *shared.AppEntitlementSearchServiceSearchGrantsResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse) GetAppEntitlementSearchServiceSearchGrantsResponse() *shared.AppEntitlementSearchServiceSearchGrantsResponse { + if c == nil { return nil } - return o.AppEntitlementSearchServiceSearchGrantsResponse + return c.AppEntitlementSearchServiceSearchGrantsResponse } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementSearchServiceSearchGrantsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsget.go index 7346c44d..1be54e89 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsget.go @@ -12,18 +12,18 @@ type C1APIAppV1AppEntitlementsGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppEntitlementsGetRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementsGetRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppEntitlementsGetResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppEntitlementsGetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsGetResponse) GetGetAppEntitlementResponse() *shared.GetAppEntitlementResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetResponse) GetGetAppEntitlementResponse() *shared.GetAppEntitlementResponse { + if c == nil { return nil } - return o.GetAppEntitlementResponse + return c.GetAppEntitlementResponse } -func (o *C1APIAppV1AppEntitlementsGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsgetautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsgetautomation.go index 5e4a0c4e..5297840c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsgetautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsgetautomation.go @@ -12,18 +12,18 @@ type C1APIAppV1AppEntitlementsGetAutomationRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsGetAutomationRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetAutomationRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsGetAutomationRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetAutomationRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsGetAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppEntitlementsGetAutomationResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsGetAutomationResponse) GetAppEntitlementServiceGetAutomationResponse() *shared.AppEntitlementServiceGetAutomationResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetAutomationResponse) GetAppEntitlementServiceGetAutomationResponse() *shared.AppEntitlementServiceGetAutomationResponse { + if c == nil { return nil } - return o.AppEntitlementServiceGetAutomationResponse + return c.AppEntitlementServiceGetAutomationResponse } -func (o *C1APIAppV1AppEntitlementsGetAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsGetAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsGetAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsGetAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslist.go index 5566da15..3c27633f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslist.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppEntitlementsListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementsListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppEntitlementsListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppEntitlementsListResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsListResponse) GetListAppEntitlementsResponse() *shared.ListAppEntitlementsResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListResponse) GetListAppEntitlementsResponse() *shared.ListAppEntitlementsResponse { + if c == nil { return nil } - return o.ListAppEntitlementsResponse + return c.ListAppEntitlementsResponse } -func (o *C1APIAppV1AppEntitlementsListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistautomationexclusions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistautomationexclusions.go index 98dbea16..f4ffaa9b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistautomationexclusions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistautomationexclusions.go @@ -12,18 +12,18 @@ type C1APIAppV1AppEntitlementsListAutomationExclusionsRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsListAutomationExclusionsRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListAutomationExclusionsRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsListAutomationExclusionsRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListAutomationExclusionsRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsListAutomationExclusionsResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppEntitlementsListAutomationExclusionsResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsListAutomationExclusionsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListAutomationExclusionsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsListAutomationExclusionsResponse) GetListAutomationExclusionsResponse() *shared.ListAutomationExclusionsResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListAutomationExclusionsResponse) GetListAutomationExclusionsResponse() *shared.ListAutomationExclusionsResponse { + if c == nil { return nil } - return o.ListAutomationExclusionsResponse + return c.ListAutomationExclusionsResponse } -func (o *C1APIAppV1AppEntitlementsListAutomationExclusionsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListAutomationExclusionsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsListAutomationExclusionsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListAutomationExclusionsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistforappresource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistforappresource.go index 6f426e97..d1da0d3d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistforappresource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistforappresource.go @@ -15,39 +15,39 @@ type C1APIAppV1AppEntitlementsListForAppResourceRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetAppResourceID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetAppResourceID() string { + if c == nil { return "" } - return o.AppResourceID + return c.AppResourceID } -func (o *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetAppResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetAppResourceTypeID() string { + if c == nil { return "" } - return o.AppResourceTypeID + return c.AppResourceTypeID } -func (o *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppEntitlementsListForAppResourceResponse struct { @@ -61,30 +61,30 @@ type C1APIAppV1AppEntitlementsListForAppResourceResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsListForAppResourceResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsListForAppResourceResponse) GetListAppEntitlementsResponse() *shared.ListAppEntitlementsResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceResponse) GetListAppEntitlementsResponse() *shared.ListAppEntitlementsResponse { + if c == nil { return nil } - return o.ListAppEntitlementsResponse + return c.ListAppEntitlementsResponse } -func (o *C1APIAppV1AppEntitlementsListForAppResourceResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsListForAppResourceResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppResourceResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistforappuser.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistforappuser.go index 44806d2e..87cf7a0e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistforappuser.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistforappuser.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementsListForAppUserRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppEntitlementsListForAppUserRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppUserRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementsListForAppUserRequest) GetAppUserID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppUserRequest) GetAppUserID() string { + if c == nil { return "" } - return o.AppUserID + return c.AppUserID } -func (o *C1APIAppV1AppEntitlementsListForAppUserRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppUserRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppEntitlementsListForAppUserRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppUserRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppEntitlementsListForAppUserResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementsListForAppUserResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsListForAppUserResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppUserResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsListForAppUserResponse) GetListAppEntitlementsResponse() *shared.ListAppEntitlementsResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppUserResponse) GetListAppEntitlementsResponse() *shared.ListAppEntitlementsResponse { + if c == nil { return nil } - return o.ListAppEntitlementsResponse + return c.ListAppEntitlementsResponse } -func (o *C1APIAppV1AppEntitlementsListForAppUserResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppUserResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsListForAppUserResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListForAppUserResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistusers.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistusers.go index 68e2663d..b17a9eae 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistusers.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementslistusers.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementsListUsersRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppEntitlementsListUsersRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListUsersRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsListUsersRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListUsersRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementsListUsersRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListUsersRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppEntitlementsListUsersRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListUsersRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppEntitlementsListUsersResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementsListUsersResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsListUsersResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListUsersResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsListUsersResponse) GetListAppEntitlementUsersResponse() *shared.ListAppEntitlementUsersResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListUsersResponse) GetListAppEntitlementUsersResponse() *shared.ListAppEntitlementUsersResponse { + if c == nil { return nil } - return o.ListAppEntitlementUsersResponse + return c.ListAppEntitlementUsersResponse } -func (o *C1APIAppV1AppEntitlementsListUsersResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListUsersResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsListUsersResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsListUsersResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxycreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxycreate.go index 65c51af2..761fc64b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxycreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxycreate.go @@ -15,39 +15,39 @@ type C1APIAppV1AppEntitlementsProxyCreateRequest struct { SrcAppID string `pathParam:"style=simple,explode=false,name=src_app_id"` } -func (o *C1APIAppV1AppEntitlementsProxyCreateRequest) GetCreateAppEntitlementProxyRequest() *shared.CreateAppEntitlementProxyRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateRequest) GetCreateAppEntitlementProxyRequest() *shared.CreateAppEntitlementProxyRequest { + if c == nil { return nil } - return o.CreateAppEntitlementProxyRequest + return c.CreateAppEntitlementProxyRequest } -func (o *C1APIAppV1AppEntitlementsProxyCreateRequest) GetDstAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateRequest) GetDstAppEntitlementID() string { + if c == nil { return "" } - return o.DstAppEntitlementID + return c.DstAppEntitlementID } -func (o *C1APIAppV1AppEntitlementsProxyCreateRequest) GetDstAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateRequest) GetDstAppID() string { + if c == nil { return "" } - return o.DstAppID + return c.DstAppID } -func (o *C1APIAppV1AppEntitlementsProxyCreateRequest) GetSrcAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateRequest) GetSrcAppEntitlementID() string { + if c == nil { return "" } - return o.SrcAppEntitlementID + return c.SrcAppEntitlementID } -func (o *C1APIAppV1AppEntitlementsProxyCreateRequest) GetSrcAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateRequest) GetSrcAppID() string { + if c == nil { return "" } - return o.SrcAppID + return c.SrcAppID } type C1APIAppV1AppEntitlementsProxyCreateResponse struct { @@ -61,30 +61,30 @@ type C1APIAppV1AppEntitlementsProxyCreateResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsProxyCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsProxyCreateResponse) GetCreateAppEntitlementProxyResponse() *shared.CreateAppEntitlementProxyResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateResponse) GetCreateAppEntitlementProxyResponse() *shared.CreateAppEntitlementProxyResponse { + if c == nil { return nil } - return o.CreateAppEntitlementProxyResponse + return c.CreateAppEntitlementProxyResponse } -func (o *C1APIAppV1AppEntitlementsProxyCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsProxyCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxydelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxydelete.go index be40da31..797bb296 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxydelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxydelete.go @@ -15,39 +15,39 @@ type C1APIAppV1AppEntitlementsProxyDeleteRequest struct { SrcAppID string `pathParam:"style=simple,explode=false,name=src_app_id"` } -func (o *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetDeleteAppEntitlementProxyRequest() *shared.DeleteAppEntitlementProxyRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetDeleteAppEntitlementProxyRequest() *shared.DeleteAppEntitlementProxyRequest { + if c == nil { return nil } - return o.DeleteAppEntitlementProxyRequest + return c.DeleteAppEntitlementProxyRequest } -func (o *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetDstAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetDstAppEntitlementID() string { + if c == nil { return "" } - return o.DstAppEntitlementID + return c.DstAppEntitlementID } -func (o *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetDstAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetDstAppID() string { + if c == nil { return "" } - return o.DstAppID + return c.DstAppID } -func (o *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetSrcAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetSrcAppEntitlementID() string { + if c == nil { return "" } - return o.SrcAppEntitlementID + return c.SrcAppEntitlementID } -func (o *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetSrcAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteRequest) GetSrcAppID() string { + if c == nil { return "" } - return o.SrcAppID + return c.SrcAppID } type C1APIAppV1AppEntitlementsProxyDeleteResponse struct { @@ -61,30 +61,30 @@ type C1APIAppV1AppEntitlementsProxyDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsProxyDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsProxyDeleteResponse) GetDeleteAppEntitlementProxyResponse() *shared.DeleteAppEntitlementProxyResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteResponse) GetDeleteAppEntitlementProxyResponse() *shared.DeleteAppEntitlementProxyResponse { + if c == nil { return nil } - return o.DeleteAppEntitlementProxyResponse + return c.DeleteAppEntitlementProxyResponse } -func (o *C1APIAppV1AppEntitlementsProxyDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsProxyDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxyget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxyget.go index 25d6ca62..5b08e2fa 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxyget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsproxyget.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementsProxyGetRequest struct { SrcAppID string `pathParam:"style=simple,explode=false,name=src_app_id"` } -func (o *C1APIAppV1AppEntitlementsProxyGetRequest) GetDstAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyGetRequest) GetDstAppEntitlementID() string { + if c == nil { return "" } - return o.DstAppEntitlementID + return c.DstAppEntitlementID } -func (o *C1APIAppV1AppEntitlementsProxyGetRequest) GetDstAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyGetRequest) GetDstAppID() string { + if c == nil { return "" } - return o.DstAppID + return c.DstAppID } -func (o *C1APIAppV1AppEntitlementsProxyGetRequest) GetSrcAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyGetRequest) GetSrcAppEntitlementID() string { + if c == nil { return "" } - return o.SrcAppEntitlementID + return c.SrcAppEntitlementID } -func (o *C1APIAppV1AppEntitlementsProxyGetRequest) GetSrcAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyGetRequest) GetSrcAppID() string { + if c == nil { return "" } - return o.SrcAppID + return c.SrcAppID } type C1APIAppV1AppEntitlementsProxyGetResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementsProxyGetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsProxyGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsProxyGetResponse) GetGetAppEntitlementProxyResponse() *shared.GetAppEntitlementProxyResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyGetResponse) GetGetAppEntitlementProxyResponse() *shared.GetAppEntitlementProxyResponse { + if c == nil { return nil } - return o.GetAppEntitlementProxyResponse + return c.GetAppEntitlementProxyResponse } -func (o *C1APIAppV1AppEntitlementsProxyGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsProxyGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsProxyGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsremoveautomationexclusion.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsremoveautomationexclusion.go index e6eb742c..7a05be9f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsremoveautomationexclusion.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsremoveautomationexclusion.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsRemoveAutomationExclusionRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsRemoveAutomationExclusionRequest) GetRemoveAutomationExclusionRequest() *shared.RemoveAutomationExclusionRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveAutomationExclusionRequest) GetRemoveAutomationExclusionRequest() *shared.RemoveAutomationExclusionRequest { + if c == nil { return nil } - return o.RemoveAutomationExclusionRequest + return c.RemoveAutomationExclusionRequest } -func (o *C1APIAppV1AppEntitlementsRemoveAutomationExclusionRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveAutomationExclusionRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsRemoveAutomationExclusionRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveAutomationExclusionRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse) GetRemoveAutomationExclusionResponse() *shared.RemoveAutomationExclusionResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse) GetRemoveAutomationExclusionResponse() *shared.RemoveAutomationExclusionResponse { + if c == nil { return nil } - return o.RemoveAutomationExclusionResponse + return c.RemoveAutomationExclusionResponse } -func (o *C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveAutomationExclusionResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsremoveentitlementmembership.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsremoveentitlementmembership.go index cd6af122..fe7f9bbb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsremoveentitlementmembership.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsremoveentitlementmembership.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsRemoveEntitlementMembershipRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipRequest) GetRemoveEntitlementMembershipRequest() *shared.RemoveEntitlementMembershipRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipRequest) GetRemoveEntitlementMembershipRequest() *shared.RemoveEntitlementMembershipRequest { + if c == nil { return nil } - return o.RemoveEntitlementMembershipRequest + return c.RemoveEntitlementMembershipRequest } -func (o *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse) GetRemoveEntitlementMembershipResponse() *shared.RemoveEntitlementMembershipResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse) GetRemoveEntitlementMembershipResponse() *shared.RemoveEntitlementMembershipResponse { + if c == nil { return nil } - return o.RemoveEntitlementMembershipResponse + return c.RemoveEntitlementMembershipResponse } -func (o *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsRemoveEntitlementMembershipResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsupdate.go index 99a60a95..61873a20 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsupdate.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppEntitlementsUpdateRequest) GetUpdateAppEntitlementRequest() *shared.UpdateAppEntitlementRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateRequest) GetUpdateAppEntitlementRequest() *shared.UpdateAppEntitlementRequest { + if c == nil { return nil } - return o.UpdateAppEntitlementRequest + return c.UpdateAppEntitlementRequest } -func (o *C1APIAppV1AppEntitlementsUpdateRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementsUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppEntitlementsUpdateResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsUpdateResponse struct { UpdateAppEntitlementResponse *shared.UpdateAppEntitlementResponse } -func (o *C1APIAppV1AppEntitlementsUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIAppV1AppEntitlementsUpdateResponse) GetUpdateAppEntitlementResponse() *shared.UpdateAppEntitlementResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateResponse) GetUpdateAppEntitlementResponse() *shared.UpdateAppEntitlementResponse { + if c == nil { return nil } - return o.UpdateAppEntitlementResponse + return c.UpdateAppEntitlementResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsupdateautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsupdateautomation.go index 9b116841..4c02f947 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsupdateautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementsupdateautomation.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementsUpdateAutomationRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppEntitlementsUpdateAutomationRequest) GetAppEntitlementServiceUpdateAutomationRequest() *shared.AppEntitlementServiceUpdateAutomationRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateAutomationRequest) GetAppEntitlementServiceUpdateAutomationRequest() *shared.AppEntitlementServiceUpdateAutomationRequest { + if c == nil { return nil } - return o.AppEntitlementServiceUpdateAutomationRequest + return c.AppEntitlementServiceUpdateAutomationRequest } -func (o *C1APIAppV1AppEntitlementsUpdateAutomationRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateAutomationRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementsUpdateAutomationRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateAutomationRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppEntitlementsUpdateAutomationResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementsUpdateAutomationResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementsUpdateAutomationResponse) GetAppEntitlementServiceUpdateAutomationResponse() *shared.AppEntitlementServiceUpdateAutomationResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateAutomationResponse) GetAppEntitlementServiceUpdateAutomationResponse() *shared.AppEntitlementServiceUpdateAutomationResponse { + if c == nil { return nil } - return o.AppEntitlementServiceUpdateAutomationResponse + return c.AppEntitlementServiceUpdateAutomationResponse } -func (o *C1APIAppV1AppEntitlementsUpdateAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementsUpdateAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementsUpdateAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementsUpdateAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicelistappusersforidentitywithgrant.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicelistappusersforidentitywithgrant.go index 2a473937..34d35fbc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicelistappusersforidentitywithgrant.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicelistappusersforidentitywithgrant.go @@ -13,25 +13,25 @@ type C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantR IdentityUserID string `pathParam:"style=simple,explode=false,name=identity_user_id"` } -func (o *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantRequest) GetIdentityUserID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantRequest) GetIdentityUserID() string { + if c == nil { return "" } - return o.IdentityUserID + return c.IdentityUserID } type C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantR RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse) GetListAppUsersForIdentityWithGrantResponse() *shared.ListAppUsersForIdentityWithGrantResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse) GetListAppUsersForIdentityWithGrantResponse() *shared.ListAppUsersForIdentityWithGrantResponse { + if c == nil { return nil } - return o.ListAppUsersForIdentityWithGrantResponse + return c.ListAppUsersForIdentityWithGrantResponse } -func (o *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingserviceremovegrantduration.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingserviceremovegrantduration.go index 4340a38c..c37902cd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingserviceremovegrantduration.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingserviceremovegrantduration.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest struct AppUserID string `pathParam:"style=simple,explode=false,name=app_user_id"` } -func (o *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest) GetRemoveGrantDurationRequest() *shared.RemoveGrantDurationRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest) GetRemoveGrantDurationRequest() *shared.RemoveGrantDurationRequest { + if c == nil { return nil } - return o.RemoveGrantDurationRequest + return c.RemoveGrantDurationRequest } -func (o *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest) GetAppUserID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationRequest) GetAppUserID() string { + if c == nil { return "" } - return o.AppUserID + return c.AppUserID } type C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse struc RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse) GetRemoveGrantDurationResponse() *shared.RemoveGrantDurationResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse) GetRemoveGrantDurationResponse() *shared.RemoveGrantDurationResponse { + if c == nil { return nil } - return o.RemoveGrantDurationResponse + return c.RemoveGrantDurationResponse } -func (o *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceRemoveGrantDurationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicesearchgrantfeed.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicesearchgrantfeed.go index 021de387..b72557d1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicesearchgrantfeed.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicesearchgrantfeed.go @@ -18,30 +18,30 @@ type C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse) GetSearchGrantFeedResponse() *shared.SearchGrantFeedResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse) GetSearchGrantFeedResponse() *shared.SearchGrantFeedResponse { + if c == nil { return nil } - return o.SearchGrantFeedResponse + return c.SearchGrantFeedResponse } -func (o *C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceSearchGrantFeedResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicesearchpastgrants.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicesearchpastgrants.go index 14a37669..c5422de2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicesearchpastgrants.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingservicesearchpastgrants.go @@ -18,30 +18,30 @@ type C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse) GetSearchPastGrantsResponse() *shared.SearchPastGrantsResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse) GetSearchPastGrantsResponse() *shared.SearchPastGrantsResponse { + if c == nil { return nil } - return o.SearchPastGrantsResponse + return c.SearchPastGrantsResponse } -func (o *C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceSearchPastGrantsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingserviceupdategrantduration.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingserviceupdategrantduration.go index c13e34be..c0e51afb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingserviceupdategrantduration.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appentitlementuserbindingserviceupdategrantduration.go @@ -14,32 +14,32 @@ type C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest struct AppUserID string `pathParam:"style=simple,explode=false,name=app_user_id"` } -func (o *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest) GetUpdateGrantDurationRequest() *shared.UpdateGrantDurationRequest { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest) GetUpdateGrantDurationRequest() *shared.UpdateGrantDurationRequest { + if c == nil { return nil } - return o.UpdateGrantDurationRequest + return c.UpdateGrantDurationRequest } -func (o *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest) GetAppEntitlementID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest) GetAppEntitlementID() string { + if c == nil { return "" } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest) GetAppUserID() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationRequest) GetAppUserID() string { + if c == nil { return "" } - return o.AppUserID + return c.AppUserID } type C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse struc UpdateGrantDurationResponse *shared.UpdateGrantDurationResponse } -func (o *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse) GetUpdateGrantDurationResponse() *shared.UpdateGrantDurationResponse { - if o == nil { +func (c *C1APIAppV1AppEntitlementUserBindingServiceUpdateGrantDurationResponse) GetUpdateGrantDurationResponse() *shared.UpdateGrantDurationResponse { + if c == nil { return nil } - return o.UpdateGrantDurationResponse + return c.UpdateGrantDurationResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersadd.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersadd.go index 05c850f0..0a54aaee 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersadd.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersadd.go @@ -13,25 +13,25 @@ type C1APIAppV1AppOwnersAddRequest struct { UserID string `pathParam:"style=simple,explode=false,name=user_id"` } -func (o *C1APIAppV1AppOwnersAddRequest) GetAddAppOwnerRequest() *shared.AddAppOwnerRequest { - if o == nil { +func (c *C1APIAppV1AppOwnersAddRequest) GetAddAppOwnerRequest() *shared.AddAppOwnerRequest { + if c == nil { return nil } - return o.AddAppOwnerRequest + return c.AddAppOwnerRequest } -func (o *C1APIAppV1AppOwnersAddRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppOwnersAddRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppOwnersAddRequest) GetUserID() string { - if o == nil { +func (c *C1APIAppV1AppOwnersAddRequest) GetUserID() string { + if c == nil { return "" } - return o.UserID + return c.UserID } type C1APIAppV1AppOwnersAddResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppOwnersAddResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppOwnersAddResponse) GetAddAppOwnerResponse() *shared.AddAppOwnerResponse { - if o == nil { +func (c *C1APIAppV1AppOwnersAddResponse) GetAddAppOwnerResponse() *shared.AddAppOwnerResponse { + if c == nil { return nil } - return o.AddAppOwnerResponse + return c.AddAppOwnerResponse } -func (o *C1APIAppV1AppOwnersAddResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppOwnersAddResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppOwnersAddResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppOwnersAddResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppOwnersAddResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppOwnersAddResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersdelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersdelete.go new file mode 100644 index 00000000..827aad98 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersdelete.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1AppOwnersDeleteRequest struct { + DeleteAppOwnersRequest *shared.DeleteAppOwnersRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` +} + +func (c *C1APIAppV1AppOwnersDeleteRequest) GetDeleteAppOwnersRequest() *shared.DeleteAppOwnersRequest { + if c == nil { + return nil + } + return c.DeleteAppOwnersRequest +} + +func (c *C1APIAppV1AppOwnersDeleteRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +type C1APIAppV1AppOwnersDeleteResponse struct { + // HTTP response content type for this operation + ContentType string + // the empty response message for deleting app owners. + DeleteAppOwnersResponse *shared.DeleteAppOwnersResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1AppOwnersDeleteResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1AppOwnersDeleteResponse) GetDeleteAppOwnersResponse() *shared.DeleteAppOwnersResponse { + if c == nil { + return nil + } + return c.DeleteAppOwnersResponse +} + +func (c *C1APIAppV1AppOwnersDeleteResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1AppOwnersDeleteResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownerslist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownerslist.go index 6f405de7..c0c79bad 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownerslist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownerslist.go @@ -13,25 +13,25 @@ type C1APIAppV1AppOwnersListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppOwnersListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppOwnersListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppOwnersListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppOwnersListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppOwnersListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppOwnersListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppOwnersListResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppOwnersListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppOwnersListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppOwnersListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppOwnersListResponse) GetListAppOwnersResponse() *shared.ListAppOwnersResponse { - if o == nil { +func (c *C1APIAppV1AppOwnersListResponse) GetListAppOwnersResponse() *shared.ListAppOwnersResponse { + if c == nil { return nil } - return o.ListAppOwnersResponse + return c.ListAppOwnersResponse } -func (o *C1APIAppV1AppOwnersListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppOwnersListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppOwnersListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppOwnersListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownerslistownerids.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownerslistownerids.go new file mode 100644 index 00000000..bb4ff329 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownerslistownerids.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1AppOwnersListOwnerIDsRequest struct { + AppID string `pathParam:"style=simple,explode=false,name=app_id"` +} + +func (c *C1APIAppV1AppOwnersListOwnerIDsRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +type C1APIAppV1AppOwnersListOwnerIDsResponse struct { + // HTTP response content type for this operation + ContentType string + // The response message for listing app owners IDs. + ListAppOwnerIDsResponse *shared.ListAppOwnerIDsResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1AppOwnersListOwnerIDsResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1AppOwnersListOwnerIDsResponse) GetListAppOwnerIDsResponse() *shared.ListAppOwnerIDsResponse { + if c == nil { + return nil + } + return c.ListAppOwnerIDsResponse +} + +func (c *C1APIAppV1AppOwnersListOwnerIDsResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1AppOwnersListOwnerIDsResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersremove.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersremove.go index dcb7d032..b059bd01 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersremove.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersremove.go @@ -13,25 +13,25 @@ type C1APIAppV1AppOwnersRemoveRequest struct { UserID string `pathParam:"style=simple,explode=false,name=user_id"` } -func (o *C1APIAppV1AppOwnersRemoveRequest) GetRemoveAppOwnerRequest() *shared.RemoveAppOwnerRequest { - if o == nil { +func (c *C1APIAppV1AppOwnersRemoveRequest) GetRemoveAppOwnerRequest() *shared.RemoveAppOwnerRequest { + if c == nil { return nil } - return o.RemoveAppOwnerRequest + return c.RemoveAppOwnerRequest } -func (o *C1APIAppV1AppOwnersRemoveRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppOwnersRemoveRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppOwnersRemoveRequest) GetUserID() string { - if o == nil { +func (c *C1APIAppV1AppOwnersRemoveRequest) GetUserID() string { + if c == nil { return "" } - return o.UserID + return c.UserID } type C1APIAppV1AppOwnersRemoveResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppOwnersRemoveResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppOwnersRemoveResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppOwnersRemoveResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppOwnersRemoveResponse) GetRemoveAppOwnerResponse() *shared.RemoveAppOwnerResponse { - if o == nil { +func (c *C1APIAppV1AppOwnersRemoveResponse) GetRemoveAppOwnerResponse() *shared.RemoveAppOwnerResponse { + if c == nil { return nil } - return o.RemoveAppOwnerResponse + return c.RemoveAppOwnerResponse } -func (o *C1APIAppV1AppOwnersRemoveResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppOwnersRemoveResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppOwnersRemoveResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppOwnersRemoveResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersset.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersset.go index 48650930..70897d81 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersset.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appownersset.go @@ -12,18 +12,18 @@ type C1APIAppV1AppOwnersSetRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppOwnersSetRequest) GetSetAppOwnersRequest() *shared.SetAppOwnersRequest { - if o == nil { +func (c *C1APIAppV1AppOwnersSetRequest) GetSetAppOwnersRequest() *shared.SetAppOwnersRequest { + if c == nil { return nil } - return o.SetAppOwnersRequest + return c.SetAppOwnersRequest } -func (o *C1APIAppV1AppOwnersSetRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppOwnersSetRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppOwnersSetResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppOwnersSetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppOwnersSetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppOwnersSetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppOwnersSetResponse) GetSetAppOwnersResponse() *shared.SetAppOwnersResponse { - if o == nil { +func (c *C1APIAppV1AppOwnersSetResponse) GetSetAppOwnersResponse() *shared.SetAppOwnersResponse { + if c == nil { return nil } - return o.SetAppOwnersResponse + return c.SetAppOwnersResponse } -func (o *C1APIAppV1AppOwnersSetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppOwnersSetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppOwnersSetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppOwnersSetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appreportactionservicegeneratereport.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appreportactionservicegeneratereport.go index b14e06a9..dd091d8b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appreportactionservicegeneratereport.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appreportactionservicegeneratereport.go @@ -12,18 +12,18 @@ type C1APIAppV1AppReportActionServiceGenerateReportRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppReportActionServiceGenerateReportRequest) GetAppActionsServiceGenerateReportRequest() *shared.AppActionsServiceGenerateReportRequest { - if o == nil { +func (c *C1APIAppV1AppReportActionServiceGenerateReportRequest) GetAppActionsServiceGenerateReportRequest() *shared.AppActionsServiceGenerateReportRequest { + if c == nil { return nil } - return o.AppActionsServiceGenerateReportRequest + return c.AppActionsServiceGenerateReportRequest } -func (o *C1APIAppV1AppReportActionServiceGenerateReportRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppReportActionServiceGenerateReportRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppReportActionServiceGenerateReportResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppReportActionServiceGenerateReportResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppReportActionServiceGenerateReportResponse) GetAppActionsServiceGenerateReportResponse() *shared.AppActionsServiceGenerateReportResponse { - if o == nil { +func (c *C1APIAppV1AppReportActionServiceGenerateReportResponse) GetAppActionsServiceGenerateReportResponse() *shared.AppActionsServiceGenerateReportResponse { + if c == nil { return nil } - return o.AppActionsServiceGenerateReportResponse + return c.AppActionsServiceGenerateReportResponse } -func (o *C1APIAppV1AppReportActionServiceGenerateReportResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppReportActionServiceGenerateReportResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppReportActionServiceGenerateReportResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppReportActionServiceGenerateReportResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppReportActionServiceGenerateReportResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppReportActionServiceGenerateReportResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appreportservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appreportservicelist.go index d7e6bb65..ae8e654a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appreportservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appreportservicelist.go @@ -13,25 +13,25 @@ type C1APIAppV1AppReportServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppReportServiceListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppReportServiceListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppReportServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppReportServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppReportServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppReportServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppReportServiceListResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppReportServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppReportServiceListResponse) GetAppReportServiceListResponse() *shared.AppReportServiceListResponse { - if o == nil { +func (c *C1APIAppV1AppReportServiceListResponse) GetAppReportServiceListResponse() *shared.AppReportServiceListResponse { + if c == nil { return nil } - return o.AppReportServiceListResponse + return c.AppReportServiceListResponse } -func (o *C1APIAppV1AppReportServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppReportServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppReportServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppReportServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppReportServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppReportServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersadd.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersadd.go index 654d6d8c..fff45e7b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersadd.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersadd.go @@ -14,32 +14,32 @@ type C1APIAppV1AppResourceOwnersAddRequest struct { ResourceTypeID string `pathParam:"style=simple,explode=false,name=resource_type_id"` } -func (o *C1APIAppV1AppResourceOwnersAddRequest) GetAddAppResourceOwnerRequest() *shared.AddAppResourceOwnerRequest { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersAddRequest) GetAddAppResourceOwnerRequest() *shared.AddAppResourceOwnerRequest { + if c == nil { return nil } - return o.AddAppResourceOwnerRequest + return c.AddAppResourceOwnerRequest } -func (o *C1APIAppV1AppResourceOwnersAddRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersAddRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceOwnersAddRequest) GetResourceID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersAddRequest) GetResourceID() string { + if c == nil { return "" } - return o.ResourceID + return c.ResourceID } -func (o *C1APIAppV1AppResourceOwnersAddRequest) GetResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersAddRequest) GetResourceTypeID() string { + if c == nil { return "" } - return o.ResourceTypeID + return c.ResourceTypeID } type C1APIAppV1AppResourceOwnersAddResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppResourceOwnersAddResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppResourceOwnersAddResponse) GetAddAppResourceOwnerResponse() *shared.AddAppResourceOwnerResponse { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersAddResponse) GetAddAppResourceOwnerResponse() *shared.AddAppResourceOwnerResponse { + if c == nil { return nil } - return o.AddAppResourceOwnerResponse + return c.AddAppResourceOwnerResponse } -func (o *C1APIAppV1AppResourceOwnersAddResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersAddResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceOwnersAddResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersAddResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceOwnersAddResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersAddResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersdelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersdelete.go new file mode 100644 index 00000000..7d16f28d --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersdelete.go @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1AppResourceOwnersDeleteRequest struct { + DeleteAppResourceOwnersRequest *shared.DeleteAppResourceOwnersRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + ResourceID string `pathParam:"style=simple,explode=false,name=resource_id"` + ResourceTypeID string `pathParam:"style=simple,explode=false,name=resource_type_id"` +} + +func (c *C1APIAppV1AppResourceOwnersDeleteRequest) GetDeleteAppResourceOwnersRequest() *shared.DeleteAppResourceOwnersRequest { + if c == nil { + return nil + } + return c.DeleteAppResourceOwnersRequest +} + +func (c *C1APIAppV1AppResourceOwnersDeleteRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIAppV1AppResourceOwnersDeleteRequest) GetResourceID() string { + if c == nil { + return "" + } + return c.ResourceID +} + +func (c *C1APIAppV1AppResourceOwnersDeleteRequest) GetResourceTypeID() string { + if c == nil { + return "" + } + return c.ResourceTypeID +} + +type C1APIAppV1AppResourceOwnersDeleteResponse struct { + // HTTP response content type for this operation + ContentType string + // the empty response message for deleting app resource owners. + DeleteAppResourceOwnersResponse *shared.DeleteAppResourceOwnersResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1AppResourceOwnersDeleteResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1AppResourceOwnersDeleteResponse) GetDeleteAppResourceOwnersResponse() *shared.DeleteAppResourceOwnersResponse { + if c == nil { + return nil + } + return c.DeleteAppResourceOwnersResponse +} + +func (c *C1APIAppV1AppResourceOwnersDeleteResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1AppResourceOwnersDeleteResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownerslist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownerslist.go index ec0b8472..714595e0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownerslist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownerslist.go @@ -15,39 +15,39 @@ type C1APIAppV1AppResourceOwnersListRequest struct { ResourceTypeID string `pathParam:"style=simple,explode=false,name=resource_type_id"` } -func (o *C1APIAppV1AppResourceOwnersListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceOwnersListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppResourceOwnersListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } -func (o *C1APIAppV1AppResourceOwnersListRequest) GetResourceID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListRequest) GetResourceID() string { + if c == nil { return "" } - return o.ResourceID + return c.ResourceID } -func (o *C1APIAppV1AppResourceOwnersListRequest) GetResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListRequest) GetResourceTypeID() string { + if c == nil { return "" } - return o.ResourceTypeID + return c.ResourceTypeID } type C1APIAppV1AppResourceOwnersListResponse struct { @@ -61,30 +61,30 @@ type C1APIAppV1AppResourceOwnersListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppResourceOwnersListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceOwnersListResponse) GetListAppResourceOwnersResponse() *shared.ListAppResourceOwnersResponse { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListResponse) GetListAppResourceOwnersResponse() *shared.ListAppResourceOwnersResponse { + if c == nil { return nil } - return o.ListAppResourceOwnersResponse + return c.ListAppResourceOwnersResponse } -func (o *C1APIAppV1AppResourceOwnersListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceOwnersListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownerslistownerids.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownerslistownerids.go new file mode 100644 index 00000000..0365ae7d --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownerslistownerids.go @@ -0,0 +1,74 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1AppResourceOwnersListOwnerIDsRequest struct { + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + ResourceID string `pathParam:"style=simple,explode=false,name=resource_id"` + ResourceTypeID string `pathParam:"style=simple,explode=false,name=resource_type_id"` +} + +func (c *C1APIAppV1AppResourceOwnersListOwnerIDsRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIAppV1AppResourceOwnersListOwnerIDsRequest) GetResourceID() string { + if c == nil { + return "" + } + return c.ResourceID +} + +func (c *C1APIAppV1AppResourceOwnersListOwnerIDsRequest) GetResourceTypeID() string { + if c == nil { + return "" + } + return c.ResourceTypeID +} + +type C1APIAppV1AppResourceOwnersListOwnerIDsResponse struct { + // HTTP response content type for this operation + ContentType string + // The response message for listing app resource owners IDs. + ListAppResourceOwnerIDsResponse *shared.ListAppResourceOwnerIDsResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1AppResourceOwnersListOwnerIDsResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1AppResourceOwnersListOwnerIDsResponse) GetListAppResourceOwnerIDsResponse() *shared.ListAppResourceOwnerIDsResponse { + if c == nil { + return nil + } + return c.ListAppResourceOwnerIDsResponse +} + +func (c *C1APIAppV1AppResourceOwnersListOwnerIDsResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1AppResourceOwnersListOwnerIDsResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersremove.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersremove.go index f2d9685b..261f58df 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersremove.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersremove.go @@ -14,32 +14,32 @@ type C1APIAppV1AppResourceOwnersRemoveRequest struct { ResourceTypeID string `pathParam:"style=simple,explode=false,name=resource_type_id"` } -func (o *C1APIAppV1AppResourceOwnersRemoveRequest) GetRemoveAppResourceOwnerRequest() *shared.RemoveAppResourceOwnerRequest { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersRemoveRequest) GetRemoveAppResourceOwnerRequest() *shared.RemoveAppResourceOwnerRequest { + if c == nil { return nil } - return o.RemoveAppResourceOwnerRequest + return c.RemoveAppResourceOwnerRequest } -func (o *C1APIAppV1AppResourceOwnersRemoveRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersRemoveRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceOwnersRemoveRequest) GetResourceID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersRemoveRequest) GetResourceID() string { + if c == nil { return "" } - return o.ResourceID + return c.ResourceID } -func (o *C1APIAppV1AppResourceOwnersRemoveRequest) GetResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersRemoveRequest) GetResourceTypeID() string { + if c == nil { return "" } - return o.ResourceTypeID + return c.ResourceTypeID } type C1APIAppV1AppResourceOwnersRemoveResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppResourceOwnersRemoveResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppResourceOwnersRemoveResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersRemoveResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceOwnersRemoveResponse) GetRemoveAppResourceOwnerResponse() *shared.RemoveAppResourceOwnerResponse { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersRemoveResponse) GetRemoveAppResourceOwnerResponse() *shared.RemoveAppResourceOwnerResponse { + if c == nil { return nil } - return o.RemoveAppResourceOwnerResponse + return c.RemoveAppResourceOwnerResponse } -func (o *C1APIAppV1AppResourceOwnersRemoveResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersRemoveResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceOwnersRemoveResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceOwnersRemoveResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersset.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersset.go new file mode 100644 index 00000000..96b14e56 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceownersset.go @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1AppResourceOwnersSetRequest struct { + SetAppResourceOwnersRequest *shared.SetAppResourceOwnersRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + ResourceID string `pathParam:"style=simple,explode=false,name=resource_id"` + ResourceTypeID string `pathParam:"style=simple,explode=false,name=resource_type_id"` +} + +func (c *C1APIAppV1AppResourceOwnersSetRequest) GetSetAppResourceOwnersRequest() *shared.SetAppResourceOwnersRequest { + if c == nil { + return nil + } + return c.SetAppResourceOwnersRequest +} + +func (c *C1APIAppV1AppResourceOwnersSetRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIAppV1AppResourceOwnersSetRequest) GetResourceID() string { + if c == nil { + return "" + } + return c.ResourceID +} + +func (c *C1APIAppV1AppResourceOwnersSetRequest) GetResourceTypeID() string { + if c == nil { + return "" + } + return c.ResourceTypeID +} + +type C1APIAppV1AppResourceOwnersSetResponse struct { + // HTTP response content type for this operation + ContentType string + // The empty response message for setting the app resource owners. + SetAppResourceOwnersResponse *shared.SetAppResourceOwnersResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1AppResourceOwnersSetResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1AppResourceOwnersSetResponse) GetSetAppResourceOwnersResponse() *shared.SetAppResourceOwnersResponse { + if c == nil { + return nil + } + return c.SetAppResourceOwnersResponse +} + +func (c *C1APIAppV1AppResourceOwnersSetResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1AppResourceOwnersSetResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcesearchsearchappresources.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcesearchsearchappresources.go index 7aa8d5aa..973b1a33 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcesearchsearchappresources.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcesearchsearchappresources.go @@ -20,30 +20,30 @@ type C1APIAppV1AppResourceSearchSearchAppResourcesResponse struct { Next func() (*C1APIAppV1AppResourceSearchSearchAppResourcesResponse, error) } -func (o *C1APIAppV1AppResourceSearchSearchAppResourcesResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceSearchSearchAppResourcesResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceSearchSearchAppResourcesResponse) GetSearchAppResourcesResponse() *shared.SearchAppResourcesResponse { - if o == nil { +func (c *C1APIAppV1AppResourceSearchSearchAppResourcesResponse) GetSearchAppResourcesResponse() *shared.SearchAppResourcesResponse { + if c == nil { return nil } - return o.SearchAppResourcesResponse + return c.SearchAppResourcesResponse } -func (o *C1APIAppV1AppResourceSearchSearchAppResourcesResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceSearchSearchAppResourcesResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceSearchSearchAppResourcesResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceSearchSearchAppResourcesResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcesearchsearchappresourcetypes.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcesearchsearchappresourcetypes.go index 2d20cf76..c6b7a056 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcesearchsearchappresourcetypes.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcesearchsearchappresourcetypes.go @@ -16,32 +16,34 @@ type C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse struct { StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response + + Next func() (*C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse, error) } -func (o *C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse) GetSearchAppResourceTypesResponse() *shared.SearchAppResourceTypesResponse { - if o == nil { +func (c *C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse) GetSearchAppResourceTypesResponse() *shared.SearchAppResourceTypesResponse { + if c == nil { return nil } - return o.SearchAppResourceTypesResponse + return c.SearchAppResourceTypesResponse } -func (o *C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceSearchSearchAppResourceTypesResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicecreatemanuallymanagedappresource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicecreatemanuallymanagedappresource.go index 3f5a9413..b70fc6ee 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicecreatemanuallymanagedappresource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicecreatemanuallymanagedappresource.go @@ -13,25 +13,25 @@ type C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceRequest struct AppResourceTypeID string `pathParam:"style=simple,explode=false,name=app_resource_type_id"` } -func (o *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceRequest) GetCreateManuallyManagedAppResourceRequest() *shared.CreateManuallyManagedAppResourceRequest { - if o == nil { +func (c *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceRequest) GetCreateManuallyManagedAppResourceRequest() *shared.CreateManuallyManagedAppResourceRequest { + if c == nil { return nil } - return o.CreateManuallyManagedAppResourceRequest + return c.CreateManuallyManagedAppResourceRequest } -func (o *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceRequest) GetAppResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceRequest) GetAppResourceTypeID() string { + if c == nil { return "" } - return o.AppResourceTypeID + return c.AppResourceTypeID } type C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse struct RawResponse *http.Response } -func (o *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse) GetCreateManuallyManagedAppResourceResponse() *shared.CreateManuallyManagedAppResourceResponse { - if o == nil { +func (c *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse) GetCreateManuallyManagedAppResourceResponse() *shared.CreateManuallyManagedAppResourceResponse { + if c == nil { return nil } - return o.CreateManuallyManagedAppResourceResponse + return c.CreateManuallyManagedAppResourceResponse } -func (o *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceServiceCreateManuallyManagedAppResourceResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicedeletemanuallymanagedappresource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicedeletemanuallymanagedappresource.go index 1b980a06..3fd4ae34 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicedeletemanuallymanagedappresource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicedeletemanuallymanagedappresource.go @@ -14,32 +14,32 @@ type C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest struct ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest) GetDeleteManuallyManagedAppResourceRequest() *shared.DeleteManuallyManagedAppResourceRequest { - if o == nil { +func (c *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest) GetDeleteManuallyManagedAppResourceRequest() *shared.DeleteManuallyManagedAppResourceRequest { + if c == nil { return nil } - return o.DeleteManuallyManagedAppResourceRequest + return c.DeleteManuallyManagedAppResourceRequest } -func (o *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest) GetAppResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest) GetAppResourceTypeID() string { + if c == nil { return "" } - return o.AppResourceTypeID + return c.AppResourceTypeID } -func (o *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse struct RawResponse *http.Response } -func (o *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse) GetDeleteManuallyManagedAppResourceResponse() *shared.DeleteManuallyManagedAppResourceResponse { - if o == nil { +func (c *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse) GetDeleteManuallyManagedAppResourceResponse() *shared.DeleteManuallyManagedAppResourceResponse { + if c == nil { return nil } - return o.DeleteManuallyManagedAppResourceResponse + return c.DeleteManuallyManagedAppResourceResponse } -func (o *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceServiceDeleteManuallyManagedAppResourceResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceserviceget.go index 9aa0319d..ee4ef92a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceserviceget.go @@ -13,25 +13,25 @@ type C1APIAppV1AppResourceServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppResourceServiceGetRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceGetRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceServiceGetRequest) GetAppResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceGetRequest) GetAppResourceTypeID() string { + if c == nil { return "" } - return o.AppResourceTypeID + return c.AppResourceTypeID } -func (o *C1APIAppV1AppResourceServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppResourceServiceGetResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppResourceServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppResourceServiceGetResponse) GetAppResourceServiceGetResponse() *shared.AppResourceServiceGetResponse { - if o == nil { +func (c *C1APIAppV1AppResourceServiceGetResponse) GetAppResourceServiceGetResponse() *shared.AppResourceServiceGetResponse { + if c == nil { return nil } - return o.AppResourceServiceGetResponse + return c.AppResourceServiceGetResponse } -func (o *C1APIAppV1AppResourceServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicelist.go index 689cde14..648df66a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceservicelist.go @@ -14,32 +14,32 @@ type C1APIAppV1AppResourceServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppResourceServiceListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceServiceListRequest) GetAppResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceListRequest) GetAppResourceTypeID() string { + if c == nil { return "" } - return o.AppResourceTypeID + return c.AppResourceTypeID } -func (o *C1APIAppV1AppResourceServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppResourceServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppResourceServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppResourceServiceListResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppResourceServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppResourceServiceListResponse) GetAppResourceServiceListResponse() *shared.AppResourceServiceListResponse { - if o == nil { +func (c *C1APIAppV1AppResourceServiceListResponse) GetAppResourceServiceListResponse() *shared.AppResourceServiceListResponse { + if c == nil { return nil } - return o.AppResourceServiceListResponse + return c.AppResourceServiceListResponse } -func (o *C1APIAppV1AppResourceServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceserviceupdate.go index f4d13953..0b117575 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourceserviceupdate.go @@ -14,32 +14,32 @@ type C1APIAppV1AppResourceServiceUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppResourceServiceUpdateRequest) GetAppResourceServiceUpdateRequest() *shared.AppResourceServiceUpdateRequest { - if o == nil { +func (c *C1APIAppV1AppResourceServiceUpdateRequest) GetAppResourceServiceUpdateRequest() *shared.AppResourceServiceUpdateRequest { + if c == nil { return nil } - return o.AppResourceServiceUpdateRequest + return c.AppResourceServiceUpdateRequest } -func (o *C1APIAppV1AppResourceServiceUpdateRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceUpdateRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceServiceUpdateRequest) GetAppResourceTypeID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceUpdateRequest) GetAppResourceTypeID() string { + if c == nil { return "" } - return o.AppResourceTypeID + return c.AppResourceTypeID } -func (o *C1APIAppV1AppResourceServiceUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppResourceServiceUpdateResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppResourceServiceUpdateResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppResourceServiceUpdateResponse) GetAppResourceServiceUpdateResponse() *shared.AppResourceServiceUpdateResponse { - if o == nil { +func (c *C1APIAppV1AppResourceServiceUpdateResponse) GetAppResourceServiceUpdateResponse() *shared.AppResourceServiceUpdateResponse { + if c == nil { return nil } - return o.AppResourceServiceUpdateResponse + return c.AppResourceServiceUpdateResponse } -func (o *C1APIAppV1AppResourceServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicecreatemanuallymanagedresourcetype.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicecreatemanuallymanagedresourcetype.go index c57fe48d..36555e6f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicecreatemanuallymanagedresourcetype.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicecreatemanuallymanagedresourcetype.go @@ -12,18 +12,18 @@ type C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeRequest st AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeRequest) GetCreateManuallyManagedResourceTypeRequest() *shared.CreateManuallyManagedResourceTypeRequest { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeRequest) GetCreateManuallyManagedResourceTypeRequest() *shared.CreateManuallyManagedResourceTypeRequest { + if c == nil { return nil } - return o.CreateManuallyManagedResourceTypeRequest + return c.CreateManuallyManagedResourceTypeRequest } -func (o *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse s RawResponse *http.Response } -func (o *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse) GetCreateManuallyManagedResourceTypeResponse() *shared.CreateManuallyManagedResourceTypeResponse { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse) GetCreateManuallyManagedResourceTypeResponse() *shared.CreateManuallyManagedResourceTypeResponse { + if c == nil { return nil } - return o.CreateManuallyManagedResourceTypeResponse + return c.CreateManuallyManagedResourceTypeResponse } -func (o *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceCreateManuallyManagedResourceTypeResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicedeletemanuallymanagedresourcetype.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicedeletemanuallymanagedresourcetype.go index c3e410f2..7cd82d89 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicedeletemanuallymanagedresourcetype.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicedeletemanuallymanagedresourcetype.go @@ -13,25 +13,25 @@ type C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeRequest st ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeRequest) GetDeleteManuallyManagedResourceTypeRequest() *shared.DeleteManuallyManagedResourceTypeRequest { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeRequest) GetDeleteManuallyManagedResourceTypeRequest() *shared.DeleteManuallyManagedResourceTypeRequest { + if c == nil { return nil } - return o.DeleteManuallyManagedResourceTypeRequest + return c.DeleteManuallyManagedResourceTypeRequest } -func (o *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse s RawResponse *http.Response } -func (o *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse) GetDeleteManuallyManagedResourceTypeResponse() *shared.DeleteManuallyManagedResourceTypeResponse { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse) GetDeleteManuallyManagedResourceTypeResponse() *shared.DeleteManuallyManagedResourceTypeResponse { + if c == nil { return nil } - return o.DeleteManuallyManagedResourceTypeResponse + return c.DeleteManuallyManagedResourceTypeResponse } -func (o *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceDeleteManuallyManagedResourceTypeResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeserviceget.go index 01de82e3..31c76f4a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeserviceget.go @@ -12,18 +12,18 @@ type C1APIAppV1AppResourceTypeServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppResourceTypeServiceGetRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceGetRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceTypeServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppResourceTypeServiceGetResponse struct { @@ -38,30 +38,30 @@ type C1APIAppV1AppResourceTypeServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppResourceTypeServiceGetResponse) GetAppResourceTypeServiceGetResponse() *shared.AppResourceTypeServiceGetResponse { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceGetResponse) GetAppResourceTypeServiceGetResponse() *shared.AppResourceTypeServiceGetResponse { + if c == nil { return nil } - return o.AppResourceTypeServiceGetResponse + return c.AppResourceTypeServiceGetResponse } -func (o *C1APIAppV1AppResourceTypeServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceTypeServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceTypeServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicelist.go index a7e51b46..84639d1c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeservicelist.go @@ -13,25 +13,25 @@ type C1APIAppV1AppResourceTypeServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppResourceTypeServiceListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceTypeServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppResourceTypeServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppResourceTypeServiceListResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppResourceTypeServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppResourceTypeServiceListResponse) GetAppResourceTypeServiceListResponse() *shared.AppResourceTypeServiceListResponse { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceListResponse) GetAppResourceTypeServiceListResponse() *shared.AppResourceTypeServiceListResponse { + if c == nil { return nil } - return o.AppResourceTypeServiceListResponse + return c.AppResourceTypeServiceListResponse } -func (o *C1APIAppV1AppResourceTypeServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceTypeServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceTypeServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeserviceupdatemanuallymanagedresourcetype.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeserviceupdatemanuallymanagedresourcetype.go index 87d219fd..627548b8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeserviceupdatemanuallymanagedresourcetype.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appresourcetypeserviceupdatemanuallymanagedresourcetype.go @@ -13,25 +13,25 @@ type C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeRequest st ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeRequest) GetUpdateManuallyManagedResourceTypeRequest() *shared.UpdateManuallyManagedResourceTypeRequest { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeRequest) GetUpdateManuallyManagedResourceTypeRequest() *shared.UpdateManuallyManagedResourceTypeRequest { + if c == nil { return nil } - return o.UpdateManuallyManagedResourceTypeRequest + return c.UpdateManuallyManagedResourceTypeRequest } -func (o *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse s UpdateManuallyManagedResourceTypeResponse *shared.UpdateManuallyManagedResourceTypeResponse } -func (o *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse) GetUpdateManuallyManagedResourceTypeResponse() *shared.UpdateManuallyManagedResourceTypeResponse { - if o == nil { +func (c *C1APIAppV1AppResourceTypeServiceUpdateManuallyManagedResourceTypeResponse) GetUpdateManuallyManagedResourceTypeResponse() *shared.UpdateManuallyManagedResourceTypeResponse { + if c == nil { return nil } - return o.UpdateManuallyManagedResourceTypeResponse + return c.UpdateManuallyManagedResourceTypeResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appscreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appscreate.go index 19123ae3..faa3aaa5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appscreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appscreate.go @@ -18,30 +18,30 @@ type C1APIAppV1AppsCreateResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppsCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppsCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppsCreateResponse) GetCreateAppResponse() *shared.CreateAppResponse { - if o == nil { +func (c *C1APIAppV1AppsCreateResponse) GetCreateAppResponse() *shared.CreateAppResponse { + if c == nil { return nil } - return o.CreateAppResponse + return c.CreateAppResponse } -func (o *C1APIAppV1AppsCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppsCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppsCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppsCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsdelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsdelete.go index 7413eed5..15f34c06 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsdelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsdelete.go @@ -12,18 +12,18 @@ type C1APIAppV1AppsDeleteRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppsDeleteRequest) GetDeleteAppRequest() *shared.DeleteAppRequest { - if o == nil { +func (c *C1APIAppV1AppsDeleteRequest) GetDeleteAppRequest() *shared.DeleteAppRequest { + if c == nil { return nil } - return o.DeleteAppRequest + return c.DeleteAppRequest } -func (o *C1APIAppV1AppsDeleteRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppsDeleteRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppsDeleteResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppsDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppsDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppsDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppsDeleteResponse) GetDeleteAppResponse() *shared.DeleteAppResponse { - if o == nil { +func (c *C1APIAppV1AppsDeleteResponse) GetDeleteAppResponse() *shared.DeleteAppResponse { + if c == nil { return nil } - return o.DeleteAppResponse + return c.DeleteAppResponse } -func (o *C1APIAppV1AppsDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppsDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppsDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppsDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsearchsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsearchsearch.go index 1d5f4f7f..8355e36e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsearchsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsearchsearch.go @@ -16,32 +16,34 @@ type C1APIAppV1AppSearchSearchResponse struct { StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response + + Next func() (*C1APIAppV1AppSearchSearchResponse, error) } -func (o *C1APIAppV1AppSearchSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppSearchSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppSearchSearchResponse) GetSearchAppsResponse() *shared.SearchAppsResponse { - if o == nil { +func (c *C1APIAppV1AppSearchSearchResponse) GetSearchAppsResponse() *shared.SearchAppsResponse { + if c == nil { return nil } - return o.SearchAppsResponse + return c.SearchAppsResponse } -func (o *C1APIAppV1AppSearchSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppSearchSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppSearchSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppSearchSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsget.go index 109034bd..03c42a34 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsget.go @@ -11,11 +11,11 @@ type C1APIAppV1AppsGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppsGetRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppsGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppsGetResponse struct { @@ -29,30 +29,30 @@ type C1APIAppV1AppsGetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppsGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppsGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppsGetResponse) GetGetAppResponse() *shared.GetAppResponse { - if o == nil { +func (c *C1APIAppV1AppsGetResponse) GetGetAppResponse() *shared.GetAppResponse { + if c == nil { return nil } - return o.GetAppResponse + return c.GetAppResponse } -func (o *C1APIAppV1AppsGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppsGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppsGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppsGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appslist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appslist.go index 033921a5..e54b53d6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appslist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appslist.go @@ -12,18 +12,18 @@ type C1APIAppV1AppsListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppsListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppsListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppsListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppsListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppsListResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppsListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppsListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppsListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppsListResponse) GetListAppsResponse() *shared.ListAppsResponse { - if o == nil { +func (c *C1APIAppV1AppsListResponse) GetListAppsResponse() *shared.ListAppsResponse { + if c == nil { return nil } - return o.ListAppsResponse + return c.ListAppsResponse } -func (o *C1APIAppV1AppsListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppsListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppsListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppsListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsupdate.go index ceb55d4d..d87de32f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appsupdate.go @@ -12,18 +12,18 @@ type C1APIAppV1AppsUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1AppsUpdateRequest) GetUpdateAppRequest() *shared.UpdateAppRequest { - if o == nil { +func (c *C1APIAppV1AppsUpdateRequest) GetUpdateAppRequest() *shared.UpdateAppRequest { + if c == nil { return nil } - return o.UpdateAppRequest + return c.UpdateAppRequest } -func (o *C1APIAppV1AppsUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1AppsUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1AppsUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppsUpdateResponse struct { UpdateAppResponse *shared.UpdateAppResponse } -func (o *C1APIAppV1AppsUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppsUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppsUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppsUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppsUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppsUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIAppV1AppsUpdateResponse) GetUpdateAppResponse() *shared.UpdateAppResponse { - if o == nil { +func (c *C1APIAppV1AppsUpdateResponse) GetUpdateAppResponse() *shared.UpdateAppResponse { + if c == nil { return nil } - return o.UpdateAppResponse + return c.UpdateAppResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appusagecontrolsserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appusagecontrolsserviceget.go index e5a66070..0bfaa375 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appusagecontrolsserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appusagecontrolsserviceget.go @@ -11,11 +11,11 @@ type C1APIAppV1AppUsageControlsServiceGetRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppUsageControlsServiceGetRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceGetRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppUsageControlsServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APIAppV1AppUsageControlsServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppUsageControlsServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppUsageControlsServiceGetResponse) GetGetAppUsageControlsResponse() *shared.GetAppUsageControlsResponse { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceGetResponse) GetGetAppUsageControlsResponse() *shared.GetAppUsageControlsResponse { + if c == nil { return nil } - return o.GetAppUsageControlsResponse + return c.GetAppUsageControlsResponse } -func (o *C1APIAppV1AppUsageControlsServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppUsageControlsServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appusagecontrolsserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appusagecontrolsserviceupdate.go index 38b498d5..d3c9c82b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appusagecontrolsserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appusagecontrolsserviceupdate.go @@ -12,18 +12,18 @@ type C1APIAppV1AppUsageControlsServiceUpdateRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1AppUsageControlsServiceUpdateRequest) GetUpdateAppUsageControlsRequest() *shared.UpdateAppUsageControlsRequest { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceUpdateRequest) GetUpdateAppUsageControlsRequest() *shared.UpdateAppUsageControlsRequest { + if c == nil { return nil } - return o.UpdateAppUsageControlsRequest + return c.UpdateAppUsageControlsRequest } -func (o *C1APIAppV1AppUsageControlsServiceUpdateRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceUpdateRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1AppUsageControlsServiceUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1AppUsageControlsServiceUpdateResponse struct { UpdateAppUsageControlsResponse *shared.UpdateAppUsageControlsResponse } -func (o *C1APIAppV1AppUsageControlsServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppUsageControlsServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppUsageControlsServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIAppV1AppUsageControlsServiceUpdateResponse) GetUpdateAppUsageControlsResponse() *shared.UpdateAppUsageControlsResponse { - if o == nil { +func (c *C1APIAppV1AppUsageControlsServiceUpdateResponse) GetUpdateAppUsageControlsResponse() *shared.UpdateAppUsageControlsResponse { + if c == nil { return nil } - return o.UpdateAppUsageControlsResponse + return c.UpdateAppUsageControlsResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelist.go index f58d6a38..941a200a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelist.go @@ -13,25 +13,25 @@ type C1APIAppV1AppUserServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppUserServiceListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppUserServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppUserServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppUserServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppUserServiceListResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppUserServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppUserServiceListResponse) GetAppUserServiceListResponse() *shared.AppUserServiceListResponse { - if o == nil { +func (c *C1APIAppV1AppUserServiceListResponse) GetAppUserServiceListResponse() *shared.AppUserServiceListResponse { + if c == nil { return nil } - return o.AppUserServiceListResponse + return c.AppUserServiceListResponse } -func (o *C1APIAppV1AppUserServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppUserServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppUserServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppUserServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppUserServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelistappusercredentials.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelistappusercredentials.go index a5230ded..82e174c5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelistappusercredentials.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelistappusercredentials.go @@ -14,32 +14,32 @@ type C1APIAppV1AppUserServiceListAppUserCredentialsRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1AppUserServiceListAppUserCredentialsRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUserCredentialsRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppUserServiceListAppUserCredentialsRequest) GetAppUserID() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUserCredentialsRequest) GetAppUserID() string { + if c == nil { return "" } - return o.AppUserID + return c.AppUserID } -func (o *C1APIAppV1AppUserServiceListAppUserCredentialsRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUserCredentialsRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppUserServiceListAppUserCredentialsRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUserCredentialsRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1AppUserServiceListAppUserCredentialsResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppUserServiceListAppUserCredentialsResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppUserServiceListAppUserCredentialsResponse) GetAppUserServiceListCredentialsResponse() *shared.AppUserServiceListCredentialsResponse { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUserCredentialsResponse) GetAppUserServiceListCredentialsResponse() *shared.AppUserServiceListCredentialsResponse { + if c == nil { return nil } - return o.AppUserServiceListCredentialsResponse + return c.AppUserServiceListCredentialsResponse } -func (o *C1APIAppV1AppUserServiceListAppUserCredentialsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUserCredentialsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppUserServiceListAppUserCredentialsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUserCredentialsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppUserServiceListAppUserCredentialsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUserCredentialsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelistappusersforuser.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelistappusersforuser.go index 0b0ceb4d..e4b95961 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelistappusersforuser.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicelistappusersforuser.go @@ -14,32 +14,32 @@ type C1APIAppV1AppUserServiceListAppUsersForUserRequest struct { UserID string `pathParam:"style=simple,explode=false,name=user_id"` } -func (o *C1APIAppV1AppUserServiceListAppUsersForUserRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUsersForUserRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1AppUserServiceListAppUsersForUserRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUsersForUserRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1AppUserServiceListAppUsersForUserRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUsersForUserRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } -func (o *C1APIAppV1AppUserServiceListAppUsersForUserRequest) GetUserID() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUsersForUserRequest) GetUserID() string { + if c == nil { return "" } - return o.UserID + return c.UserID } type C1APIAppV1AppUserServiceListAppUsersForUserResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1AppUserServiceListAppUsersForUserResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppUserServiceListAppUsersForUserResponse) GetAppUsersForUserServiceListResponse() *shared.AppUsersForUserServiceListResponse { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUsersForUserResponse) GetAppUsersForUserServiceListResponse() *shared.AppUsersForUserServiceListResponse { + if c == nil { return nil } - return o.AppUsersForUserServiceListResponse + return c.AppUsersForUserServiceListResponse } -func (o *C1APIAppV1AppUserServiceListAppUsersForUserResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUsersForUserResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppUserServiceListAppUsersForUserResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUsersForUserResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppUserServiceListAppUsersForUserResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppUserServiceListAppUsersForUserResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicesearch.go index 876b7835..441d1d12 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserservicesearch.go @@ -18,30 +18,30 @@ type C1APIAppV1AppUserServiceSearchResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppUserServiceSearchResponse) GetAppUserServiceSearchResponse() *shared.AppUserServiceSearchResponse { - if o == nil { +func (c *C1APIAppV1AppUserServiceSearchResponse) GetAppUserServiceSearchResponse() *shared.AppUserServiceSearchResponse { + if c == nil { return nil } - return o.AppUserServiceSearchResponse + return c.AppUserServiceSearchResponse } -func (o *C1APIAppV1AppUserServiceSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppUserServiceSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppUserServiceSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppUserServiceSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppUserServiceSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserserviceupdate.go index ba0b3875..75348dd6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1appuserserviceupdate.go @@ -13,25 +13,25 @@ type C1APIAppV1AppUserServiceUpdateRequest struct { AppUserID string `pathParam:"style=simple,explode=false,name=app_user_id"` } -func (o *C1APIAppV1AppUserServiceUpdateRequest) GetAppUserServiceUpdateRequest() *shared.AppUserServiceUpdateRequest { - if o == nil { +func (c *C1APIAppV1AppUserServiceUpdateRequest) GetAppUserServiceUpdateRequest() *shared.AppUserServiceUpdateRequest { + if c == nil { return nil } - return o.AppUserServiceUpdateRequest + return c.AppUserServiceUpdateRequest } -func (o *C1APIAppV1AppUserServiceUpdateRequest) GetAppUserAppID() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceUpdateRequest) GetAppUserAppID() string { + if c == nil { return "" } - return o.AppUserAppID + return c.AppUserAppID } -func (o *C1APIAppV1AppUserServiceUpdateRequest) GetAppUserID() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceUpdateRequest) GetAppUserID() string { + if c == nil { return "" } - return o.AppUserID + return c.AppUserID } type C1APIAppV1AppUserServiceUpdateResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1AppUserServiceUpdateResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1AppUserServiceUpdateResponse) GetAppUserServiceUpdateResponse() *shared.AppUserServiceUpdateResponse { - if o == nil { +func (c *C1APIAppV1AppUserServiceUpdateResponse) GetAppUserServiceUpdateResponse() *shared.AppUserServiceUpdateResponse { + if c == nil { return nil } - return o.AppUserServiceUpdateResponse + return c.AppUserServiceUpdateResponse } -func (o *C1APIAppV1AppUserServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1AppUserServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1AppUserServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1AppUserServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1AppUserServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1AppUserServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceconfirmsyncvalid.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceconfirmsyncvalid.go new file mode 100644 index 00000000..268fea50 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceconfirmsyncvalid.go @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1ConnectorServiceConfirmSyncValidRequest struct { + ConfirmSyncValidRequest *shared.ConfirmSyncValidRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + ConnectorID string `pathParam:"style=simple,explode=false,name=connector_id"` + SyncLifecycleID string `pathParam:"style=simple,explode=false,name=sync_lifecycle_id"` +} + +func (c *C1APIAppV1ConnectorServiceConfirmSyncValidRequest) GetConfirmSyncValidRequest() *shared.ConfirmSyncValidRequest { + if c == nil { + return nil + } + return c.ConfirmSyncValidRequest +} + +func (c *C1APIAppV1ConnectorServiceConfirmSyncValidRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIAppV1ConnectorServiceConfirmSyncValidRequest) GetConnectorID() string { + if c == nil { + return "" + } + return c.ConnectorID +} + +func (c *C1APIAppV1ConnectorServiceConfirmSyncValidRequest) GetSyncLifecycleID() string { + if c == nil { + return "" + } + return c.SyncLifecycleID +} + +type C1APIAppV1ConnectorServiceConfirmSyncValidResponse struct { + // Successful response + ConfirmSyncValidResponse *shared.ConfirmSyncValidResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1ConnectorServiceConfirmSyncValidResponse) GetConfirmSyncValidResponse() *shared.ConfirmSyncValidResponse { + if c == nil { + return nil + } + return c.ConfirmSyncValidResponse +} + +func (c *C1APIAppV1ConnectorServiceConfirmSyncValidResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1ConnectorServiceConfirmSyncValidResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1ConnectorServiceConfirmSyncValidResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicecreate.go index 13ac6780..dd9dbec1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicecreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicecreate.go @@ -12,18 +12,18 @@ type C1APIAppV1ConnectorServiceCreateRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1ConnectorServiceCreateRequest) GetConnectorServiceCreateRequest() *shared.ConnectorServiceCreateRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateRequest) GetConnectorServiceCreateRequest() *shared.ConnectorServiceCreateRequest { + if c == nil { return nil } - return o.ConnectorServiceCreateRequest + return c.ConnectorServiceCreateRequest } -func (o *C1APIAppV1ConnectorServiceCreateRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1ConnectorServiceCreateResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1ConnectorServiceCreateResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceCreateResponse) GetConnectorServiceCreateResponse() *shared.ConnectorServiceCreateResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateResponse) GetConnectorServiceCreateResponse() *shared.ConnectorServiceCreateResponse { + if c == nil { return nil } - return o.ConnectorServiceCreateResponse + return c.ConnectorServiceCreateResponse } -func (o *C1APIAppV1ConnectorServiceCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicecreatedelegated.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicecreatedelegated.go index c30acfd3..36802ee5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicecreatedelegated.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicecreatedelegated.go @@ -12,18 +12,18 @@ type C1APIAppV1ConnectorServiceCreateDelegatedRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIAppV1ConnectorServiceCreateDelegatedRequest) GetConnectorServiceCreateDelegatedRequest() *shared.ConnectorServiceCreateDelegatedRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateDelegatedRequest) GetConnectorServiceCreateDelegatedRequest() *shared.ConnectorServiceCreateDelegatedRequest { + if c == nil { return nil } - return o.ConnectorServiceCreateDelegatedRequest + return c.ConnectorServiceCreateDelegatedRequest } -func (o *C1APIAppV1ConnectorServiceCreateDelegatedRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateDelegatedRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIAppV1ConnectorServiceCreateDelegatedResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1ConnectorServiceCreateDelegatedResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceCreateDelegatedResponse) GetConnectorServiceCreateResponse() *shared.ConnectorServiceCreateResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateDelegatedResponse) GetConnectorServiceCreateResponse() *shared.ConnectorServiceCreateResponse { + if c == nil { return nil } - return o.ConnectorServiceCreateResponse + return c.ConnectorServiceCreateResponse } -func (o *C1APIAppV1ConnectorServiceCreateDelegatedResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateDelegatedResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceCreateDelegatedResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateDelegatedResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceCreateDelegatedResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceCreateDelegatedResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicedelete.go index 0d328e1b..6261c320 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicedelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicedelete.go @@ -13,25 +13,25 @@ type C1APIAppV1ConnectorServiceDeleteRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1ConnectorServiceDeleteRequest) GetConnectorServiceDeleteRequest() *shared.ConnectorServiceDeleteRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServiceDeleteRequest) GetConnectorServiceDeleteRequest() *shared.ConnectorServiceDeleteRequest { + if c == nil { return nil } - return o.ConnectorServiceDeleteRequest + return c.ConnectorServiceDeleteRequest } -func (o *C1APIAppV1ConnectorServiceDeleteRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceDeleteRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServiceDeleteRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceDeleteRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1ConnectorServiceDeleteResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1ConnectorServiceDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceDeleteResponse) GetConnectorServiceDeleteResponse() *shared.ConnectorServiceDeleteResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceDeleteResponse) GetConnectorServiceDeleteResponse() *shared.ConnectorServiceDeleteResponse { + if c == nil { return nil } - return o.ConnectorServiceDeleteResponse + return c.ConnectorServiceDeleteResponse } -func (o *C1APIAppV1ConnectorServiceDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceforcesync.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceforcesync.go index 6d08006f..0276e880 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceforcesync.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceforcesync.go @@ -13,25 +13,25 @@ type C1APIAppV1ConnectorServiceForceSyncRequest struct { ConnectorID string `pathParam:"style=simple,explode=false,name=connector_id"` } -func (o *C1APIAppV1ConnectorServiceForceSyncRequest) GetForceSyncRequest() *shared.ForceSyncRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServiceForceSyncRequest) GetForceSyncRequest() *shared.ForceSyncRequest { + if c == nil { return nil } - return o.ForceSyncRequest + return c.ForceSyncRequest } -func (o *C1APIAppV1ConnectorServiceForceSyncRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceForceSyncRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServiceForceSyncRequest) GetConnectorID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceForceSyncRequest) GetConnectorID() string { + if c == nil { return "" } - return o.ConnectorID + return c.ConnectorID } type C1APIAppV1ConnectorServiceForceSyncResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1ConnectorServiceForceSyncResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceForceSyncResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceForceSyncResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceForceSyncResponse) GetForceSyncResponse() *shared.ForceSyncResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceForceSyncResponse) GetForceSyncResponse() *shared.ForceSyncResponse { + if c == nil { return nil } - return o.ForceSyncResponse + return c.ForceSyncResponse } -func (o *C1APIAppV1ConnectorServiceForceSyncResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceForceSyncResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceForceSyncResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceForceSyncResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceget.go index acf074e1..a1e2bc3a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceget.go @@ -12,18 +12,18 @@ type C1APIAppV1ConnectorServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1ConnectorServiceGetRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1ConnectorServiceGetResponse struct { @@ -37,30 +37,30 @@ type C1APIAppV1ConnectorServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceGetResponse) GetConnectorServiceGetResponse() *shared.ConnectorServiceGetResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetResponse) GetConnectorServiceGetResponse() *shared.ConnectorServiceGetResponse { + if c == nil { return nil } - return o.ConnectorServiceGetResponse + return c.ConnectorServiceGetResponse } -func (o *C1APIAppV1ConnectorServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicegetconnectorsyncdownloadurl.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicegetconnectorsyncdownloadurl.go new file mode 100644 index 00000000..419da0f1 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicegetconnectorsyncdownloadurl.go @@ -0,0 +1,74 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLRequest struct { + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + ConnectorID string `pathParam:"style=simple,explode=false,name=connector_id"` + SyncID string `pathParam:"style=simple,explode=false,name=sync_id"` +} + +func (c *C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLRequest) GetConnectorID() string { + if c == nil { + return "" + } + return c.ConnectorID +} + +func (c *C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLRequest) GetSyncID() string { + if c == nil { + return "" + } + return c.SyncID +} + +type C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + GetConnectorSyncDownloadURLResponse *shared.GetConnectorSyncDownloadURLResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLResponse) GetGetConnectorSyncDownloadURLResponse() *shared.GetConnectorSyncDownloadURLResponse { + if c == nil { + return nil + } + return c.GetConnectorSyncDownloadURLResponse +} + +func (c *C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1ConnectorServiceGetConnectorSyncDownloadURLResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicegetcredentials.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicegetcredentials.go index cc93eca8..891dab66 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicegetcredentials.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicegetcredentials.go @@ -13,25 +13,25 @@ type C1APIAppV1ConnectorServiceGetCredentialsRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1ConnectorServiceGetCredentialsRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetCredentialsRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServiceGetCredentialsRequest) GetConnectorID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetCredentialsRequest) GetConnectorID() string { + if c == nil { return "" } - return o.ConnectorID + return c.ConnectorID } -func (o *C1APIAppV1ConnectorServiceGetCredentialsRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetCredentialsRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1ConnectorServiceGetCredentialsResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1ConnectorServiceGetCredentialsResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceGetCredentialsResponse) GetConnectorServiceGetCredentialsResponse() *shared.ConnectorServiceGetCredentialsResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetCredentialsResponse) GetConnectorServiceGetCredentialsResponse() *shared.ConnectorServiceGetCredentialsResponse { + if c == nil { return nil } - return o.ConnectorServiceGetCredentialsResponse + return c.ConnectorServiceGetCredentialsResponse } -func (o *C1APIAppV1ConnectorServiceGetCredentialsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetCredentialsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceGetCredentialsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetCredentialsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceGetCredentialsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceGetCredentialsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicelist.go index 3b0d463d..f8340dfc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicelist.go @@ -13,25 +13,25 @@ type C1APIAppV1ConnectorServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAppV1ConnectorServiceListRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceListRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAppV1ConnectorServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAppV1ConnectorServiceListResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1ConnectorServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceListResponse) GetConnectorServiceListResponse() *shared.ConnectorServiceListResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceListResponse) GetConnectorServiceListResponse() *shared.ConnectorServiceListResponse { + if c == nil { return nil } - return o.ConnectorServiceListResponse + return c.ConnectorServiceListResponse } -func (o *C1APIAppV1ConnectorServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicepausesync.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicepausesync.go index c37af9d8..e28e17d6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicepausesync.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicepausesync.go @@ -13,25 +13,25 @@ type C1APIAppV1ConnectorServicePauseSyncRequest struct { ConnectorID string `pathParam:"style=simple,explode=false,name=connector_id"` } -func (o *C1APIAppV1ConnectorServicePauseSyncRequest) GetPauseSyncRequest() *shared.PauseSyncRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServicePauseSyncRequest) GetPauseSyncRequest() *shared.PauseSyncRequest { + if c == nil { return nil } - return o.PauseSyncRequest + return c.PauseSyncRequest } -func (o *C1APIAppV1ConnectorServicePauseSyncRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServicePauseSyncRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServicePauseSyncRequest) GetConnectorID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServicePauseSyncRequest) GetConnectorID() string { + if c == nil { return "" } - return o.ConnectorID + return c.ConnectorID } type C1APIAppV1ConnectorServicePauseSyncResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1ConnectorServicePauseSyncResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServicePauseSyncResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServicePauseSyncResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServicePauseSyncResponse) GetPauseSyncResponse() *shared.PauseSyncResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServicePauseSyncResponse) GetPauseSyncResponse() *shared.PauseSyncResponse { + if c == nil { return nil } - return o.PauseSyncResponse + return c.PauseSyncResponse } -func (o *C1APIAppV1ConnectorServicePauseSyncResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServicePauseSyncResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServicePauseSyncResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServicePauseSyncResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceresumesync.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceresumesync.go index 0c5f9e8c..4d29f3f0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceresumesync.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceresumesync.go @@ -13,25 +13,25 @@ type C1APIAppV1ConnectorServiceResumeSyncRequest struct { ConnectorID string `pathParam:"style=simple,explode=false,name=connector_id"` } -func (o *C1APIAppV1ConnectorServiceResumeSyncRequest) GetResumeSyncRequest() *shared.ResumeSyncRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServiceResumeSyncRequest) GetResumeSyncRequest() *shared.ResumeSyncRequest { + if c == nil { return nil } - return o.ResumeSyncRequest + return c.ResumeSyncRequest } -func (o *C1APIAppV1ConnectorServiceResumeSyncRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceResumeSyncRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServiceResumeSyncRequest) GetConnectorID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceResumeSyncRequest) GetConnectorID() string { + if c == nil { return "" } - return o.ConnectorID + return c.ConnectorID } type C1APIAppV1ConnectorServiceResumeSyncResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1ConnectorServiceResumeSyncResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceResumeSyncResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceResumeSyncResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceResumeSyncResponse) GetResumeSyncResponse() *shared.ResumeSyncResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceResumeSyncResponse) GetResumeSyncResponse() *shared.ResumeSyncResponse { + if c == nil { return nil } - return o.ResumeSyncResponse + return c.ResumeSyncResponse } -func (o *C1APIAppV1ConnectorServiceResumeSyncResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceResumeSyncResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceResumeSyncResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceResumeSyncResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicerevokecredential.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicerevokecredential.go index c8a8e0f2..1b53eb68 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicerevokecredential.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicerevokecredential.go @@ -14,32 +14,32 @@ type C1APIAppV1ConnectorServiceRevokeCredentialRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1ConnectorServiceRevokeCredentialRequest) GetConnectorServiceRevokeCredentialRequest() *shared.ConnectorServiceRevokeCredentialRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRevokeCredentialRequest) GetConnectorServiceRevokeCredentialRequest() *shared.ConnectorServiceRevokeCredentialRequest { + if c == nil { return nil } - return o.ConnectorServiceRevokeCredentialRequest + return c.ConnectorServiceRevokeCredentialRequest } -func (o *C1APIAppV1ConnectorServiceRevokeCredentialRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRevokeCredentialRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServiceRevokeCredentialRequest) GetConnectorID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRevokeCredentialRequest) GetConnectorID() string { + if c == nil { return "" } - return o.ConnectorID + return c.ConnectorID } -func (o *C1APIAppV1ConnectorServiceRevokeCredentialRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRevokeCredentialRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1ConnectorServiceRevokeCredentialResponse struct { @@ -53,30 +53,30 @@ type C1APIAppV1ConnectorServiceRevokeCredentialResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceRevokeCredentialResponse) GetConnectorServiceRevokeCredentialResponse() *shared.ConnectorServiceRevokeCredentialResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRevokeCredentialResponse) GetConnectorServiceRevokeCredentialResponse() *shared.ConnectorServiceRevokeCredentialResponse { + if c == nil { return nil } - return o.ConnectorServiceRevokeCredentialResponse + return c.ConnectorServiceRevokeCredentialResponse } -func (o *C1APIAppV1ConnectorServiceRevokeCredentialResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRevokeCredentialResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceRevokeCredentialResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRevokeCredentialResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceRevokeCredentialResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRevokeCredentialResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicerotatecredential.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicerotatecredential.go index 7f30f41d..12035f9f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicerotatecredential.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicerotatecredential.go @@ -7,33 +7,6 @@ import ( "net/http" ) -type C1APIAppV1ConnectorServiceRotateCredentialRequest struct { - ConnectorServiceRotateCredentialRequest *shared.ConnectorServiceRotateCredentialRequest `request:"mediaType=application/json"` - AppID string `pathParam:"style=simple,explode=false,name=app_id"` - ConnectorID string `pathParam:"style=simple,explode=false,name=connector_id"` -} - -func (o *C1APIAppV1ConnectorServiceRotateCredentialRequest) GetConnectorServiceRotateCredentialRequest() *shared.ConnectorServiceRotateCredentialRequest { - if o == nil { - return nil - } - return o.ConnectorServiceRotateCredentialRequest -} - -func (o *C1APIAppV1ConnectorServiceRotateCredentialRequest) GetAppID() string { - if o == nil { - return "" - } - return o.AppID -} - -func (o *C1APIAppV1ConnectorServiceRotateCredentialRequest) GetConnectorID() string { - if o == nil { - return "" - } - return o.ConnectorID -} - type C1APIAppV1ConnectorServiceRotateCredentialResponse struct { // ConnectorServiceRotateCredentialResponse is the response returned by the rotate method. ConnectorServiceRotateCredentialResponse *shared.ConnectorServiceRotateCredentialResponse @@ -45,30 +18,30 @@ type C1APIAppV1ConnectorServiceRotateCredentialResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceRotateCredentialResponse) GetConnectorServiceRotateCredentialResponse() *shared.ConnectorServiceRotateCredentialResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRotateCredentialResponse) GetConnectorServiceRotateCredentialResponse() *shared.ConnectorServiceRotateCredentialResponse { + if c == nil { return nil } - return o.ConnectorServiceRotateCredentialResponse + return c.ConnectorServiceRotateCredentialResponse } -func (o *C1APIAppV1ConnectorServiceRotateCredentialResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRotateCredentialResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceRotateCredentialResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRotateCredentialResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceRotateCredentialResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceRotateCredentialResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdate.go index 4223a0e6..17b5a613 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdate.go @@ -13,25 +13,25 @@ type C1APIAppV1ConnectorServiceUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAppV1ConnectorServiceUpdateRequest) GetConnectorServiceUpdateRequest() *shared.ConnectorServiceUpdateRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateRequest) GetConnectorServiceUpdateRequest() *shared.ConnectorServiceUpdateRequest { + if c == nil { return nil } - return o.ConnectorServiceUpdateRequest + return c.ConnectorServiceUpdateRequest } -func (o *C1APIAppV1ConnectorServiceUpdateRequest) GetAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } -func (o *C1APIAppV1ConnectorServiceUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAppV1ConnectorServiceUpdateResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1ConnectorServiceUpdateResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceUpdateResponse) GetConnectorServiceUpdateResponse() *shared.ConnectorServiceUpdateResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateResponse) GetConnectorServiceUpdateResponse() *shared.ConnectorServiceUpdateResponse { + if c == nil { return nil } - return o.ConnectorServiceUpdateResponse + return c.ConnectorServiceUpdateResponse } -func (o *C1APIAppV1ConnectorServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdateconnectorschedule.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdateconnectorschedule.go new file mode 100644 index 00000000..3fe390dc --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdateconnectorschedule.go @@ -0,0 +1,74 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAppV1ConnectorServiceUpdateConnectorScheduleRequest struct { + UpdateConnectorScheduleRequest *shared.UpdateConnectorScheduleRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + ConnectorID string `pathParam:"style=simple,explode=false,name=connector_id"` +} + +func (c *C1APIAppV1ConnectorServiceUpdateConnectorScheduleRequest) GetUpdateConnectorScheduleRequest() *shared.UpdateConnectorScheduleRequest { + if c == nil { + return nil + } + return c.UpdateConnectorScheduleRequest +} + +func (c *C1APIAppV1ConnectorServiceUpdateConnectorScheduleRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIAppV1ConnectorServiceUpdateConnectorScheduleRequest) GetConnectorID() string { + if c == nil { + return "" + } + return c.ConnectorID +} + +type C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // Successful response + UpdateConnectorScheduleResponse *shared.UpdateConnectorScheduleResponse +} + +func (c *C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} + +func (c *C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse) GetUpdateConnectorScheduleResponse() *shared.UpdateConnectorScheduleResponse { + if c == nil { + return nil + } + return c.UpdateConnectorScheduleResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdatedelegated.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdatedelegated.go index 6050645c..d95fd49a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdatedelegated.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorserviceupdatedelegated.go @@ -13,25 +13,25 @@ type C1APIAppV1ConnectorServiceUpdateDelegatedRequest struct { ConnectorID string `pathParam:"style=simple,explode=false,name=connector_id"` } -func (o *C1APIAppV1ConnectorServiceUpdateDelegatedRequest) GetConnectorServiceUpdateDelegatedRequest() *shared.ConnectorServiceUpdateDelegatedRequest { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateDelegatedRequest) GetConnectorServiceUpdateDelegatedRequest() *shared.ConnectorServiceUpdateDelegatedRequest { + if c == nil { return nil } - return o.ConnectorServiceUpdateDelegatedRequest + return c.ConnectorServiceUpdateDelegatedRequest } -func (o *C1APIAppV1ConnectorServiceUpdateDelegatedRequest) GetConnectorAppID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateDelegatedRequest) GetConnectorAppID() string { + if c == nil { return "" } - return o.ConnectorAppID + return c.ConnectorAppID } -func (o *C1APIAppV1ConnectorServiceUpdateDelegatedRequest) GetConnectorID() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateDelegatedRequest) GetConnectorID() string { + if c == nil { return "" } - return o.ConnectorID + return c.ConnectorID } type C1APIAppV1ConnectorServiceUpdateDelegatedResponse struct { @@ -45,30 +45,30 @@ type C1APIAppV1ConnectorServiceUpdateDelegatedResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceUpdateDelegatedResponse) GetConnectorServiceUpdateResponse() *shared.ConnectorServiceUpdateResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateDelegatedResponse) GetConnectorServiceUpdateResponse() *shared.ConnectorServiceUpdateResponse { + if c == nil { return nil } - return o.ConnectorServiceUpdateResponse + return c.ConnectorServiceUpdateResponse } -func (o *C1APIAppV1ConnectorServiceUpdateDelegatedResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateDelegatedResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceUpdateDelegatedResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateDelegatedResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceUpdateDelegatedResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceUpdateDelegatedResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicevalidatehttpconnectorconfig.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicevalidatehttpconnectorconfig.go index 0d76cf3c..040d61f6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicevalidatehttpconnectorconfig.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiappv1connectorservicevalidatehttpconnectorconfig.go @@ -18,30 +18,30 @@ type C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse struct { RawResponse *http.Response } -func (o *C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse) GetContentType() string { - if o == nil { +func (c *C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse) GetEditorValidateResponse() *shared.EditorValidateResponse { - if o == nil { +func (c *C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse) GetEditorValidateResponse() *shared.EditorValidateResponse { + if c == nil { return nil } - return o.EditorValidateResponse + return c.EditorValidateResponse } -func (o *C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAppV1ConnectorServiceValidateHTTPConnectorConfigResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreateattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreateattributevalue.go index 4ef0d50a..59467e5d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreateattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreateattributevalue.go @@ -18,30 +18,30 @@ type C1APIAttributeV1AttributesCreateAttributeValueResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesCreateAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesCreateAttributeValueResponse) GetCreateAttributeValueResponse() *shared.CreateAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateAttributeValueResponse) GetCreateAttributeValueResponse() *shared.CreateAttributeValueResponse { + if c == nil { return nil } - return o.CreateAttributeValueResponse + return c.CreateAttributeValueResponse } -func (o *C1APIAttributeV1AttributesCreateAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesCreateAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreatecomplianceframeworkattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreatecomplianceframeworkattributevalue.go index e24bfb63..122082bc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreatecomplianceframeworkattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreatecomplianceframeworkattributevalue.go @@ -18,30 +18,30 @@ type C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse s RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse) GetCreateComplianceFrameworkAttributeValueResponse() *shared.CreateComplianceFrameworkAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse) GetCreateComplianceFrameworkAttributeValueResponse() *shared.CreateComplianceFrameworkAttributeValueResponse { + if c == nil { return nil } - return o.CreateComplianceFrameworkAttributeValueResponse + return c.CreateComplianceFrameworkAttributeValueResponse } -func (o *C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateComplianceFrameworkAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreaterisklevelattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreaterisklevelattributevalue.go index 016edbac..35ca8268 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreaterisklevelattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributescreaterisklevelattributevalue.go @@ -18,30 +18,30 @@ type C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse) GetCreateRiskLevelAttributeValueResponse() *shared.CreateRiskLevelAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse) GetCreateRiskLevelAttributeValueResponse() *shared.CreateRiskLevelAttributeValueResponse { + if c == nil { return nil } - return o.CreateRiskLevelAttributeValueResponse + return c.CreateRiskLevelAttributeValueResponse } -func (o *C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesCreateRiskLevelAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeleteattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeleteattributevalue.go index b2054f29..53498242 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeleteattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeleteattributevalue.go @@ -12,18 +12,18 @@ type C1APIAttributeV1AttributesDeleteAttributeValueRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAttributeV1AttributesDeleteAttributeValueRequest) GetDeleteAttributeValueRequest() *shared.DeleteAttributeValueRequest { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteAttributeValueRequest) GetDeleteAttributeValueRequest() *shared.DeleteAttributeValueRequest { + if c == nil { return nil } - return o.DeleteAttributeValueRequest + return c.DeleteAttributeValueRequest } -func (o *C1APIAttributeV1AttributesDeleteAttributeValueRequest) GetID() string { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteAttributeValueRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAttributeV1AttributesDeleteAttributeValueResponse struct { @@ -37,30 +37,30 @@ type C1APIAttributeV1AttributesDeleteAttributeValueResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesDeleteAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesDeleteAttributeValueResponse) GetDeleteAttributeValueResponse() *shared.DeleteAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteAttributeValueResponse) GetDeleteAttributeValueResponse() *shared.DeleteAttributeValueResponse { + if c == nil { return nil } - return o.DeleteAttributeValueResponse + return c.DeleteAttributeValueResponse } -func (o *C1APIAttributeV1AttributesDeleteAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesDeleteAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeletecomplianceframeworkattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeletecomplianceframeworkattributevalue.go index 50d11312..43a384cb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeletecomplianceframeworkattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeletecomplianceframeworkattributevalue.go @@ -12,18 +12,18 @@ type C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueRequest st ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueRequest) GetDeleteComplianceFrameworkAttributeValueRequest() *shared.DeleteComplianceFrameworkAttributeValueRequest { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueRequest) GetDeleteComplianceFrameworkAttributeValueRequest() *shared.DeleteComplianceFrameworkAttributeValueRequest { + if c == nil { return nil } - return o.DeleteComplianceFrameworkAttributeValueRequest + return c.DeleteComplianceFrameworkAttributeValueRequest } -func (o *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueRequest) GetID() string { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse struct { @@ -37,30 +37,30 @@ type C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse s RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse) GetDeleteComplianceFrameworkAttributeValueResponse() *shared.DeleteComplianceFrameworkAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse) GetDeleteComplianceFrameworkAttributeValueResponse() *shared.DeleteComplianceFrameworkAttributeValueResponse { + if c == nil { return nil } - return o.DeleteComplianceFrameworkAttributeValueResponse + return c.DeleteComplianceFrameworkAttributeValueResponse } -func (o *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteComplianceFrameworkAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeleterisklevelattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeleterisklevelattributevalue.go index f319fee9..315d74f2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeleterisklevelattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesdeleterisklevelattributevalue.go @@ -12,18 +12,18 @@ type C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueRequest) GetDeleteRiskLevelAttributeValueRequest() *shared.DeleteRiskLevelAttributeValueRequest { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueRequest) GetDeleteRiskLevelAttributeValueRequest() *shared.DeleteRiskLevelAttributeValueRequest { + if c == nil { return nil } - return o.DeleteRiskLevelAttributeValueRequest + return c.DeleteRiskLevelAttributeValueRequest } -func (o *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueRequest) GetID() string { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse struct { @@ -37,30 +37,30 @@ type C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse) GetDeleteRiskLevelAttributeValueResponse() *shared.DeleteRiskLevelAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse) GetDeleteRiskLevelAttributeValueResponse() *shared.DeleteRiskLevelAttributeValueResponse { + if c == nil { return nil } - return o.DeleteRiskLevelAttributeValueResponse + return c.DeleteRiskLevelAttributeValueResponse } -func (o *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesDeleteRiskLevelAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesearchsearchattributevalues.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesearchsearchattributevalues.go index afe130bf..f2651d38 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesearchsearchattributevalues.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesearchsearchattributevalues.go @@ -18,30 +18,30 @@ type C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse) GetSearchAttributeValuesResponse() *shared.SearchAttributeValuesResponse { - if o == nil { +func (c *C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse) GetSearchAttributeValuesResponse() *shared.SearchAttributeValuesResponse { + if c == nil { return nil } - return o.SearchAttributeValuesResponse + return c.SearchAttributeValuesResponse } -func (o *C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributeSearchSearchAttributeValuesResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetattributevalue.go index 5919816b..455c0c7f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetattributevalue.go @@ -11,11 +11,11 @@ type C1APIAttributeV1AttributesGetAttributeValueRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAttributeV1AttributesGetAttributeValueRequest) GetID() string { - if o == nil { +func (c *C1APIAttributeV1AttributesGetAttributeValueRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAttributeV1AttributesGetAttributeValueResponse struct { @@ -29,30 +29,30 @@ type C1APIAttributeV1AttributesGetAttributeValueResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesGetAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesGetAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesGetAttributeValueResponse) GetGetAttributeValueResponse() *shared.GetAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesGetAttributeValueResponse) GetGetAttributeValueResponse() *shared.GetAttributeValueResponse { + if c == nil { return nil } - return o.GetAttributeValueResponse + return c.GetAttributeValueResponse } -func (o *C1APIAttributeV1AttributesGetAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesGetAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesGetAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesGetAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetcomplianceframeworkattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetcomplianceframeworkattributevalue.go index d880aa2e..988e086f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetcomplianceframeworkattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetcomplianceframeworkattributevalue.go @@ -11,11 +11,11 @@ type C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueRequest struc ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueRequest) GetID() string { - if o == nil { +func (c *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse struct { @@ -29,30 +29,30 @@ type C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse stru RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse) GetGetComplianceFrameworkAttributeValueResponse() *shared.GetComplianceFrameworkAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse) GetGetComplianceFrameworkAttributeValueResponse() *shared.GetComplianceFrameworkAttributeValueResponse { + if c == nil { return nil } - return o.GetComplianceFrameworkAttributeValueResponse + return c.GetComplianceFrameworkAttributeValueResponse } -func (o *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesGetComplianceFrameworkAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetrisklevelattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetrisklevelattributevalue.go index ca84fce6..38d0e615 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetrisklevelattributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributesgetrisklevelattributevalue.go @@ -11,11 +11,11 @@ type C1APIAttributeV1AttributesGetRiskLevelAttributeValueRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAttributeV1AttributesGetRiskLevelAttributeValueRequest) GetID() string { - if o == nil { +func (c *C1APIAttributeV1AttributesGetRiskLevelAttributeValueRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse struct { @@ -29,30 +29,30 @@ type C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse) GetGetRiskLevelAttributeValueResponse() *shared.GetRiskLevelAttributeValueResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse) GetGetRiskLevelAttributeValueResponse() *shared.GetRiskLevelAttributeValueResponse { + if c == nil { return nil } - return o.GetRiskLevelAttributeValueResponse + return c.GetRiskLevelAttributeValueResponse } -func (o *C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesGetRiskLevelAttributeValueResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistattributetypes.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistattributetypes.go index 4de202b1..7cb161da 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistattributetypes.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistattributetypes.go @@ -12,18 +12,18 @@ type C1APIAttributeV1AttributesListAttributeTypesRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAttributeV1AttributesListAttributeTypesRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeTypesRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAttributeV1AttributesListAttributeTypesRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeTypesRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAttributeV1AttributesListAttributeTypesResponse struct { @@ -37,30 +37,30 @@ type C1APIAttributeV1AttributesListAttributeTypesResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesListAttributeTypesResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeTypesResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesListAttributeTypesResponse) GetListAttributeTypesResponse() *shared.ListAttributeTypesResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeTypesResponse) GetListAttributeTypesResponse() *shared.ListAttributeTypesResponse { + if c == nil { return nil } - return o.ListAttributeTypesResponse + return c.ListAttributeTypesResponse } -func (o *C1APIAttributeV1AttributesListAttributeTypesResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeTypesResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesListAttributeTypesResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeTypesResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistattributevalues.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistattributevalues.go index f4670512..cd7f7787 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistattributevalues.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistattributevalues.go @@ -13,25 +13,25 @@ type C1APIAttributeV1AttributesListAttributeValuesRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIAttributeV1AttributesListAttributeValuesRequest) GetAttributeTypeID() string { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeValuesRequest) GetAttributeTypeID() string { + if c == nil { return "" } - return o.AttributeTypeID + return c.AttributeTypeID } -func (o *C1APIAttributeV1AttributesListAttributeValuesRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeValuesRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIAttributeV1AttributesListAttributeValuesRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeValuesRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIAttributeV1AttributesListAttributeValuesResponse struct { @@ -45,30 +45,30 @@ type C1APIAttributeV1AttributesListAttributeValuesResponse struct { RawResponse *http.Response } -func (o *C1APIAttributeV1AttributesListAttributeValuesResponse) GetContentType() string { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeValuesResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAttributeV1AttributesListAttributeValuesResponse) GetListAttributeValuesResponse() *shared.ListAttributeValuesResponse { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeValuesResponse) GetListAttributeValuesResponse() *shared.ListAttributeValuesResponse { + if c == nil { return nil } - return o.ListAttributeValuesResponse + return c.ListAttributeValuesResponse } -func (o *C1APIAttributeV1AttributesListAttributeValuesResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeValuesResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAttributeV1AttributesListAttributeValuesResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAttributeV1AttributesListAttributeValuesResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistcomplianceframeworks.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistcomplianceframeworks.go new file mode 100644 index 00000000..4411e236 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistcomplianceframeworks.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAttributeV1AttributesListComplianceFrameworksRequest struct { + PageSize *int `queryParam:"style=form,explode=true,name=page_size"` + PageToken *string `queryParam:"style=form,explode=true,name=page_token"` +} + +func (c *C1APIAttributeV1AttributesListComplianceFrameworksRequest) GetPageSize() *int { + if c == nil { + return nil + } + return c.PageSize +} + +func (c *C1APIAttributeV1AttributesListComplianceFrameworksRequest) GetPageToken() *string { + if c == nil { + return nil + } + return c.PageToken +} + +type C1APIAttributeV1AttributesListComplianceFrameworksResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + ListComplianceFrameworksResponse *shared.ListComplianceFrameworksResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAttributeV1AttributesListComplianceFrameworksResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAttributeV1AttributesListComplianceFrameworksResponse) GetListComplianceFrameworksResponse() *shared.ListComplianceFrameworksResponse { + if c == nil { + return nil + } + return c.ListComplianceFrameworksResponse +} + +func (c *C1APIAttributeV1AttributesListComplianceFrameworksResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAttributeV1AttributesListComplianceFrameworksResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistrisklevels.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistrisklevels.go new file mode 100644 index 00000000..218b8d61 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiattributev1attributeslistrisklevels.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIAttributeV1AttributesListRiskLevelsRequest struct { + PageSize *int `queryParam:"style=form,explode=true,name=page_size"` + PageToken *string `queryParam:"style=form,explode=true,name=page_token"` +} + +func (c *C1APIAttributeV1AttributesListRiskLevelsRequest) GetPageSize() *int { + if c == nil { + return nil + } + return c.PageSize +} + +func (c *C1APIAttributeV1AttributesListRiskLevelsRequest) GetPageToken() *string { + if c == nil { + return nil + } + return c.PageToken +} + +type C1APIAttributeV1AttributesListRiskLevelsResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + ListRiskLevelsResponse *shared.ListRiskLevelsResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIAttributeV1AttributesListRiskLevelsResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIAttributeV1AttributesListRiskLevelsResponse) GetListRiskLevelsResponse() *shared.ListRiskLevelsResponse { + if c == nil { + return nil + } + return c.ListRiskLevelsResponse +} + +func (c *C1APIAttributeV1AttributesListRiskLevelsResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIAttributeV1AttributesListRiskLevelsResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiauthv1authintrospect.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiauthv1authintrospect.go index 6d8d162b..32b501cb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiauthv1authintrospect.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiauthv1authintrospect.go @@ -18,30 +18,30 @@ type C1APIAuthV1AuthIntrospectResponse struct { RawResponse *http.Response } -func (o *C1APIAuthV1AuthIntrospectResponse) GetContentType() string { - if o == nil { +func (c *C1APIAuthV1AuthIntrospectResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAuthV1AuthIntrospectResponse) GetIntrospectResponse() *shared.IntrospectResponse { - if o == nil { +func (c *C1APIAuthV1AuthIntrospectResponse) GetIntrospectResponse() *shared.IntrospectResponse { + if c == nil { return nil } - return o.IntrospectResponse + return c.IntrospectResponse } -func (o *C1APIAuthV1AuthIntrospectResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAuthV1AuthIntrospectResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAuthV1AuthIntrospectResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAuthV1AuthIntrospectResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionactionsserviceterminateautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionactionsserviceterminateautomation.go index d1564b7b..22c1764d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionactionsserviceterminateautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionactionsserviceterminateautomation.go @@ -12,18 +12,18 @@ type C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationReque ID int64 `integer:"string" pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationRequest) GetTerminateAutomationRequest() *shared.TerminateAutomationRequest { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationRequest) GetTerminateAutomationRequest() *shared.TerminateAutomationRequest { + if c == nil { return nil } - return o.TerminateAutomationRequest + return c.TerminateAutomationRequest } -func (o *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationRequest) GetID() int64 { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationRequest) GetID() int64 { + if c == nil { return 0 } - return o.ID + return c.ID } type C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationRespo TerminateAutomationResponse *shared.TerminateAutomationResponse } -func (o *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse) GetTerminateAutomationResponse() *shared.TerminateAutomationResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionActionsServiceTerminateAutomationResponse) GetTerminateAutomationResponse() *shared.TerminateAutomationResponse { + if c == nil { return nil } - return o.TerminateAutomationResponse + return c.TerminateAutomationResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionsearchservicesearchautomationexecutions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionsearchservicesearchautomationexecutions.go index af1950f6..f39dce65 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionsearchservicesearchautomationexecutions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionsearchservicesearchautomationexecutions.go @@ -18,30 +18,30 @@ type C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecution RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecutionsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecutionsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecutionsResponse) GetSearchAutomationExecutionsResponse() *shared.SearchAutomationExecutionsResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecutionsResponse) GetSearchAutomationExecutionsResponse() *shared.SearchAutomationExecutionsResponse { + if c == nil { return nil } - return o.SearchAutomationExecutionsResponse + return c.SearchAutomationExecutionsResponse } -func (o *C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecutionsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecutionsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecutionsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionSearchServiceSearchAutomationExecutionsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionservicegetautomationexecution.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionservicegetautomationexecution.go index 8a1457e8..dcc0ec03 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionservicegetautomationexecution.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionservicegetautomationexecution.go @@ -11,11 +11,11 @@ type C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionRequest s ID int64 `integer:"string" pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionRequest) GetID() int64 { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionRequest) GetID() int64 { + if c == nil { return 0 } - return o.ID + return c.ID } type C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse struct { @@ -29,30 +29,30 @@ type C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse) GetGetAutomationExecutionResponse() *shared.GetAutomationExecutionResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse) GetGetAutomationExecutionResponse() *shared.GetAutomationExecutionResponse { + if c == nil { return nil } - return o.GetAutomationExecutionResponse + return c.GetAutomationExecutionResponse } -func (o *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceGetAutomationExecutionResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionservicelistautomationexecutions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionservicelistautomationexecutions.go index 131496e6..aa80739b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionservicelistautomationexecutions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationexecutionservicelistautomationexecutions.go @@ -18,30 +18,30 @@ type C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsRespons RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsResponse) GetListAutomationExecutionsResponse() *shared.ListAutomationExecutionsResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsResponse) GetListAutomationExecutionsResponse() *shared.ListAutomationExecutionsResponse { + if c == nil { return nil } - return o.ListAutomationExecutionsResponse + return c.ListAutomationExecutionsResponse } -func (o *C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationExecutionServiceListAutomationExecutionsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationsearchservicesearchautomations.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationsearchservicesearchautomations.go index ad71aae4..b8975d59 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationsearchservicesearchautomations.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationsearchservicesearchautomations.go @@ -18,30 +18,30 @@ type C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse struct { RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse) GetSearchAutomationsResponse() *shared.SearchAutomationsResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse) GetSearchAutomationsResponse() *shared.SearchAutomationsResponse { + if c == nil { return nil } - return o.SearchAutomationsResponse + return c.SearchAutomationsResponse } -func (o *C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationSearchServiceSearchAutomationsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationsearchservicesearchautomationtemplateversions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationsearchservicesearchautomationtemplateversions.go index db28fbc0..2fa10ba3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationsearchservicesearchautomationtemplateversions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationsearchservicesearchautomationtemplateversions.go @@ -18,30 +18,30 @@ type C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsRe RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsResponse) GetSearchAutomationTemplateVersionsResponse() *shared.SearchAutomationTemplateVersionsResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsResponse) GetSearchAutomationTemplateVersionsResponse() *shared.SearchAutomationTemplateVersionsResponse { + if c == nil { return nil } - return o.SearchAutomationTemplateVersionsResponse + return c.SearchAutomationTemplateVersionsResponse } -func (o *C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicecreateautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicecreateautomation.go index 4cbcffc6..0bc1b275 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicecreateautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicecreateautomation.go @@ -18,30 +18,30 @@ type C1APIAutomationsV1AutomationServiceCreateAutomationResponse struct { RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationServiceCreateAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceCreateAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationServiceCreateAutomationResponse) GetCreateAutomationResponse() *shared.CreateAutomationResponseInput { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceCreateAutomationResponse) GetCreateAutomationResponse() *shared.CreateAutomationResponseInput { + if c == nil { return nil } - return o.CreateAutomationResponse + return c.CreateAutomationResponse } -func (o *C1APIAutomationsV1AutomationServiceCreateAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceCreateAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationServiceCreateAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceCreateAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicedeleteautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicedeleteautomation.go index e90c69fe..66651d87 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicedeleteautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicedeleteautomation.go @@ -12,18 +12,18 @@ type C1APIAutomationsV1AutomationServiceDeleteAutomationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAutomationsV1AutomationServiceDeleteAutomationRequest) GetDeleteAutomationRequest() *shared.DeleteAutomationRequest { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceDeleteAutomationRequest) GetDeleteAutomationRequest() *shared.DeleteAutomationRequest { + if c == nil { return nil } - return o.DeleteAutomationRequest + return c.DeleteAutomationRequest } -func (o *C1APIAutomationsV1AutomationServiceDeleteAutomationRequest) GetID() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceDeleteAutomationRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAutomationsV1AutomationServiceDeleteAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIAutomationsV1AutomationServiceDeleteAutomationResponse struct { RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationServiceDeleteAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceDeleteAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationServiceDeleteAutomationResponse) GetDeleteAutomationResponse() *shared.DeleteAutomationResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceDeleteAutomationResponse) GetDeleteAutomationResponse() *shared.DeleteAutomationResponse { + if c == nil { return nil } - return o.DeleteAutomationResponse + return c.DeleteAutomationResponse } -func (o *C1APIAutomationsV1AutomationServiceDeleteAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceDeleteAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationServiceDeleteAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceDeleteAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationserviceexecuteautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationserviceexecuteautomation.go index afb8fa00..e9a3d7c0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationserviceexecuteautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationserviceexecuteautomation.go @@ -12,18 +12,18 @@ type C1APIAutomationsV1AutomationServiceExecuteAutomationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAutomationsV1AutomationServiceExecuteAutomationRequest) GetExecuteAutomationRequest() *shared.ExecuteAutomationRequest { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceExecuteAutomationRequest) GetExecuteAutomationRequest() *shared.ExecuteAutomationRequest { + if c == nil { return nil } - return o.ExecuteAutomationRequest + return c.ExecuteAutomationRequest } -func (o *C1APIAutomationsV1AutomationServiceExecuteAutomationRequest) GetID() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceExecuteAutomationRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAutomationsV1AutomationServiceExecuteAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIAutomationsV1AutomationServiceExecuteAutomationResponse struct { RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationServiceExecuteAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceExecuteAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationServiceExecuteAutomationResponse) GetExecuteAutomationResponse() *shared.ExecuteAutomationResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceExecuteAutomationResponse) GetExecuteAutomationResponse() *shared.ExecuteAutomationResponse { + if c == nil { return nil } - return o.ExecuteAutomationResponse + return c.ExecuteAutomationResponse } -func (o *C1APIAutomationsV1AutomationServiceExecuteAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceExecuteAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationServiceExecuteAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceExecuteAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicegetautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicegetautomation.go index 2ecc59aa..87e944d2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicegetautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicegetautomation.go @@ -11,11 +11,11 @@ type C1APIAutomationsV1AutomationServiceGetAutomationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAutomationsV1AutomationServiceGetAutomationRequest) GetID() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceGetAutomationRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAutomationsV1AutomationServiceGetAutomationResponse struct { @@ -29,30 +29,30 @@ type C1APIAutomationsV1AutomationServiceGetAutomationResponse struct { RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationServiceGetAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceGetAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationServiceGetAutomationResponse) GetGetAutomationResponse() *shared.GetAutomationResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceGetAutomationResponse) GetGetAutomationResponse() *shared.GetAutomationResponse { + if c == nil { return nil } - return o.GetAutomationResponse + return c.GetAutomationResponse } -func (o *C1APIAutomationsV1AutomationServiceGetAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceGetAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationServiceGetAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceGetAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicelistautomations.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicelistautomations.go index abecbd7d..3baa5177 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicelistautomations.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationservicelistautomations.go @@ -18,30 +18,30 @@ type C1APIAutomationsV1AutomationServiceListAutomationsResponse struct { RawResponse *http.Response } -func (o *C1APIAutomationsV1AutomationServiceListAutomationsResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceListAutomationsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationServiceListAutomationsResponse) GetListAutomationsResponse() *shared.ListAutomationsResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceListAutomationsResponse) GetListAutomationsResponse() *shared.ListAutomationsResponse { + if c == nil { return nil } - return o.ListAutomationsResponse + return c.ListAutomationsResponse } -func (o *C1APIAutomationsV1AutomationServiceListAutomationsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceListAutomationsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationServiceListAutomationsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceListAutomationsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationserviceupdateautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationserviceupdateautomation.go index 552bf323..8fb63c5e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationserviceupdateautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiautomationsv1automationserviceupdateautomation.go @@ -12,18 +12,18 @@ type C1APIAutomationsV1AutomationServiceUpdateAutomationRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIAutomationsV1AutomationServiceUpdateAutomationRequest) GetUpdateAutomationRequest() *shared.UpdateAutomationRequest { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceUpdateAutomationRequest) GetUpdateAutomationRequest() *shared.UpdateAutomationRequest { + if c == nil { return nil } - return o.UpdateAutomationRequest + return c.UpdateAutomationRequest } -func (o *C1APIAutomationsV1AutomationServiceUpdateAutomationRequest) GetID() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceUpdateAutomationRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIAutomationsV1AutomationServiceUpdateAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIAutomationsV1AutomationServiceUpdateAutomationResponse struct { UpdateAutomationResponse *shared.UpdateAutomationResponse } -func (o *C1APIAutomationsV1AutomationServiceUpdateAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceUpdateAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIAutomationsV1AutomationServiceUpdateAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceUpdateAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIAutomationsV1AutomationServiceUpdateAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceUpdateAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIAutomationsV1AutomationServiceUpdateAutomationResponse) GetUpdateAutomationResponse() *shared.UpdateAutomationResponse { - if o == nil { +func (c *C1APIAutomationsV1AutomationServiceUpdateAutomationResponse) GetUpdateAutomationResponse() *shared.UpdateAutomationResponse { + if c == nil { return nil } - return o.UpdateAutomationResponse + return c.UpdateAutomationResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicecreate.go index b007b474..832dec7d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicecreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicecreate.go @@ -18,30 +18,30 @@ type C1APIDirectoryV1DirectoryServiceCreateResponse struct { RawResponse *http.Response } -func (o *C1APIDirectoryV1DirectoryServiceCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIDirectoryV1DirectoryServiceCreateResponse) GetDirectoryServiceCreateResponse() *shared.DirectoryServiceCreateResponse { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceCreateResponse) GetDirectoryServiceCreateResponse() *shared.DirectoryServiceCreateResponse { + if c == nil { return nil } - return o.DirectoryServiceCreateResponse + return c.DirectoryServiceCreateResponse } -func (o *C1APIDirectoryV1DirectoryServiceCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIDirectoryV1DirectoryServiceCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicedelete.go index 71ceadb3..3fb12491 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicedelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicedelete.go @@ -12,18 +12,18 @@ type C1APIDirectoryV1DirectoryServiceDeleteRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIDirectoryV1DirectoryServiceDeleteRequest) GetDirectoryServiceDeleteRequest() *shared.DirectoryServiceDeleteRequest { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceDeleteRequest) GetDirectoryServiceDeleteRequest() *shared.DirectoryServiceDeleteRequest { + if c == nil { return nil } - return o.DirectoryServiceDeleteRequest + return c.DirectoryServiceDeleteRequest } -func (o *C1APIDirectoryV1DirectoryServiceDeleteRequest) GetAppID() string { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceDeleteRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIDirectoryV1DirectoryServiceDeleteResponse struct { @@ -37,30 +37,30 @@ type C1APIDirectoryV1DirectoryServiceDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIDirectoryV1DirectoryServiceDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIDirectoryV1DirectoryServiceDeleteResponse) GetDirectoryServiceDeleteResponse() *shared.DirectoryServiceDeleteResponse { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceDeleteResponse) GetDirectoryServiceDeleteResponse() *shared.DirectoryServiceDeleteResponse { + if c == nil { return nil } - return o.DirectoryServiceDeleteResponse + return c.DirectoryServiceDeleteResponse } -func (o *C1APIDirectoryV1DirectoryServiceDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIDirectoryV1DirectoryServiceDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryserviceget.go index c777f3ad..29ada61f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryserviceget.go @@ -11,11 +11,11 @@ type C1APIDirectoryV1DirectoryServiceGetRequest struct { AppID string `pathParam:"style=simple,explode=false,name=app_id"` } -func (o *C1APIDirectoryV1DirectoryServiceGetRequest) GetAppID() string { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceGetRequest) GetAppID() string { + if c == nil { return "" } - return o.AppID + return c.AppID } type C1APIDirectoryV1DirectoryServiceGetResponse struct { @@ -30,30 +30,30 @@ type C1APIDirectoryV1DirectoryServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIDirectoryV1DirectoryServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIDirectoryV1DirectoryServiceGetResponse) GetDirectoryServiceGetResponse() *shared.DirectoryServiceGetResponse { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceGetResponse) GetDirectoryServiceGetResponse() *shared.DirectoryServiceGetResponse { + if c == nil { return nil } - return o.DirectoryServiceGetResponse + return c.DirectoryServiceGetResponse } -func (o *C1APIDirectoryV1DirectoryServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIDirectoryV1DirectoryServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicelist.go index a17d3fcc..4560a759 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryservicelist.go @@ -12,18 +12,18 @@ type C1APIDirectoryV1DirectoryServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIDirectoryV1DirectoryServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIDirectoryV1DirectoryServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIDirectoryV1DirectoryServiceListResponse struct { @@ -37,30 +37,30 @@ type C1APIDirectoryV1DirectoryServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIDirectoryV1DirectoryServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIDirectoryV1DirectoryServiceListResponse) GetDirectoryServiceListResponse() *shared.DirectoryServiceListResponse { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceListResponse) GetDirectoryServiceListResponse() *shared.DirectoryServiceListResponse { + if c == nil { return nil } - return o.DirectoryServiceListResponse + return c.DirectoryServiceListResponse } -func (o *C1APIDirectoryV1DirectoryServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIDirectoryV1DirectoryServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIDirectoryV1DirectoryServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryserviceupdate.go new file mode 100644 index 00000000..663c9f5e --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apidirectoryv1directoryserviceupdate.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIDirectoryV1DirectoryServiceUpdateRequest struct { + DirectoryServiceUpdateRequest *shared.DirectoryServiceUpdateRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` +} + +func (c *C1APIDirectoryV1DirectoryServiceUpdateRequest) GetDirectoryServiceUpdateRequest() *shared.DirectoryServiceUpdateRequest { + if c == nil { + return nil + } + return c.DirectoryServiceUpdateRequest +} + +func (c *C1APIDirectoryV1DirectoryServiceUpdateRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +type C1APIDirectoryV1DirectoryServiceUpdateResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + DirectoryServiceUpdateResponse *shared.DirectoryServiceUpdateResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIDirectoryV1DirectoryServiceUpdateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIDirectoryV1DirectoryServiceUpdateResponse) GetDirectoryServiceUpdateResponse() *shared.DirectoryServiceUpdateResponse { + if c == nil { + return nil + } + return c.DirectoryServiceUpdateResponse +} + +func (c *C1APIDirectoryV1DirectoryServiceUpdateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIDirectoryV1DirectoryServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsinvocationserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsinvocationserviceget.go new file mode 100644 index 00000000..7c8d6649 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsinvocationserviceget.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIFunctionsV1FunctionsInvocationServiceGetRequest struct { + FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceGetRequest) GetFunctionID() string { + if c == nil { + return "" + } + return c.FunctionID +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceGetRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIFunctionsV1FunctionsInvocationServiceGetResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + FunctionsInvocationServiceGetResponse *shared.FunctionsInvocationServiceGetResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceGetResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceGetResponse) GetFunctionsInvocationServiceGetResponse() *shared.FunctionsInvocationServiceGetResponse { + if c == nil { + return nil + } + return c.FunctionsInvocationServiceGetResponse +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceGetResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsinvocationservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsinvocationservicelist.go new file mode 100644 index 00000000..41bcfb57 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsinvocationservicelist.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIFunctionsV1FunctionsInvocationServiceListRequest struct { + FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceListRequest) GetFunctionID() string { + if c == nil { + return "" + } + return c.FunctionID +} + +type C1APIFunctionsV1FunctionsInvocationServiceListResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + FunctionsInvocationServiceListResponse *shared.FunctionsInvocationServiceListResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceListResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceListResponse) GetFunctionsInvocationServiceListResponse() *shared.FunctionsInvocationServiceListResponse { + if c == nil { + return nil + } + return c.FunctionsInvocationServiceListResponse +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceListResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIFunctionsV1FunctionsInvocationServiceListResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionssearchsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionssearchsearch.go index 9b429bfc..91bcae43 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionssearchsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionssearchsearch.go @@ -18,30 +18,30 @@ type C1APIFunctionsV1FunctionsSearchSearchResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsSearchSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsSearchSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsSearchSearchResponse) GetFunctionsSearchResponse() *shared.FunctionsSearchResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsSearchSearchResponse) GetFunctionsSearchResponse() *shared.FunctionsSearchResponse { + if c == nil { return nil } - return o.FunctionsSearchResponse + return c.FunctionsSearchResponse } -func (o *C1APIFunctionsV1FunctionsSearchSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsSearchSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsSearchSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsSearchSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecommit.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecommit.go deleted file mode 100644 index a1a20bbb..00000000 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecommit.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" - "net/http" -) - -type C1APIFunctionsV1FunctionsServiceCommitRequest struct { - FunctionsServiceCommitRequest *shared.FunctionsServiceCommitRequest `request:"mediaType=application/json"` - FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` -} - -func (o *C1APIFunctionsV1FunctionsServiceCommitRequest) GetFunctionsServiceCommitRequest() *shared.FunctionsServiceCommitRequest { - if o == nil { - return nil - } - return o.FunctionsServiceCommitRequest -} - -func (o *C1APIFunctionsV1FunctionsServiceCommitRequest) GetFunctionID() string { - if o == nil { - return "" - } - return o.FunctionID -} - -type C1APIFunctionsV1FunctionsServiceCommitResponse struct { - // HTTP response content type for this operation - ContentType string - // Successful response - FunctionsServiceCommitResponse *shared.FunctionsServiceCommitResponse - // HTTP response status code for this operation - StatusCode int - // Raw HTTP response; suitable for custom response parsing - RawResponse *http.Response -} - -func (o *C1APIFunctionsV1FunctionsServiceCommitResponse) GetContentType() string { - if o == nil { - return "" - } - return o.ContentType -} - -func (o *C1APIFunctionsV1FunctionsServiceCommitResponse) GetFunctionsServiceCommitResponse() *shared.FunctionsServiceCommitResponse { - if o == nil { - return nil - } - return o.FunctionsServiceCommitResponse -} - -func (o *C1APIFunctionsV1FunctionsServiceCommitResponse) GetStatusCode() int { - if o == nil { - return 0 - } - return o.StatusCode -} - -func (o *C1APIFunctionsV1FunctionsServiceCommitResponse) GetRawResponse() *http.Response { - if o == nil { - return nil - } - return o.RawResponse -} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecreatefunction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecreatefunction.go index fe34a98d..f0619299 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecreatefunction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecreatefunction.go @@ -18,30 +18,30 @@ type C1APIFunctionsV1FunctionsServiceCreateFunctionResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceCreateFunctionResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateFunctionResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceCreateFunctionResponse) GetFunctionsServiceCreateFunctionResponse() *shared.FunctionsServiceCreateFunctionResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateFunctionResponse) GetFunctionsServiceCreateFunctionResponse() *shared.FunctionsServiceCreateFunctionResponse { + if c == nil { return nil } - return o.FunctionsServiceCreateFunctionResponse + return c.FunctionsServiceCreateFunctionResponse } -func (o *C1APIFunctionsV1FunctionsServiceCreateFunctionResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateFunctionResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceCreateFunctionResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateFunctionResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecreatetag.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecreatetag.go index 29370deb..301e421d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecreatetag.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicecreatetag.go @@ -12,18 +12,18 @@ type C1APIFunctionsV1FunctionsServiceCreateTagRequest struct { FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` } -func (o *C1APIFunctionsV1FunctionsServiceCreateTagRequest) GetFunctionsServiceCreateTagRequest() *shared.FunctionsServiceCreateTagRequest { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateTagRequest) GetFunctionsServiceCreateTagRequest() *shared.FunctionsServiceCreateTagRequest { + if c == nil { return nil } - return o.FunctionsServiceCreateTagRequest + return c.FunctionsServiceCreateTagRequest } -func (o *C1APIFunctionsV1FunctionsServiceCreateTagRequest) GetFunctionID() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateTagRequest) GetFunctionID() string { + if c == nil { return "" } - return o.FunctionID + return c.FunctionID } type C1APIFunctionsV1FunctionsServiceCreateTagResponse struct { @@ -37,30 +37,30 @@ type C1APIFunctionsV1FunctionsServiceCreateTagResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceCreateTagResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateTagResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceCreateTagResponse) GetFunctionsServiceCreateTagResponse() *shared.FunctionsServiceCreateTagResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateTagResponse) GetFunctionsServiceCreateTagResponse() *shared.FunctionsServiceCreateTagResponse { + if c == nil { return nil } - return o.FunctionsServiceCreateTagResponse + return c.FunctionsServiceCreateTagResponse } -func (o *C1APIFunctionsV1FunctionsServiceCreateTagResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateTagResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceCreateTagResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceCreateTagResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicedeletefunction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicedeletefunction.go index af293730..e3718509 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicedeletefunction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicedeletefunction.go @@ -12,18 +12,18 @@ type C1APIFunctionsV1FunctionsServiceDeleteFunctionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIFunctionsV1FunctionsServiceDeleteFunctionRequest) GetFunctionsServiceDeleteFunctionRequest() *shared.FunctionsServiceDeleteFunctionRequest { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceDeleteFunctionRequest) GetFunctionsServiceDeleteFunctionRequest() *shared.FunctionsServiceDeleteFunctionRequest { + if c == nil { return nil } - return o.FunctionsServiceDeleteFunctionRequest + return c.FunctionsServiceDeleteFunctionRequest } -func (o *C1APIFunctionsV1FunctionsServiceDeleteFunctionRequest) GetID() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceDeleteFunctionRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse struct { @@ -37,30 +37,30 @@ type C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse) GetFunctionsServiceDeleteFunctionResponse() *shared.FunctionsServiceDeleteFunctionResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse) GetFunctionsServiceDeleteFunctionResponse() *shared.FunctionsServiceDeleteFunctionResponse { + if c == nil { return nil } - return o.FunctionsServiceDeleteFunctionResponse + return c.FunctionsServiceDeleteFunctionResponse } -func (o *C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceDeleteFunctionResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetcommit.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetcommit.go deleted file mode 100644 index 7abad863..00000000 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetcommit.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" - "net/http" -) - -type C1APIFunctionsV1FunctionsServiceGetCommitRequest struct { - FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` - ID string `pathParam:"style=simple,explode=false,name=id"` -} - -func (o *C1APIFunctionsV1FunctionsServiceGetCommitRequest) GetFunctionID() string { - if o == nil { - return "" - } - return o.FunctionID -} - -func (o *C1APIFunctionsV1FunctionsServiceGetCommitRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -type C1APIFunctionsV1FunctionsServiceGetCommitResponse struct { - // HTTP response content type for this operation - ContentType string - // Successful response - FunctionsServiceGetCommitResponse *shared.FunctionsServiceGetCommitResponse - // HTTP response status code for this operation - StatusCode int - // Raw HTTP response; suitable for custom response parsing - RawResponse *http.Response -} - -func (o *C1APIFunctionsV1FunctionsServiceGetCommitResponse) GetContentType() string { - if o == nil { - return "" - } - return o.ContentType -} - -func (o *C1APIFunctionsV1FunctionsServiceGetCommitResponse) GetFunctionsServiceGetCommitResponse() *shared.FunctionsServiceGetCommitResponse { - if o == nil { - return nil - } - return o.FunctionsServiceGetCommitResponse -} - -func (o *C1APIFunctionsV1FunctionsServiceGetCommitResponse) GetStatusCode() int { - if o == nil { - return 0 - } - return o.StatusCode -} - -func (o *C1APIFunctionsV1FunctionsServiceGetCommitResponse) GetRawResponse() *http.Response { - if o == nil { - return nil - } - return o.RawResponse -} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetfunction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetfunction.go index a8d2a00d..344e8868 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetfunction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetfunction.go @@ -11,11 +11,11 @@ type C1APIFunctionsV1FunctionsServiceGetFunctionRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIFunctionsV1FunctionsServiceGetFunctionRequest) GetID() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIFunctionsV1FunctionsServiceGetFunctionResponse struct { @@ -29,30 +29,30 @@ type C1APIFunctionsV1FunctionsServiceGetFunctionResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceGetFunctionResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceGetFunctionResponse) GetFunctionsServiceGetFunctionResponse() *shared.FunctionsServiceGetFunctionResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionResponse) GetFunctionsServiceGetFunctionResponse() *shared.FunctionsServiceGetFunctionResponse { + if c == nil { return nil } - return o.FunctionsServiceGetFunctionResponse + return c.FunctionsServiceGetFunctionResponse } -func (o *C1APIFunctionsV1FunctionsServiceGetFunctionResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceGetFunctionResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetfunctionsecretencryptionkey.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetfunctionsecretencryptionkey.go new file mode 100644 index 00000000..d9f73498 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicegetfunctionsecretencryptionkey.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyRequest struct { + FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` +} + +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyRequest) GetFunctionID() string { + if c == nil { + return "" + } + return c.FunctionID +} + +type C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + FunctionsServiceGetFunctionSecretEncryptionKeyResponse *shared.FunctionsServiceGetFunctionSecretEncryptionKeyResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyResponse) GetFunctionsServiceGetFunctionSecretEncryptionKeyResponse() *shared.FunctionsServiceGetFunctionSecretEncryptionKeyResponse { + if c == nil { + return nil + } + return c.FunctionsServiceGetFunctionSecretEncryptionKeyResponse +} + +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsserviceinvoke.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsserviceinvoke.go index 41e5a92b..e66f5f0d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsserviceinvoke.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsserviceinvoke.go @@ -12,18 +12,18 @@ type C1APIFunctionsV1FunctionsServiceInvokeRequest struct { FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` } -func (o *C1APIFunctionsV1FunctionsServiceInvokeRequest) GetFunctionsServiceInvokeRequest() *shared.FunctionsServiceInvokeRequest { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceInvokeRequest) GetFunctionsServiceInvokeRequest() *shared.FunctionsServiceInvokeRequest { + if c == nil { return nil } - return o.FunctionsServiceInvokeRequest + return c.FunctionsServiceInvokeRequest } -func (o *C1APIFunctionsV1FunctionsServiceInvokeRequest) GetFunctionID() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceInvokeRequest) GetFunctionID() string { + if c == nil { return "" } - return o.FunctionID + return c.FunctionID } type C1APIFunctionsV1FunctionsServiceInvokeResponse struct { @@ -37,30 +37,30 @@ type C1APIFunctionsV1FunctionsServiceInvokeResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceInvokeResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceInvokeResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceInvokeResponse) GetFunctionsServiceInvokeResponse() *shared.FunctionsServiceInvokeResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceInvokeResponse) GetFunctionsServiceInvokeResponse() *shared.FunctionsServiceInvokeResponse { + if c == nil { return nil } - return o.FunctionsServiceInvokeResponse + return c.FunctionsServiceInvokeResponse } -func (o *C1APIFunctionsV1FunctionsServiceInvokeResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceInvokeResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceInvokeResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceInvokeResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelistcommits.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelistcommits.go index cbb341a4..0a492bd9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelistcommits.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelistcommits.go @@ -11,11 +11,11 @@ type C1APIFunctionsV1FunctionsServiceListCommitsRequest struct { FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` } -func (o *C1APIFunctionsV1FunctionsServiceListCommitsRequest) GetFunctionID() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListCommitsRequest) GetFunctionID() string { + if c == nil { return "" } - return o.FunctionID + return c.FunctionID } type C1APIFunctionsV1FunctionsServiceListCommitsResponse struct { @@ -29,30 +29,30 @@ type C1APIFunctionsV1FunctionsServiceListCommitsResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceListCommitsResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListCommitsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceListCommitsResponse) GetFunctionsServiceListCommitsResponse() *shared.FunctionsServiceListCommitsResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListCommitsResponse) GetFunctionsServiceListCommitsResponse() *shared.FunctionsServiceListCommitsResponse { + if c == nil { return nil } - return o.FunctionsServiceListCommitsResponse + return c.FunctionsServiceListCommitsResponse } -func (o *C1APIFunctionsV1FunctionsServiceListCommitsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListCommitsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceListCommitsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListCommitsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelistfunctions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelistfunctions.go index 5d10f62b..05d9db54 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelistfunctions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelistfunctions.go @@ -18,30 +18,30 @@ type C1APIFunctionsV1FunctionsServiceListFunctionsResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceListFunctionsResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListFunctionsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceListFunctionsResponse) GetFunctionsServiceListFunctionsResponse() *shared.FunctionsServiceListFunctionsResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListFunctionsResponse) GetFunctionsServiceListFunctionsResponse() *shared.FunctionsServiceListFunctionsResponse { + if c == nil { return nil } - return o.FunctionsServiceListFunctionsResponse + return c.FunctionsServiceListFunctionsResponse } -func (o *C1APIFunctionsV1FunctionsServiceListFunctionsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListFunctionsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceListFunctionsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListFunctionsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelisttags.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelisttags.go index dff38978..e7863942 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelisttags.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsservicelisttags.go @@ -11,11 +11,11 @@ type C1APIFunctionsV1FunctionsServiceListTagsRequest struct { FunctionID string `pathParam:"style=simple,explode=false,name=function_id"` } -func (o *C1APIFunctionsV1FunctionsServiceListTagsRequest) GetFunctionID() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListTagsRequest) GetFunctionID() string { + if c == nil { return "" } - return o.FunctionID + return c.FunctionID } type C1APIFunctionsV1FunctionsServiceListTagsResponse struct { @@ -29,30 +29,30 @@ type C1APIFunctionsV1FunctionsServiceListTagsResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceListTagsResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListTagsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceListTagsResponse) GetFunctionsServiceListTagsResponse() *shared.FunctionsServiceListTagsResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListTagsResponse) GetFunctionsServiceListTagsResponse() *shared.FunctionsServiceListTagsResponse { + if c == nil { return nil } - return o.FunctionsServiceListTagsResponse + return c.FunctionsServiceListTagsResponse } -func (o *C1APIFunctionsV1FunctionsServiceListTagsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListTagsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceListTagsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceListTagsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsserviceupdatefunction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsserviceupdatefunction.go index 82bc7d40..964bbbb8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsserviceupdatefunction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apifunctionsv1functionsserviceupdatefunction.go @@ -18,30 +18,30 @@ type C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse struct { RawResponse *http.Response } -func (o *C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse) GetContentType() string { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse) GetFunctionsServiceUpdateFunctionResponse() *shared.FunctionsServiceUpdateFunctionResponse { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse) GetFunctionsServiceUpdateFunctionResponse() *shared.FunctionsServiceUpdateFunctionResponse { + if c == nil { return nil } - return o.FunctionsServiceUpdateFunctionResponse + return c.FunctionsServiceUpdateFunctionResponse } -func (o *C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIFunctionsV1FunctionsServiceUpdateFunctionResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientsearchservicesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientsearchservicesearch.go index 9ab3a7ec..81432fc3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientsearchservicesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientsearchservicesearch.go @@ -18,30 +18,30 @@ type C1APIIamV1PersonalClientSearchServiceSearchResponse struct { RawResponse *http.Response } -func (o *C1APIIamV1PersonalClientSearchServiceSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1PersonalClientSearchServiceSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1PersonalClientSearchServiceSearchResponse) GetPersonalClientSearchServiceSearchResponse() *shared.PersonalClientSearchServiceSearchResponse { - if o == nil { +func (c *C1APIIamV1PersonalClientSearchServiceSearchResponse) GetPersonalClientSearchServiceSearchResponse() *shared.PersonalClientSearchServiceSearchResponse { + if c == nil { return nil } - return o.PersonalClientSearchServiceSearchResponse + return c.PersonalClientSearchServiceSearchResponse } -func (o *C1APIIamV1PersonalClientSearchServiceSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1PersonalClientSearchServiceSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1PersonalClientSearchServiceSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1PersonalClientSearchServiceSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicecreate.go index 4c299583..893241e3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicecreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicecreate.go @@ -18,30 +18,30 @@ type C1APIIamV1PersonalClientServiceCreateResponse struct { RawResponse *http.Response } -func (o *C1APIIamV1PersonalClientServiceCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1PersonalClientServiceCreateResponse) GetPersonalClientServiceCreateResponse() *shared.PersonalClientServiceCreateResponse { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceCreateResponse) GetPersonalClientServiceCreateResponse() *shared.PersonalClientServiceCreateResponse { + if c == nil { return nil } - return o.PersonalClientServiceCreateResponse + return c.PersonalClientServiceCreateResponse } -func (o *C1APIIamV1PersonalClientServiceCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1PersonalClientServiceCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicedelete.go index c0f8dccb..8cdfb50b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicedelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicedelete.go @@ -12,18 +12,18 @@ type C1APIIamV1PersonalClientServiceDeleteRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIIamV1PersonalClientServiceDeleteRequest) GetPersonalClientServiceDeleteRequest() *shared.PersonalClientServiceDeleteRequest { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceDeleteRequest) GetPersonalClientServiceDeleteRequest() *shared.PersonalClientServiceDeleteRequest { + if c == nil { return nil } - return o.PersonalClientServiceDeleteRequest + return c.PersonalClientServiceDeleteRequest } -func (o *C1APIIamV1PersonalClientServiceDeleteRequest) GetID() string { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceDeleteRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIIamV1PersonalClientServiceDeleteResponse struct { @@ -37,30 +37,30 @@ type C1APIIamV1PersonalClientServiceDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIIamV1PersonalClientServiceDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1PersonalClientServiceDeleteResponse) GetPersonalClientServiceDeleteResponse() *shared.PersonalClientServiceDeleteResponse { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceDeleteResponse) GetPersonalClientServiceDeleteResponse() *shared.PersonalClientServiceDeleteResponse { + if c == nil { return nil } - return o.PersonalClientServiceDeleteResponse + return c.PersonalClientServiceDeleteResponse } -func (o *C1APIIamV1PersonalClientServiceDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1PersonalClientServiceDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientserviceget.go index 9eb68641..360a3ff4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientserviceget.go @@ -11,11 +11,11 @@ type C1APIIamV1PersonalClientServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIIamV1PersonalClientServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIIamV1PersonalClientServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APIIamV1PersonalClientServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIIamV1PersonalClientServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1PersonalClientServiceGetResponse) GetPersonalClientServiceGetResponse() *shared.PersonalClientServiceGetResponse { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceGetResponse) GetPersonalClientServiceGetResponse() *shared.PersonalClientServiceGetResponse { + if c == nil { return nil } - return o.PersonalClientServiceGetResponse + return c.PersonalClientServiceGetResponse } -func (o *C1APIIamV1PersonalClientServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1PersonalClientServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicelist.go index 56ee8990..faba25b7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientservicelist.go @@ -18,30 +18,30 @@ type C1APIIamV1PersonalClientServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIIamV1PersonalClientServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1PersonalClientServiceListResponse) GetPersonalClientServiceListResponse() *shared.PersonalClientServiceListResponse { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceListResponse) GetPersonalClientServiceListResponse() *shared.PersonalClientServiceListResponse { + if c == nil { return nil } - return o.PersonalClientServiceListResponse + return c.PersonalClientServiceListResponse } -func (o *C1APIIamV1PersonalClientServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1PersonalClientServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientserviceupdate.go index 33464734..29616f7c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1personalclientserviceupdate.go @@ -12,18 +12,18 @@ type C1APIIamV1PersonalClientServiceUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIIamV1PersonalClientServiceUpdateRequest) GetPersonalClientServiceUpdateRequest() *shared.PersonalClientServiceUpdateRequest { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceUpdateRequest) GetPersonalClientServiceUpdateRequest() *shared.PersonalClientServiceUpdateRequest { + if c == nil { return nil } - return o.PersonalClientServiceUpdateRequest + return c.PersonalClientServiceUpdateRequest } -func (o *C1APIIamV1PersonalClientServiceUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIIamV1PersonalClientServiceUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APIIamV1PersonalClientServiceUpdateResponse struct { RawResponse *http.Response } -func (o *C1APIIamV1PersonalClientServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1PersonalClientServiceUpdateResponse) GetPersonalClientServiceUpdateResponse() *shared.PersonalClientServiceUpdateResponse { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceUpdateResponse) GetPersonalClientServiceUpdateResponse() *shared.PersonalClientServiceUpdateResponse { + if c == nil { return nil } - return o.PersonalClientServiceUpdateResponse + return c.PersonalClientServiceUpdateResponse } -func (o *C1APIIamV1PersonalClientServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1PersonalClientServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1PersonalClientServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1rolesget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1rolesget.go index 618490d3..03ccc2a1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1rolesget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1rolesget.go @@ -11,11 +11,11 @@ type C1APIIamV1RolesGetRequest struct { RoleID string `pathParam:"style=simple,explode=false,name=role_id"` } -func (o *C1APIIamV1RolesGetRequest) GetRoleID() string { - if o == nil { +func (c *C1APIIamV1RolesGetRequest) GetRoleID() string { + if c == nil { return "" } - return o.RoleID + return c.RoleID } type C1APIIamV1RolesGetResponse struct { @@ -29,30 +29,30 @@ type C1APIIamV1RolesGetResponse struct { RawResponse *http.Response } -func (o *C1APIIamV1RolesGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1RolesGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1RolesGetResponse) GetGetRolesResponse() *shared.GetRolesResponse { - if o == nil { +func (c *C1APIIamV1RolesGetResponse) GetGetRolesResponse() *shared.GetRolesResponse { + if c == nil { return nil } - return o.GetRolesResponse + return c.GetRolesResponse } -func (o *C1APIIamV1RolesGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1RolesGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1RolesGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1RolesGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1roleslist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1roleslist.go index 49efe3f4..6cfc52cb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1roleslist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1roleslist.go @@ -12,18 +12,18 @@ type C1APIIamV1RolesListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIIamV1RolesListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIIamV1RolesListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIIamV1RolesListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIIamV1RolesListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIIamV1RolesListResponse struct { @@ -37,30 +37,30 @@ type C1APIIamV1RolesListResponse struct { RawResponse *http.Response } -func (o *C1APIIamV1RolesListResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1RolesListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1RolesListResponse) GetListRolesResponse() *shared.ListRolesResponse { - if o == nil { +func (c *C1APIIamV1RolesListResponse) GetListRolesResponse() *shared.ListRolesResponse { + if c == nil { return nil } - return o.ListRolesResponse + return c.ListRolesResponse } -func (o *C1APIIamV1RolesListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1RolesListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1RolesListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1RolesListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1rolesupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1rolesupdate.go index 3acbc41a..cc2c17fe 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1rolesupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiiamv1rolesupdate.go @@ -12,18 +12,18 @@ type C1APIIamV1RolesUpdateRequest struct { RoleID string `pathParam:"style=simple,explode=false,name=role_id"` } -func (o *C1APIIamV1RolesUpdateRequest) GetUpdateRoleRequest() *shared.UpdateRoleRequest { - if o == nil { +func (c *C1APIIamV1RolesUpdateRequest) GetUpdateRoleRequest() *shared.UpdateRoleRequest { + if c == nil { return nil } - return o.UpdateRoleRequest + return c.UpdateRoleRequest } -func (o *C1APIIamV1RolesUpdateRequest) GetRoleID() string { - if o == nil { +func (c *C1APIIamV1RolesUpdateRequest) GetRoleID() string { + if c == nil { return "" } - return o.RoleID + return c.RoleID } type C1APIIamV1RolesUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APIIamV1RolesUpdateResponse struct { UpdateRolesResponse *shared.UpdateRolesResponse } -func (o *C1APIIamV1RolesUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIIamV1RolesUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIIamV1RolesUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIIamV1RolesUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIIamV1RolesUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIIamV1RolesUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIIamV1RolesUpdateResponse) GetUpdateRolesResponse() *shared.UpdateRolesResponse { - if o == nil { +func (c *C1APIIamV1RolesUpdateResponse) GetUpdateRolesResponse() *shared.UpdateRolesResponse { + if c == nil { return nil } - return o.UpdateRolesResponse + return c.UpdateRolesResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiintegrationconnectorv1connectorcatalogserviceconfigurationschema.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiintegrationconnectorv1connectorcatalogserviceconfigurationschema.go new file mode 100644 index 00000000..8d9220fd --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiintegrationconnectorv1connectorcatalogserviceconfigurationschema.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIIntegrationConnectorV1ConnectorCatalogServiceConfigurationSchemaResponse struct { + // Successful response + ConnectorCatalogServiceConfigurationSchemaResponse *shared.ConnectorCatalogServiceConfigurationSchemaResponse + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIIntegrationConnectorV1ConnectorCatalogServiceConfigurationSchemaResponse) GetConnectorCatalogServiceConfigurationSchemaResponse() *shared.ConnectorCatalogServiceConfigurationSchemaResponse { + if c == nil { + return nil + } + return c.ConnectorCatalogServiceConfigurationSchemaResponse +} + +func (c *C1APIIntegrationConnectorV1ConnectorCatalogServiceConfigurationSchemaResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIIntegrationConnectorV1ConnectorCatalogServiceConfigurationSchemaResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIIntegrationConnectorV1ConnectorCatalogServiceConfigurationSchemaResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1accountprovisionpolicytesttest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1accountprovisionpolicytesttest.go index f12bcb04..92d02b9a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1accountprovisionpolicytesttest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1accountprovisionpolicytesttest.go @@ -18,30 +18,30 @@ type C1APIPolicyV1AccountProvisionPolicyTestTestResponse struct { TestAccountProvisionPolicyResponse *shared.TestAccountProvisionPolicyResponse } -func (o *C1APIPolicyV1AccountProvisionPolicyTestTestResponse) GetContentType() string { - if o == nil { +func (c *C1APIPolicyV1AccountProvisionPolicyTestTestResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIPolicyV1AccountProvisionPolicyTestTestResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIPolicyV1AccountProvisionPolicyTestTestResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIPolicyV1AccountProvisionPolicyTestTestResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIPolicyV1AccountProvisionPolicyTestTestResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIPolicyV1AccountProvisionPolicyTestTestResponse) GetTestAccountProvisionPolicyResponse() *shared.TestAccountProvisionPolicyResponse { - if o == nil { +func (c *C1APIPolicyV1AccountProvisionPolicyTestTestResponse) GetTestAccountProvisionPolicyResponse() *shared.TestAccountProvisionPolicyResponse { + if c == nil { return nil } - return o.TestAccountProvisionPolicyResponse + return c.TestAccountProvisionPolicyResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiescreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiescreate.go index c408bccc..e6ac99de 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiescreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiescreate.go @@ -18,30 +18,30 @@ type C1APIPolicyV1PoliciesCreateResponse struct { RawResponse *http.Response } -func (o *C1APIPolicyV1PoliciesCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIPolicyV1PoliciesCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIPolicyV1PoliciesCreateResponse) GetCreatePolicyResponse() *shared.CreatePolicyResponse { - if o == nil { +func (c *C1APIPolicyV1PoliciesCreateResponse) GetCreatePolicyResponse() *shared.CreatePolicyResponse { + if c == nil { return nil } - return o.CreatePolicyResponse + return c.CreatePolicyResponse } -func (o *C1APIPolicyV1PoliciesCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIPolicyV1PoliciesCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIPolicyV1PoliciesCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIPolicyV1PoliciesCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesdelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesdelete.go index b11a143d..c75f1500 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesdelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesdelete.go @@ -12,18 +12,18 @@ type C1APIPolicyV1PoliciesDeleteRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIPolicyV1PoliciesDeleteRequest) GetDeletePolicyRequest() *shared.DeletePolicyRequest { - if o == nil { +func (c *C1APIPolicyV1PoliciesDeleteRequest) GetDeletePolicyRequest() *shared.DeletePolicyRequest { + if c == nil { return nil } - return o.DeletePolicyRequest + return c.DeletePolicyRequest } -func (o *C1APIPolicyV1PoliciesDeleteRequest) GetID() string { - if o == nil { +func (c *C1APIPolicyV1PoliciesDeleteRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIPolicyV1PoliciesDeleteResponse struct { @@ -37,30 +37,30 @@ type C1APIPolicyV1PoliciesDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIPolicyV1PoliciesDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIPolicyV1PoliciesDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIPolicyV1PoliciesDeleteResponse) GetDeletePolicyResponse() *shared.DeletePolicyResponse { - if o == nil { +func (c *C1APIPolicyV1PoliciesDeleteResponse) GetDeletePolicyResponse() *shared.DeletePolicyResponse { + if c == nil { return nil } - return o.DeletePolicyResponse + return c.DeletePolicyResponse } -func (o *C1APIPolicyV1PoliciesDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIPolicyV1PoliciesDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIPolicyV1PoliciesDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIPolicyV1PoliciesDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesget.go index 6e1ab0df..0d3d5bc1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesget.go @@ -11,11 +11,11 @@ type C1APIPolicyV1PoliciesGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIPolicyV1PoliciesGetRequest) GetID() string { - if o == nil { +func (c *C1APIPolicyV1PoliciesGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIPolicyV1PoliciesGetResponse struct { @@ -29,30 +29,30 @@ type C1APIPolicyV1PoliciesGetResponse struct { RawResponse *http.Response } -func (o *C1APIPolicyV1PoliciesGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIPolicyV1PoliciesGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIPolicyV1PoliciesGetResponse) GetGetPolicyResponse() *shared.GetPolicyResponse { - if o == nil { +func (c *C1APIPolicyV1PoliciesGetResponse) GetGetPolicyResponse() *shared.GetPolicyResponse { + if c == nil { return nil } - return o.GetPolicyResponse + return c.GetPolicyResponse } -func (o *C1APIPolicyV1PoliciesGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIPolicyV1PoliciesGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIPolicyV1PoliciesGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIPolicyV1PoliciesGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policieslist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policieslist.go index dfc7ecab..2460aabd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policieslist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policieslist.go @@ -12,18 +12,18 @@ type C1APIPolicyV1PoliciesListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIPolicyV1PoliciesListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIPolicyV1PoliciesListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIPolicyV1PoliciesListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIPolicyV1PoliciesListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIPolicyV1PoliciesListResponse struct { @@ -37,30 +37,30 @@ type C1APIPolicyV1PoliciesListResponse struct { RawResponse *http.Response } -func (o *C1APIPolicyV1PoliciesListResponse) GetContentType() string { - if o == nil { +func (c *C1APIPolicyV1PoliciesListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIPolicyV1PoliciesListResponse) GetListPolicyResponse() *shared.ListPolicyResponse { - if o == nil { +func (c *C1APIPolicyV1PoliciesListResponse) GetListPolicyResponse() *shared.ListPolicyResponse { + if c == nil { return nil } - return o.ListPolicyResponse + return c.ListPolicyResponse } -func (o *C1APIPolicyV1PoliciesListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIPolicyV1PoliciesListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIPolicyV1PoliciesListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIPolicyV1PoliciesListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesupdate.go index ad236654..ad2e279a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policiesupdate.go @@ -12,18 +12,18 @@ type C1APIPolicyV1PoliciesUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIPolicyV1PoliciesUpdateRequest) GetUpdatePolicyRequest() *shared.UpdatePolicyRequest { - if o == nil { +func (c *C1APIPolicyV1PoliciesUpdateRequest) GetUpdatePolicyRequest() *shared.UpdatePolicyRequest { + if c == nil { return nil } - return o.UpdatePolicyRequest + return c.UpdatePolicyRequest } -func (o *C1APIPolicyV1PoliciesUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIPolicyV1PoliciesUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIPolicyV1PoliciesUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APIPolicyV1PoliciesUpdateResponse struct { UpdatePolicyResponse *shared.UpdatePolicyResponse } -func (o *C1APIPolicyV1PoliciesUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIPolicyV1PoliciesUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIPolicyV1PoliciesUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIPolicyV1PoliciesUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIPolicyV1PoliciesUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIPolicyV1PoliciesUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIPolicyV1PoliciesUpdateResponse) GetUpdatePolicyResponse() *shared.UpdatePolicyResponse { - if o == nil { +func (c *C1APIPolicyV1PoliciesUpdateResponse) GetUpdatePolicyResponse() *shared.UpdatePolicyResponse { + if c == nil { return nil } - return o.UpdatePolicyResponse + return c.UpdatePolicyResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policysearchsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policysearchsearch.go index 60570f91..ed6b66cb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policysearchsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policysearchsearch.go @@ -16,32 +16,34 @@ type C1APIPolicyV1PolicySearchSearchResponse struct { StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response + + Next func() (*C1APIPolicyV1PolicySearchSearchResponse, error) } -func (o *C1APIPolicyV1PolicySearchSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIPolicyV1PolicySearchSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIPolicyV1PolicySearchSearchResponse) GetSearchPoliciesResponse() *shared.SearchPoliciesResponse { - if o == nil { +func (c *C1APIPolicyV1PolicySearchSearchResponse) GetSearchPoliciesResponse() *shared.SearchPoliciesResponse { + if c == nil { return nil } - return o.SearchPoliciesResponse + return c.SearchPoliciesResponse } -func (o *C1APIPolicyV1PolicySearchSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIPolicyV1PolicySearchSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIPolicyV1PolicySearchSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIPolicyV1PolicySearchSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policyvalidatevalidatecel.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policyvalidatevalidatecel.go index 414a03b1..542802f4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policyvalidatevalidatecel.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apipolicyv1policyvalidatevalidatecel.go @@ -18,30 +18,30 @@ type C1APIPolicyV1PolicyValidateValidateCELResponse struct { RawResponse *http.Response } -func (o *C1APIPolicyV1PolicyValidateValidateCELResponse) GetContentType() string { - if o == nil { +func (c *C1APIPolicyV1PolicyValidateValidateCELResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIPolicyV1PolicyValidateValidateCELResponse) GetEditorValidateResponse() *shared.EditorValidateResponse { - if o == nil { +func (c *C1APIPolicyV1PolicyValidateValidateCELResponse) GetEditorValidateResponse() *shared.EditorValidateResponse { + if c == nil { return nil } - return o.EditorValidateResponse + return c.EditorValidateResponse } -func (o *C1APIPolicyV1PolicyValidateValidateCELResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIPolicyV1PolicyValidateValidateCELResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIPolicyV1PolicyValidateValidateCELResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIPolicyV1PolicyValidateValidateCELResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceaddaccessentitlements.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceaddaccessentitlements.go index b9c93cfb..9cf85e11 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceaddaccessentitlements.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceaddaccessentitlements.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsRe CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsRequest) GetRequestCatalogManagementServiceAddAccessEntitlementsRequest() *shared.RequestCatalogManagementServiceAddAccessEntitlementsRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsRequest) GetRequestCatalogManagementServiceAddAccessEntitlementsRequest() *shared.RequestCatalogManagementServiceAddAccessEntitlementsRequest { + if c == nil { return nil } - return o.RequestCatalogManagementServiceAddAccessEntitlementsRequest + return c.RequestCatalogManagementServiceAddAccessEntitlementsRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsRequest) GetCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsRequest) GetCatalogID() string { + if c == nil { return "" } - return o.CatalogID + return c.CatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsRe RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse) GetRequestCatalogManagementServiceAddAccessEntitlementsResponse() *shared.RequestCatalogManagementServiceAddAccessEntitlementsResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse) GetRequestCatalogManagementServiceAddAccessEntitlementsResponse() *shared.RequestCatalogManagementServiceAddAccessEntitlementsResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceAddAccessEntitlementsResponse + return c.RequestCatalogManagementServiceAddAccessEntitlementsResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAccessEntitlementsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceaddappentitlements.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceaddappentitlements.go index 290f2645..1ecaef42 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceaddappentitlements.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceaddappentitlements.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsReque CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsRequest) GetRequestCatalogManagementServiceAddAppEntitlementsRequest() *shared.RequestCatalogManagementServiceAddAppEntitlementsRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsRequest) GetRequestCatalogManagementServiceAddAppEntitlementsRequest() *shared.RequestCatalogManagementServiceAddAppEntitlementsRequest { + if c == nil { return nil } - return o.RequestCatalogManagementServiceAddAppEntitlementsRequest + return c.RequestCatalogManagementServiceAddAppEntitlementsRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsRequest) GetCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsRequest) GetCatalogID() string { + if c == nil { return "" } - return o.CatalogID + return c.CatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsRespo RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse) GetRequestCatalogManagementServiceAddAppEntitlementsResponse() *shared.RequestCatalogManagementServiceAddAppEntitlementsResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse) GetRequestCatalogManagementServiceAddAppEntitlementsResponse() *shared.RequestCatalogManagementServiceAddAppEntitlementsResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceAddAppEntitlementsResponse + return c.RequestCatalogManagementServiceAddAppEntitlementsResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceAddAppEntitlementsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreate.go index b8b505ae..47a5b400 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreate.go @@ -18,30 +18,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse struct { RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse) GetRequestCatalogManagementServiceGetResponse() *shared.RequestCatalogManagementServiceGetResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse) GetRequestCatalogManagementServiceGetResponse() *shared.RequestCatalogManagementServiceGetResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceGetResponse + return c.RequestCatalogManagementServiceGetResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreatebundleautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreatebundleautomation.go index 6b4ac39a..5434a490 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreatebundleautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreatebundleautomation.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationR RequestCatalogID string `pathParam:"style=simple,explode=false,name=request_catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationRequest) GetCreateBundleAutomationRequest() *shared.CreateBundleAutomationRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationRequest) GetCreateBundleAutomationRequest() *shared.CreateBundleAutomationRequest { + if c == nil { return nil } - return o.CreateBundleAutomationRequest + return c.CreateBundleAutomationRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationRequest) GetRequestCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationRequest) GetRequestCatalogID() string { + if c == nil { return "" } - return o.RequestCatalogID + return c.RequestCatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationR RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse) GetBundleAutomation() *shared.BundleAutomation { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse) GetBundleAutomation() *shared.BundleAutomation { + if c == nil { return nil } - return o.BundleAutomation + return c.BundleAutomation } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateBundleAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreaterequestableentry.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreaterequestableentry.go new file mode 100644 index 00000000..31c80e63 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicecreaterequestableentry.go @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryRequest struct { + RequestCatalogManagementServiceCreateRequestableEntryRequest *shared.RequestCatalogManagementServiceCreateRequestableEntryRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` + EntitlementID string `pathParam:"style=simple,explode=false,name=entitlement_id"` +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryRequest) GetRequestCatalogManagementServiceCreateRequestableEntryRequest() *shared.RequestCatalogManagementServiceCreateRequestableEntryRequest { + if c == nil { + return nil + } + return c.RequestCatalogManagementServiceCreateRequestableEntryRequest +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryRequest) GetCatalogID() string { + if c == nil { + return "" + } + return c.CatalogID +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryRequest) GetEntitlementID() string { + if c == nil { + return "" + } + return c.EntitlementID +} + +type C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryResponse struct { + // HTTP response content type for this operation + ContentType string + // Response containing the created requestable entry + RequestCatalogManagementServiceCreateRequestableEntryResponse *shared.RequestCatalogManagementServiceCreateRequestableEntryResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryResponse) GetRequestCatalogManagementServiceCreateRequestableEntryResponse() *shared.RequestCatalogManagementServiceCreateRequestableEntryResponse { + if c == nil { + return nil + } + return c.RequestCatalogManagementServiceCreateRequestableEntryResponse +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedelete.go index aec2c0cf..b3b90581 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedelete.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequest) GetRequestCatalogManagementServiceDeleteRequest() *shared.RequestCatalogManagementServiceDeleteRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequest) GetRequestCatalogManagementServiceDeleteRequest() *shared.RequestCatalogManagementServiceDeleteRequest { + if c == nil { return nil } - return o.RequestCatalogManagementServiceDeleteRequest + return c.RequestCatalogManagementServiceDeleteRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequest) GetID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse) GetRequestCatalogManagementServiceDeleteResponse() *shared.RequestCatalogManagementServiceDeleteResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse) GetRequestCatalogManagementServiceDeleteResponse() *shared.RequestCatalogManagementServiceDeleteResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceDeleteResponse + return c.RequestCatalogManagementServiceDeleteResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedeletebundleautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedeletebundleautomation.go index 89a0713c..c50b72e3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedeletebundleautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedeletebundleautomation.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationR RequestCatalogID string `pathParam:"style=simple,explode=false,name=request_catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationRequest) GetDeleteBundleAutomationRequest() *shared.DeleteBundleAutomationRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationRequest) GetDeleteBundleAutomationRequest() *shared.DeleteBundleAutomationRequest { + if c == nil { return nil } - return o.DeleteBundleAutomationRequest + return c.DeleteBundleAutomationRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationRequest) GetRequestCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationRequest) GetRequestCatalogID() string { + if c == nil { return "" } - return o.RequestCatalogID + return c.RequestCatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationR RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse) GetDeleteBundleAutomationResponse() *shared.DeleteBundleAutomationResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse) GetDeleteBundleAutomationResponse() *shared.DeleteBundleAutomationResponse { + if c == nil { return nil } - return o.DeleteBundleAutomationResponse + return c.DeleteBundleAutomationResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedeleterequestableentry.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedeleterequestableentry.go new file mode 100644 index 00000000..0a369801 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicedeleterequestableentry.go @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryRequest struct { + RequestCatalogManagementServiceDeleteRequestableEntryRequest *shared.RequestCatalogManagementServiceDeleteRequestableEntryRequest `request:"mediaType=application/json"` + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` + EntitlementID string `pathParam:"style=simple,explode=false,name=entitlement_id"` +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryRequest) GetRequestCatalogManagementServiceDeleteRequestableEntryRequest() *shared.RequestCatalogManagementServiceDeleteRequestableEntryRequest { + if c == nil { + return nil + } + return c.RequestCatalogManagementServiceDeleteRequestableEntryRequest +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryRequest) GetCatalogID() string { + if c == nil { + return "" + } + return c.CatalogID +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryRequest) GetEntitlementID() string { + if c == nil { + return "" + } + return c.EntitlementID +} + +type C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryResponse struct { + // HTTP response content type for this operation + ContentType string + // Empty response for delete operation + RequestCatalogManagementServiceDeleteRequestableEntryResponse *shared.RequestCatalogManagementServiceDeleteRequestableEntryResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryResponse) GetRequestCatalogManagementServiceDeleteRequestableEntryResponse() *shared.RequestCatalogManagementServiceDeleteRequestableEntryResponse { + if c == nil { + return nil + } + return c.RequestCatalogManagementServiceDeleteRequestableEntryResponse +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceforcerunbundleautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceforcerunbundleautomation.go index 346b668c..1036daa3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceforcerunbundleautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceforcerunbundleautomation.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomatio RequestCatalogID string `pathParam:"style=simple,explode=false,name=request_catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationRequest) GetForceRunBundleAutomationRequest() *shared.ForceRunBundleAutomationRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationRequest) GetForceRunBundleAutomationRequest() *shared.ForceRunBundleAutomationRequest { + if c == nil { return nil } - return o.ForceRunBundleAutomationRequest + return c.ForceRunBundleAutomationRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationRequest) GetRequestCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationRequest) GetRequestCatalogID() string { + if c == nil { return "" } - return o.RequestCatalogID + return c.RequestCatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomatio RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse) GetForceRunBundleAutomationResponse() *shared.ForceRunBundleAutomationResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse) GetForceRunBundleAutomationResponse() *shared.ForceRunBundleAutomationResponse { + if c == nil { return nil } - return o.ForceRunBundleAutomationResponse + return c.ForceRunBundleAutomationResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceForceRunBundleAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceget.go index 79ccd840..713a6a61 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceget.go @@ -11,11 +11,11 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse) GetRequestCatalogManagementServiceGetResponse() *shared.RequestCatalogManagementServiceGetResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse) GetRequestCatalogManagementServiceGetResponse() *shared.RequestCatalogManagementServiceGetResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceGetResponse + return c.RequestCatalogManagementServiceGetResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicegetbundleautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicegetbundleautomation.go index 773c17ff..792b5a48 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicegetbundleautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicegetbundleautomation.go @@ -11,11 +11,11 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationRequ RequestCatalogID string `pathParam:"style=simple,explode=false,name=request_catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationRequest) GetRequestCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationRequest) GetRequestCatalogID() string { + if c == nil { return "" } - return o.RequestCatalogID + return c.RequestCatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse struct { @@ -29,30 +29,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResp RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse) GetBundleAutomation() *shared.BundleAutomation { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse) GetBundleAutomation() *shared.BundleAutomation { + if c == nil { return nil } - return o.BundleAutomation + return c.BundleAutomation } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetBundleAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicegetrequestableentry.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicegetrequestableentry.go new file mode 100644 index 00000000..54f609a0 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicegetrequestableentry.go @@ -0,0 +1,74 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryRequest struct { + AppID string `pathParam:"style=simple,explode=false,name=app_id"` + CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` + EntitlementID string `pathParam:"style=simple,explode=false,name=entitlement_id"` +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryRequest) GetAppID() string { + if c == nil { + return "" + } + return c.AppID +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryRequest) GetCatalogID() string { + if c == nil { + return "" + } + return c.CatalogID +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryRequest) GetEntitlementID() string { + if c == nil { + return "" + } + return c.EntitlementID +} + +type C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryResponse struct { + // HTTP response content type for this operation + ContentType string + // Response containing the requested entry + RequestCatalogManagementServiceGetRequestableEntryResponse *shared.RequestCatalogManagementServiceGetRequestableEntryResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryResponse) GetRequestCatalogManagementServiceGetRequestableEntryResponse() *shared.RequestCatalogManagementServiceGetRequestableEntryResponse { + if c == nil { + return nil + } + return c.RequestCatalogManagementServiceGetRequestableEntryResponse +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelist.go index 56cd0dc6..1bc52d7c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelist.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse) GetRequestCatalogManagementServiceListResponse() *shared.RequestCatalogManagementServiceListResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse) GetRequestCatalogManagementServiceListResponse() *shared.RequestCatalogManagementServiceListResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceListResponse + return c.RequestCatalogManagementServiceListResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistallentitlementidsperapp.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistallentitlementidsperapp.go index b9ac2b5e..58e67e62 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistallentitlementidsperapp.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistallentitlementidsperapp.go @@ -11,11 +11,11 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPe CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppRequest) GetCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppRequest) GetCatalogID() string { + if c == nil { return "" } - return o.CatalogID + return c.CatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse struct { @@ -29,30 +29,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPe RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse) GetRequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse() *shared.RequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse) GetRequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse() *shared.RequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse + return c.RequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListAllEntitlementIdsPerAppResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistentitlementsforaccess.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistentitlementsforaccess.go index 33563051..9883260d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistentitlementsforaccess.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistentitlementsforaccess.go @@ -13,25 +13,25 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAcce PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessRequest) GetCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessRequest) GetCatalogID() string { + if c == nil { return "" } - return o.CatalogID + return c.CatalogID } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse struct { @@ -45,30 +45,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAcce RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetRequestCatalogManagementServiceListEntitlementsForAccessResponse() *shared.RequestCatalogManagementServiceListEntitlementsForAccessResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetRequestCatalogManagementServiceListEntitlementsForAccessResponse() *shared.RequestCatalogManagementServiceListEntitlementsForAccessResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceListEntitlementsForAccessResponse + return c.RequestCatalogManagementServiceListEntitlementsForAccessResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistentitlementspercatalog.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistentitlementspercatalog.go index 43081aea..07529ccd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistentitlementspercatalog.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicelistentitlementspercatalog.go @@ -13,25 +13,25 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCata PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogRequest) GetCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogRequest) GetCatalogID() string { + if c == nil { return "" } - return o.CatalogID + return c.CatalogID } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse struct { @@ -45,30 +45,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCata RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetRequestCatalogManagementServiceListEntitlementsPerCatalogResponse() *shared.RequestCatalogManagementServiceListEntitlementsPerCatalogResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetRequestCatalogManagementServiceListEntitlementsPerCatalogResponse() *shared.RequestCatalogManagementServiceListEntitlementsPerCatalogResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceListEntitlementsPerCatalogResponse + return c.RequestCatalogManagementServiceListEntitlementsPerCatalogResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceremoveaccessentitlements.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceremoveaccessentitlements.go index 6d4b9215..eb10cd43 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceremoveaccessentitlements.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceremoveaccessentitlements.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlement CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsRequest) GetRequestCatalogManagementServiceRemoveAccessEntitlementsRequest() *shared.RequestCatalogManagementServiceRemoveAccessEntitlementsRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsRequest) GetRequestCatalogManagementServiceRemoveAccessEntitlementsRequest() *shared.RequestCatalogManagementServiceRemoveAccessEntitlementsRequest { + if c == nil { return nil } - return o.RequestCatalogManagementServiceRemoveAccessEntitlementsRequest + return c.RequestCatalogManagementServiceRemoveAccessEntitlementsRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsRequest) GetCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsRequest) GetCatalogID() string { + if c == nil { return "" } - return o.CatalogID + return c.CatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlement RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse) GetRequestCatalogManagementServiceRemoveAccessEntitlementsResponse() *shared.RequestCatalogManagementServiceRemoveAccessEntitlementsResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse) GetRequestCatalogManagementServiceRemoveAccessEntitlementsResponse() *shared.RequestCatalogManagementServiceRemoveAccessEntitlementsResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceRemoveAccessEntitlementsResponse + return c.RequestCatalogManagementServiceRemoveAccessEntitlementsResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAccessEntitlementsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceremoveappentitlements.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceremoveappentitlements.go index 6465f342..134259ae 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceremoveappentitlements.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceremoveappentitlements.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsRe CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsRequest) GetRequestCatalogManagementServiceRemoveAppEntitlementsRequest() *shared.RequestCatalogManagementServiceRemoveAppEntitlementsRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsRequest) GetRequestCatalogManagementServiceRemoveAppEntitlementsRequest() *shared.RequestCatalogManagementServiceRemoveAppEntitlementsRequest { + if c == nil { return nil } - return o.RequestCatalogManagementServiceRemoveAppEntitlementsRequest + return c.RequestCatalogManagementServiceRemoveAppEntitlementsRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsRequest) GetCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsRequest) GetCatalogID() string { + if c == nil { return "" } - return o.CatalogID + return c.CatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsRe RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse) GetRequestCatalogManagementServiceRemoveAppEntitlementsResponse() *shared.RequestCatalogManagementServiceRemoveAppEntitlementsResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse) GetRequestCatalogManagementServiceRemoveAppEntitlementsResponse() *shared.RequestCatalogManagementServiceRemoveAppEntitlementsResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceRemoveAppEntitlementsResponse + return c.RequestCatalogManagementServiceRemoveAppEntitlementsResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceRemoveAppEntitlementsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceresumepausedbundleautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceresumepausedbundleautomation.go index 4fdf4048..53aac243 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceresumepausedbundleautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceresumepausedbundleautomation.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutom RequestCatalogID string `pathParam:"style=simple,explode=false,name=request_catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationRequest) GetResumePausedBundleAutomationRequest() *shared.ResumePausedBundleAutomationRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationRequest) GetResumePausedBundleAutomationRequest() *shared.ResumePausedBundleAutomationRequest { + if c == nil { return nil } - return o.ResumePausedBundleAutomationRequest + return c.ResumePausedBundleAutomationRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationRequest) GetRequestCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationRequest) GetRequestCatalogID() string { + if c == nil { return "" } - return o.RequestCatalogID + return c.RequestCatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutom RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse) GetResumePausedBundleAutomationResponse() *shared.ResumePausedBundleAutomationResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse) GetResumePausedBundleAutomationResponse() *shared.ResumePausedBundleAutomationResponse { + if c == nil { return nil } - return o.ResumePausedBundleAutomationResponse + return c.ResumePausedBundleAutomationResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceResumePausedBundleAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicesetbundleautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicesetbundleautomation.go index 26f33c0a..82fc7733 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicesetbundleautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementservicesetbundleautomation.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationRequ RequestCatalogID string `pathParam:"style=simple,explode=false,name=request_catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationRequest) GetSetBundleAutomationRequest() *shared.SetBundleAutomationRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationRequest) GetSetBundleAutomationRequest() *shared.SetBundleAutomationRequest { + if c == nil { return nil } - return o.SetBundleAutomationRequest + return c.SetBundleAutomationRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationRequest) GetRequestCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationRequest) GetRequestCatalogID() string { + if c == nil { return "" } - return o.RequestCatalogID + return c.RequestCatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResp RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse) GetBundleAutomation() *shared.BundleAutomation { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse) GetBundleAutomation() *shared.BundleAutomation { + if c == nil { return nil } - return o.BundleAutomation + return c.BundleAutomation } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceSetBundleAutomationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceupdate.go index 6d72d3cf..72a8ed90 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceupdate.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateRequest) GetRequestCatalogManagementServiceUpdateRequest() *shared.RequestCatalogManagementServiceUpdateRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateRequest) GetRequestCatalogManagementServiceUpdateRequest() *shared.RequestCatalogManagementServiceUpdateRequest { + if c == nil { return nil } - return o.RequestCatalogManagementServiceUpdateRequest + return c.RequestCatalogManagementServiceUpdateRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse struct { RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse) GetRequestCatalogManagementServiceGetResponse() *shared.RequestCatalogManagementServiceGetResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse) GetRequestCatalogManagementServiceGetResponse() *shared.RequestCatalogManagementServiceGetResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceGetResponse + return c.RequestCatalogManagementServiceGetResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceupdateappentitlements.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceupdateappentitlements.go index 2fb5e131..ac6851e0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceupdateappentitlements.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogmanagementserviceupdateappentitlements.go @@ -12,18 +12,18 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsRe CatalogID string `pathParam:"style=simple,explode=false,name=catalog_id"` } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsRequest) GetRequestCatalogManagementServiceUpdateAppEntitlementsRequest() *shared.RequestCatalogManagementServiceUpdateAppEntitlementsRequest { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsRequest) GetRequestCatalogManagementServiceUpdateAppEntitlementsRequest() *shared.RequestCatalogManagementServiceUpdateAppEntitlementsRequest { + if c == nil { return nil } - return o.RequestCatalogManagementServiceUpdateAppEntitlementsRequest + return c.RequestCatalogManagementServiceUpdateAppEntitlementsRequest } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsRequest) GetCatalogID() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsRequest) GetCatalogID() string { + if c == nil { return "" } - return o.CatalogID + return c.CatalogID } type C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse struct { @@ -37,30 +37,30 @@ type C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsRe RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse) GetRequestCatalogManagementServiceUpdateAppEntitlementsResponse() *shared.RequestCatalogManagementServiceUpdateAppEntitlementsResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse) GetRequestCatalogManagementServiceUpdateAppEntitlementsResponse() *shared.RequestCatalogManagementServiceUpdateAppEntitlementsResponse { + if c == nil { return nil } - return o.RequestCatalogManagementServiceUpdateAppEntitlementsResponse + return c.RequestCatalogManagementServiceUpdateAppEntitlementsResponse } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogManagementServiceUpdateAppEntitlementsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogsearchservicesearchentitlements.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogsearchservicesearchentitlements.go index a3e72819..555c0d1f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogsearchservicesearchentitlements.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestcatalogv1requestcatalogsearchservicesearchentitlements.go @@ -18,30 +18,30 @@ type C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse RawResponse *http.Response } -func (o *C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse) GetContentType() string { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse) GetRequestCatalogSearchServiceSearchEntitlementsResponse() *shared.RequestCatalogSearchServiceSearchEntitlementsResponse { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse) GetRequestCatalogSearchServiceSearchEntitlementsResponse() *shared.RequestCatalogSearchServiceSearchEntitlementsResponse { + if c == nil { return nil } - return o.RequestCatalogSearchServiceSearchEntitlementsResponse + return c.RequestCatalogSearchServiceSearchEntitlementsResponse } -func (o *C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIRequestcatalogV1RequestCatalogSearchServiceSearchEntitlementsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicecreate.go new file mode 100644 index 00000000..db4989f2 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicecreate.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestSchemaV1RequestSchemaServiceCreateResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + RequestSchemaServiceCreateResponse *shared.RequestSchemaServiceCreateResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceCreateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceCreateResponse) GetRequestSchemaServiceCreateResponse() *shared.RequestSchemaServiceCreateResponse { + if c == nil { + return nil + } + return c.RequestSchemaServiceCreateResponse +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceCreateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicecreateentitlementbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicecreateentitlementbinding.go new file mode 100644 index 00000000..20a6f552 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicecreateentitlementbinding.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestSchemaV1RequestSchemaServiceCreateEntitlementBindingResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + RequestSchemaServiceCreateEntitlementBindingResponse *shared.RequestSchemaServiceCreateEntitlementBindingResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceCreateEntitlementBindingResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceCreateEntitlementBindingResponse) GetRequestSchemaServiceCreateEntitlementBindingResponse() *shared.RequestSchemaServiceCreateEntitlementBindingResponse { + if c == nil { + return nil + } + return c.RequestSchemaServiceCreateEntitlementBindingResponse +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceCreateEntitlementBindingResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceCreateEntitlementBindingResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicedelete.go new file mode 100644 index 00000000..97de4c10 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicedelete.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestSchemaV1RequestSchemaServiceDeleteRequest struct { + RequestSchemaServiceDeleteRequest *shared.RequestSchemaServiceDeleteRequest `request:"mediaType=application/json"` + RequestSchemaID string `pathParam:"style=simple,explode=false,name=request_schema_id"` +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceDeleteRequest) GetRequestSchemaServiceDeleteRequest() *shared.RequestSchemaServiceDeleteRequest { + if c == nil { + return nil + } + return c.RequestSchemaServiceDeleteRequest +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceDeleteRequest) GetRequestSchemaID() string { + if c == nil { + return "" + } + return c.RequestSchemaID +} + +type C1APIRequestSchemaV1RequestSchemaServiceDeleteResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + RequestSchemaServiceDeleteResponse *shared.RequestSchemaServiceDeleteResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceDeleteResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceDeleteResponse) GetRequestSchemaServiceDeleteResponse() *shared.RequestSchemaServiceDeleteResponse { + if c == nil { + return nil + } + return c.RequestSchemaServiceDeleteResponse +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceDeleteResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicefindbindingforappentitlement.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicefindbindingforappentitlement.go new file mode 100644 index 00000000..5ac027d5 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaservicefindbindingforappentitlement.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestSchemaV1RequestSchemaServiceFindBindingForAppEntitlementResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + RequestSchemaServiceFindBindingForAppEntitlementResponse *shared.RequestSchemaServiceFindBindingForAppEntitlementResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceFindBindingForAppEntitlementResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceFindBindingForAppEntitlementResponse) GetRequestSchemaServiceFindBindingForAppEntitlementResponse() *shared.RequestSchemaServiceFindBindingForAppEntitlementResponse { + if c == nil { + return nil + } + return c.RequestSchemaServiceFindBindingForAppEntitlementResponse +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceFindBindingForAppEntitlementResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceFindBindingForAppEntitlementResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceget.go new file mode 100644 index 00000000..a860a81a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceget.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestSchemaV1RequestSchemaServiceGetRequest struct { + RequestSchemaID string `pathParam:"style=simple,explode=false,name=request_schema_id"` +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceGetRequest) GetRequestSchemaID() string { + if c == nil { + return "" + } + return c.RequestSchemaID +} + +type C1APIRequestSchemaV1RequestSchemaServiceGetResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + RequestSchemaServiceGetResponse *shared.RequestSchemaServiceGetResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceGetResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceGetResponse) GetRequestSchemaServiceGetResponse() *shared.RequestSchemaServiceGetResponse { + if c == nil { + return nil + } + return c.RequestSchemaServiceGetResponse +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceGetResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceremoveentitlementbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceremoveentitlementbinding.go new file mode 100644 index 00000000..c50c7cdd --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceremoveentitlementbinding.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestSchemaV1RequestSchemaServiceRemoveEntitlementBindingResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + RequestSchemaServiceRemoveEntitlementBindingResponse *shared.RequestSchemaServiceRemoveEntitlementBindingResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceRemoveEntitlementBindingResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceRemoveEntitlementBindingResponse) GetRequestSchemaServiceRemoveEntitlementBindingResponse() *shared.RequestSchemaServiceRemoveEntitlementBindingResponse { + if c == nil { + return nil + } + return c.RequestSchemaServiceRemoveEntitlementBindingResponse +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceRemoveEntitlementBindingResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceRemoveEntitlementBindingResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceupdate.go new file mode 100644 index 00000000..ab339b13 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apirequestschemav1requestschemaserviceupdate.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIRequestSchemaV1RequestSchemaServiceUpdateRequest struct { + RequestSchemaServiceUpdateRequest *shared.RequestSchemaServiceUpdateRequest `request:"mediaType=application/json"` + RequestSchemaID string `pathParam:"style=simple,explode=false,name=request_schema_id"` +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceUpdateRequest) GetRequestSchemaServiceUpdateRequest() *shared.RequestSchemaServiceUpdateRequest { + if c == nil { + return nil + } + return c.RequestSchemaServiceUpdateRequest +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceUpdateRequest) GetRequestSchemaID() string { + if c == nil { + return "" + } + return c.RequestSchemaID +} + +type C1APIRequestSchemaV1RequestSchemaServiceUpdateResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + RequestSchemaServiceUpdateResponse *shared.RequestSchemaServiceUpdateResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceUpdateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceUpdateResponse) GetRequestSchemaServiceUpdateResponse() *shared.RequestSchemaServiceUpdateResponse { + if c == nil { + return nil + } + return c.RequestSchemaServiceUpdateResponse +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceUpdateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIRequestSchemaV1RequestSchemaServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1awsexternalidsettingsget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1awsexternalidsettingsget.go index 49489a8d..ffa66158 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1awsexternalidsettingsget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1awsexternalidsettingsget.go @@ -18,30 +18,30 @@ type C1APISettingsV1AWSExternalIDSettingsGetResponse struct { RawResponse *http.Response } -func (o *C1APISettingsV1AWSExternalIDSettingsGetResponse) GetContentType() string { - if o == nil { +func (c *C1APISettingsV1AWSExternalIDSettingsGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISettingsV1AWSExternalIDSettingsGetResponse) GetGetAWSExternalIDResponse() *shared.GetAWSExternalIDResponse { - if o == nil { +func (c *C1APISettingsV1AWSExternalIDSettingsGetResponse) GetGetAWSExternalIDResponse() *shared.GetAWSExternalIDResponse { + if c == nil { return nil } - return o.GetAWSExternalIDResponse + return c.GetAWSExternalIDResponse } -func (o *C1APISettingsV1AWSExternalIDSettingsGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISettingsV1AWSExternalIDSettingsGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISettingsV1AWSExternalIDSettingsGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISettingsV1AWSExternalIDSettingsGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1orgdomainservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1orgdomainservicelist.go index f62f844a..206378ff 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1orgdomainservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1orgdomainservicelist.go @@ -12,18 +12,18 @@ type C1APISettingsV1OrgDomainServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APISettingsV1OrgDomainServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APISettingsV1OrgDomainServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APISettingsV1OrgDomainServiceListResponse struct { @@ -37,30 +37,30 @@ type C1APISettingsV1OrgDomainServiceListResponse struct { RawResponse *http.Response } -func (o *C1APISettingsV1OrgDomainServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISettingsV1OrgDomainServiceListResponse) GetListOrgDomainsResponse() *shared.ListOrgDomainsResponse { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceListResponse) GetListOrgDomainsResponse() *shared.ListOrgDomainsResponse { + if c == nil { return nil } - return o.ListOrgDomainsResponse + return c.ListOrgDomainsResponse } -func (o *C1APISettingsV1OrgDomainServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISettingsV1OrgDomainServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1orgdomainserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1orgdomainserviceupdate.go index 29487de3..908e46a9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1orgdomainserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1orgdomainserviceupdate.go @@ -18,30 +18,30 @@ type C1APISettingsV1OrgDomainServiceUpdateResponse struct { UpdateOrgDomainResponse *shared.UpdateOrgDomainResponse } -func (o *C1APISettingsV1OrgDomainServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISettingsV1OrgDomainServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISettingsV1OrgDomainServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APISettingsV1OrgDomainServiceUpdateResponse) GetUpdateOrgDomainResponse() *shared.UpdateOrgDomainResponse { - if o == nil { +func (c *C1APISettingsV1OrgDomainServiceUpdateResponse) GetUpdateOrgDomainResponse() *shared.UpdateOrgDomainResponse { + if c == nil { return nil } - return o.UpdateOrgDomainResponse + return c.UpdateOrgDomainResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsserviceget.go index 2a2f0647..f896bb74 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsserviceget.go @@ -18,30 +18,30 @@ type C1APISettingsV1SessionSettingsServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APISettingsV1SessionSettingsServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISettingsV1SessionSettingsServiceGetResponse) GetGetSessionSettingsResponse() *shared.GetSessionSettingsResponse { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceGetResponse) GetGetSessionSettingsResponse() *shared.GetSessionSettingsResponse { + if c == nil { return nil } - return o.GetSessionSettingsResponse + return c.GetSessionSettingsResponse } -func (o *C1APISettingsV1SessionSettingsServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISettingsV1SessionSettingsServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsservicetestsourceip.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsservicetestsourceip.go index 23f71eaf..4faa14db 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsservicetestsourceip.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsservicetestsourceip.go @@ -18,30 +18,30 @@ type C1APISettingsV1SessionSettingsServiceTestSourceIPResponse struct { TestSourceIPResponse *shared.TestSourceIPResponse } -func (o *C1APISettingsV1SessionSettingsServiceTestSourceIPResponse) GetContentType() string { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceTestSourceIPResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISettingsV1SessionSettingsServiceTestSourceIPResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceTestSourceIPResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISettingsV1SessionSettingsServiceTestSourceIPResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceTestSourceIPResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APISettingsV1SessionSettingsServiceTestSourceIPResponse) GetTestSourceIPResponse() *shared.TestSourceIPResponse { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceTestSourceIPResponse) GetTestSourceIPResponse() *shared.TestSourceIPResponse { + if c == nil { return nil } - return o.TestSourceIPResponse + return c.TestSourceIPResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsserviceupdate.go index 272193bc..7515b250 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisettingsv1sessionsettingsserviceupdate.go @@ -18,30 +18,30 @@ type C1APISettingsV1SessionSettingsServiceUpdateResponse struct { UpdateSessionSettingsResponse *shared.UpdateSessionSettingsResponse } -func (o *C1APISettingsV1SessionSettingsServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISettingsV1SessionSettingsServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISettingsV1SessionSettingsServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APISettingsV1SessionSettingsServiceUpdateResponse) GetUpdateSessionSettingsResponse() *shared.UpdateSessionSettingsResponse { - if o == nil { +func (c *C1APISettingsV1SessionSettingsServiceUpdateResponse) GetUpdateSessionSettingsResponse() *shared.UpdateSessionSettingsResponse { + if c == nil { return nil } - return o.UpdateSessionSettingsResponse + return c.UpdateSessionSettingsResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicecreate.go index d5f20a06..b9132786 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicecreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicecreate.go @@ -18,30 +18,30 @@ type C1APIStepupV1StepUpProviderServiceCreateResponse struct { RawResponse *http.Response } -func (o *C1APIStepupV1StepUpProviderServiceCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpProviderServiceCreateResponse) GetCreateStepUpProviderResponse() *shared.CreateStepUpProviderResponse { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceCreateResponse) GetCreateStepUpProviderResponse() *shared.CreateStepUpProviderResponse { + if c == nil { return nil } - return o.CreateStepUpProviderResponse + return c.CreateStepUpProviderResponse } -func (o *C1APIStepupV1StepUpProviderServiceCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpProviderServiceCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicedelete.go index 817afb26..dcbdc70b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicedelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicedelete.go @@ -12,18 +12,18 @@ type C1APIStepupV1StepUpProviderServiceDeleteRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIStepupV1StepUpProviderServiceDeleteRequest) GetDeleteStepUpProviderRequest() *shared.DeleteStepUpProviderRequest { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceDeleteRequest) GetDeleteStepUpProviderRequest() *shared.DeleteStepUpProviderRequest { + if c == nil { return nil } - return o.DeleteStepUpProviderRequest + return c.DeleteStepUpProviderRequest } -func (o *C1APIStepupV1StepUpProviderServiceDeleteRequest) GetID() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceDeleteRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIStepupV1StepUpProviderServiceDeleteResponse struct { @@ -37,30 +37,30 @@ type C1APIStepupV1StepUpProviderServiceDeleteResponse struct { RawResponse *http.Response } -func (o *C1APIStepupV1StepUpProviderServiceDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpProviderServiceDeleteResponse) GetDeleteStepUpProviderResponse() *shared.DeleteStepUpProviderResponse { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceDeleteResponse) GetDeleteStepUpProviderResponse() *shared.DeleteStepUpProviderResponse { + if c == nil { return nil } - return o.DeleteStepUpProviderResponse + return c.DeleteStepUpProviderResponse } -func (o *C1APIStepupV1StepUpProviderServiceDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpProviderServiceDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceget.go index ea207b44..2c7792b8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceget.go @@ -11,11 +11,11 @@ type C1APIStepupV1StepUpProviderServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIStepupV1StepUpProviderServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIStepupV1StepUpProviderServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APIStepupV1StepUpProviderServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIStepupV1StepUpProviderServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpProviderServiceGetResponse) GetGetStepUpProviderResponse() *shared.GetStepUpProviderResponse { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceGetResponse) GetGetStepUpProviderResponse() *shared.GetStepUpProviderResponse { + if c == nil { return nil } - return o.GetStepUpProviderResponse + return c.GetStepUpProviderResponse } -func (o *C1APIStepupV1StepUpProviderServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpProviderServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicelist.go index 32b7cc20..62251181 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicelist.go @@ -18,30 +18,30 @@ type C1APIStepupV1StepUpProviderServiceListResponse struct { RawResponse *http.Response } -func (o *C1APIStepupV1StepUpProviderServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpProviderServiceListResponse) GetListStepUpProvidersResponse() *shared.ListStepUpProvidersResponse { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceListResponse) GetListStepUpProvidersResponse() *shared.ListStepUpProvidersResponse { + if c == nil { return nil } - return o.ListStepUpProvidersResponse + return c.ListStepUpProvidersResponse } -func (o *C1APIStepupV1StepUpProviderServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpProviderServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicesearch.go index 635ed75a..a5b7c9d2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicesearch.go @@ -18,30 +18,30 @@ type C1APIStepupV1StepUpProviderServiceSearchResponse struct { RawResponse *http.Response } -func (o *C1APIStepupV1StepUpProviderServiceSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpProviderServiceSearchResponse) GetSearchStepUpProvidersResponse() *shared.SearchStepUpProvidersResponse { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceSearchResponse) GetSearchStepUpProvidersResponse() *shared.SearchStepUpProvidersResponse { + if c == nil { return nil } - return o.SearchStepUpProvidersResponse + return c.SearchStepUpProvidersResponse } -func (o *C1APIStepupV1StepUpProviderServiceSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpProviderServiceSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicetest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicetest.go index 6bbb4d2c..424b92f9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicetest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderservicetest.go @@ -12,18 +12,18 @@ type C1APIStepupV1StepUpProviderServiceTestRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIStepupV1StepUpProviderServiceTestRequest) GetTestStepUpProviderRequest() *shared.TestStepUpProviderRequest { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceTestRequest) GetTestStepUpProviderRequest() *shared.TestStepUpProviderRequest { + if c == nil { return nil } - return o.TestStepUpProviderRequest + return c.TestStepUpProviderRequest } -func (o *C1APIStepupV1StepUpProviderServiceTestRequest) GetID() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceTestRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIStepupV1StepUpProviderServiceTestResponse struct { @@ -37,30 +37,30 @@ type C1APIStepupV1StepUpProviderServiceTestResponse struct { TestStepUpProviderResponse *shared.TestStepUpProviderResponse } -func (o *C1APIStepupV1StepUpProviderServiceTestResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceTestResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpProviderServiceTestResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceTestResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpProviderServiceTestResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceTestResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIStepupV1StepUpProviderServiceTestResponse) GetTestStepUpProviderResponse() *shared.TestStepUpProviderResponse { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceTestResponse) GetTestStepUpProviderResponse() *shared.TestStepUpProviderResponse { + if c == nil { return nil } - return o.TestStepUpProviderResponse + return c.TestStepUpProviderResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceupdate.go index 0134db27..4216fa41 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceupdate.go @@ -12,18 +12,18 @@ type C1APIStepupV1StepUpProviderServiceUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIStepupV1StepUpProviderServiceUpdateRequest) GetUpdateStepUpProviderRequest() *shared.UpdateStepUpProviderRequest { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateRequest) GetUpdateStepUpProviderRequest() *shared.UpdateStepUpProviderRequest { + if c == nil { return nil } - return o.UpdateStepUpProviderRequest + return c.UpdateStepUpProviderRequest } -func (o *C1APIStepupV1StepUpProviderServiceUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIStepupV1StepUpProviderServiceUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APIStepupV1StepUpProviderServiceUpdateResponse struct { UpdateStepUpProviderResponse *shared.UpdateStepUpProviderResponse } -func (o *C1APIStepupV1StepUpProviderServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpProviderServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpProviderServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIStepupV1StepUpProviderServiceUpdateResponse) GetUpdateStepUpProviderResponse() *shared.UpdateStepUpProviderResponse { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateResponse) GetUpdateStepUpProviderResponse() *shared.UpdateStepUpProviderResponse { + if c == nil { return nil } - return o.UpdateStepUpProviderResponse + return c.UpdateStepUpProviderResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceupdatesecret.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceupdatesecret.go index c644e5eb..2f5d3bf9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceupdatesecret.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepupproviderserviceupdatesecret.go @@ -12,18 +12,18 @@ type C1APIStepupV1StepUpProviderServiceUpdateSecretRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIStepupV1StepUpProviderServiceUpdateSecretRequest) GetUpdateStepUpProviderSecretRequest() *shared.UpdateStepUpProviderSecretRequest { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateSecretRequest) GetUpdateStepUpProviderSecretRequest() *shared.UpdateStepUpProviderSecretRequest { + if c == nil { return nil } - return o.UpdateStepUpProviderSecretRequest + return c.UpdateStepUpProviderSecretRequest } -func (o *C1APIStepupV1StepUpProviderServiceUpdateSecretRequest) GetID() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateSecretRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIStepupV1StepUpProviderServiceUpdateSecretResponse struct { @@ -37,30 +37,30 @@ type C1APIStepupV1StepUpProviderServiceUpdateSecretResponse struct { UpdateStepUpProviderSecretResponse *shared.UpdateStepUpProviderSecretResponse } -func (o *C1APIStepupV1StepUpProviderServiceUpdateSecretResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateSecretResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpProviderServiceUpdateSecretResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateSecretResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpProviderServiceUpdateSecretResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateSecretResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIStepupV1StepUpProviderServiceUpdateSecretResponse) GetUpdateStepUpProviderSecretResponse() *shared.UpdateStepUpProviderSecretResponse { - if o == nil { +func (c *C1APIStepupV1StepUpProviderServiceUpdateSecretResponse) GetUpdateStepUpProviderSecretResponse() *shared.UpdateStepUpProviderSecretResponse { + if c == nil { return nil } - return o.UpdateStepUpProviderSecretResponse + return c.UpdateStepUpProviderSecretResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepuptransactionserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepuptransactionserviceget.go index ee1bb682..dfffd2da 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepuptransactionserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepuptransactionserviceget.go @@ -11,11 +11,11 @@ type C1APIStepupV1StepUpTransactionServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIStepupV1StepUpTransactionServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIStepupV1StepUpTransactionServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APIStepupV1StepUpTransactionServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APIStepupV1StepUpTransactionServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpTransactionServiceGetResponse) GetGetStepUpTransactionResponse() *shared.GetStepUpTransactionResponse { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceGetResponse) GetGetStepUpTransactionResponse() *shared.GetStepUpTransactionResponse { + if c == nil { return nil } - return o.GetStepUpTransactionResponse + return c.GetStepUpTransactionResponse } -func (o *C1APIStepupV1StepUpTransactionServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpTransactionServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepuptransactionservicesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepuptransactionservicesearch.go index 919390cf..d530f1f6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepuptransactionservicesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apistepupv1stepuptransactionservicesearch.go @@ -18,30 +18,30 @@ type C1APIStepupV1StepUpTransactionServiceSearchResponse struct { RawResponse *http.Response } -func (o *C1APIStepupV1StepUpTransactionServiceSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIStepupV1StepUpTransactionServiceSearchResponse) GetSearchStepUpTransactionsResponse() *shared.SearchStepUpTransactionsResponse { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceSearchResponse) GetSearchStepUpTransactionsResponse() *shared.SearchStepUpTransactionsResponse { + if c == nil { return nil } - return o.SearchStepUpTransactionsResponse + return c.SearchStepUpTransactionsResponse } -func (o *C1APIStepupV1StepUpTransactionServiceSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIStepupV1StepUpTransactionServiceSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIStepupV1StepUpTransactionServiceSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicecreate.go index 14f3fcb3..d002ea6c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicecreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicecreate.go @@ -18,30 +18,30 @@ type C1APISystemlogV1ExportServiceCreateResponse struct { RawResponse *http.Response } -func (o *C1APISystemlogV1ExportServiceCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISystemlogV1ExportServiceCreateResponse) GetExportServiceCreateResponse() *shared.ExportServiceCreateResponse { - if o == nil { +func (c *C1APISystemlogV1ExportServiceCreateResponse) GetExportServiceCreateResponse() *shared.ExportServiceCreateResponse { + if c == nil { return nil } - return o.ExportServiceCreateResponse + return c.ExportServiceCreateResponse } -func (o *C1APISystemlogV1ExportServiceCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISystemlogV1ExportServiceCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISystemlogV1ExportServiceCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISystemlogV1ExportServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicedelete.go index 1824d4aa..5489c0c9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicedelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicedelete.go @@ -12,18 +12,18 @@ type C1APISystemlogV1ExportServiceDeleteRequest struct { ExportID string `pathParam:"style=simple,explode=false,name=export_id"` } -func (o *C1APISystemlogV1ExportServiceDeleteRequest) GetExportServiceDeleteRequest() *shared.ExportServiceDeleteRequest { - if o == nil { +func (c *C1APISystemlogV1ExportServiceDeleteRequest) GetExportServiceDeleteRequest() *shared.ExportServiceDeleteRequest { + if c == nil { return nil } - return o.ExportServiceDeleteRequest + return c.ExportServiceDeleteRequest } -func (o *C1APISystemlogV1ExportServiceDeleteRequest) GetExportID() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceDeleteRequest) GetExportID() string { + if c == nil { return "" } - return o.ExportID + return c.ExportID } type C1APISystemlogV1ExportServiceDeleteResponse struct { @@ -37,30 +37,30 @@ type C1APISystemlogV1ExportServiceDeleteResponse struct { RawResponse *http.Response } -func (o *C1APISystemlogV1ExportServiceDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISystemlogV1ExportServiceDeleteResponse) GetExportServiceDeleteResponse() *shared.ExportServiceDeleteResponse { - if o == nil { +func (c *C1APISystemlogV1ExportServiceDeleteResponse) GetExportServiceDeleteResponse() *shared.ExportServiceDeleteResponse { + if c == nil { return nil } - return o.ExportServiceDeleteResponse + return c.ExportServiceDeleteResponse } -func (o *C1APISystemlogV1ExportServiceDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISystemlogV1ExportServiceDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISystemlogV1ExportServiceDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISystemlogV1ExportServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportserviceget.go index 1b6edf79..1935ad4b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportserviceget.go @@ -11,11 +11,11 @@ type C1APISystemlogV1ExportServiceGetRequest struct { ExportID string `pathParam:"style=simple,explode=false,name=export_id"` } -func (o *C1APISystemlogV1ExportServiceGetRequest) GetExportID() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceGetRequest) GetExportID() string { + if c == nil { return "" } - return o.ExportID + return c.ExportID } type C1APISystemlogV1ExportServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APISystemlogV1ExportServiceGetResponse struct { RawResponse *http.Response } -func (o *C1APISystemlogV1ExportServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISystemlogV1ExportServiceGetResponse) GetExportServiceGetResponse() *shared.ExportServiceGetResponse { - if o == nil { +func (c *C1APISystemlogV1ExportServiceGetResponse) GetExportServiceGetResponse() *shared.ExportServiceGetResponse { + if c == nil { return nil } - return o.ExportServiceGetResponse + return c.ExportServiceGetResponse } -func (o *C1APISystemlogV1ExportServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISystemlogV1ExportServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISystemlogV1ExportServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISystemlogV1ExportServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicelist.go index 97c1b7b1..1e07de9a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicelist.go @@ -12,18 +12,18 @@ type C1APISystemlogV1ExportServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APISystemlogV1ExportServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APISystemlogV1ExportServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APISystemlogV1ExportServiceListResponse struct { @@ -37,30 +37,30 @@ type C1APISystemlogV1ExportServiceListResponse struct { RawResponse *http.Response } -func (o *C1APISystemlogV1ExportServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISystemlogV1ExportServiceListResponse) GetExportServiceListResponse() *shared.ExportServiceListResponse { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListResponse) GetExportServiceListResponse() *shared.ExportServiceListResponse { + if c == nil { return nil } - return o.ExportServiceListResponse + return c.ExportServiceListResponse } -func (o *C1APISystemlogV1ExportServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISystemlogV1ExportServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicelistevents.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicelistevents.go index 44158f69..6d09333b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicelistevents.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportservicelistevents.go @@ -12,18 +12,18 @@ type C1APISystemlogV1ExportServiceListEventsRequest struct { ExportID string `pathParam:"style=simple,explode=false,name=export_id"` } -func (o *C1APISystemlogV1ExportServiceListEventsRequest) GetExportServiceListEventsRequest() *shared.ExportServiceListEventsRequest { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListEventsRequest) GetExportServiceListEventsRequest() *shared.ExportServiceListEventsRequest { + if c == nil { return nil } - return o.ExportServiceListEventsRequest + return c.ExportServiceListEventsRequest } -func (o *C1APISystemlogV1ExportServiceListEventsRequest) GetExportID() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListEventsRequest) GetExportID() string { + if c == nil { return "" } - return o.ExportID + return c.ExportID } type C1APISystemlogV1ExportServiceListEventsResponse struct { @@ -37,30 +37,30 @@ type C1APISystemlogV1ExportServiceListEventsResponse struct { RawResponse *http.Response } -func (o *C1APISystemlogV1ExportServiceListEventsResponse) GetContentType() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListEventsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISystemlogV1ExportServiceListEventsResponse) GetExportServiceListEventsResponse() *shared.ExportServiceListEventsResponse { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListEventsResponse) GetExportServiceListEventsResponse() *shared.ExportServiceListEventsResponse { + if c == nil { return nil } - return o.ExportServiceListEventsResponse + return c.ExportServiceListEventsResponse } -func (o *C1APISystemlogV1ExportServiceListEventsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListEventsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISystemlogV1ExportServiceListEventsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISystemlogV1ExportServiceListEventsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportserviceupdate.go index 9a5b6a63..5110abaa 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportserviceupdate.go @@ -12,18 +12,18 @@ type C1APISystemlogV1ExportServiceUpdateRequest struct { ExportID string `pathParam:"style=simple,explode=false,name=export_id"` } -func (o *C1APISystemlogV1ExportServiceUpdateRequest) GetExportServiceUpdateRequest() *shared.ExportServiceUpdateRequest { - if o == nil { +func (c *C1APISystemlogV1ExportServiceUpdateRequest) GetExportServiceUpdateRequest() *shared.ExportServiceUpdateRequest { + if c == nil { return nil } - return o.ExportServiceUpdateRequest + return c.ExportServiceUpdateRequest } -func (o *C1APISystemlogV1ExportServiceUpdateRequest) GetExportID() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceUpdateRequest) GetExportID() string { + if c == nil { return "" } - return o.ExportID + return c.ExportID } type C1APISystemlogV1ExportServiceUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APISystemlogV1ExportServiceUpdateResponse struct { RawResponse *http.Response } -func (o *C1APISystemlogV1ExportServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APISystemlogV1ExportServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISystemlogV1ExportServiceUpdateResponse) GetExportServiceUpdateResponse() *shared.ExportServiceUpdateResponse { - if o == nil { +func (c *C1APISystemlogV1ExportServiceUpdateResponse) GetExportServiceUpdateResponse() *shared.ExportServiceUpdateResponse { + if c == nil { return nil } - return o.ExportServiceUpdateResponse + return c.ExportServiceUpdateResponse } -func (o *C1APISystemlogV1ExportServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISystemlogV1ExportServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISystemlogV1ExportServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISystemlogV1ExportServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportssearchservicesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportssearchservicesearch.go index fe65bf67..096f43ef 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportssearchservicesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1exportssearchservicesearch.go @@ -18,30 +18,30 @@ type C1APISystemlogV1ExportsSearchServiceSearchResponse struct { RawResponse *http.Response } -func (o *C1APISystemlogV1ExportsSearchServiceSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APISystemlogV1ExportsSearchServiceSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISystemlogV1ExportsSearchServiceSearchResponse) GetExportsSearchServiceSearchResponse() *shared.ExportsSearchServiceSearchResponse { - if o == nil { +func (c *C1APISystemlogV1ExportsSearchServiceSearchResponse) GetExportsSearchServiceSearchResponse() *shared.ExportsSearchServiceSearchResponse { + if c == nil { return nil } - return o.ExportsSearchServiceSearchResponse + return c.ExportsSearchServiceSearchResponse } -func (o *C1APISystemlogV1ExportsSearchServiceSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISystemlogV1ExportsSearchServiceSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISystemlogV1ExportsSearchServiceSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISystemlogV1ExportsSearchServiceSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1systemlogservicelistevents.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1systemlogservicelistevents.go index d9cf2a95..9282ff9c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1systemlogservicelistevents.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apisystemlogv1systemlogservicelistevents.go @@ -18,30 +18,30 @@ type C1APISystemlogV1SystemLogServiceListEventsResponse struct { SystemLogServiceListEventsResponse *shared.SystemLogServiceListEventsResponse } -func (o *C1APISystemlogV1SystemLogServiceListEventsResponse) GetContentType() string { - if o == nil { +func (c *C1APISystemlogV1SystemLogServiceListEventsResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APISystemlogV1SystemLogServiceListEventsResponse) GetStatusCode() int { - if o == nil { +func (c *C1APISystemlogV1SystemLogServiceListEventsResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APISystemlogV1SystemLogServiceListEventsResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APISystemlogV1SystemLogServiceListEventsResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APISystemlogV1SystemLogServiceListEventsResponse) GetSystemLogServiceListEventsResponse() *shared.SystemLogServiceListEventsResponse { - if o == nil { +func (c *C1APISystemlogV1SystemLogServiceListEventsResponse) GetSystemLogServiceListEventsResponse() *shared.SystemLogServiceListEventsResponse { + if c == nil { return nil } - return o.SystemLogServiceListEventsResponse + return c.SystemLogServiceListEventsResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceapprove.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceapprove.go index 891c2d9b..028c8e36 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceapprove.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceapprove.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceApproveRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceApproveRequest) GetTaskActionsServiceApproveRequest() *shared.TaskActionsServiceApproveRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveRequest) GetTaskActionsServiceApproveRequest() *shared.TaskActionsServiceApproveRequest { + if c == nil { return nil } - return o.TaskActionsServiceApproveRequest + return c.TaskActionsServiceApproveRequest } -func (o *C1APITaskV1TaskActionsServiceApproveRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceApproveResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceApproveResponse struct { TaskActionsServiceApproveResponse *shared.TaskActionsServiceApproveResponse } -func (o *C1APITaskV1TaskActionsServiceApproveResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceApproveResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceApproveResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceApproveResponse) GetTaskActionsServiceApproveResponse() *shared.TaskActionsServiceApproveResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveResponse) GetTaskActionsServiceApproveResponse() *shared.TaskActionsServiceApproveResponse { + if c == nil { return nil } - return o.TaskActionsServiceApproveResponse + return c.TaskActionsServiceApproveResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceapprovewithstepup.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceapprovewithstepup.go index fe8e43c5..f385e87d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceapprovewithstepup.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceapprovewithstepup.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceApproveWithStepUpRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceApproveWithStepUpRequest) GetTaskActionsServiceApproveWithStepUpRequest() *shared.TaskActionsServiceApproveWithStepUpRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveWithStepUpRequest) GetTaskActionsServiceApproveWithStepUpRequest() *shared.TaskActionsServiceApproveWithStepUpRequest { + if c == nil { return nil } - return o.TaskActionsServiceApproveWithStepUpRequest + return c.TaskActionsServiceApproveWithStepUpRequest } -func (o *C1APITaskV1TaskActionsServiceApproveWithStepUpRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveWithStepUpRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceApproveWithStepUpResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceApproveWithStepUpResponse struct { TaskActionsServiceApproveWithStepUpResponse *shared.TaskActionsServiceApproveWithStepUpResponse } -func (o *C1APITaskV1TaskActionsServiceApproveWithStepUpResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveWithStepUpResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceApproveWithStepUpResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveWithStepUpResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceApproveWithStepUpResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveWithStepUpResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceApproveWithStepUpResponse) GetTaskActionsServiceApproveWithStepUpResponse() *shared.TaskActionsServiceApproveWithStepUpResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceApproveWithStepUpResponse) GetTaskActionsServiceApproveWithStepUpResponse() *shared.TaskActionsServiceApproveWithStepUpResponse { + if c == nil { return nil } - return o.TaskActionsServiceApproveWithStepUpResponse + return c.TaskActionsServiceApproveWithStepUpResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceclose.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceclose.go index a0d56629..e889c382 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceclose.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceclose.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceCloseRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceCloseRequest) GetTaskActionsServiceCloseRequest() *shared.TaskActionsServiceCloseRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCloseRequest) GetTaskActionsServiceCloseRequest() *shared.TaskActionsServiceCloseRequest { + if c == nil { return nil } - return o.TaskActionsServiceCloseRequest + return c.TaskActionsServiceCloseRequest } -func (o *C1APITaskV1TaskActionsServiceCloseRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCloseRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceCloseResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceCloseResponse struct { TaskActionsServiceCloseResponse *shared.TaskActionsServiceCloseResponse } -func (o *C1APITaskV1TaskActionsServiceCloseResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCloseResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceCloseResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCloseResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceCloseResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCloseResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceCloseResponse) GetTaskActionsServiceCloseResponse() *shared.TaskActionsServiceCloseResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCloseResponse) GetTaskActionsServiceCloseResponse() *shared.TaskActionsServiceCloseResponse { + if c == nil { return nil } - return o.TaskActionsServiceCloseResponse + return c.TaskActionsServiceCloseResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicecomment.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicecomment.go index c55ebcae..aa0bcd90 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicecomment.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicecomment.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceCommentRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceCommentRequest) GetTaskActionsServiceCommentRequest() *shared.TaskActionsServiceCommentRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCommentRequest) GetTaskActionsServiceCommentRequest() *shared.TaskActionsServiceCommentRequest { + if c == nil { return nil } - return o.TaskActionsServiceCommentRequest + return c.TaskActionsServiceCommentRequest } -func (o *C1APITaskV1TaskActionsServiceCommentRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCommentRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceCommentResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceCommentResponse struct { TaskActionsServiceCommentResponse *shared.TaskActionsServiceCommentResponse } -func (o *C1APITaskV1TaskActionsServiceCommentResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCommentResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceCommentResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCommentResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceCommentResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCommentResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceCommentResponse) GetTaskActionsServiceCommentResponse() *shared.TaskActionsServiceCommentResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceCommentResponse) GetTaskActionsServiceCommentResponse() *shared.TaskActionsServiceCommentResponse { + if c == nil { return nil } - return o.TaskActionsServiceCommentResponse + return c.TaskActionsServiceCommentResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicedeny.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicedeny.go index 782b0d55..465be50b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicedeny.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicedeny.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceDenyRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceDenyRequest) GetTaskActionsServiceDenyRequest() *shared.TaskActionsServiceDenyRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceDenyRequest) GetTaskActionsServiceDenyRequest() *shared.TaskActionsServiceDenyRequest { + if c == nil { return nil } - return o.TaskActionsServiceDenyRequest + return c.TaskActionsServiceDenyRequest } -func (o *C1APITaskV1TaskActionsServiceDenyRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceDenyRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceDenyResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceDenyResponse struct { TaskActionsServiceDenyResponse *shared.TaskActionsServiceDenyResponse } -func (o *C1APITaskV1TaskActionsServiceDenyResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceDenyResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceDenyResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceDenyResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceDenyResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceDenyResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceDenyResponse) GetTaskActionsServiceDenyResponse() *shared.TaskActionsServiceDenyResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceDenyResponse) GetTaskActionsServiceDenyResponse() *shared.TaskActionsServiceDenyResponse { + if c == nil { return nil } - return o.TaskActionsServiceDenyResponse + return c.TaskActionsServiceDenyResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceescalatetoemergencyaccess.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceescalatetoemergencyaccess.go index 7cedfe5a..23ae2191 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceescalatetoemergencyaccess.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceescalatetoemergencyaccess.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessRequest) GetTaskActionsServiceEscalateToEmergencyAccessRequest() *shared.TaskActionsServiceEscalateToEmergencyAccessRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessRequest) GetTaskActionsServiceEscalateToEmergencyAccessRequest() *shared.TaskActionsServiceEscalateToEmergencyAccessRequest { + if c == nil { return nil } - return o.TaskActionsServiceEscalateToEmergencyAccessRequest + return c.TaskActionsServiceEscalateToEmergencyAccessRequest } -func (o *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse struct { TaskServiceActionResponse *shared.TaskServiceActionResponse } -func (o *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse) GetTaskServiceActionResponse() *shared.TaskServiceActionResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceEscalateToEmergencyAccessResponse) GetTaskServiceActionResponse() *shared.TaskServiceActionResponse { + if c == nil { return nil } - return o.TaskServiceActionResponse + return c.TaskServiceActionResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicehardreset.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicehardreset.go index c93e5fcb..f207a362 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicehardreset.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicehardreset.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceHardResetRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceHardResetRequest) GetTaskActionsServiceHardResetRequest() *shared.TaskActionsServiceHardResetRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceHardResetRequest) GetTaskActionsServiceHardResetRequest() *shared.TaskActionsServiceHardResetRequest { + if c == nil { return nil } - return o.TaskActionsServiceHardResetRequest + return c.TaskActionsServiceHardResetRequest } -func (o *C1APITaskV1TaskActionsServiceHardResetRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceHardResetRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceHardResetResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceHardResetResponse struct { TaskActionsServiceHardResetResponse *shared.TaskActionsServiceHardResetResponse } -func (o *C1APITaskV1TaskActionsServiceHardResetResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceHardResetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceHardResetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceHardResetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceHardResetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceHardResetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceHardResetResponse) GetTaskActionsServiceHardResetResponse() *shared.TaskActionsServiceHardResetResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceHardResetResponse) GetTaskActionsServiceHardResetResponse() *shared.TaskActionsServiceHardResetResponse { + if c == nil { return nil } - return o.TaskActionsServiceHardResetResponse + return c.TaskActionsServiceHardResetResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceprocessnow.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceprocessnow.go index a6dc9303..56120b5f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceprocessnow.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceprocessnow.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceProcessNowRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceProcessNowRequest) GetTaskActionsServiceProcessNowRequest() *shared.TaskActionsServiceProcessNowRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceProcessNowRequest) GetTaskActionsServiceProcessNowRequest() *shared.TaskActionsServiceProcessNowRequest { + if c == nil { return nil } - return o.TaskActionsServiceProcessNowRequest + return c.TaskActionsServiceProcessNowRequest } -func (o *C1APITaskV1TaskActionsServiceProcessNowRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceProcessNowRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceProcessNowResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceProcessNowResponse struct { TaskActionsServiceProcessNowResponse *shared.TaskActionsServiceProcessNowResponse } -func (o *C1APITaskV1TaskActionsServiceProcessNowResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceProcessNowResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceProcessNowResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceProcessNowResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceProcessNowResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceProcessNowResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceProcessNowResponse) GetTaskActionsServiceProcessNowResponse() *shared.TaskActionsServiceProcessNowResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceProcessNowResponse) GetTaskActionsServiceProcessNowResponse() *shared.TaskActionsServiceProcessNowResponse { + if c == nil { return nil } - return o.TaskActionsServiceProcessNowResponse + return c.TaskActionsServiceProcessNowResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicereassign.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicereassign.go index 2cc39b46..d859a72f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicereassign.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicereassign.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceReassignRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceReassignRequest) GetTaskActionsServiceReassignRequest() *shared.TaskActionsServiceReassignRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceReassignRequest) GetTaskActionsServiceReassignRequest() *shared.TaskActionsServiceReassignRequest { + if c == nil { return nil } - return o.TaskActionsServiceReassignRequest + return c.TaskActionsServiceReassignRequest } -func (o *C1APITaskV1TaskActionsServiceReassignRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceReassignRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceReassignResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceReassignResponse struct { TaskActionsServiceReassignResponse *shared.TaskActionsServiceReassignResponse } -func (o *C1APITaskV1TaskActionsServiceReassignResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceReassignResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceReassignResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceReassignResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceReassignResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceReassignResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceReassignResponse) GetTaskActionsServiceReassignResponse() *shared.TaskActionsServiceReassignResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceReassignResponse) GetTaskActionsServiceReassignResponse() *shared.TaskActionsServiceReassignResponse { + if c == nil { return nil } - return o.TaskActionsServiceReassignResponse + return c.TaskActionsServiceReassignResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicerestart.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicerestart.go index 8285dae3..3fad13c1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicerestart.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsservicerestart.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceRestartRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceRestartRequest) GetTaskActionsServiceRestartRequest() *shared.TaskActionsServiceRestartRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceRestartRequest) GetTaskActionsServiceRestartRequest() *shared.TaskActionsServiceRestartRequest { + if c == nil { return nil } - return o.TaskActionsServiceRestartRequest + return c.TaskActionsServiceRestartRequest } -func (o *C1APITaskV1TaskActionsServiceRestartRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceRestartRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceRestartResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceRestartResponse struct { TaskActionsServiceRestartResponse *shared.TaskActionsServiceRestartResponse } -func (o *C1APITaskV1TaskActionsServiceRestartResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceRestartResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceRestartResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceRestartResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceRestartResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceRestartResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceRestartResponse) GetTaskActionsServiceRestartResponse() *shared.TaskActionsServiceRestartResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceRestartResponse) GetTaskActionsServiceRestartResponse() *shared.TaskActionsServiceRestartResponse { + if c == nil { return nil } - return o.TaskActionsServiceRestartResponse + return c.TaskActionsServiceRestartResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceskipstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceskipstep.go index a8799a6d..e5e0bb81 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceskipstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceskipstep.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceSkipStepRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceSkipStepRequest) GetTaskActionsServiceSkipStepRequest() *shared.TaskActionsServiceSkipStepRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceSkipStepRequest) GetTaskActionsServiceSkipStepRequest() *shared.TaskActionsServiceSkipStepRequest { + if c == nil { return nil } - return o.TaskActionsServiceSkipStepRequest + return c.TaskActionsServiceSkipStepRequest } -func (o *C1APITaskV1TaskActionsServiceSkipStepRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceSkipStepRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceSkipStepResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceSkipStepResponse struct { TaskServiceActionResponse *shared.TaskServiceActionResponse } -func (o *C1APITaskV1TaskActionsServiceSkipStepResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceSkipStepResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceSkipStepResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceSkipStepResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceSkipStepResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceSkipStepResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceSkipStepResponse) GetTaskServiceActionResponse() *shared.TaskServiceActionResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceSkipStepResponse) GetTaskServiceActionResponse() *shared.TaskServiceActionResponse { + if c == nil { return nil } - return o.TaskServiceActionResponse + return c.TaskServiceActionResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceupdategrantduration.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceupdategrantduration.go index 9d33d0d0..0530db32 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceupdategrantduration.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceupdategrantduration.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceUpdateGrantDurationRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceUpdateGrantDurationRequest) GetTaskActionsServiceUpdateGrantDurationRequest() *shared.TaskActionsServiceUpdateGrantDurationRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateGrantDurationRequest) GetTaskActionsServiceUpdateGrantDurationRequest() *shared.TaskActionsServiceUpdateGrantDurationRequest { + if c == nil { return nil } - return o.TaskActionsServiceUpdateGrantDurationRequest + return c.TaskActionsServiceUpdateGrantDurationRequest } -func (o *C1APITaskV1TaskActionsServiceUpdateGrantDurationRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateGrantDurationRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse struct { TaskServiceActionResponse *shared.TaskServiceActionResponse } -func (o *C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse) GetTaskServiceActionResponse() *shared.TaskServiceActionResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateGrantDurationResponse) GetTaskServiceActionResponse() *shared.TaskServiceActionResponse { + if c == nil { return nil } - return o.TaskServiceActionResponse + return c.TaskServiceActionResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceupdaterequestdata.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceupdaterequestdata.go index a54dc314..13032df4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceupdaterequestdata.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskactionsserviceupdaterequestdata.go @@ -12,18 +12,18 @@ type C1APITaskV1TaskActionsServiceUpdateRequestDataRequest struct { TaskID string `pathParam:"style=simple,explode=false,name=task_id"` } -func (o *C1APITaskV1TaskActionsServiceUpdateRequestDataRequest) GetTaskActionsServiceUpdateRequestDataRequest() *shared.TaskActionsServiceUpdateRequestDataRequest { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateRequestDataRequest) GetTaskActionsServiceUpdateRequestDataRequest() *shared.TaskActionsServiceUpdateRequestDataRequest { + if c == nil { return nil } - return o.TaskActionsServiceUpdateRequestDataRequest + return c.TaskActionsServiceUpdateRequestDataRequest } -func (o *C1APITaskV1TaskActionsServiceUpdateRequestDataRequest) GetTaskID() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateRequestDataRequest) GetTaskID() string { + if c == nil { return "" } - return o.TaskID + return c.TaskID } type C1APITaskV1TaskActionsServiceUpdateRequestDataResponse struct { @@ -37,30 +37,30 @@ type C1APITaskV1TaskActionsServiceUpdateRequestDataResponse struct { TaskServiceActionResponse *shared.TaskServiceActionResponse } -func (o *C1APITaskV1TaskActionsServiceUpdateRequestDataResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateRequestDataResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskActionsServiceUpdateRequestDataResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateRequestDataResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskActionsServiceUpdateRequestDataResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateRequestDataResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskActionsServiceUpdateRequestDataResponse) GetTaskServiceActionResponse() *shared.TaskServiceActionResponse { - if o == nil { +func (c *C1APITaskV1TaskActionsServiceUpdateRequestDataResponse) GetTaskServiceActionResponse() *shared.TaskServiceActionResponse { + if c == nil { return nil } - return o.TaskServiceActionResponse + return c.TaskServiceActionResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskauditlist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskauditlist.go index da622459..db30aaba 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskauditlist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskauditlist.go @@ -18,30 +18,30 @@ type C1APITaskV1TaskAuditListResponse struct { TaskAuditListResponse *shared.TaskAuditListResponse } -func (o *C1APITaskV1TaskAuditListResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskAuditListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskAuditListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskAuditListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskAuditListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskAuditListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskAuditListResponse) GetTaskAuditListResponse() *shared.TaskAuditListResponse { - if o == nil { +func (c *C1APITaskV1TaskAuditListResponse) GetTaskAuditListResponse() *shared.TaskAuditListResponse { + if c == nil { return nil } - return o.TaskAuditListResponse + return c.TaskAuditListResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1tasksearchservicesearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1tasksearchservicesearch.go index 92e46ccb..383faa18 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1tasksearchservicesearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1tasksearchservicesearch.go @@ -18,30 +18,30 @@ type C1APITaskV1TaskSearchServiceSearchResponse struct { TaskSearchResponse *shared.TaskSearchResponse } -func (o *C1APITaskV1TaskSearchServiceSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskSearchServiceSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskSearchServiceSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskSearchServiceSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskSearchServiceSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskSearchServiceSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskSearchServiceSearchResponse) GetTaskSearchResponse() *shared.TaskSearchResponse { - if o == nil { +func (c *C1APITaskV1TaskSearchServiceSearchResponse) GetTaskSearchResponse() *shared.TaskSearchResponse { + if c == nil { return nil } - return o.TaskSearchResponse + return c.TaskSearchResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreategranttask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreategranttask.go index 3688e5ba..d6355b99 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreategranttask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreategranttask.go @@ -18,30 +18,30 @@ type C1APITaskV1TaskServiceCreateGrantTaskResponse struct { TaskServiceCreateGrantResponse *shared.TaskServiceCreateGrantResponse } -func (o *C1APITaskV1TaskServiceCreateGrantTaskResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateGrantTaskResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskServiceCreateGrantTaskResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateGrantTaskResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskServiceCreateGrantTaskResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateGrantTaskResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskServiceCreateGrantTaskResponse) GetTaskServiceCreateGrantResponse() *shared.TaskServiceCreateGrantResponse { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateGrantTaskResponse) GetTaskServiceCreateGrantResponse() *shared.TaskServiceCreateGrantResponse { + if c == nil { return nil } - return o.TaskServiceCreateGrantResponse + return c.TaskServiceCreateGrantResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreateoffboardingtask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreateoffboardingtask.go index 42388d6a..2dd4580b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreateoffboardingtask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreateoffboardingtask.go @@ -18,30 +18,30 @@ type C1APITaskV1TaskServiceCreateOffboardingTaskResponse struct { TaskServiceCreateOffboardingResponse *shared.TaskServiceCreateOffboardingResponse } -func (o *C1APITaskV1TaskServiceCreateOffboardingTaskResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateOffboardingTaskResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskServiceCreateOffboardingTaskResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateOffboardingTaskResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskServiceCreateOffboardingTaskResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateOffboardingTaskResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskServiceCreateOffboardingTaskResponse) GetTaskServiceCreateOffboardingResponse() *shared.TaskServiceCreateOffboardingResponse { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateOffboardingTaskResponse) GetTaskServiceCreateOffboardingResponse() *shared.TaskServiceCreateOffboardingResponse { + if c == nil { return nil } - return o.TaskServiceCreateOffboardingResponse + return c.TaskServiceCreateOffboardingResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreaterevoketask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreaterevoketask.go index 147b02dc..94c345c9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreaterevoketask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskservicecreaterevoketask.go @@ -18,30 +18,30 @@ type C1APITaskV1TaskServiceCreateRevokeTaskResponse struct { TaskServiceCreateRevokeResponse *shared.TaskServiceCreateRevokeResponse } -func (o *C1APITaskV1TaskServiceCreateRevokeTaskResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateRevokeTaskResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskServiceCreateRevokeTaskResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateRevokeTaskResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskServiceCreateRevokeTaskResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateRevokeTaskResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskServiceCreateRevokeTaskResponse) GetTaskServiceCreateRevokeResponse() *shared.TaskServiceCreateRevokeResponse { - if o == nil { +func (c *C1APITaskV1TaskServiceCreateRevokeTaskResponse) GetTaskServiceCreateRevokeResponse() *shared.TaskServiceCreateRevokeResponse { + if c == nil { return nil } - return o.TaskServiceCreateRevokeResponse + return c.TaskServiceCreateRevokeResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskserviceget.go index 92b935c7..92e36e4e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apitaskv1taskserviceget.go @@ -11,11 +11,11 @@ type C1APITaskV1TaskServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APITaskV1TaskServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APITaskV1TaskServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APITaskV1TaskServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APITaskV1TaskServiceGetResponse struct { TaskServiceGetResponse *shared.TaskServiceGetResponse } -func (o *C1APITaskV1TaskServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APITaskV1TaskServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APITaskV1TaskServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APITaskV1TaskServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APITaskV1TaskServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APITaskV1TaskServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APITaskV1TaskServiceGetResponse) GetTaskServiceGetResponse() *shared.TaskServiceGetResponse { - if o == nil { +func (c *C1APITaskV1TaskServiceGetResponse) GetTaskServiceGetResponse() *shared.TaskServiceGetResponse { + if c == nil { return nil } - return o.TaskServiceGetResponse + return c.TaskServiceGetResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1usersearchsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1usersearchsearch.go index 10a6303a..4d01270d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1usersearchsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1usersearchsearch.go @@ -16,32 +16,34 @@ type C1APIUserV1UserSearchSearchResponse struct { StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response + + Next func() (*C1APIUserV1UserSearchSearchResponse, error) } -func (o *C1APIUserV1UserSearchSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIUserV1UserSearchSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIUserV1UserSearchSearchResponse) GetSearchUsersResponse() *shared.SearchUsersResponse { - if o == nil { +func (c *C1APIUserV1UserSearchSearchResponse) GetSearchUsersResponse() *shared.SearchUsersResponse { + if c == nil { return nil } - return o.SearchUsersResponse + return c.SearchUsersResponse } -func (o *C1APIUserV1UserSearchSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIUserV1UserSearchSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIUserV1UserSearchSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIUserV1UserSearchSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userserviceget.go index e876619a..3de1f2d2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userserviceget.go @@ -11,11 +11,11 @@ type C1APIUserV1UserServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIUserV1UserServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIUserV1UserServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIUserV1UserServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APIUserV1UserServiceGetResponse struct { UserServiceGetResponse *shared.UserServiceGetResponse } -func (o *C1APIUserV1UserServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIUserV1UserServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIUserV1UserServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIUserV1UserServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIUserV1UserServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIUserV1UserServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIUserV1UserServiceGetResponse) GetUserServiceGetResponse() *shared.UserServiceGetResponse { - if o == nil { +func (c *C1APIUserV1UserServiceGetResponse) GetUserServiceGetResponse() *shared.UserServiceGetResponse { + if c == nil { return nil } - return o.UserServiceGetResponse + return c.UserServiceGetResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicegetuserprofiletypes.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicegetuserprofiletypes.go new file mode 100644 index 00000000..9e4d2a4e --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicegetuserprofiletypes.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIUserV1UserServiceGetUserProfileTypesRequest struct { + UserID string `pathParam:"style=simple,explode=false,name=user_id"` +} + +func (c *C1APIUserV1UserServiceGetUserProfileTypesRequest) GetUserID() string { + if c == nil { + return "" + } + return c.UserID +} + +type C1APIUserV1UserServiceGetUserProfileTypesResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + GetUserProfileTypesResponse *shared.GetUserProfileTypesResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIUserV1UserServiceGetUserProfileTypesResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIUserV1UserServiceGetUserProfileTypesResponse) GetGetUserProfileTypesResponse() *shared.GetUserProfileTypesResponse { + if c == nil { + return nil + } + return c.GetUserProfileTypesResponse +} + +func (c *C1APIUserV1UserServiceGetUserProfileTypesResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIUserV1UserServiceGetUserProfileTypesResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicelist.go index 9b1a18a9..f1875043 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicelist.go @@ -12,18 +12,18 @@ type C1APIUserV1UserServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIUserV1UserServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIUserV1UserServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIUserV1UserServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIUserV1UserServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIUserV1UserServiceListResponse struct { @@ -37,30 +37,30 @@ type C1APIUserV1UserServiceListResponse struct { UserServiceListResponse *shared.UserServiceListResponse } -func (o *C1APIUserV1UserServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIUserV1UserServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIUserV1UserServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIUserV1UserServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIUserV1UserServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIUserV1UserServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIUserV1UserServiceListResponse) GetUserServiceListResponse() *shared.UserServiceListResponse { - if o == nil { +func (c *C1APIUserV1UserServiceListResponse) GetUserServiceListResponse() *shared.UserServiceListResponse { + if c == nil { return nil } - return o.UserServiceListResponse + return c.UserServiceListResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicesetexpiringuserdelegationbindingbyadmin.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicesetexpiringuserdelegationbindingbyadmin.go new file mode 100644 index 00000000..290ed124 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiuserv1userservicesetexpiringuserdelegationbindingbyadmin.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminRequest struct { + SetExpiringUserDelegationBindingByAdminRequest *shared.SetExpiringUserDelegationBindingByAdminRequest `request:"mediaType=application/json"` + UserID string `pathParam:"style=simple,explode=false,name=user_id"` +} + +func (c *C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminRequest) GetSetExpiringUserDelegationBindingByAdminRequest() *shared.SetExpiringUserDelegationBindingByAdminRequest { + if c == nil { + return nil + } + return c.SetExpiringUserDelegationBindingByAdminRequest +} + +func (c *C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminRequest) GetUserID() string { + if c == nil { + return "" + } + return c.UserID +} + +type C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminResponse struct { + // HTTP response content type for this operation + ContentType string + // Successful response + SetExpiringUserDelegationBindingByAdminResponse *shared.SetExpiringUserDelegationBindingByAdminResponse + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (c *C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminResponse) GetSetExpiringUserDelegationBindingByAdminResponse() *shared.SetExpiringUserDelegationBindingByAdminResponse { + if c == nil { + return nil + } + return c.SetExpiringUserDelegationBindingByAdminResponse +} + +func (c *C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultservicecreate.go new file mode 100644 index 00000000..798f0cfb --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultservicecreate.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIVaultV1VaultServiceCreateResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // Successful response + VaultServiceCreateResponse *shared.VaultServiceCreateResponse +} + +func (c *C1APIVaultV1VaultServiceCreateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIVaultV1VaultServiceCreateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIVaultV1VaultServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} + +func (c *C1APIVaultV1VaultServiceCreateResponse) GetVaultServiceCreateResponse() *shared.VaultServiceCreateResponse { + if c == nil { + return nil + } + return c.VaultServiceCreateResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultservicedelete.go new file mode 100644 index 00000000..8e0b1737 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultservicedelete.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIVaultV1VaultServiceDeleteRequest struct { + VaultServiceDeleteRequest *shared.VaultServiceDeleteRequest `request:"mediaType=application/json"` + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIVaultV1VaultServiceDeleteRequest) GetVaultServiceDeleteRequest() *shared.VaultServiceDeleteRequest { + if c == nil { + return nil + } + return c.VaultServiceDeleteRequest +} + +func (c *C1APIVaultV1VaultServiceDeleteRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIVaultV1VaultServiceDeleteResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // Empty response body. Status code indicates success. + VaultServiceDeleteResponse *shared.VaultServiceDeleteResponse +} + +func (c *C1APIVaultV1VaultServiceDeleteResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIVaultV1VaultServiceDeleteResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIVaultV1VaultServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} + +func (c *C1APIVaultV1VaultServiceDeleteResponse) GetVaultServiceDeleteResponse() *shared.VaultServiceDeleteResponse { + if c == nil { + return nil + } + return c.VaultServiceDeleteResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultserviceget.go new file mode 100644 index 00000000..ad2341c6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultserviceget.go @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIVaultV1VaultServiceGetRequest struct { + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIVaultV1VaultServiceGetRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIVaultV1VaultServiceGetResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // Successful response + VaultServiceGetResponse *shared.VaultServiceGetResponse +} + +func (c *C1APIVaultV1VaultServiceGetResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIVaultV1VaultServiceGetResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIVaultV1VaultServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} + +func (c *C1APIVaultV1VaultServiceGetResponse) GetVaultServiceGetResponse() *shared.VaultServiceGetResponse { + if c == nil { + return nil + } + return c.VaultServiceGetResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultserviceupdate.go new file mode 100644 index 00000000..80e1a365 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apivaultv1vaultserviceupdate.go @@ -0,0 +1,66 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "net/http" +) + +type C1APIVaultV1VaultServiceUpdateRequest struct { + VaultServiceUpdateRequest *shared.VaultServiceUpdateRequest `request:"mediaType=application/json"` + ID string `pathParam:"style=simple,explode=false,name=id"` +} + +func (c *C1APIVaultV1VaultServiceUpdateRequest) GetVaultServiceUpdateRequest() *shared.VaultServiceUpdateRequest { + if c == nil { + return nil + } + return c.VaultServiceUpdateRequest +} + +func (c *C1APIVaultV1VaultServiceUpdateRequest) GetID() string { + if c == nil { + return "" + } + return c.ID +} + +type C1APIVaultV1VaultServiceUpdateResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // Successful response + VaultServiceUpdateResponse *shared.VaultServiceUpdateResponse +} + +func (c *C1APIVaultV1VaultServiceUpdateResponse) GetContentType() string { + if c == nil { + return "" + } + return c.ContentType +} + +func (c *C1APIVaultV1VaultServiceUpdateResponse) GetStatusCode() int { + if c == nil { + return 0 + } + return c.StatusCode +} + +func (c *C1APIVaultV1VaultServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { + return nil + } + return c.RawResponse +} + +func (c *C1APIVaultV1VaultServiceUpdateResponse) GetVaultServiceUpdateResponse() *shared.VaultServiceUpdateResponse { + if c == nil { + return nil + } + return c.VaultServiceUpdateResponse +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhookssearchsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhookssearchsearch.go index fc3839d1..0b953987 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhookssearchsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhookssearchsearch.go @@ -16,32 +16,34 @@ type C1APIWebhooksV1WebhooksSearchSearchResponse struct { RawResponse *http.Response // Successful response WebhooksSearchResponse *shared.WebhooksSearchResponse + + Next func() (*C1APIWebhooksV1WebhooksSearchSearchResponse, error) } -func (o *C1APIWebhooksV1WebhooksSearchSearchResponse) GetContentType() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksSearchSearchResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIWebhooksV1WebhooksSearchSearchResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIWebhooksV1WebhooksSearchSearchResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIWebhooksV1WebhooksSearchSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIWebhooksV1WebhooksSearchSearchResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIWebhooksV1WebhooksSearchSearchResponse) GetWebhooksSearchResponse() *shared.WebhooksSearchResponse { - if o == nil { +func (c *C1APIWebhooksV1WebhooksSearchSearchResponse) GetWebhooksSearchResponse() *shared.WebhooksSearchResponse { + if c == nil { return nil } - return o.WebhooksSearchResponse + return c.WebhooksSearchResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicecreate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicecreate.go index 1e55b542..d2dcf760 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicecreate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicecreate.go @@ -18,30 +18,30 @@ type C1APIWebhooksV1WebhooksServiceCreateResponse struct { WebhooksServiceCreateResponse *shared.WebhooksServiceCreateResponse } -func (o *C1APIWebhooksV1WebhooksServiceCreateResponse) GetContentType() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceCreateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIWebhooksV1WebhooksServiceCreateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceCreateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIWebhooksV1WebhooksServiceCreateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceCreateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIWebhooksV1WebhooksServiceCreateResponse) GetWebhooksServiceCreateResponse() *shared.WebhooksServiceCreateResponse { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceCreateResponse) GetWebhooksServiceCreateResponse() *shared.WebhooksServiceCreateResponse { + if c == nil { return nil } - return o.WebhooksServiceCreateResponse + return c.WebhooksServiceCreateResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicedelete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicedelete.go index 7676b0a7..61ec5a63 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicedelete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicedelete.go @@ -12,18 +12,18 @@ type C1APIWebhooksV1WebhooksServiceDeleteRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIWebhooksV1WebhooksServiceDeleteRequest) GetWebhooksServiceDeleteRequest() *shared.WebhooksServiceDeleteRequest { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceDeleteRequest) GetWebhooksServiceDeleteRequest() *shared.WebhooksServiceDeleteRequest { + if c == nil { return nil } - return o.WebhooksServiceDeleteRequest + return c.WebhooksServiceDeleteRequest } -func (o *C1APIWebhooksV1WebhooksServiceDeleteRequest) GetID() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceDeleteRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIWebhooksV1WebhooksServiceDeleteResponse struct { @@ -37,30 +37,30 @@ type C1APIWebhooksV1WebhooksServiceDeleteResponse struct { WebhooksServiceDeleteResponse *shared.WebhooksServiceDeleteResponse } -func (o *C1APIWebhooksV1WebhooksServiceDeleteResponse) GetContentType() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceDeleteResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIWebhooksV1WebhooksServiceDeleteResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceDeleteResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIWebhooksV1WebhooksServiceDeleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceDeleteResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIWebhooksV1WebhooksServiceDeleteResponse) GetWebhooksServiceDeleteResponse() *shared.WebhooksServiceDeleteResponse { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceDeleteResponse) GetWebhooksServiceDeleteResponse() *shared.WebhooksServiceDeleteResponse { + if c == nil { return nil } - return o.WebhooksServiceDeleteResponse + return c.WebhooksServiceDeleteResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksserviceget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksserviceget.go index ac395029..62fbf438 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksserviceget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksserviceget.go @@ -11,11 +11,11 @@ type C1APIWebhooksV1WebhooksServiceGetRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIWebhooksV1WebhooksServiceGetRequest) GetID() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceGetRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIWebhooksV1WebhooksServiceGetResponse struct { @@ -29,30 +29,30 @@ type C1APIWebhooksV1WebhooksServiceGetResponse struct { WebhooksServiceGetResponse *shared.WebhooksServiceGetResponse } -func (o *C1APIWebhooksV1WebhooksServiceGetResponse) GetContentType() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceGetResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIWebhooksV1WebhooksServiceGetResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceGetResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIWebhooksV1WebhooksServiceGetResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceGetResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIWebhooksV1WebhooksServiceGetResponse) GetWebhooksServiceGetResponse() *shared.WebhooksServiceGetResponse { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceGetResponse) GetWebhooksServiceGetResponse() *shared.WebhooksServiceGetResponse { + if c == nil { return nil } - return o.WebhooksServiceGetResponse + return c.WebhooksServiceGetResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicelist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicelist.go index de14a3f8..0ad4a1bc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicelist.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicelist.go @@ -12,18 +12,18 @@ type C1APIWebhooksV1WebhooksServiceListRequest struct { PageToken *string `queryParam:"style=form,explode=true,name=page_token"` } -func (o *C1APIWebhooksV1WebhooksServiceListRequest) GetPageSize() *int { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceListRequest) GetPageSize() *int { + if c == nil { return nil } - return o.PageSize + return c.PageSize } -func (o *C1APIWebhooksV1WebhooksServiceListRequest) GetPageToken() *string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceListRequest) GetPageToken() *string { + if c == nil { return nil } - return o.PageToken + return c.PageToken } type C1APIWebhooksV1WebhooksServiceListResponse struct { @@ -37,30 +37,30 @@ type C1APIWebhooksV1WebhooksServiceListResponse struct { WebhooksServiceListResponse *shared.WebhooksServiceListResponse } -func (o *C1APIWebhooksV1WebhooksServiceListResponse) GetContentType() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceListResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIWebhooksV1WebhooksServiceListResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceListResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIWebhooksV1WebhooksServiceListResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceListResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIWebhooksV1WebhooksServiceListResponse) GetWebhooksServiceListResponse() *shared.WebhooksServiceListResponse { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceListResponse) GetWebhooksServiceListResponse() *shared.WebhooksServiceListResponse { + if c == nil { return nil } - return o.WebhooksServiceListResponse + return c.WebhooksServiceListResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicetest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicetest.go index e5d33daa..2cfe6aea 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicetest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksservicetest.go @@ -12,18 +12,18 @@ type C1APIWebhooksV1WebhooksServiceTestRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIWebhooksV1WebhooksServiceTestRequest) GetWebhooksServiceTestRequest() *shared.WebhooksServiceTestRequest { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceTestRequest) GetWebhooksServiceTestRequest() *shared.WebhooksServiceTestRequest { + if c == nil { return nil } - return o.WebhooksServiceTestRequest + return c.WebhooksServiceTestRequest } -func (o *C1APIWebhooksV1WebhooksServiceTestRequest) GetID() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceTestRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIWebhooksV1WebhooksServiceTestResponse struct { @@ -37,30 +37,30 @@ type C1APIWebhooksV1WebhooksServiceTestResponse struct { WebhooksServiceTestResponse *shared.WebhooksServiceTestResponse } -func (o *C1APIWebhooksV1WebhooksServiceTestResponse) GetContentType() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceTestResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIWebhooksV1WebhooksServiceTestResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceTestResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIWebhooksV1WebhooksServiceTestResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceTestResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIWebhooksV1WebhooksServiceTestResponse) GetWebhooksServiceTestResponse() *shared.WebhooksServiceTestResponse { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceTestResponse) GetWebhooksServiceTestResponse() *shared.WebhooksServiceTestResponse { + if c == nil { return nil } - return o.WebhooksServiceTestResponse + return c.WebhooksServiceTestResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksserviceupdate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksserviceupdate.go index b61e5252..7c9e61b1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksserviceupdate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/operations/c1apiwebhooksv1webhooksserviceupdate.go @@ -12,18 +12,18 @@ type C1APIWebhooksV1WebhooksServiceUpdateRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *C1APIWebhooksV1WebhooksServiceUpdateRequest) GetWebhooksServiceUpdateRequest() *shared.WebhooksServiceUpdateRequest { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceUpdateRequest) GetWebhooksServiceUpdateRequest() *shared.WebhooksServiceUpdateRequest { + if c == nil { return nil } - return o.WebhooksServiceUpdateRequest + return c.WebhooksServiceUpdateRequest } -func (o *C1APIWebhooksV1WebhooksServiceUpdateRequest) GetID() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceUpdateRequest) GetID() string { + if c == nil { return "" } - return o.ID + return c.ID } type C1APIWebhooksV1WebhooksServiceUpdateResponse struct { @@ -37,30 +37,30 @@ type C1APIWebhooksV1WebhooksServiceUpdateResponse struct { WebhooksServiceUpdateResponse *shared.WebhooksServiceUpdateResponse } -func (o *C1APIWebhooksV1WebhooksServiceUpdateResponse) GetContentType() string { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceUpdateResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *C1APIWebhooksV1WebhooksServiceUpdateResponse) GetStatusCode() int { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceUpdateResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *C1APIWebhooksV1WebhooksServiceUpdateResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceUpdateResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *C1APIWebhooksV1WebhooksServiceUpdateResponse) GetWebhooksServiceUpdateResponse() *shared.WebhooksServiceUpdateResponse { - if o == nil { +func (c *C1APIWebhooksV1WebhooksServiceUpdateResponse) GetWebhooksServiceUpdateResponse() *shared.WebhooksServiceUpdateResponse { + if c == nil { return nil } - return o.WebhooksServiceUpdateResponse + return c.WebhooksServiceUpdateResponse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accept.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accept.go index 2572fdf7..fc9bd5ef 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accept.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accept.go @@ -8,9 +8,9 @@ type Accept struct { AcceptMessage *string `json:"acceptMessage,omitempty"` } -func (o *Accept) GetAcceptMessage() *string { - if o == nil { +func (a *Accept) GetAcceptMessage() *string { + if a == nil { return nil } - return o.AcceptMessage + return a.AcceptMessage } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/acceptinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/acceptinstance.go index c48549cc..053cb098 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/acceptinstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/acceptinstance.go @@ -10,9 +10,9 @@ type AcceptInstance struct { AcceptMessage *string `json:"acceptMessage,omitempty"` } -func (o *AcceptInstance) GetAcceptMessage() *string { - if o == nil { +func (a *AcceptInstance) GetAcceptMessage() *string { + if a == nil { return nil } - return o.AcceptMessage + return a.AcceptMessage } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessconflicttrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessconflicttrigger.go new file mode 100644 index 00000000..c5ad6e5c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessconflicttrigger.go @@ -0,0 +1,31 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessConflictTrigger message. +// +// This message contains a oneof named conflict_monitor_selector. Only a single field of the following list may be set at a time: +// - conflictMonitorRefs +// - allConflictMonitors +type AccessConflictTrigger struct { + // The ConflictMonitorRefs message. + ConflictMonitorRefs *ConflictMonitorRefs `json:"conflictMonitorRefs,omitempty"` + // The allConflictMonitors field. + // This field is part of the `conflict_monitor_selector` oneof. + // See the documentation for `c1.api.automations.v1.AccessConflictTrigger` for more details. + AllConflictMonitors *bool `json:"allConflictMonitors,omitempty"` +} + +func (a *AccessConflictTrigger) GetConflictMonitorRefs() *ConflictMonitorRefs { + if a == nil { + return nil + } + return a.ConflictMonitorRefs +} + +func (a *AccessConflictTrigger) GetAllConflictMonitors() *bool { + if a == nil { + return nil + } + return a.AllConflictMonitors +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreview.go new file mode 100644 index 00000000..3c58ea6f --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreview.go @@ -0,0 +1,741 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// DefaultView - the default view that reviewers will see when they complete their access reviews +type DefaultView string + +const ( + DefaultViewAccessReviewViewTypeUnspecified DefaultView = "ACCESS_REVIEW_VIEW_TYPE_UNSPECIFIED" + DefaultViewAccessReviewViewTypeByApp DefaultView = "ACCESS_REVIEW_VIEW_TYPE_BY_APP" + DefaultViewAccessReviewViewTypeByUser DefaultView = "ACCESS_REVIEW_VIEW_TYPE_BY_USER" + DefaultViewAccessReviewViewTypeUnstructured DefaultView = "ACCESS_REVIEW_VIEW_TYPE_UNSTRUCTURED" +) + +func (e DefaultView) ToPointer() *DefaultView { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *DefaultView) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_REVIEW_VIEW_TYPE_UNSPECIFIED", "ACCESS_REVIEW_VIEW_TYPE_BY_APP", "ACCESS_REVIEW_VIEW_TYPE_BY_USER", "ACCESS_REVIEW_VIEW_TYPE_UNSTRUCTURED": + return true + } + } + return false +} + +// ScopeType - this sets the scope type for the access review +type ScopeType string + +const ( + ScopeTypeAccessReviewScopeTypeUnspecified ScopeType = "ACCESS_REVIEW_SCOPE_TYPE_UNSPECIFIED" + ScopeTypeAccessReviewScopeTypeByEntitlements ScopeType = "ACCESS_REVIEW_SCOPE_TYPE_BY_ENTITLEMENTS" + ScopeTypeAccessReviewScopeTypeByAccessConflicts ScopeType = "ACCESS_REVIEW_SCOPE_TYPE_BY_ACCESS_CONFLICTS" +) + +func (e ScopeType) ToPointer() *ScopeType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ScopeType) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_REVIEW_SCOPE_TYPE_UNSPECIFIED", "ACCESS_REVIEW_SCOPE_TYPE_BY_ENTITLEMENTS", "ACCESS_REVIEW_SCOPE_TYPE_BY_ACCESS_CONFLICTS": + return true + } + } + return false +} + +// State - The state field. +type State string + +const ( + StateAccessReviewStateUnspecified State = "ACCESS_REVIEW_STATE_UNSPECIFIED" + StateAccessReviewStateOpen State = "ACCESS_REVIEW_STATE_OPEN" + StateAccessReviewStateClosed State = "ACCESS_REVIEW_STATE_CLOSED" + StateAccessReviewStatePending State = "ACCESS_REVIEW_STATE_PENDING" + StateAccessReviewStateReview State = "ACCESS_REVIEW_STATE_REVIEW" + StateAccessReviewStatePreparing State = "ACCESS_REVIEW_STATE_PREPARING" + StateAccessReviewStateStarting State = "ACCESS_REVIEW_STATE_STARTING" + StateAccessReviewStateDraft State = "ACCESS_REVIEW_STATE_DRAFT" + StateAccessReviewStateDeleting State = "ACCESS_REVIEW_STATE_DELETING" + StateAccessReviewStateDeleted State = "ACCESS_REVIEW_STATE_DELETED" + StateAccessReviewStateResettingPolicies State = "ACCESS_REVIEW_STATE_RESETTING_POLICIES" + StateAccessReviewStateCopyingSetupEntitlements State = "ACCESS_REVIEW_STATE_COPYING_SETUP_ENTITLEMENTS" + StateAccessReviewStateCopyingResourceTypeSelections State = "ACCESS_REVIEW_STATE_COPYING_RESOURCE_TYPE_SELECTIONS" +) + +func (e State) ToPointer() *State { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *State) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_REVIEW_STATE_UNSPECIFIED", "ACCESS_REVIEW_STATE_OPEN", "ACCESS_REVIEW_STATE_CLOSED", "ACCESS_REVIEW_STATE_PENDING", "ACCESS_REVIEW_STATE_REVIEW", "ACCESS_REVIEW_STATE_PREPARING", "ACCESS_REVIEW_STATE_STARTING", "ACCESS_REVIEW_STATE_DRAFT", "ACCESS_REVIEW_STATE_DELETING", "ACCESS_REVIEW_STATE_DELETED", "ACCESS_REVIEW_STATE_RESETTING_POLICIES", "ACCESS_REVIEW_STATE_COPYING_SETUP_ENTITLEMENTS", "ACCESS_REVIEW_STATE_COPYING_RESOURCE_TYPE_SELECTIONS": + return true + } + } + return false +} + +// The AccessReview message. +// +// This message contains a oneof named setup_metadata. Only a single field of the following list may be set at a time: +// - singleApp +// - multiApp +// - bindings +type AccessReview struct { + // The AccessReviewExclusionScope message. + AccessReviewExclusionScope *AccessReviewExclusionScope `json:"exclusionScope,omitempty"` + // The AccessReviewInclusionScope message. + AccessReviewInclusionScope *AccessReviewInclusionScope `json:"inclusionScope,omitempty"` + // The AccessReviewScope message. + AccessReviewScope *AccessReviewScope `json:"scope,omitempty"` + // The AccessReviewScopeV2 message. + // + // This message contains a oneof named apps_and_resources_scope. Only a single field of the following list may be set at a time: + // - appAccess + // - specificResources + // - appSelectionCriteria + // - resourceTypeSelections + // + // + // This message contains a oneof named users_scope. Only a single field of the following list may be set at a time: + // - allUsers + // - selectedUsers + // - userCriteria + // - celExpression + // + // + // This message contains a oneof named accounts_scope. Only a single field of the following list may be set at a time: + // - allAccounts + // - accountCriteria + // - accountCelExpression + // + // + // This message contains a oneof named grants_scope. Only a single field of the following list may be set at a time: + // - allGrants + // - grantsByCriteria + // + // + // This message contains a oneof named access_conflicts_scope. Only a single field of the following list may be set at a time: + // - allAccessConflicts + // - specificAccessConflicts + // + AccessReviewScopeV2 *AccessReviewScopeV2 `json:"scopeV2,omitempty"` + // The BindingObjectSetup message. + BindingObjectSetup *BindingObjectSetup `json:"bindings,omitempty"` + // The MultiAppSetup message. + MultiAppSetup *MultiAppSetup `json:"multiApp,omitempty"` + // The NotificationConfig message. + NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` + // Signature configuration for access review submissions + ReviewSignatureConfig *ReviewSignatureConfig `json:"signatureConfig,omitempty"` + // The SingleAppSetup message. + SingleAppSetup *SingleAppSetup `json:"singleApp,omitempty"` + // The ID of the template if the campaign was created from one + AccessReviewTemplateID *string `json:"accessReviewTemplateId,omitempty"` + // The autoGenerateReport field. + AutoGenerateReport *bool `json:"autoGenerateReport,omitempty"` + // The autoResolve field. + AutoResolve *bool `json:"autoResolve,omitempty"` + ClosedAt *time.Time `json:"closedAt,omitempty"` + CompletionDate *time.Time `json:"completionDate,omitempty"` + ConnectorSourcesFrozenAt *time.Time `json:"connectorSourcesFrozenAt,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + // The createdById field. + CreatedByID *string `json:"createdById,omitempty"` + // the default view that reviewers will see when they complete their access reviews + DefaultView *DefaultView `json:"defaultView,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // this setting is used for access conflict type scope + ExemptCertifiedAccessConflicts *bool `json:"exemptCertifiedAccessConflicts,omitempty"` + // The expectedTicketCount field. + ExpectedTicketCount *int `json:"expectedTicketCount,omitempty"` + // The hasAccuracySupport field. + HasAccuracySupport *bool `json:"hasAccuracySupport,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` + // The policyId field. + PolicyID *string `json:"policyId,omitempty"` + // The reviewInstructions field. + ReviewInstructions *string `json:"reviewInstructions,omitempty"` + // this sets the scope type for the access review + ScopeType *ScopeType `json:"scopeType,omitempty"` + // The scopingVersion field. + ScopingVersion *int64 `integer:"string" json:"scopingVersion,omitempty"` + StartedAt *time.Time `json:"startedAt,omitempty"` + // The state field. + State *State `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + // Determines the policy applied to the campaign. Default is false, using the campaign policy. + // If true, the order of precedence is entitlement → app → campaign policy. + UsePolicyOverride *bool `json:"usePolicyOverride,omitempty"` +} + +func (a AccessReview) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessReview) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *AccessReview) GetAccessReviewExclusionScope() *AccessReviewExclusionScope { + if a == nil { + return nil + } + return a.AccessReviewExclusionScope +} + +func (a *AccessReview) GetAccessReviewInclusionScope() *AccessReviewInclusionScope { + if a == nil { + return nil + } + return a.AccessReviewInclusionScope +} + +func (a *AccessReview) GetAccessReviewScope() *AccessReviewScope { + if a == nil { + return nil + } + return a.AccessReviewScope +} + +func (a *AccessReview) GetAccessReviewScopeV2() *AccessReviewScopeV2 { + if a == nil { + return nil + } + return a.AccessReviewScopeV2 +} + +func (a *AccessReview) GetBindingObjectSetup() *BindingObjectSetup { + if a == nil { + return nil + } + return a.BindingObjectSetup +} + +func (a *AccessReview) GetMultiAppSetup() *MultiAppSetup { + if a == nil { + return nil + } + return a.MultiAppSetup +} + +func (a *AccessReview) GetNotificationConfig() *NotificationConfig { + if a == nil { + return nil + } + return a.NotificationConfig +} + +func (a *AccessReview) GetReviewSignatureConfig() *ReviewSignatureConfig { + if a == nil { + return nil + } + return a.ReviewSignatureConfig +} + +func (a *AccessReview) GetSingleAppSetup() *SingleAppSetup { + if a == nil { + return nil + } + return a.SingleAppSetup +} + +func (a *AccessReview) GetAccessReviewTemplateID() *string { + if a == nil { + return nil + } + return a.AccessReviewTemplateID +} + +func (a *AccessReview) GetAutoGenerateReport() *bool { + if a == nil { + return nil + } + return a.AutoGenerateReport +} + +func (a *AccessReview) GetAutoResolve() *bool { + if a == nil { + return nil + } + return a.AutoResolve +} + +func (a *AccessReview) GetClosedAt() *time.Time { + if a == nil { + return nil + } + return a.ClosedAt +} + +func (a *AccessReview) GetCompletionDate() *time.Time { + if a == nil { + return nil + } + return a.CompletionDate +} + +func (a *AccessReview) GetConnectorSourcesFrozenAt() *time.Time { + if a == nil { + return nil + } + return a.ConnectorSourcesFrozenAt +} + +func (a *AccessReview) GetCreatedAt() *time.Time { + if a == nil { + return nil + } + return a.CreatedAt +} + +func (a *AccessReview) GetCreatedByID() *string { + if a == nil { + return nil + } + return a.CreatedByID +} + +func (a *AccessReview) GetDefaultView() *DefaultView { + if a == nil { + return nil + } + return a.DefaultView +} + +func (a *AccessReview) GetDescription() *string { + if a == nil { + return nil + } + return a.Description +} + +func (a *AccessReview) GetDisplayName() *string { + if a == nil { + return nil + } + return a.DisplayName +} + +func (a *AccessReview) GetExemptCertifiedAccessConflicts() *bool { + if a == nil { + return nil + } + return a.ExemptCertifiedAccessConflicts +} + +func (a *AccessReview) GetExpectedTicketCount() *int { + if a == nil { + return nil + } + return a.ExpectedTicketCount +} + +func (a *AccessReview) GetHasAccuracySupport() *bool { + if a == nil { + return nil + } + return a.HasAccuracySupport +} + +func (a *AccessReview) GetID() *string { + if a == nil { + return nil + } + return a.ID +} + +func (a *AccessReview) GetPolicyID() *string { + if a == nil { + return nil + } + return a.PolicyID +} + +func (a *AccessReview) GetReviewInstructions() *string { + if a == nil { + return nil + } + return a.ReviewInstructions +} + +func (a *AccessReview) GetScopeType() *ScopeType { + if a == nil { + return nil + } + return a.ScopeType +} + +func (a *AccessReview) GetScopingVersion() *int64 { + if a == nil { + return nil + } + return a.ScopingVersion +} + +func (a *AccessReview) GetStartedAt() *time.Time { + if a == nil { + return nil + } + return a.StartedAt +} + +func (a *AccessReview) GetState() *State { + if a == nil { + return nil + } + return a.State +} + +func (a *AccessReview) GetUpdatedAt() *time.Time { + if a == nil { + return nil + } + return a.UpdatedAt +} + +func (a *AccessReview) GetUsePolicyOverride() *bool { + if a == nil { + return nil + } + return a.UsePolicyOverride +} + +// AccessReviewInput - The AccessReview message. +// +// This message contains a oneof named setup_metadata. Only a single field of the following list may be set at a time: +// - singleApp +// - multiApp +// - bindings +type AccessReviewInput struct { + // The AccessReviewExclusionScope message. + AccessReviewExclusionScope *AccessReviewExclusionScope `json:"exclusionScope,omitempty"` + // The AccessReviewInclusionScope message. + AccessReviewInclusionScope *AccessReviewInclusionScope `json:"inclusionScope,omitempty"` + // The AccessReviewScope message. + AccessReviewScope *AccessReviewScope `json:"scope,omitempty"` + // The AccessReviewScopeV2 message. + // + // This message contains a oneof named apps_and_resources_scope. Only a single field of the following list may be set at a time: + // - appAccess + // - specificResources + // - appSelectionCriteria + // - resourceTypeSelections + // + // + // This message contains a oneof named users_scope. Only a single field of the following list may be set at a time: + // - allUsers + // - selectedUsers + // - userCriteria + // - celExpression + // + // + // This message contains a oneof named accounts_scope. Only a single field of the following list may be set at a time: + // - allAccounts + // - accountCriteria + // - accountCelExpression + // + // + // This message contains a oneof named grants_scope. Only a single field of the following list may be set at a time: + // - allGrants + // - grantsByCriteria + // + // + // This message contains a oneof named access_conflicts_scope. Only a single field of the following list may be set at a time: + // - allAccessConflicts + // - specificAccessConflicts + // + AccessReviewScopeV2 *AccessReviewScopeV2 `json:"scopeV2,omitempty"` + // The BindingObjectSetup message. + BindingObjectSetup *BindingObjectSetup `json:"bindings,omitempty"` + // The MultiAppSetup message. + MultiAppSetup *MultiAppSetup `json:"multiApp,omitempty"` + // The NotificationConfig message. + NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` + // Signature configuration for access review submissions + ReviewSignatureConfig *ReviewSignatureConfig `json:"signatureConfig,omitempty"` + // The SingleAppSetup message. + SingleAppSetup *SingleAppSetup `json:"singleApp,omitempty"` + // The ID of the template if the campaign was created from one + AccessReviewTemplateID *string `json:"accessReviewTemplateId,omitempty"` + // The autoGenerateReport field. + AutoGenerateReport *bool `json:"autoGenerateReport,omitempty"` + // The autoResolve field. + AutoResolve *bool `json:"autoResolve,omitempty"` + ClosedAt *time.Time `json:"closedAt,omitempty"` + CompletionDate *time.Time `json:"completionDate,omitempty"` + ConnectorSourcesFrozenAt *time.Time `json:"connectorSourcesFrozenAt,omitempty"` + // The createdById field. + CreatedByID *string `json:"createdById,omitempty"` + // the default view that reviewers will see when they complete their access reviews + DefaultView *DefaultView `json:"defaultView,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // this setting is used for access conflict type scope + ExemptCertifiedAccessConflicts *bool `json:"exemptCertifiedAccessConflicts,omitempty"` + // The expectedTicketCount field. + ExpectedTicketCount *int `json:"expectedTicketCount,omitempty"` + // The hasAccuracySupport field. + HasAccuracySupport *bool `json:"hasAccuracySupport,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` + // The policyId field. + PolicyID *string `json:"policyId,omitempty"` + // The reviewInstructions field. + ReviewInstructions *string `json:"reviewInstructions,omitempty"` + // this sets the scope type for the access review + ScopeType *ScopeType `json:"scopeType,omitempty"` + // The scopingVersion field. + ScopingVersion *int64 `integer:"string" json:"scopingVersion,omitempty"` + StartedAt *time.Time `json:"startedAt,omitempty"` + // The state field. + State *State `json:"state,omitempty"` + // Determines the policy applied to the campaign. Default is false, using the campaign policy. + // If true, the order of precedence is entitlement → app → campaign policy. + UsePolicyOverride *bool `json:"usePolicyOverride,omitempty"` +} + +func (a AccessReviewInput) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessReviewInput) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *AccessReviewInput) GetAccessReviewExclusionScope() *AccessReviewExclusionScope { + if a == nil { + return nil + } + return a.AccessReviewExclusionScope +} + +func (a *AccessReviewInput) GetAccessReviewInclusionScope() *AccessReviewInclusionScope { + if a == nil { + return nil + } + return a.AccessReviewInclusionScope +} + +func (a *AccessReviewInput) GetAccessReviewScope() *AccessReviewScope { + if a == nil { + return nil + } + return a.AccessReviewScope +} + +func (a *AccessReviewInput) GetAccessReviewScopeV2() *AccessReviewScopeV2 { + if a == nil { + return nil + } + return a.AccessReviewScopeV2 +} + +func (a *AccessReviewInput) GetBindingObjectSetup() *BindingObjectSetup { + if a == nil { + return nil + } + return a.BindingObjectSetup +} + +func (a *AccessReviewInput) GetMultiAppSetup() *MultiAppSetup { + if a == nil { + return nil + } + return a.MultiAppSetup +} + +func (a *AccessReviewInput) GetNotificationConfig() *NotificationConfig { + if a == nil { + return nil + } + return a.NotificationConfig +} + +func (a *AccessReviewInput) GetReviewSignatureConfig() *ReviewSignatureConfig { + if a == nil { + return nil + } + return a.ReviewSignatureConfig +} + +func (a *AccessReviewInput) GetSingleAppSetup() *SingleAppSetup { + if a == nil { + return nil + } + return a.SingleAppSetup +} + +func (a *AccessReviewInput) GetAccessReviewTemplateID() *string { + if a == nil { + return nil + } + return a.AccessReviewTemplateID +} + +func (a *AccessReviewInput) GetAutoGenerateReport() *bool { + if a == nil { + return nil + } + return a.AutoGenerateReport +} + +func (a *AccessReviewInput) GetAutoResolve() *bool { + if a == nil { + return nil + } + return a.AutoResolve +} + +func (a *AccessReviewInput) GetClosedAt() *time.Time { + if a == nil { + return nil + } + return a.ClosedAt +} + +func (a *AccessReviewInput) GetCompletionDate() *time.Time { + if a == nil { + return nil + } + return a.CompletionDate +} + +func (a *AccessReviewInput) GetConnectorSourcesFrozenAt() *time.Time { + if a == nil { + return nil + } + return a.ConnectorSourcesFrozenAt +} + +func (a *AccessReviewInput) GetCreatedByID() *string { + if a == nil { + return nil + } + return a.CreatedByID +} + +func (a *AccessReviewInput) GetDefaultView() *DefaultView { + if a == nil { + return nil + } + return a.DefaultView +} + +func (a *AccessReviewInput) GetDescription() *string { + if a == nil { + return nil + } + return a.Description +} + +func (a *AccessReviewInput) GetDisplayName() *string { + if a == nil { + return nil + } + return a.DisplayName +} + +func (a *AccessReviewInput) GetExemptCertifiedAccessConflicts() *bool { + if a == nil { + return nil + } + return a.ExemptCertifiedAccessConflicts +} + +func (a *AccessReviewInput) GetExpectedTicketCount() *int { + if a == nil { + return nil + } + return a.ExpectedTicketCount +} + +func (a *AccessReviewInput) GetHasAccuracySupport() *bool { + if a == nil { + return nil + } + return a.HasAccuracySupport +} + +func (a *AccessReviewInput) GetID() *string { + if a == nil { + return nil + } + return a.ID +} + +func (a *AccessReviewInput) GetPolicyID() *string { + if a == nil { + return nil + } + return a.PolicyID +} + +func (a *AccessReviewInput) GetReviewInstructions() *string { + if a == nil { + return nil + } + return a.ReviewInstructions +} + +func (a *AccessReviewInput) GetScopeType() *ScopeType { + if a == nil { + return nil + } + return a.ScopeType +} + +func (a *AccessReviewInput) GetScopingVersion() *int64 { + if a == nil { + return nil + } + return a.ScopingVersion +} + +func (a *AccessReviewInput) GetStartedAt() *time.Time { + if a == nil { + return nil + } + return a.StartedAt +} + +func (a *AccessReviewInput) GetState() *State { + if a == nil { + return nil + } + return a.State +} + +func (a *AccessReviewInput) GetUsePolicyOverride() *bool { + if a == nil { + return nil + } + return a.UsePolicyOverride +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewexclusionscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewexclusionscope.go new file mode 100644 index 00000000..b7d9be19 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewexclusionscope.go @@ -0,0 +1,73 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +type AppUserStatuses string + +const ( + AppUserStatusesAppUserStatusUnspecified AppUserStatuses = "APP_USER_STATUS_UNSPECIFIED" + AppUserStatusesAppUserStatusEnabled AppUserStatuses = "APP_USER_STATUS_ENABLED" + AppUserStatusesAppUserStatusDisabled AppUserStatuses = "APP_USER_STATUS_DISABLED" + AppUserStatusesAppUserStatusDeleted AppUserStatuses = "APP_USER_STATUS_DELETED" +) + +func (e AppUserStatuses) ToPointer() *AppUserStatuses { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppUserStatuses) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_STATUS_UNSPECIFIED", "APP_USER_STATUS_ENABLED", "APP_USER_STATUS_DISABLED", "APP_USER_STATUS_DELETED": + return true + } + } + return false +} + +type AppUserTypes string + +const ( + AppUserTypesAppUserTypeUnspecified AppUserTypes = "APP_USER_TYPE_UNSPECIFIED" + AppUserTypesAppUserTypeUser AppUserTypes = "APP_USER_TYPE_USER" + AppUserTypesAppUserTypeServiceAccount AppUserTypes = "APP_USER_TYPE_SERVICE_ACCOUNT" + AppUserTypesAppUserTypeSystemAccount AppUserTypes = "APP_USER_TYPE_SYSTEM_ACCOUNT" +) + +func (e AppUserTypes) ToPointer() *AppUserTypes { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppUserTypes) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + +// The AccessReviewExclusionScope message. +type AccessReviewExclusionScope struct { + // The appUserStatuses field. + AppUserStatuses []AppUserStatuses `json:"appUserStatuses,omitempty"` + // The appUserTypes field. + AppUserTypes []AppUserTypes `json:"appUserTypes,omitempty"` +} + +func (a *AccessReviewExclusionScope) GetAppUserStatuses() []AppUserStatuses { + if a == nil { + return nil + } + return a.AppUserStatuses +} + +func (a *AccessReviewExclusionScope) GetAppUserTypes() []AppUserTypes { + if a == nil { + return nil + } + return a.AppUserTypes +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewexpandmask.go new file mode 100644 index 00000000..9ef215ae --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewexpandmask.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewExpandMask message. +type AccessReviewExpandMask struct { + // The paths field. + Paths []string `json:"paths,omitempty"` +} + +func (a *AccessReviewExpandMask) GetPaths() []string { + if a == nil { + return nil + } + return a.Paths +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewinclusionscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewinclusionscope.go new file mode 100644 index 00000000..f18056a6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewinclusionscope.go @@ -0,0 +1,142 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +type AccessReviewInclusionScopeAppUserStatuses string + +const ( + AccessReviewInclusionScopeAppUserStatusesAppUserStatusUnspecified AccessReviewInclusionScopeAppUserStatuses = "APP_USER_STATUS_UNSPECIFIED" + AccessReviewInclusionScopeAppUserStatusesAppUserStatusEnabled AccessReviewInclusionScopeAppUserStatuses = "APP_USER_STATUS_ENABLED" + AccessReviewInclusionScopeAppUserStatusesAppUserStatusDisabled AccessReviewInclusionScopeAppUserStatuses = "APP_USER_STATUS_DISABLED" + AccessReviewInclusionScopeAppUserStatusesAppUserStatusDeleted AccessReviewInclusionScopeAppUserStatuses = "APP_USER_STATUS_DELETED" +) + +func (e AccessReviewInclusionScopeAppUserStatuses) ToPointer() *AccessReviewInclusionScopeAppUserStatuses { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccessReviewInclusionScopeAppUserStatuses) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_STATUS_UNSPECIFIED", "APP_USER_STATUS_ENABLED", "APP_USER_STATUS_DISABLED", "APP_USER_STATUS_DELETED": + return true + } + } + return false +} + +type AccessReviewInclusionScopeAppUserTypes string + +const ( + AccessReviewInclusionScopeAppUserTypesAppUserTypeUnspecified AccessReviewInclusionScopeAppUserTypes = "APP_USER_TYPE_UNSPECIFIED" + AccessReviewInclusionScopeAppUserTypesAppUserTypeUser AccessReviewInclusionScopeAppUserTypes = "APP_USER_TYPE_USER" + AccessReviewInclusionScopeAppUserTypesAppUserTypeServiceAccount AccessReviewInclusionScopeAppUserTypes = "APP_USER_TYPE_SERVICE_ACCOUNT" + AccessReviewInclusionScopeAppUserTypesAppUserTypeSystemAccount AccessReviewInclusionScopeAppUserTypes = "APP_USER_TYPE_SYSTEM_ACCOUNT" +) + +func (e AccessReviewInclusionScopeAppUserTypes) ToPointer() *AccessReviewInclusionScopeAppUserTypes { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccessReviewInclusionScopeAppUserTypes) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + +type UserStatuses string + +const ( + UserStatusesUserUnknown UserStatuses = "USER_UNKNOWN" + UserStatusesUserEnabled UserStatuses = "USER_ENABLED" + UserStatusesUserDisabled UserStatuses = "USER_DISABLED" + UserStatusesUserDeleted UserStatuses = "USER_DELETED" +) + +func (e UserStatuses) ToPointer() *UserStatuses { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *UserStatuses) IsExact() bool { + if e != nil { + switch *e { + case "USER_UNKNOWN", "USER_ENABLED", "USER_DISABLED", "USER_DELETED": + return true + } + } + return false +} + +// The AccessReviewInclusionScope message. +type AccessReviewInclusionScope struct { + // The appUserStatuses field. + AppUserStatuses []AccessReviewInclusionScopeAppUserStatuses `json:"appUserStatuses,omitempty"` + // The appUserTypes field. + AppUserTypes []AccessReviewInclusionScopeAppUserTypes `json:"appUserTypes,omitempty"` + // The managerIds field. + ManagerIds []string `json:"managerIds,omitempty"` + // The multiUserProfileAttributes field. + MultiUserProfileAttributes map[string]IncludedUserAttributeValues `json:"multiUserProfileAttributes,omitempty"` + // The noAccountOwners field. + NoAccountOwners *bool `json:"noAccountOwners,omitempty"` + // The userIds field. + UserIds []string `json:"userIds,omitempty"` + // The userStatuses field. + UserStatuses []UserStatuses `json:"userStatuses,omitempty"` +} + +func (a *AccessReviewInclusionScope) GetAppUserStatuses() []AccessReviewInclusionScopeAppUserStatuses { + if a == nil { + return nil + } + return a.AppUserStatuses +} + +func (a *AccessReviewInclusionScope) GetAppUserTypes() []AccessReviewInclusionScopeAppUserTypes { + if a == nil { + return nil + } + return a.AppUserTypes +} + +func (a *AccessReviewInclusionScope) GetManagerIds() []string { + if a == nil { + return nil + } + return a.ManagerIds +} + +func (a *AccessReviewInclusionScope) GetMultiUserProfileAttributes() map[string]IncludedUserAttributeValues { + if a == nil { + return nil + } + return a.MultiUserProfileAttributes +} + +func (a *AccessReviewInclusionScope) GetNoAccountOwners() *bool { + if a == nil { + return nil + } + return a.NoAccountOwners +} + +func (a *AccessReviewInclusionScope) GetUserIds() []string { + if a == nil { + return nil + } + return a.UserIds +} + +func (a *AccessReviewInclusionScope) GetUserStatuses() []UserStatuses { + if a == nil { + return nil + } + return a.UserStatuses +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewscope.go new file mode 100644 index 00000000..741011c9 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewscope.go @@ -0,0 +1,73 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +type AccessReviewScopeAppUserStatuses string + +const ( + AccessReviewScopeAppUserStatusesAppUserStatusUnspecified AccessReviewScopeAppUserStatuses = "APP_USER_STATUS_UNSPECIFIED" + AccessReviewScopeAppUserStatusesAppUserStatusEnabled AccessReviewScopeAppUserStatuses = "APP_USER_STATUS_ENABLED" + AccessReviewScopeAppUserStatusesAppUserStatusDisabled AccessReviewScopeAppUserStatuses = "APP_USER_STATUS_DISABLED" + AccessReviewScopeAppUserStatusesAppUserStatusDeleted AccessReviewScopeAppUserStatuses = "APP_USER_STATUS_DELETED" +) + +func (e AccessReviewScopeAppUserStatuses) ToPointer() *AccessReviewScopeAppUserStatuses { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccessReviewScopeAppUserStatuses) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_STATUS_UNSPECIFIED", "APP_USER_STATUS_ENABLED", "APP_USER_STATUS_DISABLED", "APP_USER_STATUS_DELETED": + return true + } + } + return false +} + +type AccessReviewScopeAppUserTypes string + +const ( + AccessReviewScopeAppUserTypesAppUserTypeUnspecified AccessReviewScopeAppUserTypes = "APP_USER_TYPE_UNSPECIFIED" + AccessReviewScopeAppUserTypesAppUserTypeUser AccessReviewScopeAppUserTypes = "APP_USER_TYPE_USER" + AccessReviewScopeAppUserTypesAppUserTypeServiceAccount AccessReviewScopeAppUserTypes = "APP_USER_TYPE_SERVICE_ACCOUNT" + AccessReviewScopeAppUserTypesAppUserTypeSystemAccount AccessReviewScopeAppUserTypes = "APP_USER_TYPE_SYSTEM_ACCOUNT" +) + +func (e AccessReviewScopeAppUserTypes) ToPointer() *AccessReviewScopeAppUserTypes { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccessReviewScopeAppUserTypes) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + +// The AccessReviewScope message. +type AccessReviewScope struct { + // The appUserStatuses field. + AppUserStatuses []AccessReviewScopeAppUserStatuses `json:"appUserStatuses,omitempty"` + // The appUserTypes field. + AppUserTypes []AccessReviewScopeAppUserTypes `json:"appUserTypes,omitempty"` +} + +func (a *AccessReviewScope) GetAppUserStatuses() []AccessReviewScopeAppUserStatuses { + if a == nil { + return nil + } + return a.AppUserStatuses +} + +func (a *AccessReviewScope) GetAppUserTypes() []AccessReviewScopeAppUserTypes { + if a == nil { + return nil + } + return a.AppUserTypes +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewscopev2.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewscopev2.go new file mode 100644 index 00000000..6e9127b3 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewscopev2.go @@ -0,0 +1,173 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewScopeV2 message. +// +// This message contains a oneof named apps_and_resources_scope. Only a single field of the following list may be set at a time: +// - appAccess +// - specificResources +// - appSelectionCriteria +// - resourceTypeSelections +// +// This message contains a oneof named users_scope. Only a single field of the following list may be set at a time: +// - allUsers +// - selectedUsers +// - userCriteria +// - celExpression +// +// This message contains a oneof named accounts_scope. Only a single field of the following list may be set at a time: +// - allAccounts +// - accountCriteria +// - accountCelExpression +// +// This message contains a oneof named grants_scope. Only a single field of the following list may be set at a time: +// - allGrants +// - grantsByCriteria +// +// This message contains a oneof named access_conflicts_scope. Only a single field of the following list may be set at a time: +// - allAccessConflicts +// - specificAccessConflicts +type AccessReviewScopeV2 struct { + // The AccountCriteriaScope message. + AccountCriteriaScope *AccountCriteriaScope `json:"accountCriteria,omitempty"` + // The AllAccessConflictsScope message. + AllAccessConflictsScope *AllAccessConflictsScope `json:"allAccessConflicts,omitempty"` + // The AllAccountsScope message. + AllAccountsScope *AllAccountsScope `json:"allAccounts,omitempty"` + // The AllGrantsScope message. + AllGrantsScope *AllGrantsScope `json:"allGrants,omitempty"` + // The AllUsersScope message. + AllUsersScope *AllUsersScope `json:"allUsers,omitempty"` + // The AppSelectionCriteriaScope message. + AppSelectionCriteriaScope *AppSelectionCriteriaScope `json:"appSelectionCriteria,omitempty"` + // The ApplicationAccessScope message. + ApplicationAccessScope *ApplicationAccessScope `json:"appAccess,omitempty"` + // The CelExpressionScope message. + CelExpressionScope *CelExpressionScope `json:"accountCelExpression,omitempty"` + // The CelExpressionScope message. + CelExpressionScope1 *CelExpressionScope `json:"celExpression,omitempty"` + // The GrantsByCriteriaScope message. + // + // This message contains a oneof named criteria_filter. Only a single field of the following list may be set at a time: + // - daysSinceAdded + // - daysSinceReviewed + // - grantsAddedBetween + // + GrantsByCriteriaScope *GrantsByCriteriaScope `json:"grantsByCriteria,omitempty"` + // The ResourceTypeSelectionScope message. + ResourceTypeSelectionScope *ResourceTypeSelectionScope `json:"resourceTypeSelections,omitempty"` + // The SelectedUsersScope message. + SelectedUsersScope *SelectedUsersScope `json:"selectedUsers,omitempty"` + // The SpecificAccessConflictsScope message. + SpecificAccessConflictsScope *SpecificAccessConflictsScope `json:"specificAccessConflicts,omitempty"` + // The SpecificResourcesScope message. + SpecificResourcesScope *SpecificResourcesScope `json:"specificResources,omitempty"` + // The UserCriteriaScope message. + UserCriteriaScope *UserCriteriaScope `json:"userCriteria,omitempty"` +} + +func (a *AccessReviewScopeV2) GetAccountCriteriaScope() *AccountCriteriaScope { + if a == nil { + return nil + } + return a.AccountCriteriaScope +} + +func (a *AccessReviewScopeV2) GetAllAccessConflictsScope() *AllAccessConflictsScope { + if a == nil { + return nil + } + return a.AllAccessConflictsScope +} + +func (a *AccessReviewScopeV2) GetAllAccountsScope() *AllAccountsScope { + if a == nil { + return nil + } + return a.AllAccountsScope +} + +func (a *AccessReviewScopeV2) GetAllGrantsScope() *AllGrantsScope { + if a == nil { + return nil + } + return a.AllGrantsScope +} + +func (a *AccessReviewScopeV2) GetAllUsersScope() *AllUsersScope { + if a == nil { + return nil + } + return a.AllUsersScope +} + +func (a *AccessReviewScopeV2) GetAppSelectionCriteriaScope() *AppSelectionCriteriaScope { + if a == nil { + return nil + } + return a.AppSelectionCriteriaScope +} + +func (a *AccessReviewScopeV2) GetApplicationAccessScope() *ApplicationAccessScope { + if a == nil { + return nil + } + return a.ApplicationAccessScope +} + +func (a *AccessReviewScopeV2) GetCelExpressionScope() *CelExpressionScope { + if a == nil { + return nil + } + return a.CelExpressionScope +} + +func (a *AccessReviewScopeV2) GetCelExpressionScope1() *CelExpressionScope { + if a == nil { + return nil + } + return a.CelExpressionScope1 +} + +func (a *AccessReviewScopeV2) GetGrantsByCriteriaScope() *GrantsByCriteriaScope { + if a == nil { + return nil + } + return a.GrantsByCriteriaScope +} + +func (a *AccessReviewScopeV2) GetResourceTypeSelectionScope() *ResourceTypeSelectionScope { + if a == nil { + return nil + } + return a.ResourceTypeSelectionScope +} + +func (a *AccessReviewScopeV2) GetSelectedUsersScope() *SelectedUsersScope { + if a == nil { + return nil + } + return a.SelectedUsersScope +} + +func (a *AccessReviewScopeV2) GetSpecificAccessConflictsScope() *SpecificAccessConflictsScope { + if a == nil { + return nil + } + return a.SpecificAccessConflictsScope +} + +func (a *AccessReviewScopeV2) GetSpecificResourcesScope() *SpecificResourcesScope { + if a == nil { + return nil + } + return a.SpecificResourcesScope +} + +func (a *AccessReviewScopeV2) GetUserCriteriaScope() *UserCriteriaScope { + if a == nil { + return nil + } + return a.UserCriteriaScope +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicecreaterequest.go new file mode 100644 index 00000000..8966ca77 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicecreaterequest.go @@ -0,0 +1,127 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// AccessReviewServiceCreateRequestScopeType - The scopeType field. +type AccessReviewServiceCreateRequestScopeType string + +const ( + AccessReviewServiceCreateRequestScopeTypeAccessReviewScopeTypeUnspecified AccessReviewServiceCreateRequestScopeType = "ACCESS_REVIEW_SCOPE_TYPE_UNSPECIFIED" + AccessReviewServiceCreateRequestScopeTypeAccessReviewScopeTypeByEntitlements AccessReviewServiceCreateRequestScopeType = "ACCESS_REVIEW_SCOPE_TYPE_BY_ENTITLEMENTS" + AccessReviewServiceCreateRequestScopeTypeAccessReviewScopeTypeByAccessConflicts AccessReviewServiceCreateRequestScopeType = "ACCESS_REVIEW_SCOPE_TYPE_BY_ACCESS_CONFLICTS" +) + +func (e AccessReviewServiceCreateRequestScopeType) ToPointer() *AccessReviewServiceCreateRequestScopeType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccessReviewServiceCreateRequestScopeType) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_REVIEW_SCOPE_TYPE_UNSPECIFIED", "ACCESS_REVIEW_SCOPE_TYPE_BY_ENTITLEMENTS", "ACCESS_REVIEW_SCOPE_TYPE_BY_ACCESS_CONFLICTS": + return true + } + } + return false +} + +// The AccessReviewServiceCreateRequest message. +type AccessReviewServiceCreateRequest struct { + // The AccessReviewExpandMask message. + AccessReviewExpandMask *AccessReviewExpandMask `json:"expandMask,omitempty"` + // The NotificationConfig message. + NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` + CompletionDate *time.Time `json:"completionDate,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The duplicateFrom field. + DuplicateFrom *string `json:"duplicateFrom,omitempty"` + // The ownerIds field. + OwnerIds []string `json:"ownerIds,omitempty"` + // The policyId field. + PolicyID *string `json:"policyId,omitempty"` + // The scopeType field. + ScopeType *AccessReviewServiceCreateRequestScopeType `json:"scopeType,omitempty"` +} + +func (a AccessReviewServiceCreateRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessReviewServiceCreateRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *AccessReviewServiceCreateRequest) GetAccessReviewExpandMask() *AccessReviewExpandMask { + if a == nil { + return nil + } + return a.AccessReviewExpandMask +} + +func (a *AccessReviewServiceCreateRequest) GetNotificationConfig() *NotificationConfig { + if a == nil { + return nil + } + return a.NotificationConfig +} + +func (a *AccessReviewServiceCreateRequest) GetCompletionDate() *time.Time { + if a == nil { + return nil + } + return a.CompletionDate +} + +func (a *AccessReviewServiceCreateRequest) GetDescription() *string { + if a == nil { + return nil + } + return a.Description +} + +func (a *AccessReviewServiceCreateRequest) GetDisplayName() *string { + if a == nil { + return nil + } + return a.DisplayName +} + +func (a *AccessReviewServiceCreateRequest) GetDuplicateFrom() *string { + if a == nil { + return nil + } + return a.DuplicateFrom +} + +func (a *AccessReviewServiceCreateRequest) GetOwnerIds() []string { + if a == nil { + return nil + } + return a.OwnerIds +} + +func (a *AccessReviewServiceCreateRequest) GetPolicyID() *string { + if a == nil { + return nil + } + return a.PolicyID +} + +func (a *AccessReviewServiceCreateRequest) GetScopeType() *AccessReviewServiceCreateRequestScopeType { + if a == nil { + return nil + } + return a.ScopeType +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicecreateresponse.go new file mode 100644 index 00000000..63f58d29 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicecreateresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" +) + +// Expanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. +type Expanded struct { + // The type of the serialized message. + AtType *string `json:"@type,omitempty"` + AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` +} + +func (e Expanded) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *Expanded) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { + return err + } + return nil +} + +func (e *Expanded) GetAtType() *string { + if e == nil { + return nil + } + return e.AtType +} + +func (e *Expanded) GetAdditionalProperties() map[string]any { + if e == nil { + return nil + } + return e.AdditionalProperties +} + +// The AccessReviewServiceCreateResponse message. +type AccessReviewServiceCreateResponse struct { + // The AccessReviewView message. + AccessReviewView *AccessReviewView `json:"accessReview,omitempty"` + // The expanded field. + Expanded []Expanded `json:"expanded,omitempty"` +} + +func (a *AccessReviewServiceCreateResponse) GetAccessReviewView() *AccessReviewView { + if a == nil { + return nil + } + return a.AccessReviewView +} + +func (a *AccessReviewServiceCreateResponse) GetExpanded() []Expanded { + if a == nil { + return nil + } + return a.Expanded +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicedeleterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicedeleterequest.go new file mode 100644 index 00000000..f979d9f6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicedeleterequest.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewServiceDeleteRequest message. +type AccessReviewServiceDeleteRequest struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicedeleteresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicedeleteresponse.go new file mode 100644 index 00000000..974ac751 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicedeleteresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewServiceDeleteResponse message. +type AccessReviewServiceDeleteResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicegetresponse.go new file mode 100644 index 00000000..8002c3a2 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicegetresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" +) + +// AccessReviewServiceGetResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. +type AccessReviewServiceGetResponseExpanded struct { + // The type of the serialized message. + AtType *string `json:"@type,omitempty"` + AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` +} + +func (a AccessReviewServiceGetResponseExpanded) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessReviewServiceGetResponseExpanded) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *AccessReviewServiceGetResponseExpanded) GetAtType() *string { + if a == nil { + return nil + } + return a.AtType +} + +func (a *AccessReviewServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { + return nil + } + return a.AdditionalProperties +} + +// The AccessReviewServiceGetResponse message. +type AccessReviewServiceGetResponse struct { + // The AccessReviewView message. + AccessReviewView *AccessReviewView `json:"accessReview,omitempty"` + // The expanded field. + Expanded []AccessReviewServiceGetResponseExpanded `json:"expanded,omitempty"` +} + +func (a *AccessReviewServiceGetResponse) GetAccessReviewView() *AccessReviewView { + if a == nil { + return nil + } + return a.AccessReviewView +} + +func (a *AccessReviewServiceGetResponse) GetExpanded() []AccessReviewServiceGetResponseExpanded { + if a == nil { + return nil + } + return a.Expanded +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicelistresponse.go new file mode 100644 index 00000000..abf074e6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewservicelistresponse.go @@ -0,0 +1,70 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" +) + +// AccessReviewServiceListResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. +type AccessReviewServiceListResponseExpanded struct { + // The type of the serialized message. + AtType *string `json:"@type,omitempty"` + AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` +} + +func (a AccessReviewServiceListResponseExpanded) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessReviewServiceListResponseExpanded) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *AccessReviewServiceListResponseExpanded) GetAtType() *string { + if a == nil { + return nil + } + return a.AtType +} + +func (a *AccessReviewServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { + return nil + } + return a.AdditionalProperties +} + +// The AccessReviewServiceListResponse message. +type AccessReviewServiceListResponse struct { + // The expanded field. + Expanded []AccessReviewServiceListResponseExpanded `json:"expanded,omitempty"` + // The list field. + List []AccessReviewView `json:"list,omitempty"` + // The nextPageToken field. + NextPageToken *string `json:"nextPageToken,omitempty"` +} + +func (a *AccessReviewServiceListResponse) GetExpanded() []AccessReviewServiceListResponseExpanded { + if a == nil { + return nil + } + return a.Expanded +} + +func (a *AccessReviewServiceListResponse) GetList() []AccessReviewView { + if a == nil { + return nil + } + return a.List +} + +func (a *AccessReviewServiceListResponse) GetNextPageToken() *string { + if a == nil { + return nil + } + return a.NextPageToken +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewserviceupdaterequest.go new file mode 100644 index 00000000..2988d54d --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewserviceupdaterequest.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewServiceUpdateRequest message. +type AccessReviewServiceUpdateRequest struct { + // The AccessReview message. + // + // This message contains a oneof named setup_metadata. Only a single field of the following list may be set at a time: + // - singleApp + // - multiApp + // - bindings + // + AccessReview *AccessReviewInput `json:"accessReview,omitempty"` + // The AccessReviewExpandMask message. + AccessReviewExpandMask *AccessReviewExpandMask `json:"expandMask,omitempty"` + UpdateMask *string `json:"updateMask,omitempty"` +} + +func (a *AccessReviewServiceUpdateRequest) GetAccessReview() *AccessReviewInput { + if a == nil { + return nil + } + return a.AccessReview +} + +func (a *AccessReviewServiceUpdateRequest) GetAccessReviewExpandMask() *AccessReviewExpandMask { + if a == nil { + return nil + } + return a.AccessReviewExpandMask +} + +func (a *AccessReviewServiceUpdateRequest) GetUpdateMask() *string { + if a == nil { + return nil + } + return a.UpdateMask +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewserviceupdateresponse.go new file mode 100644 index 00000000..3371a30f --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewserviceupdateresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" +) + +// AccessReviewServiceUpdateResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. +type AccessReviewServiceUpdateResponseExpanded struct { + // The type of the serialized message. + AtType *string `json:"@type,omitempty"` + AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` +} + +func (a AccessReviewServiceUpdateResponseExpanded) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessReviewServiceUpdateResponseExpanded) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *AccessReviewServiceUpdateResponseExpanded) GetAtType() *string { + if a == nil { + return nil + } + return a.AtType +} + +func (a *AccessReviewServiceUpdateResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { + return nil + } + return a.AdditionalProperties +} + +// The AccessReviewServiceUpdateResponse message. +type AccessReviewServiceUpdateResponse struct { + // The AccessReviewView message. + AccessReviewView *AccessReviewView `json:"accessReview,omitempty"` + // The expanded field. + Expanded []AccessReviewServiceUpdateResponseExpanded `json:"expanded,omitempty"` +} + +func (a *AccessReviewServiceUpdateResponse) GetAccessReviewView() *AccessReviewView { + if a == nil { + return nil + } + return a.AccessReviewView +} + +func (a *AccessReviewServiceUpdateResponse) GetExpanded() []AccessReviewServiceUpdateResponseExpanded { + if a == nil { + return nil + } + return a.Expanded +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplate.go new file mode 100644 index 00000000..1120b0e1 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplate.go @@ -0,0 +1,543 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// AccessReviewTemplateDefaultView - The defaultView field. +type AccessReviewTemplateDefaultView string + +const ( + AccessReviewTemplateDefaultViewAccessReviewViewTypeUnspecified AccessReviewTemplateDefaultView = "ACCESS_REVIEW_VIEW_TYPE_UNSPECIFIED" + AccessReviewTemplateDefaultViewAccessReviewViewTypeByApp AccessReviewTemplateDefaultView = "ACCESS_REVIEW_VIEW_TYPE_BY_APP" + AccessReviewTemplateDefaultViewAccessReviewViewTypeByUser AccessReviewTemplateDefaultView = "ACCESS_REVIEW_VIEW_TYPE_BY_USER" + AccessReviewTemplateDefaultViewAccessReviewViewTypeUnstructured AccessReviewTemplateDefaultView = "ACCESS_REVIEW_VIEW_TYPE_UNSTRUCTURED" +) + +func (e AccessReviewTemplateDefaultView) ToPointer() *AccessReviewTemplateDefaultView { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccessReviewTemplateDefaultView) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_REVIEW_VIEW_TYPE_UNSPECIFIED", "ACCESS_REVIEW_VIEW_TYPE_BY_APP", "ACCESS_REVIEW_VIEW_TYPE_BY_USER", "ACCESS_REVIEW_VIEW_TYPE_UNSTRUCTURED": + return true + } + } + return false +} + +// AccessReviewTemplateScopeType - The scopeType field. +type AccessReviewTemplateScopeType string + +const ( + AccessReviewTemplateScopeTypeAccessReviewScopeTypeUnspecified AccessReviewTemplateScopeType = "ACCESS_REVIEW_SCOPE_TYPE_UNSPECIFIED" + AccessReviewTemplateScopeTypeAccessReviewScopeTypeByEntitlements AccessReviewTemplateScopeType = "ACCESS_REVIEW_SCOPE_TYPE_BY_ENTITLEMENTS" + AccessReviewTemplateScopeTypeAccessReviewScopeTypeByAccessConflicts AccessReviewTemplateScopeType = "ACCESS_REVIEW_SCOPE_TYPE_BY_ACCESS_CONFLICTS" +) + +func (e AccessReviewTemplateScopeType) ToPointer() *AccessReviewTemplateScopeType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccessReviewTemplateScopeType) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_REVIEW_SCOPE_TYPE_UNSPECIFIED", "ACCESS_REVIEW_SCOPE_TYPE_BY_ENTITLEMENTS", "ACCESS_REVIEW_SCOPE_TYPE_BY_ACCESS_CONFLICTS": + return true + } + } + return false +} + +// The AccessReviewTemplate message. +// +// This message contains a oneof named slack_channel_details. Only a single field of the following list may be set at a time: +// - slackChannel +type AccessReviewTemplate struct { + // The AccessReviewInclusionScope message. + AccessReviewInclusionScope *AccessReviewInclusionScope `json:"inclusionScope,omitempty"` + // The AccessReviewScopeV2 message. + // + // This message contains a oneof named apps_and_resources_scope. Only a single field of the following list may be set at a time: + // - appAccess + // - specificResources + // - appSelectionCriteria + // - resourceTypeSelections + // + // + // This message contains a oneof named users_scope. Only a single field of the following list may be set at a time: + // - allUsers + // - selectedUsers + // - userCriteria + // - celExpression + // + // + // This message contains a oneof named accounts_scope. Only a single field of the following list may be set at a time: + // - allAccounts + // - accountCriteria + // - accountCelExpression + // + // + // This message contains a oneof named grants_scope. Only a single field of the following list may be set at a time: + // - allGrants + // - grantsByCriteria + // + // + // This message contains a oneof named access_conflicts_scope. Only a single field of the following list may be set at a time: + // - allAccessConflicts + // - specificAccessConflicts + // + AccessReviewScopeV2 *AccessReviewScopeV2 `json:"scope,omitempty"` + // The NotificationConfig message. + NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` + // The RecurrenceRule message. + // + // This message contains a oneof named end_condition. Only a single field of the following list may be set at a time: + // - endDate + // - occurrences + // + RecurrenceRule *RecurrenceRule `json:"recurrenceRule,omitempty"` + // Signature configuration for access review submissions + ReviewSignatureConfig *ReviewSignatureConfig `json:"signatureConfig,omitempty"` + // The SlackChannel message. + SlackChannel *SlackChannel `json:"slackChannel,omitempty"` + AccessReviewDuration *string `json:"accessReviewDuration,omitempty"` + // auto generate report when campaign is closed + AutoGenerateReport *bool `json:"autoGenerateReport,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + // The defaultView field. + DefaultView *AccessReviewTemplateDefaultView `json:"defaultView,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The exemptCertifiedAccessConflicts field. + ExemptCertifiedAccessConflicts *bool `json:"exemptCertifiedAccessConflicts,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` + // The isCampaignScheduleEnabled field. + IsCampaignScheduleEnabled *bool `json:"isCampaignScheduleEnabled,omitempty"` + NextScheduledCampaignAt *time.Time `json:"nextScheduledCampaignAt,omitempty"` + // The occurrences field. + Occurrences *int `json:"occurrences,omitempty"` + // The policyId field. + PolicyID *string `json:"policyId,omitempty"` + // The reviewInstructions field. + ReviewInstructions *string `json:"reviewInstructions,omitempty"` + // The scopeType field. + ScopeType *AccessReviewTemplateScopeType `json:"scopeType,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + // The usePolicyOverride field. + UsePolicyOverride *bool `json:"usePolicyOverride,omitempty"` +} + +func (a AccessReviewTemplate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessReviewTemplate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *AccessReviewTemplate) GetAccessReviewInclusionScope() *AccessReviewInclusionScope { + if a == nil { + return nil + } + return a.AccessReviewInclusionScope +} + +func (a *AccessReviewTemplate) GetAccessReviewScopeV2() *AccessReviewScopeV2 { + if a == nil { + return nil + } + return a.AccessReviewScopeV2 +} + +func (a *AccessReviewTemplate) GetNotificationConfig() *NotificationConfig { + if a == nil { + return nil + } + return a.NotificationConfig +} + +func (a *AccessReviewTemplate) GetRecurrenceRule() *RecurrenceRule { + if a == nil { + return nil + } + return a.RecurrenceRule +} + +func (a *AccessReviewTemplate) GetReviewSignatureConfig() *ReviewSignatureConfig { + if a == nil { + return nil + } + return a.ReviewSignatureConfig +} + +func (a *AccessReviewTemplate) GetSlackChannel() *SlackChannel { + if a == nil { + return nil + } + return a.SlackChannel +} + +func (a *AccessReviewTemplate) GetAccessReviewDuration() *string { + if a == nil { + return nil + } + return a.AccessReviewDuration +} + +func (a *AccessReviewTemplate) GetAutoGenerateReport() *bool { + if a == nil { + return nil + } + return a.AutoGenerateReport +} + +func (a *AccessReviewTemplate) GetCreatedAt() *time.Time { + if a == nil { + return nil + } + return a.CreatedAt +} + +func (a *AccessReviewTemplate) GetDefaultView() *AccessReviewTemplateDefaultView { + if a == nil { + return nil + } + return a.DefaultView +} + +func (a *AccessReviewTemplate) GetDeletedAt() *time.Time { + if a == nil { + return nil + } + return a.DeletedAt +} + +func (a *AccessReviewTemplate) GetDescription() *string { + if a == nil { + return nil + } + return a.Description +} + +func (a *AccessReviewTemplate) GetDisplayName() *string { + if a == nil { + return nil + } + return a.DisplayName +} + +func (a *AccessReviewTemplate) GetExemptCertifiedAccessConflicts() *bool { + if a == nil { + return nil + } + return a.ExemptCertifiedAccessConflicts +} + +func (a *AccessReviewTemplate) GetID() *string { + if a == nil { + return nil + } + return a.ID +} + +func (a *AccessReviewTemplate) GetIsCampaignScheduleEnabled() *bool { + if a == nil { + return nil + } + return a.IsCampaignScheduleEnabled +} + +func (a *AccessReviewTemplate) GetNextScheduledCampaignAt() *time.Time { + if a == nil { + return nil + } + return a.NextScheduledCampaignAt +} + +func (a *AccessReviewTemplate) GetOccurrences() *int { + if a == nil { + return nil + } + return a.Occurrences +} + +func (a *AccessReviewTemplate) GetPolicyID() *string { + if a == nil { + return nil + } + return a.PolicyID +} + +func (a *AccessReviewTemplate) GetReviewInstructions() *string { + if a == nil { + return nil + } + return a.ReviewInstructions +} + +func (a *AccessReviewTemplate) GetScopeType() *AccessReviewTemplateScopeType { + if a == nil { + return nil + } + return a.ScopeType +} + +func (a *AccessReviewTemplate) GetUpdatedAt() *time.Time { + if a == nil { + return nil + } + return a.UpdatedAt +} + +func (a *AccessReviewTemplate) GetUsePolicyOverride() *bool { + if a == nil { + return nil + } + return a.UsePolicyOverride +} + +// AccessReviewTemplateInput - The AccessReviewTemplate message. +// +// This message contains a oneof named slack_channel_details. Only a single field of the following list may be set at a time: +// - slackChannel +type AccessReviewTemplateInput struct { + // The AccessReviewInclusionScope message. + AccessReviewInclusionScope *AccessReviewInclusionScope `json:"inclusionScope,omitempty"` + // The AccessReviewScopeV2 message. + // + // This message contains a oneof named apps_and_resources_scope. Only a single field of the following list may be set at a time: + // - appAccess + // - specificResources + // - appSelectionCriteria + // - resourceTypeSelections + // + // + // This message contains a oneof named users_scope. Only a single field of the following list may be set at a time: + // - allUsers + // - selectedUsers + // - userCriteria + // - celExpression + // + // + // This message contains a oneof named accounts_scope. Only a single field of the following list may be set at a time: + // - allAccounts + // - accountCriteria + // - accountCelExpression + // + // + // This message contains a oneof named grants_scope. Only a single field of the following list may be set at a time: + // - allGrants + // - grantsByCriteria + // + // + // This message contains a oneof named access_conflicts_scope. Only a single field of the following list may be set at a time: + // - allAccessConflicts + // - specificAccessConflicts + // + AccessReviewScopeV2 *AccessReviewScopeV2 `json:"scope,omitempty"` + // The NotificationConfig message. + NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` + // The RecurrenceRule message. + // + // This message contains a oneof named end_condition. Only a single field of the following list may be set at a time: + // - endDate + // - occurrences + // + RecurrenceRule *RecurrenceRule `json:"recurrenceRule,omitempty"` + // Signature configuration for access review submissions + ReviewSignatureConfig *ReviewSignatureConfig `json:"signatureConfig,omitempty"` + // The SlackChannel message. + SlackChannel *SlackChannel `json:"slackChannel,omitempty"` + AccessReviewDuration *string `json:"accessReviewDuration,omitempty"` + // auto generate report when campaign is closed + AutoGenerateReport *bool `json:"autoGenerateReport,omitempty"` + // The defaultView field. + DefaultView *AccessReviewTemplateDefaultView `json:"defaultView,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The exemptCertifiedAccessConflicts field. + ExemptCertifiedAccessConflicts *bool `json:"exemptCertifiedAccessConflicts,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` + // The isCampaignScheduleEnabled field. + IsCampaignScheduleEnabled *bool `json:"isCampaignScheduleEnabled,omitempty"` + NextScheduledCampaignAt *time.Time `json:"nextScheduledCampaignAt,omitempty"` + // The occurrences field. + Occurrences *int `json:"occurrences,omitempty"` + // The policyId field. + PolicyID *string `json:"policyId,omitempty"` + // The reviewInstructions field. + ReviewInstructions *string `json:"reviewInstructions,omitempty"` + // The scopeType field. + ScopeType *AccessReviewTemplateScopeType `json:"scopeType,omitempty"` + // The usePolicyOverride field. + UsePolicyOverride *bool `json:"usePolicyOverride,omitempty"` +} + +func (a AccessReviewTemplateInput) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessReviewTemplateInput) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *AccessReviewTemplateInput) GetAccessReviewInclusionScope() *AccessReviewInclusionScope { + if a == nil { + return nil + } + return a.AccessReviewInclusionScope +} + +func (a *AccessReviewTemplateInput) GetAccessReviewScopeV2() *AccessReviewScopeV2 { + if a == nil { + return nil + } + return a.AccessReviewScopeV2 +} + +func (a *AccessReviewTemplateInput) GetNotificationConfig() *NotificationConfig { + if a == nil { + return nil + } + return a.NotificationConfig +} + +func (a *AccessReviewTemplateInput) GetRecurrenceRule() *RecurrenceRule { + if a == nil { + return nil + } + return a.RecurrenceRule +} + +func (a *AccessReviewTemplateInput) GetReviewSignatureConfig() *ReviewSignatureConfig { + if a == nil { + return nil + } + return a.ReviewSignatureConfig +} + +func (a *AccessReviewTemplateInput) GetSlackChannel() *SlackChannel { + if a == nil { + return nil + } + return a.SlackChannel +} + +func (a *AccessReviewTemplateInput) GetAccessReviewDuration() *string { + if a == nil { + return nil + } + return a.AccessReviewDuration +} + +func (a *AccessReviewTemplateInput) GetAutoGenerateReport() *bool { + if a == nil { + return nil + } + return a.AutoGenerateReport +} + +func (a *AccessReviewTemplateInput) GetDefaultView() *AccessReviewTemplateDefaultView { + if a == nil { + return nil + } + return a.DefaultView +} + +func (a *AccessReviewTemplateInput) GetDescription() *string { + if a == nil { + return nil + } + return a.Description +} + +func (a *AccessReviewTemplateInput) GetDisplayName() *string { + if a == nil { + return nil + } + return a.DisplayName +} + +func (a *AccessReviewTemplateInput) GetExemptCertifiedAccessConflicts() *bool { + if a == nil { + return nil + } + return a.ExemptCertifiedAccessConflicts +} + +func (a *AccessReviewTemplateInput) GetID() *string { + if a == nil { + return nil + } + return a.ID +} + +func (a *AccessReviewTemplateInput) GetIsCampaignScheduleEnabled() *bool { + if a == nil { + return nil + } + return a.IsCampaignScheduleEnabled +} + +func (a *AccessReviewTemplateInput) GetNextScheduledCampaignAt() *time.Time { + if a == nil { + return nil + } + return a.NextScheduledCampaignAt +} + +func (a *AccessReviewTemplateInput) GetOccurrences() *int { + if a == nil { + return nil + } + return a.Occurrences +} + +func (a *AccessReviewTemplateInput) GetPolicyID() *string { + if a == nil { + return nil + } + return a.PolicyID +} + +func (a *AccessReviewTemplateInput) GetReviewInstructions() *string { + if a == nil { + return nil + } + return a.ReviewInstructions +} + +func (a *AccessReviewTemplateInput) GetScopeType() *AccessReviewTemplateScopeType { + if a == nil { + return nil + } + return a.ScopeType +} + +func (a *AccessReviewTemplateInput) GetUsePolicyOverride() *bool { + if a == nil { + return nil + } + return a.UsePolicyOverride +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicecreaterequest.go new file mode 100644 index 00000000..1e3d3180 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicecreaterequest.go @@ -0,0 +1,93 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// AccessReviewTemplateServiceCreateRequestScopeType - The scopeType field. +type AccessReviewTemplateServiceCreateRequestScopeType string + +const ( + AccessReviewTemplateServiceCreateRequestScopeTypeAccessReviewScopeTypeUnspecified AccessReviewTemplateServiceCreateRequestScopeType = "ACCESS_REVIEW_SCOPE_TYPE_UNSPECIFIED" + AccessReviewTemplateServiceCreateRequestScopeTypeAccessReviewScopeTypeByEntitlements AccessReviewTemplateServiceCreateRequestScopeType = "ACCESS_REVIEW_SCOPE_TYPE_BY_ENTITLEMENTS" + AccessReviewTemplateServiceCreateRequestScopeTypeAccessReviewScopeTypeByAccessConflicts AccessReviewTemplateServiceCreateRequestScopeType = "ACCESS_REVIEW_SCOPE_TYPE_BY_ACCESS_CONFLICTS" +) + +func (e AccessReviewTemplateServiceCreateRequestScopeType) ToPointer() *AccessReviewTemplateServiceCreateRequestScopeType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccessReviewTemplateServiceCreateRequestScopeType) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_REVIEW_SCOPE_TYPE_UNSPECIFIED", "ACCESS_REVIEW_SCOPE_TYPE_BY_ENTITLEMENTS", "ACCESS_REVIEW_SCOPE_TYPE_BY_ACCESS_CONFLICTS": + return true + } + } + return false +} + +// The AccessReviewTemplateServiceCreateRequest message. +type AccessReviewTemplateServiceCreateRequest struct { + // The NotificationConfig message. + NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` + AccessReviewDuration *string `json:"accessReviewDuration,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The ownerIds field. + OwnerIds []string `json:"ownerIds,omitempty"` + // The policyId field. + PolicyID *string `json:"policyId,omitempty"` + // The scopeType field. + ScopeType *AccessReviewTemplateServiceCreateRequestScopeType `json:"scopeType,omitempty"` +} + +func (a *AccessReviewTemplateServiceCreateRequest) GetNotificationConfig() *NotificationConfig { + if a == nil { + return nil + } + return a.NotificationConfig +} + +func (a *AccessReviewTemplateServiceCreateRequest) GetAccessReviewDuration() *string { + if a == nil { + return nil + } + return a.AccessReviewDuration +} + +func (a *AccessReviewTemplateServiceCreateRequest) GetDescription() *string { + if a == nil { + return nil + } + return a.Description +} + +func (a *AccessReviewTemplateServiceCreateRequest) GetDisplayName() *string { + if a == nil { + return nil + } + return a.DisplayName +} + +func (a *AccessReviewTemplateServiceCreateRequest) GetOwnerIds() []string { + if a == nil { + return nil + } + return a.OwnerIds +} + +func (a *AccessReviewTemplateServiceCreateRequest) GetPolicyID() *string { + if a == nil { + return nil + } + return a.PolicyID +} + +func (a *AccessReviewTemplateServiceCreateRequest) GetScopeType() *AccessReviewTemplateServiceCreateRequestScopeType { + if a == nil { + return nil + } + return a.ScopeType +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicecreateresponse.go new file mode 100644 index 00000000..9b26f5b4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicecreateresponse.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewTemplateServiceCreateResponse message. +type AccessReviewTemplateServiceCreateResponse struct { + // The AccessReviewTemplate message. + // + // This message contains a oneof named slack_channel_details. Only a single field of the following list may be set at a time: + // - slackChannel + // + AccessReviewTemplate *AccessReviewTemplate `json:"accessReviewTemplate,omitempty"` +} + +func (a *AccessReviewTemplateServiceCreateResponse) GetAccessReviewTemplate() *AccessReviewTemplate { + if a == nil { + return nil + } + return a.AccessReviewTemplate +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicedeleterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicedeleterequest.go new file mode 100644 index 00000000..f0dad3c9 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicedeleterequest.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewTemplateServiceDeleteRequest message. +type AccessReviewTemplateServiceDeleteRequest struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicedeleteresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicedeleteresponse.go new file mode 100644 index 00000000..2af0fc66 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicedeleteresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewTemplateServiceDeleteResponse message. +type AccessReviewTemplateServiceDeleteResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicegetresponse.go new file mode 100644 index 00000000..f194c6c9 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateservicegetresponse.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewTemplateServiceGetResponse message. +type AccessReviewTemplateServiceGetResponse struct { + // The AccessReviewTemplate message. + // + // This message contains a oneof named slack_channel_details. Only a single field of the following list may be set at a time: + // - slackChannel + // + AccessReviewTemplate *AccessReviewTemplate `json:"accessReviewTemplate,omitempty"` +} + +func (a *AccessReviewTemplateServiceGetResponse) GetAccessReviewTemplate() *AccessReviewTemplate { + if a == nil { + return nil + } + return a.AccessReviewTemplate +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateserviceupdaterequest.go new file mode 100644 index 00000000..1cae09ca --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateserviceupdaterequest.go @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewTemplateServiceUpdateRequest message. +type AccessReviewTemplateServiceUpdateRequest struct { + // The AccessReviewTemplate message. + // + // This message contains a oneof named slack_channel_details. Only a single field of the following list may be set at a time: + // - slackChannel + // + AccessReviewTemplate *AccessReviewTemplateInput `json:"accessReviewTemplate,omitempty"` + UpdateMask *string `json:"updateMask,omitempty"` +} + +func (a *AccessReviewTemplateServiceUpdateRequest) GetAccessReviewTemplate() *AccessReviewTemplateInput { + if a == nil { + return nil + } + return a.AccessReviewTemplate +} + +func (a *AccessReviewTemplateServiceUpdateRequest) GetUpdateMask() *string { + if a == nil { + return nil + } + return a.UpdateMask +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateserviceupdateresponse.go new file mode 100644 index 00000000..b61bee09 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewtemplateserviceupdateresponse.go @@ -0,0 +1,20 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewTemplateServiceUpdateResponse message. +type AccessReviewTemplateServiceUpdateResponse struct { + // The AccessReviewTemplate message. + // + // This message contains a oneof named slack_channel_details. Only a single field of the following list may be set at a time: + // - slackChannel + // + AccessReviewTemplate *AccessReviewTemplate `json:"accessReviewTemplate,omitempty"` +} + +func (a *AccessReviewTemplateServiceUpdateResponse) GetAccessReviewTemplate() *AccessReviewTemplate { + if a == nil { + return nil + } + return a.AccessReviewTemplate +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewview.go new file mode 100644 index 00000000..0a33112b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accessreviewview.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccessReviewView message. +type AccessReviewView struct { + // The AccessReview message. + // + // This message contains a oneof named setup_metadata. Only a single field of the following list may be set at a time: + // - singleApp + // - multiApp + // - bindings + // + AccessReview *AccessReview `json:"accessReview,omitempty"` + // The ActorObjectPermissions message. + ActorObjectPermissions *ActorObjectPermissions `json:"objectPermissions,omitempty"` + // The createdByUserPath field. + CreatedByUserPath *string `json:"createdByUserPath,omitempty"` + // The policyPath field. + PolicyPath *string `json:"policyPath,omitempty"` +} + +func (a *AccessReviewView) GetAccessReview() *AccessReview { + if a == nil { + return nil + } + return a.AccessReview +} + +func (a *AccessReviewView) GetActorObjectPermissions() *ActorObjectPermissions { + if a == nil { + return nil + } + return a.ActorObjectPermissions +} + +func (a *AccessReviewView) GetCreatedByUserPath() *string { + if a == nil { + return nil + } + return a.CreatedByUserPath +} + +func (a *AccessReviewView) GetPolicyPath() *string { + if a == nil { + return nil + } + return a.PolicyPath +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountcriteriascope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountcriteriascope.go new file mode 100644 index 00000000..ab5bab72 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountcriteriascope.go @@ -0,0 +1,115 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// AccountDomain - The accountDomain field. +type AccountDomain string + +const ( + AccountDomainAppUserDomainUnspecified AccountDomain = "APP_USER_DOMAIN_UNSPECIFIED" + AccountDomainAppUserDomainExternal AccountDomain = "APP_USER_DOMAIN_EXTERNAL" + AccountDomainAppUserDomainTrusted AccountDomain = "APP_USER_DOMAIN_TRUSTED" +) + +func (e AccountDomain) ToPointer() *AccountDomain { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccountDomain) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_DOMAIN_UNSPECIFIED", "APP_USER_DOMAIN_EXTERNAL", "APP_USER_DOMAIN_TRUSTED": + return true + } + } + return false +} + +type AccountTypes string + +const ( + AccountTypesAppUserTypeUnspecified AccountTypes = "APP_USER_TYPE_UNSPECIFIED" + AccountTypesAppUserTypeUser AccountTypes = "APP_USER_TYPE_USER" + AccountTypesAppUserTypeServiceAccount AccountTypes = "APP_USER_TYPE_SERVICE_ACCOUNT" + AccountTypesAppUserTypeSystemAccount AccountTypes = "APP_USER_TYPE_SYSTEM_ACCOUNT" +) + +func (e AccountTypes) ToPointer() *AccountTypes { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccountTypes) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + +type AccountCriteriaScopeAppUserStatuses string + +const ( + AccountCriteriaScopeAppUserStatusesAppUserStatusUnspecified AccountCriteriaScopeAppUserStatuses = "APP_USER_STATUS_UNSPECIFIED" + AccountCriteriaScopeAppUserStatusesAppUserStatusEnabled AccountCriteriaScopeAppUserStatuses = "APP_USER_STATUS_ENABLED" + AccountCriteriaScopeAppUserStatusesAppUserStatusDisabled AccountCriteriaScopeAppUserStatuses = "APP_USER_STATUS_DISABLED" + AccountCriteriaScopeAppUserStatusesAppUserStatusDeleted AccountCriteriaScopeAppUserStatuses = "APP_USER_STATUS_DELETED" +) + +func (e AccountCriteriaScopeAppUserStatuses) ToPointer() *AccountCriteriaScopeAppUserStatuses { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccountCriteriaScopeAppUserStatuses) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_STATUS_UNSPECIFIED", "APP_USER_STATUS_ENABLED", "APP_USER_STATUS_DISABLED", "APP_USER_STATUS_DELETED": + return true + } + } + return false +} + +// The AccountCriteriaScope message. +type AccountCriteriaScope struct { + // The accountDomain field. + AccountDomain *AccountDomain `json:"accountDomain,omitempty"` + // The accountTypes field. + AccountTypes []AccountTypes `json:"accountTypes,omitempty"` + // The appUserStatuses field. + AppUserStatuses []AccountCriteriaScopeAppUserStatuses `json:"appUserStatuses,omitempty"` + // The noAccountOwner field. + NoAccountOwner *bool `json:"noAccountOwner,omitempty"` +} + +func (a *AccountCriteriaScope) GetAccountDomain() *AccountDomain { + if a == nil { + return nil + } + return a.AccountDomain +} + +func (a *AccountCriteriaScope) GetAccountTypes() []AccountTypes { + if a == nil { + return nil + } + return a.AccountTypes +} + +func (a *AccountCriteriaScope) GetAppUserStatuses() []AccountCriteriaScopeAppUserStatuses { + if a == nil { + return nil + } + return a.AppUserStatuses +} + +func (a *AccountCriteriaScope) GetNoAccountOwner() *bool { + if a == nil { + return nil + } + return a.NoAccountOwner +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountfilter.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountfilter.go index c53396ea..91cbed06 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountfilter.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountfilter.go @@ -16,15 +16,26 @@ func (e AccountType) ToPointer() *AccountType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AccountType) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + // The AccountFilter message. type AccountFilter struct { // The accountType field. AccountType *AccountType `json:"accountType,omitempty"` } -func (o *AccountFilter) GetAccountType() *AccountType { - if o == nil { +func (a *AccountFilter) GetAccountType() *AccountType { + if a == nil { return nil } - return o.AccountType + return a.AccountType } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountincontext.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountincontext.go new file mode 100644 index 00000000..740919e0 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountincontext.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccountInContext message. +type AccountInContext struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountlifecycleaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountlifecycleaction.go new file mode 100644 index 00000000..895e37d6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountlifecycleaction.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccountLifecycleAction message. +// +// This message contains a oneof named account_identifier. Only a single field of the following list may be set at a time: +// - accountRef +// - accountInContext +type AccountLifecycleAction struct { + // The AccountInContext message. + AccountInContext *AccountInContext `json:"accountInContext,omitempty"` + // The AccountRef message. + AccountRef *AccountRef `json:"accountRef,omitempty"` + // The ConnectorRef message. + ConnectorRef *ConnectorRef `json:"connectorRef,omitempty"` + // The actionName field. + ActionName *string `json:"actionName,omitempty"` +} + +func (a *AccountLifecycleAction) GetAccountInContext() *AccountInContext { + if a == nil { + return nil + } + return a.AccountInContext +} + +func (a *AccountLifecycleAction) GetAccountRef() *AccountRef { + if a == nil { + return nil + } + return a.AccountRef +} + +func (a *AccountLifecycleAction) GetConnectorRef() *ConnectorRef { + if a == nil { + return nil + } + return a.ConnectorRef +} + +func (a *AccountLifecycleAction) GetActionName() *string { + if a == nil { + return nil + } + return a.ActionName +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountprovision.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountprovision.go index 7b09d863..ddbd6ec9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountprovision.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountprovision.go @@ -19,37 +19,37 @@ type AccountProvision struct { SchemaID *string `json:"schemaId,omitempty"` } -func (o *AccountProvision) GetDoNotSave() *DoNotSave { - if o == nil { +func (a *AccountProvision) GetDoNotSave() *DoNotSave { + if a == nil { return nil } - return o.DoNotSave + return a.DoNotSave } -func (o *AccountProvision) GetSaveToVault() *SaveToVault { - if o == nil { +func (a *AccountProvision) GetSaveToVault() *SaveToVault { + if a == nil { return nil } - return o.SaveToVault + return a.SaveToVault } -func (o *AccountProvision) GetConfig() map[string]any { - if o == nil { +func (a *AccountProvision) GetConfig() map[string]any { + if a == nil { return nil } - return o.Config + return a.Config } -func (o *AccountProvision) GetConnectorID() *string { - if o == nil { +func (a *AccountProvision) GetConnectorID() *string { + if a == nil { return nil } - return o.ConnectorID + return a.ConnectorID } -func (o *AccountProvision) GetSchemaID() *string { - if o == nil { +func (a *AccountProvision) GetSchemaID() *string { + if a == nil { return nil } - return o.SchemaID + return a.SchemaID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountref.go new file mode 100644 index 00000000..a3e779ec --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/accountref.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AccountRef message. +type AccountRef struct { + // The accountIdCel field. + AccountIDCel *string `json:"accountIdCel,omitempty"` +} + +func (a *AccountRef) GetAccountIDCel() *string { + if a == nil { + return nil + } + return a.AccountIDCel +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/action.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/action.go new file mode 100644 index 00000000..1997916b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/action.go @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The Action message. +// +// This message contains a oneof named target. Only a single field of the following list may be set at a time: +// - automation +type Action struct { + // The ActionTargetAutomation message. + ActionTargetAutomation *ActionTargetAutomation `json:"automation,omitempty"` +} + +func (a *Action) GetActionTargetAutomation() *ActionTargetAutomation { + if a == nil { + return nil + } + return a.ActionTargetAutomation +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actioninstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actioninstance.go new file mode 100644 index 00000000..f5edcf4c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actioninstance.go @@ -0,0 +1,109 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// ActionInstanceState - The current state of the action execution. +type ActionInstanceState string + +const ( + ActionInstanceStateActionInstanceStateUnspecified ActionInstanceState = "ACTION_INSTANCE_STATE_UNSPECIFIED" + ActionInstanceStateActionInstanceStateInit ActionInstanceState = "ACTION_INSTANCE_STATE_INIT" + ActionInstanceStateActionInstanceStateRunning ActionInstanceState = "ACTION_INSTANCE_STATE_RUNNING" + ActionInstanceStateActionInstanceStateDone ActionInstanceState = "ACTION_INSTANCE_STATE_DONE" + ActionInstanceStateActionInstanceStateError ActionInstanceState = "ACTION_INSTANCE_STATE_ERROR" +) + +func (e ActionInstanceState) ToPointer() *ActionInstanceState { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ActionInstanceState) IsExact() bool { + if e != nil { + switch *e { + case "ACTION_INSTANCE_STATE_UNSPECIFIED", "ACTION_INSTANCE_STATE_INIT", "ACTION_INSTANCE_STATE_RUNNING", "ACTION_INSTANCE_STATE_DONE", "ACTION_INSTANCE_STATE_ERROR": + return true + } + } + return false +} + +// The ActionInstance message. +// +// This message contains a oneof named target_instance. Only a single field of the following list may be set at a time: +// - automation +// +// This message contains a oneof named outcome. Only a single field of the following list may be set at a time: +// - success +// - denied +// - error +// - cancelled +type ActionInstance struct { + // The Action message. + // + // This message contains a oneof named target. Only a single field of the following list may be set at a time: + // - automation + // + Action *Action `json:"action,omitempty"` + // The ActionOutcomeCancelled message. + ActionOutcomeCancelled *ActionOutcomeCancelled `json:"cancelled,omitempty"` + // The ActionOutcomeDenied message. + ActionOutcomeDenied *ActionOutcomeDenied `json:"denied,omitempty"` + // The ActionOutcomeError message. + ActionOutcomeError *ActionOutcomeError `json:"error,omitempty"` + // The ActionOutcomeSuccess message. + ActionOutcomeSuccess *ActionOutcomeSuccess `json:"success,omitempty"` + // The ActionTargetAutomationInstance message. + ActionTargetAutomationInstance *ActionTargetAutomationInstance `json:"automation,omitempty"` + // The current state of the action execution. + State *ActionInstanceState `json:"state,omitempty"` +} + +func (a *ActionInstance) GetAction() *Action { + if a == nil { + return nil + } + return a.Action +} + +func (a *ActionInstance) GetActionOutcomeCancelled() *ActionOutcomeCancelled { + if a == nil { + return nil + } + return a.ActionOutcomeCancelled +} + +func (a *ActionInstance) GetActionOutcomeDenied() *ActionOutcomeDenied { + if a == nil { + return nil + } + return a.ActionOutcomeDenied +} + +func (a *ActionInstance) GetActionOutcomeError() *ActionOutcomeError { + if a == nil { + return nil + } + return a.ActionOutcomeError +} + +func (a *ActionInstance) GetActionOutcomeSuccess() *ActionOutcomeSuccess { + if a == nil { + return nil + } + return a.ActionOutcomeSuccess +} + +func (a *ActionInstance) GetActionTargetAutomationInstance() *ActionTargetAutomationInstance { + if a == nil { + return nil + } + return a.ActionTargetAutomationInstance +} + +func (a *ActionInstance) GetState() *ActionInstanceState { + if a == nil { + return nil + } + return a.State +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomecancelled.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomecancelled.go new file mode 100644 index 00000000..b99115b2 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomecancelled.go @@ -0,0 +1,31 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The ActionOutcomeCancelled message. +type ActionOutcomeCancelled struct { + OutcomeTime *time.Time `json:"outcomeTime,omitempty"` +} + +func (a ActionOutcomeCancelled) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *ActionOutcomeCancelled) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *ActionOutcomeCancelled) GetOutcomeTime() *time.Time { + if a == nil { + return nil + } + return a.OutcomeTime +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomedenied.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomedenied.go new file mode 100644 index 00000000..654b8910 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomedenied.go @@ -0,0 +1,31 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The ActionOutcomeDenied message. +type ActionOutcomeDenied struct { + OutcomeTime *time.Time `json:"outcomeTime,omitempty"` +} + +func (a ActionOutcomeDenied) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *ActionOutcomeDenied) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *ActionOutcomeDenied) GetOutcomeTime() *time.Time { + if a == nil { + return nil + } + return a.OutcomeTime +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomeerror.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomeerror.go new file mode 100644 index 00000000..44ff25d6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomeerror.go @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The ActionOutcomeError message. +type ActionOutcomeError struct { + // The errorCode field. + ErrorCode *string `json:"errorCode,omitempty"` + // The errorMessage field. + ErrorMessage *string `json:"errorMessage,omitempty"` + OutcomeTime *time.Time `json:"outcomeTime,omitempty"` +} + +func (a ActionOutcomeError) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *ActionOutcomeError) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *ActionOutcomeError) GetErrorCode() *string { + if a == nil { + return nil + } + return a.ErrorCode +} + +func (a *ActionOutcomeError) GetErrorMessage() *string { + if a == nil { + return nil + } + return a.ErrorMessage +} + +func (a *ActionOutcomeError) GetOutcomeTime() *time.Time { + if a == nil { + return nil + } + return a.OutcomeTime +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomesuccess.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomesuccess.go new file mode 100644 index 00000000..03608c55 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionoutcomesuccess.go @@ -0,0 +1,31 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The ActionOutcomeSuccess message. +type ActionOutcomeSuccess struct { + OutcomeTime *time.Time `json:"outcomeTime,omitempty"` +} + +func (a ActionOutcomeSuccess) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *ActionOutcomeSuccess) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *ActionOutcomeSuccess) GetOutcomeTime() *time.Time { + if a == nil { + return nil + } + return a.OutcomeTime +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionprovision.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionprovision.go new file mode 100644 index 00000000..0e51f890 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actionprovision.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// ActionProvision - This provision step indicates that account lifecycle action should be called to provision this entitlement. +type ActionProvision struct { + // The actionName field. + ActionName *string `json:"actionName,omitempty"` + // The appId field. + AppID *string `json:"appId,omitempty"` + // The connectorId field. + ConnectorID *string `json:"connectorId,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` +} + +func (a *ActionProvision) GetActionName() *string { + if a == nil { + return nil + } + return a.ActionName +} + +func (a *ActionProvision) GetAppID() *string { + if a == nil { + return nil + } + return a.AppID +} + +func (a *ActionProvision) GetConnectorID() *string { + if a == nil { + return nil + } + return a.ConnectorID +} + +func (a *ActionProvision) GetDisplayName() *string { + if a == nil { + return nil + } + return a.DisplayName +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actiontargetautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actiontargetautomation.go new file mode 100644 index 00000000..03174d83 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actiontargetautomation.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ActionTargetAutomation message. +type ActionTargetAutomation struct { + // The automationTemplateId field. + AutomationTemplateID *string `json:"automationTemplateId,omitempty"` +} + +func (a *ActionTargetAutomation) GetAutomationTemplateID() *string { + if a == nil { + return nil + } + return a.AutomationTemplateID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actiontargetautomationinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actiontargetautomationinstance.go new file mode 100644 index 00000000..c4484a93 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actiontargetautomationinstance.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ActionTargetAutomationInstance message. +type ActionTargetAutomationInstance struct { + // The automationExecutionId field. + AutomationExecutionID *string `json:"automationExecutionId,omitempty"` +} + +func (a *ActionTargetAutomationInstance) GetAutomationExecutionID() *string { + if a == nil { + return nil + } + return a.AutomationExecutionID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actorobjectpermissions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actorobjectpermissions.go new file mode 100644 index 00000000..253cdaed --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/actorobjectpermissions.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ActorObjectPermissions message. +type ActorObjectPermissions struct { + // The delete field. + Delete *bool `json:"delete,omitempty"` + // The edit field. + Edit *bool `json:"edit,omitempty"` + // The extra field. + Extra map[string]bool `json:"extra,omitempty"` + // The read field. + Read *bool `json:"read,omitempty"` +} + +func (a *ActorObjectPermissions) GetDelete() *bool { + if a == nil { + return nil + } + return a.Delete +} + +func (a *ActorObjectPermissions) GetEdit() *bool { + if a == nil { + return nil + } + return a.Edit +} + +func (a *ActorObjectPermissions) GetExtra() map[string]bool { + if a == nil { + return nil + } + return a.Extra +} + +func (a *ActorObjectPermissions) GetRead() *bool { + if a == nil { + return nil + } + return a.Read +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addappentitlementownerrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addappentitlementownerrequest.go index 4dd96ecd..7494d5f0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addappentitlementownerrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addappentitlementownerrequest.go @@ -8,9 +8,9 @@ type AddAppEntitlementOwnerRequest struct { UserID *string `json:"userId,omitempty"` } -func (o *AddAppEntitlementOwnerRequest) GetUserID() *string { - if o == nil { +func (a *AddAppEntitlementOwnerRequest) GetUserID() *string { + if a == nil { return nil } - return o.UserID + return a.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addappresourceownerrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addappresourceownerrequest.go index d121bbae..dafdf582 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addappresourceownerrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addappresourceownerrequest.go @@ -8,9 +8,9 @@ type AddAppResourceOwnerRequest struct { UserID *string `json:"userId,omitempty"` } -func (o *AddAppResourceOwnerRequest) GetUserID() *string { - if o == nil { +func (a *AddAppResourceOwnerRequest) GetUserID() *string { + if a == nil { return nil } - return o.UserID + return a.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addautomationexclusionrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addautomationexclusionrequest.go index c231db5c..700a459d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addautomationexclusionrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addautomationexclusionrequest.go @@ -8,9 +8,9 @@ type AddAutomationExclusionRequest struct { UserIds []string `json:"userIds,omitempty"` } -func (o *AddAutomationExclusionRequest) GetUserIds() []string { - if o == nil { +func (a *AddAutomationExclusionRequest) GetUserIds() []string { + if a == nil { return nil } - return o.UserIds + return a.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addmanuallymanagedusersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addmanuallymanagedusersrequest.go index 58b00864..95bba9f1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addmanuallymanagedusersrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/addmanuallymanagedusersrequest.go @@ -8,9 +8,9 @@ type AddManuallyManagedUsersRequest struct { UserIds []string `json:"userIds,omitempty"` } -func (o *AddManuallyManagedUsersRequest) GetUserIds() []string { - if o == nil { +func (a *AddManuallyManagedUsersRequest) GetUserIds() []string { + if a == nil { return nil } - return o.UserIds + return a.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/adminproviderconfig.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/adminproviderconfig.go new file mode 100644 index 00000000..b559127c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/adminproviderconfig.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AdminProviderConfig message. +type AdminProviderConfig struct { + // The defaultValueCel field. + DefaultValueCel *string `json:"defaultValueCel,omitempty"` + // The showToUser field. + ShowToUser *bool `json:"showToUser,omitempty"` +} + +func (a *AdminProviderConfig) GetDefaultValueCel() *string { + if a == nil { + return nil + } + return a.DefaultValueCel +} + +func (a *AdminProviderConfig) GetShowToUser() *bool { + if a == nil { + return nil + } + return a.ShowToUser +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/agentapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/agentapproval.go index 119d8c6b..89ef26a5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/agentapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/agentapproval.go @@ -16,6 +16,17 @@ func (e AgentFailureAction) ToPointer() *AgentFailureAction { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AgentFailureAction) IsExact() bool { + if e != nil { + switch *e { + case "APPROVAL_AGENT_FAILURE_ACTION_UNSPECIFIED", "APPROVAL_AGENT_FAILURE_ACTION_REASSIGN_TO_USERS", "APPROVAL_AGENT_FAILURE_ACTION_REASSIGN_TO_SUPER_ADMINS", "APPROVAL_AGENT_FAILURE_ACTION_SKIP_POLICY_STEP": + return true + } + } + return false +} + // AgentMode - The mode of the agent, full control, change policy only, or comment only. type AgentMode string @@ -30,6 +41,17 @@ func (e AgentMode) ToPointer() *AgentMode { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AgentMode) IsExact() bool { + if e != nil { + switch *e { + case "APPROVAL_AGENT_MODE_UNSPECIFIED", "APPROVAL_AGENT_MODE_FULL_CONTROL", "APPROVAL_AGENT_MODE_CHANGE_POLICY_ONLY", "APPROVAL_AGENT_MODE_COMMENT_ONLY": + return true + } + } + return false +} + // AgentApproval - The agent to assign the task to. type AgentApproval struct { // The action to take if the agent fails to approve, deny, or reassign the task. @@ -46,44 +68,44 @@ type AgentApproval struct { ReassignToUserIds []string `json:"reassignToUserIds,omitempty"` } -func (o *AgentApproval) GetAgentFailureAction() *AgentFailureAction { - if o == nil { +func (a *AgentApproval) GetAgentFailureAction() *AgentFailureAction { + if a == nil { return nil } - return o.AgentFailureAction + return a.AgentFailureAction } -func (o *AgentApproval) GetAgentMode() *AgentMode { - if o == nil { +func (a *AgentApproval) GetAgentMode() *AgentMode { + if a == nil { return nil } - return o.AgentMode + return a.AgentMode } -func (o *AgentApproval) GetAgentUserID() *string { - if o == nil { +func (a *AgentApproval) GetAgentUserID() *string { + if a == nil { return nil } - return o.AgentUserID + return a.AgentUserID } -func (o *AgentApproval) GetInstructions() *string { - if o == nil { +func (a *AgentApproval) GetInstructions() *string { + if a == nil { return nil } - return o.Instructions + return a.Instructions } -func (o *AgentApproval) GetPolicyIds() []string { - if o == nil { +func (a *AgentApproval) GetPolicyIds() []string { + if a == nil { return nil } - return o.PolicyIds + return a.PolicyIds } -func (o *AgentApproval) GetReassignToUserIds() []string { - if o == nil { +func (a *AgentApproval) GetReassignToUserIds() []string { + if a == nil { return nil } - return o.ReassignToUserIds + return a.ReassignToUserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allaccessconflictsscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allaccessconflictsscope.go new file mode 100644 index 00000000..839d6c36 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allaccessconflictsscope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AllAccessConflictsScope message. +type AllAccessConflictsScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allaccountsscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allaccountsscope.go new file mode 100644 index 00000000..285bf16c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allaccountsscope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AllAccountsScope message. +type AllAccountsScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allgrantsscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allgrantsscope.go new file mode 100644 index 00000000..74c65149 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allgrantsscope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AllGrantsScope message. +type AllGrantsScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allusersscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allusersscope.go new file mode 100644 index 00000000..4e560433 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/allusersscope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AllUsersScope message. +type AllUsersScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/anyrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/anyrules.go index 30babe25..b25fc3d6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/anyrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/anyrules.go @@ -16,23 +16,23 @@ type AnyRules struct { Required *bool `json:"required,omitempty"` } -func (o *AnyRules) GetIn() []string { - if o == nil { +func (a *AnyRules) GetIn() []string { + if a == nil { return nil } - return o.In + return a.In } -func (o *AnyRules) GetNotIn() []string { - if o == nil { +func (a *AnyRules) GetNotIn() []string { + if a == nil { return nil } - return o.NotIn + return a.NotIn } -func (o *AnyRules) GetRequired() *bool { - if o == nil { +func (a *AnyRules) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/app.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/app.go index 1ea40232..67926bf5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/app.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/app.go @@ -20,6 +20,17 @@ func (e IdentityMatching) ToPointer() *IdentityMatching { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *IdentityMatching) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_IDENTITY_MATCHING_UNSPECIFIED", "APP_USER_IDENTITY_MATCHING_STRICT", "APP_USER_IDENTITY_MATCHING_DISPLAY_NAME": + return true + } + } + return false +} + // The App object provides all of the details for an app, as well as some configuration. type App struct { // The ID of the Account named by AccountName. @@ -75,185 +86,185 @@ func (a App) MarshalJSON() ([]byte, error) { } func (a *App) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *App) GetAppAccountID() *string { - if o == nil { +func (a *App) GetAppAccountID() *string { + if a == nil { return nil } - return o.AppAccountID + return a.AppAccountID } -func (o *App) GetAppAccountName() *string { - if o == nil { +func (a *App) GetAppAccountName() *string { + if a == nil { return nil } - return o.AppAccountName + return a.AppAccountName } -func (o *App) GetAppOwners() []User { - if o == nil { +func (a *App) GetAppOwners() []User { + if a == nil { return nil } - return o.AppOwners + return a.AppOwners } -func (o *App) GetCertifyPolicyID() *string { - if o == nil { +func (a *App) GetCertifyPolicyID() *string { + if a == nil { return nil } - return o.CertifyPolicyID + return a.CertifyPolicyID } -func (o *App) GetConnectorVersion() *int64 { - if o == nil { +func (a *App) GetConnectorVersion() *int64 { + if a == nil { return nil } - return o.ConnectorVersion + return a.ConnectorVersion } -func (o *App) GetCreatedAt() *time.Time { - if o == nil { +func (a *App) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *App) GetDefaultRequestCatalogID() *string { - if o == nil { +func (a *App) GetDefaultRequestCatalogID() *string { + if a == nil { return nil } - return o.DefaultRequestCatalogID + return a.DefaultRequestCatalogID } -func (o *App) GetDeletedAt() *time.Time { - if o == nil { +func (a *App) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *App) GetDescription() *string { - if o == nil { +func (a *App) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *App) GetDisplayName() *string { - if o == nil { +func (a *App) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *App) GetFieldMask() *string { - if o == nil { +func (a *App) GetFieldMask() *string { + if a == nil { return nil } - return o.FieldMask + return a.FieldMask } -func (o *App) GetGrantPolicyID() *string { - if o == nil { +func (a *App) GetGrantPolicyID() *string { + if a == nil { return nil } - return o.GrantPolicyID + return a.GrantPolicyID } -func (o *App) GetIconURL() *string { - if o == nil { +func (a *App) GetIconURL() *string { + if a == nil { return nil } - return o.IconURL + return a.IconURL } -func (o *App) GetID() *string { - if o == nil { +func (a *App) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *App) GetIdentityMatching() *IdentityMatching { - if o == nil { +func (a *App) GetIdentityMatching() *IdentityMatching { + if a == nil { return nil } - return o.IdentityMatching + return a.IdentityMatching } -func (o *App) GetInstructions() *string { - if o == nil { +func (a *App) GetInstructions() *string { + if a == nil { return nil } - return o.Instructions + return a.Instructions } -func (o *App) GetIsDirectory() *bool { - if o == nil { +func (a *App) GetIsDirectory() *bool { + if a == nil { return nil } - return o.IsDirectory + return a.IsDirectory } -func (o *App) GetIsManuallyManaged() *bool { - if o == nil { +func (a *App) GetIsManuallyManaged() *bool { + if a == nil { return nil } - return o.IsManuallyManaged + return a.IsManuallyManaged } -func (o *App) GetLogoURI() *string { - if o == nil { +func (a *App) GetLogoURI() *string { + if a == nil { return nil } - return o.LogoURI + return a.LogoURI } -func (o *App) GetMonthlyCostUsd() *int { - if o == nil { +func (a *App) GetMonthlyCostUsd() *int { + if a == nil { return nil } - return o.MonthlyCostUsd + return a.MonthlyCostUsd } -func (o *App) GetParentAppID() *string { - if o == nil { +func (a *App) GetParentAppID() *string { + if a == nil { return nil } - return o.ParentAppID + return a.ParentAppID } -func (o *App) GetRevokePolicyID() *string { - if o == nil { +func (a *App) GetRevokePolicyID() *string { + if a == nil { return nil } - return o.RevokePolicyID + return a.RevokePolicyID } -func (o *App) GetStrictAccessEntitlementProvisioning() *bool { - if o == nil { +func (a *App) GetStrictAccessEntitlementProvisioning() *bool { + if a == nil { return nil } - return o.StrictAccessEntitlementProvisioning + return a.StrictAccessEntitlementProvisioning } -func (o *App) GetUpdatedAt() *time.Time { - if o == nil { +func (a *App) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } -func (o *App) GetUserCount() *int64 { - if o == nil { +func (a *App) GetUserCount() *int64 { + if a == nil { return nil } - return o.UserCount + return a.UserCount } // AppInput - The App object provides all of the details for an app, as well as some configuration. @@ -286,93 +297,93 @@ type AppInput struct { StrictAccessEntitlementProvisioning *bool `json:"strictAccessEntitlementProvisioning,omitempty"` } -func (o *AppInput) GetCertifyPolicyID() *string { - if o == nil { +func (a *AppInput) GetCertifyPolicyID() *string { + if a == nil { return nil } - return o.CertifyPolicyID + return a.CertifyPolicyID } -func (o *AppInput) GetConnectorVersion() *int64 { - if o == nil { +func (a *AppInput) GetConnectorVersion() *int64 { + if a == nil { return nil } - return o.ConnectorVersion + return a.ConnectorVersion } -func (o *AppInput) GetDefaultRequestCatalogID() *string { - if o == nil { +func (a *AppInput) GetDefaultRequestCatalogID() *string { + if a == nil { return nil } - return o.DefaultRequestCatalogID + return a.DefaultRequestCatalogID } -func (o *AppInput) GetDescription() *string { - if o == nil { +func (a *AppInput) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AppInput) GetDisplayName() *string { - if o == nil { +func (a *AppInput) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppInput) GetGrantPolicyID() *string { - if o == nil { +func (a *AppInput) GetGrantPolicyID() *string { + if a == nil { return nil } - return o.GrantPolicyID + return a.GrantPolicyID } -func (o *AppInput) GetIconURL() *string { - if o == nil { +func (a *AppInput) GetIconURL() *string { + if a == nil { return nil } - return o.IconURL + return a.IconURL } -func (o *AppInput) GetIdentityMatching() *IdentityMatching { - if o == nil { +func (a *AppInput) GetIdentityMatching() *IdentityMatching { + if a == nil { return nil } - return o.IdentityMatching + return a.IdentityMatching } -func (o *AppInput) GetInstructions() *string { - if o == nil { +func (a *AppInput) GetInstructions() *string { + if a == nil { return nil } - return o.Instructions + return a.Instructions } -func (o *AppInput) GetIsManuallyManaged() *bool { - if o == nil { +func (a *AppInput) GetIsManuallyManaged() *bool { + if a == nil { return nil } - return o.IsManuallyManaged + return a.IsManuallyManaged } -func (o *AppInput) GetMonthlyCostUsd() *int { - if o == nil { +func (a *AppInput) GetMonthlyCostUsd() *int { + if a == nil { return nil } - return o.MonthlyCostUsd + return a.MonthlyCostUsd } -func (o *AppInput) GetRevokePolicyID() *string { - if o == nil { +func (a *AppInput) GetRevokePolicyID() *string { + if a == nil { return nil } - return o.RevokePolicyID + return a.RevokePolicyID } -func (o *AppInput) GetStrictAccessEntitlementProvisioning() *bool { - if o == nil { +func (a *AppInput) GetStrictAccessEntitlementProvisioning() *bool { + if a == nil { return nil } - return o.StrictAccessEntitlementProvisioning + return a.StrictAccessEntitlementProvisioning } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appaccessrequestdefaults.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appaccessrequestdefaults.go index 16569dad..536fd0f0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appaccessrequestdefaults.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appaccessrequestdefaults.go @@ -5,23 +5,34 @@ package shared type DurationUnset struct { } -// State - The last applied state of the app access request defaults. -type State string +// AppAccessRequestDefaultsState - The last applied state of the app access request defaults. +type AppAccessRequestDefaultsState string const ( - StateAppAccessRequestDefaultsLastApplyStateUnspecified State = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_UNSPECIFIED" - StateAppAccessRequestDefaultsLastApplyStateRunning State = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_RUNNING" - StateAppAccessRequestDefaultsLastApplyStateSuccess State = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_SUCCESS" - StateAppAccessRequestDefaultsLastApplyStateFailed State = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_FAILED" - StateAppAccessRequestDefaultsLastApplyStateCanceling State = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCELING" - StateAppAccessRequestDefaultsLastApplyStateCancelSuccess State = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCEL_SUCCESS" - StateAppAccessRequestDefaultsLastApplyStateCancelError State = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCEL_ERROR" + AppAccessRequestDefaultsStateAppAccessRequestDefaultsLastApplyStateUnspecified AppAccessRequestDefaultsState = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_UNSPECIFIED" + AppAccessRequestDefaultsStateAppAccessRequestDefaultsLastApplyStateRunning AppAccessRequestDefaultsState = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_RUNNING" + AppAccessRequestDefaultsStateAppAccessRequestDefaultsLastApplyStateSuccess AppAccessRequestDefaultsState = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_SUCCESS" + AppAccessRequestDefaultsStateAppAccessRequestDefaultsLastApplyStateFailed AppAccessRequestDefaultsState = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_FAILED" + AppAccessRequestDefaultsStateAppAccessRequestDefaultsLastApplyStateCanceling AppAccessRequestDefaultsState = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCELING" + AppAccessRequestDefaultsStateAppAccessRequestDefaultsLastApplyStateCancelSuccess AppAccessRequestDefaultsState = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCEL_SUCCESS" + AppAccessRequestDefaultsStateAppAccessRequestDefaultsLastApplyStateCancelError AppAccessRequestDefaultsState = "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCEL_ERROR" ) -func (e State) ToPointer() *State { +func (e AppAccessRequestDefaultsState) ToPointer() *AppAccessRequestDefaultsState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppAccessRequestDefaultsState) IsExact() bool { + if e != nil { + switch *e { + case "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_UNSPECIFIED", "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_RUNNING", "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_SUCCESS", "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_FAILED", "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCELING", "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCEL_SUCCESS", "APP_ACCESS_REQUEST_DEFAULTS_LAST_APPLY_STATE_CANCEL_ERROR": + return true + } + } + return false +} + // The AppAccessRequestDefaults message. // // This message contains a oneof named max_grant_duration. Only a single field of the following list may be set at a time: @@ -45,77 +56,77 @@ type AppAccessRequestDefaults struct { // The app resource type ids for which the app access request defaults are applied. ResourceTypeIds []string `json:"resourceTypeIds,omitempty"` // The last applied state of the app access request defaults. - State *State `json:"state,omitempty"` + State *AppAccessRequestDefaultsState `json:"state,omitempty"` } -func (o *AppAccessRequestDefaults) GetAppID() *string { - if o == nil { +func (a *AppAccessRequestDefaults) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppAccessRequestDefaults) GetCatalogIds() []string { - if o == nil { +func (a *AppAccessRequestDefaults) GetCatalogIds() []string { + if a == nil { return nil } - return o.CatalogIds + return a.CatalogIds } -func (o *AppAccessRequestDefaults) GetDefaultsEnabled() *bool { - if o == nil { +func (a *AppAccessRequestDefaults) GetDefaultsEnabled() *bool { + if a == nil { return nil } - return o.DefaultsEnabled + return a.DefaultsEnabled } -func (o *AppAccessRequestDefaults) GetDurationGrant() *string { - if o == nil { +func (a *AppAccessRequestDefaults) GetDurationGrant() *string { + if a == nil { return nil } - return o.DurationGrant + return a.DurationGrant } -func (o *AppAccessRequestDefaults) GetDurationUnset() *DurationUnset { - if o == nil { +func (a *AppAccessRequestDefaults) GetDurationUnset() *DurationUnset { + if a == nil { return nil } - return o.DurationUnset + return a.DurationUnset } -func (o *AppAccessRequestDefaults) GetEmergencyGrantEnabled() *bool { - if o == nil { +func (a *AppAccessRequestDefaults) GetEmergencyGrantEnabled() *bool { + if a == nil { return nil } - return o.EmergencyGrantEnabled + return a.EmergencyGrantEnabled } -func (o *AppAccessRequestDefaults) GetEmergencyGrantPolicyID() *string { - if o == nil { +func (a *AppAccessRequestDefaults) GetEmergencyGrantPolicyID() *string { + if a == nil { return nil } - return o.EmergencyGrantPolicyID + return a.EmergencyGrantPolicyID } -func (o *AppAccessRequestDefaults) GetRequestPolicyID() *string { - if o == nil { +func (a *AppAccessRequestDefaults) GetRequestPolicyID() *string { + if a == nil { return nil } - return o.RequestPolicyID + return a.RequestPolicyID } -func (o *AppAccessRequestDefaults) GetResourceTypeIds() []string { - if o == nil { +func (a *AppAccessRequestDefaults) GetResourceTypeIds() []string { + if a == nil { return nil } - return o.ResourceTypeIds + return a.ResourceTypeIds } -func (o *AppAccessRequestDefaults) GetState() *State { - if o == nil { +func (a *AppAccessRequestDefaults) GetState() *AppAccessRequestDefaultsState { + if a == nil { return nil } - return o.State + return a.State } // AppAccessRequestDefaults1 - The AppAccessRequestDefaults message. @@ -139,68 +150,68 @@ type AppAccessRequestDefaults1 struct { // The app resource type ids for which the app access request defaults are applied. ResourceTypeIds []string `json:"resourceTypeIds,omitempty"` // The last applied state of the app access request defaults. - State *State `json:"state,omitempty"` + State *AppAccessRequestDefaultsState `json:"state,omitempty"` } -func (o *AppAccessRequestDefaults1) GetCatalogIds() []string { - if o == nil { +func (a *AppAccessRequestDefaults1) GetCatalogIds() []string { + if a == nil { return nil } - return o.CatalogIds + return a.CatalogIds } -func (o *AppAccessRequestDefaults1) GetDefaultsEnabled() *bool { - if o == nil { +func (a *AppAccessRequestDefaults1) GetDefaultsEnabled() *bool { + if a == nil { return nil } - return o.DefaultsEnabled + return a.DefaultsEnabled } -func (o *AppAccessRequestDefaults1) GetDurationGrant() *string { - if o == nil { +func (a *AppAccessRequestDefaults1) GetDurationGrant() *string { + if a == nil { return nil } - return o.DurationGrant + return a.DurationGrant } -func (o *AppAccessRequestDefaults1) GetDurationUnset() *DurationUnset { - if o == nil { +func (a *AppAccessRequestDefaults1) GetDurationUnset() *DurationUnset { + if a == nil { return nil } - return o.DurationUnset + return a.DurationUnset } -func (o *AppAccessRequestDefaults1) GetEmergencyGrantEnabled() *bool { - if o == nil { +func (a *AppAccessRequestDefaults1) GetEmergencyGrantEnabled() *bool { + if a == nil { return nil } - return o.EmergencyGrantEnabled + return a.EmergencyGrantEnabled } -func (o *AppAccessRequestDefaults1) GetEmergencyGrantPolicyID() *string { - if o == nil { +func (a *AppAccessRequestDefaults1) GetEmergencyGrantPolicyID() *string { + if a == nil { return nil } - return o.EmergencyGrantPolicyID + return a.EmergencyGrantPolicyID } -func (o *AppAccessRequestDefaults1) GetRequestPolicyID() *string { - if o == nil { +func (a *AppAccessRequestDefaults1) GetRequestPolicyID() *string { + if a == nil { return nil } - return o.RequestPolicyID + return a.RequestPolicyID } -func (o *AppAccessRequestDefaults1) GetResourceTypeIds() []string { - if o == nil { +func (a *AppAccessRequestDefaults1) GetResourceTypeIds() []string { + if a == nil { return nil } - return o.ResourceTypeIds + return a.ResourceTypeIds } -func (o *AppAccessRequestDefaults1) GetState() *State { - if o == nil { +func (a *AppAccessRequestDefaults1) GetState() *AppAccessRequestDefaultsState { + if a == nil { return nil } - return o.State + return a.State } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlement.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlement.go index 1a6ed83c..e4178be2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlement.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlement.go @@ -23,6 +23,17 @@ func (e Purpose) ToPointer() *Purpose { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Purpose) IsExact() bool { + if e != nil { + switch *e { + case "APP_ENTITLEMENT_PURPOSE_VALUE_UNSPECIFIED", "APP_ENTITLEMENT_PURPOSE_VALUE_ASSIGNMENT", "APP_ENTITLEMENT_PURPOSE_VALUE_PERMISSION": + return true + } + } + return false +} + // AppEntitlement - The app entitlement represents one permission in a downstream App (SAAS) that can be granted. For example, GitHub Read vs GitHub Write. // // This message contains a oneof named max_grant_duration. Only a single field of the following list may be set at a time: @@ -39,6 +50,7 @@ type AppEntitlement struct { // - multiStep // - externalTicket // - unconfigured + // - action // ProvisionPolicy *ProvisionPolicy `json:"deprovisionerPolicy,omitempty"` // ProvisionPolicy is a oneOf that indicates how a provision step should be processed. @@ -51,6 +63,7 @@ type AppEntitlement struct { // - multiStep // - externalTicket // - unconfigured + // - action // ProvisionPolicy1 *ProvisionPolicy `json:"provisionerPolicy,omitempty"` // The alias of the app entitlement used by Cone. Also exact-match queryable. @@ -116,241 +129,241 @@ func (a AppEntitlement) MarshalJSON() ([]byte, error) { } func (a *AppEntitlement) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlement) GetProvisionPolicy() *ProvisionPolicy { - if o == nil { +func (a *AppEntitlement) GetProvisionPolicy() *ProvisionPolicy { + if a == nil { return nil } - return o.ProvisionPolicy + return a.ProvisionPolicy } -func (o *AppEntitlement) GetProvisionPolicy1() *ProvisionPolicy { - if o == nil { +func (a *AppEntitlement) GetProvisionPolicy1() *ProvisionPolicy { + if a == nil { return nil } - return o.ProvisionPolicy1 + return a.ProvisionPolicy1 } -func (o *AppEntitlement) GetAlias() *string { - if o == nil { +func (a *AppEntitlement) GetAlias() *string { + if a == nil { return nil } - return o.Alias + return a.Alias } -func (o *AppEntitlement) GetAppID() *string { - if o == nil { +func (a *AppEntitlement) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlement) GetAppResourceID() *string { - if o == nil { +func (a *AppEntitlement) GetAppResourceID() *string { + if a == nil { return nil } - return o.AppResourceID + return a.AppResourceID } -func (o *AppEntitlement) GetAppResourceTypeID() *string { - if o == nil { +func (a *AppEntitlement) GetAppResourceTypeID() *string { + if a == nil { return nil } - return o.AppResourceTypeID + return a.AppResourceTypeID } -func (o *AppEntitlement) GetCertifyPolicyID() *string { - if o == nil { +func (a *AppEntitlement) GetCertifyPolicyID() *string { + if a == nil { return nil } - return o.CertifyPolicyID + return a.CertifyPolicyID } -func (o *AppEntitlement) GetComplianceFrameworkValueIds() []string { - if o == nil { +func (a *AppEntitlement) GetComplianceFrameworkValueIds() []string { + if a == nil { return nil } - return o.ComplianceFrameworkValueIds + return a.ComplianceFrameworkValueIds } -func (o *AppEntitlement) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppEntitlement) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppEntitlement) GetDefaultValuesApplied() *bool { - if o == nil { +func (a *AppEntitlement) GetDefaultValuesApplied() *bool { + if a == nil { return nil } - return o.DefaultValuesApplied + return a.DefaultValuesApplied } -func (o *AppEntitlement) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppEntitlement) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppEntitlement) GetDescription() *string { - if o == nil { +func (a *AppEntitlement) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AppEntitlement) GetDisplayName() *string { - if o == nil { +func (a *AppEntitlement) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppEntitlement) GetDurationGrant() *string { - if o == nil { +func (a *AppEntitlement) GetDurationGrant() *string { + if a == nil { return nil } - return o.DurationGrant + return a.DurationGrant } -func (o *AppEntitlement) GetDurationUnset() *AppEntitlementDurationUnset { - if o == nil { +func (a *AppEntitlement) GetDurationUnset() *AppEntitlementDurationUnset { + if a == nil { return nil } - return o.DurationUnset + return a.DurationUnset } -func (o *AppEntitlement) GetEmergencyGrantEnabled() *bool { - if o == nil { +func (a *AppEntitlement) GetEmergencyGrantEnabled() *bool { + if a == nil { return nil } - return o.EmergencyGrantEnabled + return a.EmergencyGrantEnabled } -func (o *AppEntitlement) GetEmergencyGrantPolicyID() *string { - if o == nil { +func (a *AppEntitlement) GetEmergencyGrantPolicyID() *string { + if a == nil { return nil } - return o.EmergencyGrantPolicyID + return a.EmergencyGrantPolicyID } -func (o *AppEntitlement) GetGrantCount() *int64 { - if o == nil { +func (a *AppEntitlement) GetGrantCount() *int64 { + if a == nil { return nil } - return o.GrantCount + return a.GrantCount } -func (o *AppEntitlement) GetGrantPolicyID() *string { - if o == nil { +func (a *AppEntitlement) GetGrantPolicyID() *string { + if a == nil { return nil } - return o.GrantPolicyID + return a.GrantPolicyID } -func (o *AppEntitlement) GetID() *string { - if o == nil { +func (a *AppEntitlement) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AppEntitlement) GetIsAutomationEnabled() *bool { - if o == nil { +func (a *AppEntitlement) GetIsAutomationEnabled() *bool { + if a == nil { return nil } - return o.IsAutomationEnabled + return a.IsAutomationEnabled } -func (o *AppEntitlement) GetIsManuallyManaged() *bool { - if o == nil { +func (a *AppEntitlement) GetIsManuallyManaged() *bool { + if a == nil { return nil } - return o.IsManuallyManaged + return a.IsManuallyManaged } -func (o *AppEntitlement) GetMatchBatonID() *string { - if o == nil { +func (a *AppEntitlement) GetMatchBatonID() *string { + if a == nil { return nil } - return o.MatchBatonID + return a.MatchBatonID } -func (o *AppEntitlement) GetOverrideAccessRequestsDefaults() *bool { - if o == nil { +func (a *AppEntitlement) GetOverrideAccessRequestsDefaults() *bool { + if a == nil { return nil } - return o.OverrideAccessRequestsDefaults + return a.OverrideAccessRequestsDefaults } -func (o *AppEntitlement) GetPurpose() *Purpose { - if o == nil { +func (a *AppEntitlement) GetPurpose() *Purpose { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AppEntitlement) GetRequestSchemaID() *string { - if o == nil { +func (a *AppEntitlement) GetRequestSchemaID() *string { + if a == nil { return nil } - return o.RequestSchemaID + return a.RequestSchemaID } -func (o *AppEntitlement) GetRevokePolicyID() *string { - if o == nil { +func (a *AppEntitlement) GetRevokePolicyID() *string { + if a == nil { return nil } - return o.RevokePolicyID + return a.RevokePolicyID } -func (o *AppEntitlement) GetRiskLevelValueID() *string { - if o == nil { +func (a *AppEntitlement) GetRiskLevelValueID() *string { + if a == nil { return nil } - return o.RiskLevelValueID + return a.RiskLevelValueID } -func (o *AppEntitlement) GetSlug() *string { - if o == nil { +func (a *AppEntitlement) GetSlug() *string { + if a == nil { return nil } - return o.Slug + return a.Slug } -func (o *AppEntitlement) GetSourceConnectorIds() map[string]string { - if o == nil { +func (a *AppEntitlement) GetSourceConnectorIds() map[string]string { + if a == nil { return nil } - return o.SourceConnectorIds + return a.SourceConnectorIds } -func (o *AppEntitlement) GetSystemBuiltin() *bool { - if o == nil { +func (a *AppEntitlement) GetSystemBuiltin() *bool { + if a == nil { return nil } - return o.SystemBuiltin + return a.SystemBuiltin } -func (o *AppEntitlement) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AppEntitlement) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } -func (o *AppEntitlement) GetUserEditedMask() *string { - if o == nil { +func (a *AppEntitlement) GetUserEditedMask() *string { + if a == nil { return nil } - return o.UserEditedMask + return a.UserEditedMask } // AppEntitlementInput - The app entitlement represents one permission in a downstream App (SAAS) that can be granted. For example, GitHub Read vs GitHub Write. @@ -369,6 +382,7 @@ type AppEntitlementInput struct { // - multiStep // - externalTicket // - unconfigured + // - action // ProvisionPolicy *ProvisionPolicyInput `json:"deprovisionerPolicy,omitempty"` // ProvisionPolicy is a oneOf that indicates how a provision step should be processed. @@ -381,6 +395,7 @@ type AppEntitlementInput struct { // - multiStep // - externalTicket // - unconfigured + // - action // ProvisionPolicy1 *ProvisionPolicyInput `json:"provisionerPolicy,omitempty"` // The alias of the app entitlement used by Cone. Also exact-match queryable. @@ -430,184 +445,184 @@ type AppEntitlementInput struct { UserEditedMask *string `json:"userEditedMask,omitempty"` } -func (o *AppEntitlementInput) GetProvisionPolicy() *ProvisionPolicyInput { - if o == nil { +func (a *AppEntitlementInput) GetProvisionPolicy() *ProvisionPolicyInput { + if a == nil { return nil } - return o.ProvisionPolicy + return a.ProvisionPolicy } -func (o *AppEntitlementInput) GetProvisionPolicy1() *ProvisionPolicyInput { - if o == nil { +func (a *AppEntitlementInput) GetProvisionPolicy1() *ProvisionPolicyInput { + if a == nil { return nil } - return o.ProvisionPolicy1 + return a.ProvisionPolicy1 } -func (o *AppEntitlementInput) GetAlias() *string { - if o == nil { +func (a *AppEntitlementInput) GetAlias() *string { + if a == nil { return nil } - return o.Alias + return a.Alias } -func (o *AppEntitlementInput) GetAppID() *string { - if o == nil { +func (a *AppEntitlementInput) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlementInput) GetAppResourceID() *string { - if o == nil { +func (a *AppEntitlementInput) GetAppResourceID() *string { + if a == nil { return nil } - return o.AppResourceID + return a.AppResourceID } -func (o *AppEntitlementInput) GetAppResourceTypeID() *string { - if o == nil { +func (a *AppEntitlementInput) GetAppResourceTypeID() *string { + if a == nil { return nil } - return o.AppResourceTypeID + return a.AppResourceTypeID } -func (o *AppEntitlementInput) GetCertifyPolicyID() *string { - if o == nil { +func (a *AppEntitlementInput) GetCertifyPolicyID() *string { + if a == nil { return nil } - return o.CertifyPolicyID + return a.CertifyPolicyID } -func (o *AppEntitlementInput) GetComplianceFrameworkValueIds() []string { - if o == nil { +func (a *AppEntitlementInput) GetComplianceFrameworkValueIds() []string { + if a == nil { return nil } - return o.ComplianceFrameworkValueIds + return a.ComplianceFrameworkValueIds } -func (o *AppEntitlementInput) GetDefaultValuesApplied() *bool { - if o == nil { +func (a *AppEntitlementInput) GetDefaultValuesApplied() *bool { + if a == nil { return nil } - return o.DefaultValuesApplied + return a.DefaultValuesApplied } -func (o *AppEntitlementInput) GetDescription() *string { - if o == nil { +func (a *AppEntitlementInput) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AppEntitlementInput) GetDisplayName() *string { - if o == nil { +func (a *AppEntitlementInput) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppEntitlementInput) GetDurationGrant() *string { - if o == nil { +func (a *AppEntitlementInput) GetDurationGrant() *string { + if a == nil { return nil } - return o.DurationGrant + return a.DurationGrant } -func (o *AppEntitlementInput) GetDurationUnset() *AppEntitlementDurationUnset { - if o == nil { +func (a *AppEntitlementInput) GetDurationUnset() *AppEntitlementDurationUnset { + if a == nil { return nil } - return o.DurationUnset + return a.DurationUnset } -func (o *AppEntitlementInput) GetEmergencyGrantEnabled() *bool { - if o == nil { +func (a *AppEntitlementInput) GetEmergencyGrantEnabled() *bool { + if a == nil { return nil } - return o.EmergencyGrantEnabled + return a.EmergencyGrantEnabled } -func (o *AppEntitlementInput) GetEmergencyGrantPolicyID() *string { - if o == nil { +func (a *AppEntitlementInput) GetEmergencyGrantPolicyID() *string { + if a == nil { return nil } - return o.EmergencyGrantPolicyID + return a.EmergencyGrantPolicyID } -func (o *AppEntitlementInput) GetGrantPolicyID() *string { - if o == nil { +func (a *AppEntitlementInput) GetGrantPolicyID() *string { + if a == nil { return nil } - return o.GrantPolicyID + return a.GrantPolicyID } -func (o *AppEntitlementInput) GetIsManuallyManaged() *bool { - if o == nil { +func (a *AppEntitlementInput) GetIsManuallyManaged() *bool { + if a == nil { return nil } - return o.IsManuallyManaged + return a.IsManuallyManaged } -func (o *AppEntitlementInput) GetMatchBatonID() *string { - if o == nil { +func (a *AppEntitlementInput) GetMatchBatonID() *string { + if a == nil { return nil } - return o.MatchBatonID + return a.MatchBatonID } -func (o *AppEntitlementInput) GetOverrideAccessRequestsDefaults() *bool { - if o == nil { +func (a *AppEntitlementInput) GetOverrideAccessRequestsDefaults() *bool { + if a == nil { return nil } - return o.OverrideAccessRequestsDefaults + return a.OverrideAccessRequestsDefaults } -func (o *AppEntitlementInput) GetPurpose() *Purpose { - if o == nil { +func (a *AppEntitlementInput) GetPurpose() *Purpose { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AppEntitlementInput) GetRequestSchemaID() *string { - if o == nil { +func (a *AppEntitlementInput) GetRequestSchemaID() *string { + if a == nil { return nil } - return o.RequestSchemaID + return a.RequestSchemaID } -func (o *AppEntitlementInput) GetRevokePolicyID() *string { - if o == nil { +func (a *AppEntitlementInput) GetRevokePolicyID() *string { + if a == nil { return nil } - return o.RevokePolicyID + return a.RevokePolicyID } -func (o *AppEntitlementInput) GetRiskLevelValueID() *string { - if o == nil { +func (a *AppEntitlementInput) GetRiskLevelValueID() *string { + if a == nil { return nil } - return o.RiskLevelValueID + return a.RiskLevelValueID } -func (o *AppEntitlementInput) GetSlug() *string { - if o == nil { +func (a *AppEntitlementInput) GetSlug() *string { + if a == nil { return nil } - return o.Slug + return a.Slug } -func (o *AppEntitlementInput) GetSourceConnectorIds() map[string]string { - if o == nil { +func (a *AppEntitlementInput) GetSourceConnectorIds() map[string]string { + if a == nil { return nil } - return o.SourceConnectorIds + return a.SourceConnectorIds } -func (o *AppEntitlementInput) GetUserEditedMask() *string { - if o == nil { +func (a *AppEntitlementInput) GetUserEditedMask() *string { + if a == nil { return nil } - return o.UserEditedMask + return a.UserEditedMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomation.go index ff985732..e818308c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomation.go @@ -43,92 +43,92 @@ func (a AppEntitlementAutomation) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementAutomation) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementAutomation) GetAppEntitlementAutomationLastRunStatus() *AppEntitlementAutomationLastRunStatus { - if o == nil { +func (a *AppEntitlementAutomation) GetAppEntitlementAutomationLastRunStatus() *AppEntitlementAutomationLastRunStatus { + if a == nil { return nil } - return o.AppEntitlementAutomationLastRunStatus + return a.AppEntitlementAutomationLastRunStatus } -func (o *AppEntitlementAutomation) GetAppEntitlementAutomationRuleBasic() *AppEntitlementAutomationRuleBasic { - if o == nil { +func (a *AppEntitlementAutomation) GetAppEntitlementAutomationRuleBasic() *AppEntitlementAutomationRuleBasic { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleBasic + return a.AppEntitlementAutomationRuleBasic } -func (o *AppEntitlementAutomation) GetAppEntitlementAutomationRuleCEL() *AppEntitlementAutomationRuleCEL { - if o == nil { +func (a *AppEntitlementAutomation) GetAppEntitlementAutomationRuleCEL() *AppEntitlementAutomationRuleCEL { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleCEL + return a.AppEntitlementAutomationRuleCEL } -func (o *AppEntitlementAutomation) GetAppEntitlementAutomationRuleEntitlement() *AppEntitlementAutomationRuleEntitlement { - if o == nil { +func (a *AppEntitlementAutomation) GetAppEntitlementAutomationRuleEntitlement() *AppEntitlementAutomationRuleEntitlement { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleEntitlement + return a.AppEntitlementAutomationRuleEntitlement } -func (o *AppEntitlementAutomation) GetAppEntitlementAutomationRuleNone() *AppEntitlementAutomationRuleNone { - if o == nil { +func (a *AppEntitlementAutomation) GetAppEntitlementAutomationRuleNone() *AppEntitlementAutomationRuleNone { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleNone + return a.AppEntitlementAutomationRuleNone } -func (o *AppEntitlementAutomation) GetAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementAutomation) GetAppEntitlementID() *string { + if a == nil { return nil } - return o.AppEntitlementID + return a.AppEntitlementID } -func (o *AppEntitlementAutomation) GetAppID() *string { - if o == nil { +func (a *AppEntitlementAutomation) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlementAutomation) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppEntitlementAutomation) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppEntitlementAutomation) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppEntitlementAutomation) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppEntitlementAutomation) GetDescription() *string { - if o == nil { +func (a *AppEntitlementAutomation) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AppEntitlementAutomation) GetDisplayName() *string { - if o == nil { +func (a *AppEntitlementAutomation) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppEntitlementAutomation) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AppEntitlementAutomation) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationinput.go index 0c8ba9e1..198dd458 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationinput.go @@ -26,51 +26,51 @@ type AppEntitlementAutomationInput struct { DisplayName *string `json:"displayName,omitempty"` } -func (o *AppEntitlementAutomationInput) GetAppEntitlementAutomationLastRunStatus() *AppEntitlementAutomationLastRunStatusInput { - if o == nil { +func (a *AppEntitlementAutomationInput) GetAppEntitlementAutomationLastRunStatus() *AppEntitlementAutomationLastRunStatusInput { + if a == nil { return nil } - return o.AppEntitlementAutomationLastRunStatus + return a.AppEntitlementAutomationLastRunStatus } -func (o *AppEntitlementAutomationInput) GetAppEntitlementAutomationRuleBasic() *AppEntitlementAutomationRuleBasic { - if o == nil { +func (a *AppEntitlementAutomationInput) GetAppEntitlementAutomationRuleBasic() *AppEntitlementAutomationRuleBasic { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleBasic + return a.AppEntitlementAutomationRuleBasic } -func (o *AppEntitlementAutomationInput) GetAppEntitlementAutomationRuleCEL() *AppEntitlementAutomationRuleCEL { - if o == nil { +func (a *AppEntitlementAutomationInput) GetAppEntitlementAutomationRuleCEL() *AppEntitlementAutomationRuleCEL { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleCEL + return a.AppEntitlementAutomationRuleCEL } -func (o *AppEntitlementAutomationInput) GetAppEntitlementAutomationRuleEntitlement() *AppEntitlementAutomationRuleEntitlement { - if o == nil { +func (a *AppEntitlementAutomationInput) GetAppEntitlementAutomationRuleEntitlement() *AppEntitlementAutomationRuleEntitlement { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleEntitlement + return a.AppEntitlementAutomationRuleEntitlement } -func (o *AppEntitlementAutomationInput) GetAppEntitlementAutomationRuleNone() *AppEntitlementAutomationRuleNone { - if o == nil { +func (a *AppEntitlementAutomationInput) GetAppEntitlementAutomationRuleNone() *AppEntitlementAutomationRuleNone { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleNone + return a.AppEntitlementAutomationRuleNone } -func (o *AppEntitlementAutomationInput) GetDescription() *string { - if o == nil { +func (a *AppEntitlementAutomationInput) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AppEntitlementAutomationInput) GetDisplayName() *string { - if o == nil { +func (a *AppEntitlementAutomationInput) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationlastrunstatus.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationlastrunstatus.go index d8e16123..19b7a703 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationlastrunstatus.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationlastrunstatus.go @@ -21,6 +21,17 @@ func (e AppEntitlementAutomationLastRunStatusStatus) ToPointer() *AppEntitlement return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppEntitlementAutomationLastRunStatusStatus) IsExact() bool { + if e != nil { + switch *e { + case "APP_ENTITLEMENT_AUTOMATION_RUN_STATUS_UNSPECIFIED", "APP_ENTITLEMENT_AUTOMATION_RUN_STATUS_SUCCESS", "APP_ENTITLEMENT_AUTOMATION_RUN_STATUS_FAILED", "APP_ENTITLEMENT_AUTOMATION_RUN_STATUS_IN_PROGRESS": + return true + } + } + return false +} + // The AppEntitlementAutomationLastRunStatus message. type AppEntitlementAutomationLastRunStatus struct { // The errorMessage field. @@ -35,29 +46,29 @@ func (a AppEntitlementAutomationLastRunStatus) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementAutomationLastRunStatus) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementAutomationLastRunStatus) GetErrorMessage() *string { - if o == nil { +func (a *AppEntitlementAutomationLastRunStatus) GetErrorMessage() *string { + if a == nil { return nil } - return o.ErrorMessage + return a.ErrorMessage } -func (o *AppEntitlementAutomationLastRunStatus) GetLastCompletedAt() *time.Time { - if o == nil { +func (a *AppEntitlementAutomationLastRunStatus) GetLastCompletedAt() *time.Time { + if a == nil { return nil } - return o.LastCompletedAt + return a.LastCompletedAt } -func (o *AppEntitlementAutomationLastRunStatus) GetStatus() *AppEntitlementAutomationLastRunStatusStatus { - if o == nil { +func (a *AppEntitlementAutomationLastRunStatus) GetStatus() *AppEntitlementAutomationLastRunStatusStatus { + if a == nil { return nil } - return o.Status + return a.Status } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationrulebasic.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationrulebasic.go index cc22e70f..b3b07d29 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationrulebasic.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationrulebasic.go @@ -8,9 +8,9 @@ type AppEntitlementAutomationRuleBasic struct { Expression *string `json:"expression,omitempty"` } -func (o *AppEntitlementAutomationRuleBasic) GetExpression() *string { - if o == nil { +func (a *AppEntitlementAutomationRuleBasic) GetExpression() *string { + if a == nil { return nil } - return o.Expression + return a.Expression } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationrulecel.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationrulecel.go index e15c9a32..a7fa14b3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationrulecel.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationrulecel.go @@ -8,9 +8,9 @@ type AppEntitlementAutomationRuleCEL struct { Expression *string `json:"expression,omitempty"` } -func (o *AppEntitlementAutomationRuleCEL) GetExpression() *string { - if o == nil { +func (a *AppEntitlementAutomationRuleCEL) GetExpression() *string { + if a == nil { return nil } - return o.Expression + return a.Expression } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationruleentitlement.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationruleentitlement.go index e0002baf..c101d14f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationruleentitlement.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementautomationruleentitlement.go @@ -8,9 +8,9 @@ type AppEntitlementAutomationRuleEntitlement struct { EntitlementRefs []AppEntitlementRef `json:"entitlementRefs,omitempty"` } -func (o *AppEntitlementAutomationRuleEntitlement) GetEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (a *AppEntitlementAutomationRuleEntitlement) GetEntitlementRefs() []AppEntitlementRef { + if a == nil { return nil } - return o.EntitlementRefs + return a.EntitlementRefs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementexpandmask.go index 0a41484e..e3cd5099 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementexpandmask.go @@ -8,9 +8,9 @@ type AppEntitlementExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *AppEntitlementExpandMask) GetPaths() []string { - if o == nil { +func (a *AppEntitlementExpandMask) GetPaths() []string { + if a == nil { return nil } - return o.Paths + return a.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementmonitorbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementmonitorbinding.go index a39fb3ed..8ff2d3f3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementmonitorbinding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementmonitorbinding.go @@ -20,6 +20,17 @@ func (e EntitlementGroup) ToPointer() *EntitlementGroup { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *EntitlementGroup) IsExact() bool { + if e != nil { + switch *e { + case "ENTITLEMENT_GROUP_UNSPECIFIED", "ENTITLEMENT_GROUP_A", "ENTITLEMENT_GROUP_B": + return true + } + } + return false +} + // The AppEntitlementMonitorBinding message. type AppEntitlementMonitorBinding struct { // The appEntitlementId field. @@ -40,57 +51,57 @@ func (a AppEntitlementMonitorBinding) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementMonitorBinding) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementMonitorBinding) GetAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementMonitorBinding) GetAppEntitlementID() *string { + if a == nil { return nil } - return o.AppEntitlementID + return a.AppEntitlementID } -func (o *AppEntitlementMonitorBinding) GetAppID() *string { - if o == nil { +func (a *AppEntitlementMonitorBinding) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlementMonitorBinding) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppEntitlementMonitorBinding) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppEntitlementMonitorBinding) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppEntitlementMonitorBinding) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppEntitlementMonitorBinding) GetEntitlementGroup() *EntitlementGroup { - if o == nil { +func (a *AppEntitlementMonitorBinding) GetEntitlementGroup() *EntitlementGroup { + if a == nil { return nil } - return o.EntitlementGroup + return a.EntitlementGroup } -func (o *AppEntitlementMonitorBinding) GetMonitorID() *string { - if o == nil { +func (a *AppEntitlementMonitorBinding) GetMonitorID() *string { + if a == nil { return nil } - return o.MonitorID + return a.MonitorID } -func (o *AppEntitlementMonitorBinding) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AppEntitlementMonitorBinding) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxy.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxy.go index 26eaf2a5..35f54e4b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxy.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxy.go @@ -12,8 +12,9 @@ import ( // This message contains a oneof named _implicit. Only a single field of the following list may be set at a time: // - implicit type AppEntitlementProxy struct { - CreatedAt *time.Time `json:"createdAt,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DisabledAt *time.Time `json:"disabledAt,omitempty"` // The dstAppEntitlementId field. DstAppEntitlementID *string `json:"dstAppEntitlementId,omitempty"` // The dstAppId field. @@ -37,71 +38,78 @@ func (a AppEntitlementProxy) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementProxy) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementProxy) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppEntitlementProxy) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppEntitlementProxy) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppEntitlementProxy) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppEntitlementProxy) GetDstAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementProxy) GetDisabledAt() *time.Time { + if a == nil { return nil } - return o.DstAppEntitlementID + return a.DisabledAt } -func (o *AppEntitlementProxy) GetDstAppID() *string { - if o == nil { +func (a *AppEntitlementProxy) GetDstAppEntitlementID() *string { + if a == nil { return nil } - return o.DstAppID + return a.DstAppEntitlementID } -func (o *AppEntitlementProxy) GetImplicit() *bool { - if o == nil { +func (a *AppEntitlementProxy) GetDstAppID() *string { + if a == nil { return nil } - return o.Implicit + return a.DstAppID } -func (o *AppEntitlementProxy) GetSrcAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementProxy) GetImplicit() *bool { + if a == nil { return nil } - return o.SrcAppEntitlementID + return a.Implicit } -func (o *AppEntitlementProxy) GetSrcAppID() *string { - if o == nil { +func (a *AppEntitlementProxy) GetSrcAppEntitlementID() *string { + if a == nil { return nil } - return o.SrcAppID + return a.SrcAppEntitlementID } -func (o *AppEntitlementProxy) GetSystemBuiltin() *bool { - if o == nil { +func (a *AppEntitlementProxy) GetSrcAppID() *string { + if a == nil { return nil } - return o.SystemBuiltin + return a.SrcAppID } -func (o *AppEntitlementProxy) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AppEntitlementProxy) GetSystemBuiltin() *bool { + if a == nil { return nil } - return o.UpdatedAt + return a.SystemBuiltin +} + +func (a *AppEntitlementProxy) GetUpdatedAt() *time.Time { + if a == nil { + return nil + } + return a.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxyexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxyexpandmask.go index 6802253b..100b6965 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxyexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxyexpandmask.go @@ -8,9 +8,9 @@ type AppEntitlementProxyExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *AppEntitlementProxyExpandMask) GetPaths() []string { - if o == nil { +func (a *AppEntitlementProxyExpandMask) GetPaths() []string { + if a == nil { return nil } - return o.Paths + return a.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxyview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxyview.go index 2a2b329b..713992d3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxyview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementproxyview.go @@ -20,37 +20,37 @@ type AppEntitlementProxyView struct { SrcAppPath *string `json:"srcAppPath,omitempty"` } -func (o *AppEntitlementProxyView) GetAppEntitlementProxy() *AppEntitlementProxy { - if o == nil { +func (a *AppEntitlementProxyView) GetAppEntitlementProxy() *AppEntitlementProxy { + if a == nil { return nil } - return o.AppEntitlementProxy + return a.AppEntitlementProxy } -func (o *AppEntitlementProxyView) GetDstAppEntitlementPath() *string { - if o == nil { +func (a *AppEntitlementProxyView) GetDstAppEntitlementPath() *string { + if a == nil { return nil } - return o.DstAppEntitlementPath + return a.DstAppEntitlementPath } -func (o *AppEntitlementProxyView) GetDstAppPath() *string { - if o == nil { +func (a *AppEntitlementProxyView) GetDstAppPath() *string { + if a == nil { return nil } - return o.DstAppPath + return a.DstAppPath } -func (o *AppEntitlementProxyView) GetSrcAppEntitlementPath() *string { - if o == nil { +func (a *AppEntitlementProxyView) GetSrcAppEntitlementPath() *string { + if a == nil { return nil } - return o.SrcAppEntitlementPath + return a.SrcAppEntitlementPath } -func (o *AppEntitlementProxyView) GetSrcAppPath() *string { - if o == nil { +func (a *AppEntitlementProxyView) GetSrcAppPath() *string { + if a == nil { return nil } - return o.SrcAppPath + return a.SrcAppPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementref.go index 82179190..30912b71 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementref.go @@ -10,16 +10,16 @@ type AppEntitlementRef struct { ID *string `json:"id,omitempty"` } -func (o *AppEntitlementRef) GetAppID() *string { - if o == nil { +func (a *AppEntitlementRef) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlementRef) GetID() *string { - if o == nil { +func (a *AppEntitlementRef) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementreference.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementreference.go index ce898b16..f60fbaba 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementreference.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementreference.go @@ -10,16 +10,16 @@ type AppEntitlementReference struct { AppID *string `json:"appId,omitempty"` } -func (o *AppEntitlementReference) GetAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementReference) GetAppEntitlementID() *string { + if a == nil { return nil } - return o.AppEntitlementID + return a.AppEntitlementID } -func (o *AppEntitlementReference) GetAppID() *string { - if o == nil { +func (a *AppEntitlementReference) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchgrantsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchgrantsrequest.go index 371bb26a..737e9643 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchgrantsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchgrantsrequest.go @@ -24,65 +24,65 @@ type AppEntitlementSearchServiceSearchGrantsRequest struct { UserID *string `json:"userId,omitempty"` } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { + if a == nil { return nil } - return o.AppEntitlementExpandMask + return a.AppEntitlementExpandMask } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetAppIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetAppIds() []string { + if a == nil { return nil } - return o.AppIds + return a.AppIds } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetAppUserIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetAppUserIds() []string { + if a == nil { return nil } - return o.AppUserIds + return a.AppUserIds } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetEntitlementRefs() []AppEntitlementRef { + if a == nil { return nil } - return o.EntitlementRefs + return a.EntitlementRefs } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetPageSize() *int { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetPageSize() *int { + if a == nil { return nil } - return o.PageSize + return a.PageSize } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetPageToken() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetPageToken() *string { + if a == nil { return nil } - return o.PageToken + return a.PageToken } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetResourceIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetResourceIds() []string { + if a == nil { return nil } - return o.ResourceIds + return a.ResourceIds } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetResourceTypeIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetResourceTypeIds() []string { + if a == nil { return nil } - return o.ResourceTypeIds + return a.ResourceTypeIds } -func (o *AppEntitlementSearchServiceSearchGrantsRequest) GetUserID() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsRequest) GetUserID() *string { + if a == nil { return nil } - return o.UserID + return a.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchgrantsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchgrantsresponse.go index 43bca607..92c64822 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchgrantsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchgrantsresponse.go @@ -6,65 +6,65 @@ import ( "github.com/conductorone/conductorone-sdk-go/pkg/utils" ) -// Expanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. -type Expanded struct { +// AppEntitlementSearchServiceSearchGrantsResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. +type AppEntitlementSearchServiceSearchGrantsResponseExpanded struct { // The type of the serialized message. AtType *string `json:"@type,omitempty"` AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` } -func (e Expanded) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) +func (a AppEntitlementSearchServiceSearchGrantsResponseExpanded) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) } -func (e *Expanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, false); err != nil { +func (a *AppEntitlementSearchServiceSearchGrantsResponseExpanded) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *Expanded) GetAtType() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *Expanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppEntitlementSearchServiceSearchGrantsResponse message. type AppEntitlementSearchServiceSearchGrantsResponse struct { // The expanded field. - Expanded []Expanded `json:"expanded,omitempty"` + Expanded []AppEntitlementSearchServiceSearchGrantsResponseExpanded `json:"expanded,omitempty"` // The list field. List []AppEntitlementWithUserBinding `json:"list,omitempty"` // The nextPageToken field. NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppEntitlementSearchServiceSearchGrantsResponse) GetExpanded() []Expanded { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsResponse) GetExpanded() []AppEntitlementSearchServiceSearchGrantsResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } -func (o *AppEntitlementSearchServiceSearchGrantsResponse) GetList() []AppEntitlementWithUserBinding { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsResponse) GetList() []AppEntitlementWithUserBinding { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppEntitlementSearchServiceSearchGrantsResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchGrantsResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchrequest.go index 9e756f51..5afebe91 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchrequest.go @@ -16,6 +16,17 @@ func (e MembershipType) ToPointer() *MembershipType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *MembershipType) IsExact() bool { + if e != nil { + switch *e { + case "APP_ENTITLEMENT_MEMBERSHIP_TYPE_UNSPECIFIED", "APP_ENTITLEMENT_MEMBERSHIP_TYPE_MEMBER", "APP_ENTITLEMENT_MEMBERSHIP_TYPE_OWNER", "APP_ENTITLEMENT_MEMBERSHIP_TYPE_EXCLUSION", "APP_ENTITLEMENT_MEMBERSHIP_TYPE_ADMIN": + return true + } + } + return false +} + // AppEntitlementSearchServiceSearchRequest - Search app entitlements by a variety of filters. type AppEntitlementSearchServiceSearchRequest struct { // The app entitlement expand mask allows the user to get additional information when getting responses containing app entitlement views. @@ -72,184 +83,184 @@ type AppEntitlementSearchServiceSearchRequest struct { SourceConnectorID *string `json:"sourceConnectorId,omitempty"` } -func (o *AppEntitlementSearchServiceSearchRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { + if a == nil { return nil } - return o.AppEntitlementExpandMask + return a.AppEntitlementExpandMask } -func (o *AppEntitlementSearchServiceSearchRequest) GetAccessReviewID() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetAccessReviewID() *string { + if a == nil { return nil } - return o.AccessReviewID + return a.AccessReviewID } -func (o *AppEntitlementSearchServiceSearchRequest) GetAlias() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetAlias() *string { + if a == nil { return nil } - return o.Alias + return a.Alias } -func (o *AppEntitlementSearchServiceSearchRequest) GetAppIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetAppIds() []string { + if a == nil { return nil } - return o.AppIds + return a.AppIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetAppUserIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetAppUserIds() []string { + if a == nil { return nil } - return o.AppUserIds + return a.AppUserIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetComplianceFrameworkIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetComplianceFrameworkIds() []string { + if a == nil { return nil } - return o.ComplianceFrameworkIds + return a.ComplianceFrameworkIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetDisplayName() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppEntitlementSearchServiceSearchRequest) GetExcludeAppIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetExcludeAppIds() []string { + if a == nil { return nil } - return o.ExcludeAppIds + return a.ExcludeAppIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetExcludeAppUserIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetExcludeAppUserIds() []string { + if a == nil { return nil } - return o.ExcludeAppUserIds + return a.ExcludeAppUserIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetExcludeImmutable() *bool { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetExcludeImmutable() *bool { + if a == nil { return nil } - return o.ExcludeImmutable + return a.ExcludeImmutable } -func (o *AppEntitlementSearchServiceSearchRequest) GetExcludeResourceTypeIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetExcludeResourceTypeIds() []string { + if a == nil { return nil } - return o.ExcludeResourceTypeIds + return a.ExcludeResourceTypeIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetExcludedEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetExcludedEntitlementRefs() []AppEntitlementRef { + if a == nil { return nil } - return o.ExcludedEntitlementRefs + return a.ExcludedEntitlementRefs } -func (o *AppEntitlementSearchServiceSearchRequest) GetIncludeDeleted() *bool { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetIncludeDeleted() *bool { + if a == nil { return nil } - return o.IncludeDeleted + return a.IncludeDeleted } -func (o *AppEntitlementSearchServiceSearchRequest) GetIsAutomated() *bool { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetIsAutomated() *bool { + if a == nil { return nil } - return o.IsAutomated + return a.IsAutomated } -func (o *AppEntitlementSearchServiceSearchRequest) GetMembershipType() []MembershipType { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetMembershipType() []MembershipType { + if a == nil { return nil } - return o.MembershipType + return a.MembershipType } -func (o *AppEntitlementSearchServiceSearchRequest) GetOnlyGetExpiring() *bool { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetOnlyGetExpiring() *bool { + if a == nil { return nil } - return o.OnlyGetExpiring + return a.OnlyGetExpiring } -func (o *AppEntitlementSearchServiceSearchRequest) GetPageSize() *int { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetPageSize() *int { + if a == nil { return nil } - return o.PageSize + return a.PageSize } -func (o *AppEntitlementSearchServiceSearchRequest) GetPageToken() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetPageToken() *string { + if a == nil { return nil } - return o.PageToken + return a.PageToken } -func (o *AppEntitlementSearchServiceSearchRequest) GetPolicyRefs() []PolicyRef { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetPolicyRefs() []PolicyRef { + if a == nil { return nil } - return o.PolicyRefs + return a.PolicyRefs } -func (o *AppEntitlementSearchServiceSearchRequest) GetQuery() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetQuery() *string { + if a == nil { return nil } - return o.Query + return a.Query } -func (o *AppEntitlementSearchServiceSearchRequest) GetRefs() []AppEntitlementRef { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetRefs() []AppEntitlementRef { + if a == nil { return nil } - return o.Refs + return a.Refs } -func (o *AppEntitlementSearchServiceSearchRequest) GetResourceIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetResourceIds() []string { + if a == nil { return nil } - return o.ResourceIds + return a.ResourceIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetResourceTraitIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetResourceTraitIds() []string { + if a == nil { return nil } - return o.ResourceTraitIds + return a.ResourceTraitIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetResourceTypeIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetResourceTypeIds() []string { + if a == nil { return nil } - return o.ResourceTypeIds + return a.ResourceTypeIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetRiskLevelIds() []string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetRiskLevelIds() []string { + if a == nil { return nil } - return o.RiskLevelIds + return a.RiskLevelIds } -func (o *AppEntitlementSearchServiceSearchRequest) GetSourceConnectorID() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchRequest) GetSourceConnectorID() *string { + if a == nil { return nil } - return o.SourceConnectorID + return a.SourceConnectorID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchresponse.go index f05bc34e..b42c1343 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementsearchservicesearchresponse.go @@ -18,24 +18,24 @@ func (a AppEntitlementSearchServiceSearchResponseExpanded) MarshalJSON() ([]byte } func (a *AppEntitlementSearchServiceSearchResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementSearchServiceSearchResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppEntitlementSearchServiceSearchResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppEntitlementSearchServiceSearchResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppEntitlementSearchServiceSearchResponse message. @@ -50,30 +50,30 @@ type AppEntitlementSearchServiceSearchResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppEntitlementSearchServiceSearchResponse) GetFacets() *Facets { - if o == nil { +func (a *AppEntitlementSearchServiceSearchResponse) GetFacets() *Facets { + if a == nil { return nil } - return o.Facets + return a.Facets } -func (o *AppEntitlementSearchServiceSearchResponse) GetExpanded() []AppEntitlementSearchServiceSearchResponseExpanded { - if o == nil { +func (a *AppEntitlementSearchServiceSearchResponse) GetExpanded() []AppEntitlementSearchServiceSearchResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } -func (o *AppEntitlementSearchServiceSearchResponse) GetList() []AppEntitlementView { - if o == nil { +func (a *AppEntitlementSearchServiceSearchResponse) GetList() []AppEntitlementView { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppEntitlementSearchServiceSearchResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppEntitlementSearchServiceSearchResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementservicegetautomationresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementservicegetautomationresponse.go index 7718dfbc..06944458 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementservicegetautomationresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementservicegetautomationresponse.go @@ -15,9 +15,9 @@ type AppEntitlementServiceGetAutomationResponse struct { AppEntitlementAutomation *AppEntitlementAutomation `json:"AppEntitlementAutomation,omitempty"` } -func (o *AppEntitlementServiceGetAutomationResponse) GetAppEntitlementAutomation() *AppEntitlementAutomation { - if o == nil { +func (a *AppEntitlementServiceGetAutomationResponse) GetAppEntitlementAutomation() *AppEntitlementAutomation { + if a == nil { return nil } - return o.AppEntitlementAutomation + return a.AppEntitlementAutomation } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementserviceupdateautomationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementserviceupdateautomationrequest.go index f114524b..ca80087a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementserviceupdateautomationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementserviceupdateautomationrequest.go @@ -25,51 +25,51 @@ type AppEntitlementServiceUpdateAutomationRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *AppEntitlementServiceUpdateAutomationRequest) GetAppEntitlementAutomationRuleBasic() *AppEntitlementAutomationRuleBasic { - if o == nil { +func (a *AppEntitlementServiceUpdateAutomationRequest) GetAppEntitlementAutomationRuleBasic() *AppEntitlementAutomationRuleBasic { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleBasic + return a.AppEntitlementAutomationRuleBasic } -func (o *AppEntitlementServiceUpdateAutomationRequest) GetAppEntitlementAutomationRuleCEL() *AppEntitlementAutomationRuleCEL { - if o == nil { +func (a *AppEntitlementServiceUpdateAutomationRequest) GetAppEntitlementAutomationRuleCEL() *AppEntitlementAutomationRuleCEL { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleCEL + return a.AppEntitlementAutomationRuleCEL } -func (o *AppEntitlementServiceUpdateAutomationRequest) GetAppEntitlementAutomationRuleEntitlement() *AppEntitlementAutomationRuleEntitlement { - if o == nil { +func (a *AppEntitlementServiceUpdateAutomationRequest) GetAppEntitlementAutomationRuleEntitlement() *AppEntitlementAutomationRuleEntitlement { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleEntitlement + return a.AppEntitlementAutomationRuleEntitlement } -func (o *AppEntitlementServiceUpdateAutomationRequest) GetAppEntitlementAutomationRuleNone() *AppEntitlementAutomationRuleNone { - if o == nil { +func (a *AppEntitlementServiceUpdateAutomationRequest) GetAppEntitlementAutomationRuleNone() *AppEntitlementAutomationRuleNone { + if a == nil { return nil } - return o.AppEntitlementAutomationRuleNone + return a.AppEntitlementAutomationRuleNone } -func (o *AppEntitlementServiceUpdateAutomationRequest) GetDescription() *string { - if o == nil { +func (a *AppEntitlementServiceUpdateAutomationRequest) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AppEntitlementServiceUpdateAutomationRequest) GetDisplayName() *string { - if o == nil { +func (a *AppEntitlementServiceUpdateAutomationRequest) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppEntitlementServiceUpdateAutomationRequest) GetUpdateMask() *string { - if o == nil { +func (a *AppEntitlementServiceUpdateAutomationRequest) GetUpdateMask() *string { + if a == nil { return nil } - return o.UpdateMask + return a.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementserviceupdateautomationresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementserviceupdateautomationresponse.go index c74a29da..5e85ff78 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementserviceupdateautomationresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementserviceupdateautomationresponse.go @@ -15,9 +15,9 @@ type AppEntitlementServiceUpdateAutomationResponse struct { AppEntitlementAutomation *AppEntitlementAutomation `json:"AppEntitlementAutomation,omitempty"` } -func (o *AppEntitlementServiceUpdateAutomationResponse) GetAppEntitlementAutomation() *AppEntitlementAutomation { - if o == nil { +func (a *AppEntitlementServiceUpdateAutomationResponse) GetAppEntitlementAutomation() *AppEntitlementAutomation { + if a == nil { return nil } - return o.AppEntitlementAutomation + return a.AppEntitlementAutomation } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbinding.go index ff993ff4..a8172934 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbinding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbinding.go @@ -27,57 +27,57 @@ func (a AppEntitlementUserBinding) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementUserBinding) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementUserBinding) GetAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementUserBinding) GetAppEntitlementID() *string { + if a == nil { return nil } - return o.AppEntitlementID + return a.AppEntitlementID } -func (o *AppEntitlementUserBinding) GetAppID() *string { - if o == nil { +func (a *AppEntitlementUserBinding) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlementUserBinding) GetAppUserID() *string { - if o == nil { +func (a *AppEntitlementUserBinding) GetAppUserID() *string { + if a == nil { return nil } - return o.AppUserID + return a.AppUserID } -func (o *AppEntitlementUserBinding) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppEntitlementUserBinding) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppEntitlementUserBinding) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppEntitlementUserBinding) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppEntitlementUserBinding) GetDeprovisionAt() *time.Time { - if o == nil { +func (a *AppEntitlementUserBinding) GetDeprovisionAt() *time.Time { + if a == nil { return nil } - return o.DeprovisionAt + return a.DeprovisionAt } -func (o *AppEntitlementUserBinding) GetGrantSources() []AppEntitlementRef { - if o == nil { +func (a *AppEntitlementUserBinding) GetGrantSources() []AppEntitlementRef { + if a == nil { return nil } - return o.GrantSources + return a.GrantSources } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingexpandhistorymask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingexpandhistorymask.go index 545d04b9..056804d1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingexpandhistorymask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingexpandhistorymask.go @@ -8,9 +8,9 @@ type AppEntitlementUserBindingExpandHistoryMask struct { Paths []string `json:"paths,omitempty"` } -func (o *AppEntitlementUserBindingExpandHistoryMask) GetPaths() []string { - if o == nil { +func (a *AppEntitlementUserBindingExpandHistoryMask) GetPaths() []string { + if a == nil { return nil } - return o.Paths + return a.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingfeed.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingfeed.go index a625fc8f..ed9f840a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingfeed.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingfeed.go @@ -20,6 +20,17 @@ func (e EventType) ToPointer() *EventType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *EventType) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_EVENT_TYPE_UNSPECIFIED", "GRANT_EVENT_TYPE_ADDED", "GRANT_EVENT_TYPE_REMOVED": + return true + } + } + return false +} + // The AppEntitlementUserBindingFeed message. type AppEntitlementUserBindingFeed struct { // The ID of the app entitlement that the app user has access to @@ -40,50 +51,50 @@ func (a AppEntitlementUserBindingFeed) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementUserBindingFeed) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementUserBindingFeed) GetAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementUserBindingFeed) GetAppEntitlementID() *string { + if a == nil { return nil } - return o.AppEntitlementID + return a.AppEntitlementID } -func (o *AppEntitlementUserBindingFeed) GetAppID() *string { - if o == nil { +func (a *AppEntitlementUserBindingFeed) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlementUserBindingFeed) GetAppUserID() *string { - if o == nil { +func (a *AppEntitlementUserBindingFeed) GetAppUserID() *string { + if a == nil { return nil } - return o.AppUserID + return a.AppUserID } -func (o *AppEntitlementUserBindingFeed) GetDate() *time.Time { - if o == nil { +func (a *AppEntitlementUserBindingFeed) GetDate() *time.Time { + if a == nil { return nil } - return o.Date + return a.Date } -func (o *AppEntitlementUserBindingFeed) GetEventType() *EventType { - if o == nil { +func (a *AppEntitlementUserBindingFeed) GetEventType() *EventType { + if a == nil { return nil } - return o.EventType + return a.EventType } -func (o *AppEntitlementUserBindingFeed) GetTicketID() *string { - if o == nil { +func (a *AppEntitlementUserBindingFeed) GetTicketID() *string { + if a == nil { return nil } - return o.TicketID + return a.TicketID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingfeedview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingfeedview.go index 0400d161..89395e2e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingfeedview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindingfeedview.go @@ -16,37 +16,37 @@ type AppEntitlementUserBindingFeedView struct { TicketPath *string `json:"ticketPath,omitempty"` } -func (o *AppEntitlementUserBindingFeedView) GetAppEntitlementUserBindingFeed() *AppEntitlementUserBindingFeed { - if o == nil { +func (a *AppEntitlementUserBindingFeedView) GetAppEntitlementUserBindingFeed() *AppEntitlementUserBindingFeed { + if a == nil { return nil } - return o.AppEntitlementUserBindingFeed + return a.AppEntitlementUserBindingFeed } -func (o *AppEntitlementUserBindingFeedView) GetAppPath() *string { - if o == nil { +func (a *AppEntitlementUserBindingFeedView) GetAppPath() *string { + if a == nil { return nil } - return o.AppPath + return a.AppPath } -func (o *AppEntitlementUserBindingFeedView) GetAppUserPath() *string { - if o == nil { +func (a *AppEntitlementUserBindingFeedView) GetAppUserPath() *string { + if a == nil { return nil } - return o.AppUserPath + return a.AppUserPath } -func (o *AppEntitlementUserBindingFeedView) GetEntitlementPath() *string { - if o == nil { +func (a *AppEntitlementUserBindingFeedView) GetEntitlementPath() *string { + if a == nil { return nil } - return o.EntitlementPath + return a.EntitlementPath } -func (o *AppEntitlementUserBindingFeedView) GetTicketPath() *string { - if o == nil { +func (a *AppEntitlementUserBindingFeedView) GetTicketPath() *string { + if a == nil { return nil } - return o.TicketPath + return a.TicketPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindinghistory.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindinghistory.go index 7b17c802..535c58f1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindinghistory.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindinghistory.go @@ -24,43 +24,43 @@ func (a AppEntitlementUserBindingHistory) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementUserBindingHistory) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementUserBindingHistory) GetAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementUserBindingHistory) GetAppEntitlementID() *string { + if a == nil { return nil } - return o.AppEntitlementID + return a.AppEntitlementID } -func (o *AppEntitlementUserBindingHistory) GetAppID() *string { - if o == nil { +func (a *AppEntitlementUserBindingHistory) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlementUserBindingHistory) GetAppUserID() *string { - if o == nil { +func (a *AppEntitlementUserBindingHistory) GetAppUserID() *string { + if a == nil { return nil } - return o.AppUserID + return a.AppUserID } -func (o *AppEntitlementUserBindingHistory) GetGrantedAt() *time.Time { - if o == nil { +func (a *AppEntitlementUserBindingHistory) GetGrantedAt() *time.Time { + if a == nil { return nil } - return o.GrantedAt + return a.GrantedAt } -func (o *AppEntitlementUserBindingHistory) GetRevokedAt() *time.Time { - if o == nil { +func (a *AppEntitlementUserBindingHistory) GetRevokedAt() *time.Time { + if a == nil { return nil } - return o.RevokedAt + return a.RevokedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindinghistoryview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindinghistoryview.go index e0bc3211..cd95bec9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindinghistoryview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserbindinghistoryview.go @@ -14,30 +14,30 @@ type AppEntitlementUserBindingHistoryView struct { EntitlementPath *string `json:"entitlementPath,omitempty"` } -func (o *AppEntitlementUserBindingHistoryView) GetAppEntitlementUserBindingHistory() *AppEntitlementUserBindingHistory { - if o == nil { +func (a *AppEntitlementUserBindingHistoryView) GetAppEntitlementUserBindingHistory() *AppEntitlementUserBindingHistory { + if a == nil { return nil } - return o.AppEntitlementUserBindingHistory + return a.AppEntitlementUserBindingHistory } -func (o *AppEntitlementUserBindingHistoryView) GetAppPath() *string { - if o == nil { +func (a *AppEntitlementUserBindingHistoryView) GetAppPath() *string { + if a == nil { return nil } - return o.AppPath + return a.AppPath } -func (o *AppEntitlementUserBindingHistoryView) GetAppUserPath() *string { - if o == nil { +func (a *AppEntitlementUserBindingHistoryView) GetAppUserPath() *string { + if a == nil { return nil } - return o.AppUserPath + return a.AppUserPath } -func (o *AppEntitlementUserBindingHistoryView) GetEntitlementPath() *string { - if o == nil { +func (a *AppEntitlementUserBindingHistoryView) GetEntitlementPath() *string { + if a == nil { return nil } - return o.EntitlementPath + return a.EntitlementPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserview.go index 299132b2..facc9e9f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementuserview.go @@ -22,36 +22,36 @@ func (a AppEntitlementUserView) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementUserView) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementUserView) GetAppUserView() *AppUserView { - if o == nil { +func (a *AppEntitlementUserView) GetAppUserView() *AppUserView { + if a == nil { return nil } - return o.AppUserView + return a.AppUserView } -func (o *AppEntitlementUserView) GetAppEntitlementUserBindingCreatedAt() *time.Time { - if o == nil { +func (a *AppEntitlementUserView) GetAppEntitlementUserBindingCreatedAt() *time.Time { + if a == nil { return nil } - return o.AppEntitlementUserBindingCreatedAt + return a.AppEntitlementUserBindingCreatedAt } -func (o *AppEntitlementUserView) GetAppEntitlementUserBindingDeprovisionAt() *time.Time { - if o == nil { +func (a *AppEntitlementUserView) GetAppEntitlementUserBindingDeprovisionAt() *time.Time { + if a == nil { return nil } - return o.AppEntitlementUserBindingDeprovisionAt + return a.AppEntitlementUserBindingDeprovisionAt } -func (o *AppEntitlementUserView) GetGrantSources() []AppEntitlementRef { - if o == nil { +func (a *AppEntitlementUserView) GetGrantSources() []AppEntitlementRef { + if a == nil { return nil } - return o.GrantSources + return a.GrantSources } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementview.go index b47a171f..ad472e5c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementview.go @@ -19,30 +19,30 @@ type AppEntitlementView struct { AppResourceTypePath *string `json:"appResourceTypePath,omitempty"` } -func (o *AppEntitlementView) GetAppEntitlement() *AppEntitlement { - if o == nil { +func (a *AppEntitlementView) GetAppEntitlement() *AppEntitlement { + if a == nil { return nil } - return o.AppEntitlement + return a.AppEntitlement } -func (o *AppEntitlementView) GetAppPath() *string { - if o == nil { +func (a *AppEntitlementView) GetAppPath() *string { + if a == nil { return nil } - return o.AppPath + return a.AppPath } -func (o *AppEntitlementView) GetAppResourcePath() *string { - if o == nil { +func (a *AppEntitlementView) GetAppResourcePath() *string { + if a == nil { return nil } - return o.AppResourcePath + return a.AppResourcePath } -func (o *AppEntitlementView) GetAppResourceTypePath() *string { - if o == nil { +func (a *AppEntitlementView) GetAppResourceTypePath() *string { + if a == nil { return nil } - return o.AppResourceTypePath + return a.AppResourceTypePath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithexpired.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithexpired.go index 60036908..5505e582 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithexpired.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithexpired.go @@ -32,71 +32,71 @@ func (a AppEntitlementWithExpired) MarshalJSON() ([]byte, error) { } func (a *AppEntitlementWithExpired) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppEntitlementWithExpired) GetAppUser() *AppUser { - if o == nil { +func (a *AppEntitlementWithExpired) GetAppUser() *AppUser { + if a == nil { return nil } - return o.AppUser + return a.AppUser } -func (o *AppEntitlementWithExpired) GetUser() *User { - if o == nil { +func (a *AppEntitlementWithExpired) GetUser() *User { + if a == nil { return nil } - return o.User + return a.User } -func (o *AppEntitlementWithExpired) GetAppEntitlementID() *string { - if o == nil { +func (a *AppEntitlementWithExpired) GetAppEntitlementID() *string { + if a == nil { return nil } - return o.AppEntitlementID + return a.AppEntitlementID } -func (o *AppEntitlementWithExpired) GetAppID() *string { - if o == nil { +func (a *AppEntitlementWithExpired) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppEntitlementWithExpired) GetAppUserID() *string { - if o == nil { +func (a *AppEntitlementWithExpired) GetAppUserID() *string { + if a == nil { return nil } - return o.AppUserID + return a.AppUserID } -func (o *AppEntitlementWithExpired) GetDiscovered() *time.Time { - if o == nil { +func (a *AppEntitlementWithExpired) GetDiscovered() *time.Time { + if a == nil { return nil } - return o.Discovered + return a.Discovered } -func (o *AppEntitlementWithExpired) GetExpired() *time.Time { - if o == nil { +func (a *AppEntitlementWithExpired) GetExpired() *time.Time { + if a == nil { return nil } - return o.Expired + return a.Expired } -func (o *AppEntitlementWithExpired) GetGrantReasons() []GrantReason { - if o == nil { +func (a *AppEntitlementWithExpired) GetGrantReasons() []GrantReason { + if a == nil { return nil } - return o.GrantReasons + return a.GrantReasons } -func (o *AppEntitlementWithExpired) GetGrantSources() []AppEntitlementRef { - if o == nil { +func (a *AppEntitlementWithExpired) GetGrantSources() []AppEntitlementRef { + if a == nil { return nil } - return o.GrantSources + return a.GrantSources } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithuserbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithuserbinding.go index 93813093..6d899982 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithuserbinding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithuserbinding.go @@ -10,16 +10,16 @@ type AppEntitlementWithUserBinding struct { AppEntitlementView *AppEntitlementView `json:"entitlement,omitempty"` } -func (o *AppEntitlementWithUserBinding) GetAppEntitlementUserView() *AppEntitlementUserView { - if o == nil { +func (a *AppEntitlementWithUserBinding) GetAppEntitlementUserView() *AppEntitlementUserView { + if a == nil { return nil } - return o.AppEntitlementUserView + return a.AppEntitlementUserView } -func (o *AppEntitlementWithUserBinding) GetAppEntitlementView() *AppEntitlementView { - if o == nil { +func (a *AppEntitlementWithUserBinding) GetAppEntitlementView() *AppEntitlementView { + if a == nil { return nil } - return o.AppEntitlementView + return a.AppEntitlementView } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithuserbindings.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithuserbindings.go index 10bccde1..b418fc39 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithuserbindings.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appentitlementwithuserbindings.go @@ -10,16 +10,16 @@ type AppEntitlementWithUserBindings struct { AppEntitlementUserBindings []AppEntitlementUserBinding `json:"appEntitlementUserBindings,omitempty"` } -func (o *AppEntitlementWithUserBindings) GetAppEntitlementView() *AppEntitlementView { - if o == nil { +func (a *AppEntitlementWithUserBindings) GetAppEntitlementView() *AppEntitlementView { + if a == nil { return nil } - return o.AppEntitlementView + return a.AppEntitlementView } -func (o *AppEntitlementWithUserBindings) GetAppEntitlementUserBindings() []AppEntitlementUserBinding { - if o == nil { +func (a *AppEntitlementWithUserBindings) GetAppEntitlementUserBindings() []AppEntitlementUserBinding { + if a == nil { return nil } - return o.AppEntitlementUserBindings + return a.AppEntitlementUserBindings } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appgroupapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appgroupapproval.go index 295ac5d9..10a7089d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appgroupapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appgroupapproval.go @@ -12,41 +12,68 @@ type AppGroupApproval struct { AppID *string `json:"appId,omitempty"` // Configuration to allow a fallback if the group is empty. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and the group is empty. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if fallback is enabled and the group is empty. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` } -func (o *AppGroupApproval) GetAllowSelfApproval() *bool { - if o == nil { +func (a *AppGroupApproval) GetAllowSelfApproval() *bool { + if a == nil { return nil } - return o.AllowSelfApproval + return a.AllowSelfApproval } -func (o *AppGroupApproval) GetAppGroupID() *string { - if o == nil { +func (a *AppGroupApproval) GetAppGroupID() *string { + if a == nil { return nil } - return o.AppGroupID + return a.AppGroupID } -func (o *AppGroupApproval) GetAppID() *string { - if o == nil { +func (a *AppGroupApproval) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppGroupApproval) GetFallback() *bool { - if o == nil { +func (a *AppGroupApproval) GetFallback() *bool { + if a == nil { return nil } - return o.Fallback + return a.Fallback } -func (o *AppGroupApproval) GetFallbackUserIds() []string { - if o == nil { +func (a *AppGroupApproval) GetFallbackGroupIds() []AppEntitlementReference { + if a == nil { return nil } - return o.FallbackUserIds + return a.FallbackGroupIds +} + +func (a *AppGroupApproval) GetFallbackUserIds() []string { + if a == nil { + return nil + } + return a.FallbackUserIds +} + +func (a *AppGroupApproval) GetIsGroupFallbackEnabled() *bool { + if a == nil { + return nil + } + return a.IsGroupFallbackEnabled +} + +func (a *AppGroupApproval) GetRequireDistinctApprovers() *bool { + if a == nil { + return nil + } + return a.RequireDistinctApprovers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/applicationaccessscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/applicationaccessscope.go new file mode 100644 index 00000000..d615f968 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/applicationaccessscope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ApplicationAccessScope message. +type ApplicationAccessScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appmanagedstatebindingref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appmanagedstatebindingref.go index d7f040a4..d76e28b1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appmanagedstatebindingref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appmanagedstatebindingref.go @@ -12,23 +12,23 @@ type AppManagedStateBindingRef struct { ResourceTypeID *string `json:"resourceTypeId,omitempty"` } -func (o *AppManagedStateBindingRef) GetAppID() *string { - if o == nil { +func (a *AppManagedStateBindingRef) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppManagedStateBindingRef) GetResourceID() *string { - if o == nil { +func (a *AppManagedStateBindingRef) GetResourceID() *string { + if a == nil { return nil } - return o.ResourceID + return a.ResourceID } -func (o *AppManagedStateBindingRef) GetResourceTypeID() *string { - if o == nil { +func (a *AppManagedStateBindingRef) GetResourceTypeID() *string { + if a == nil { return nil } - return o.ResourceTypeID + return a.ResourceTypeID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appownerapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appownerapproval.go index 66b37707..182c6fbc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appownerapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appownerapproval.go @@ -6,11 +6,20 @@ package shared type AppOwnerApproval struct { // Configuration that allows a user to self approve if they are an app owner during this approval step. AllowSelfApproval *bool `json:"allowSelfApproval,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` } -func (o *AppOwnerApproval) GetAllowSelfApproval() *bool { - if o == nil { +func (a *AppOwnerApproval) GetAllowSelfApproval() *bool { + if a == nil { return nil } - return o.AllowSelfApproval + return a.AllowSelfApproval +} + +func (a *AppOwnerApproval) GetRequireDistinctApprovers() *bool { + if a == nil { + return nil + } + return a.RequireDistinctApprovers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/apppopulationreport.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/apppopulationreport.go index 4819efa3..9e1d6334 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/apppopulationreport.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/apppopulationreport.go @@ -21,6 +21,17 @@ func (e AppPopulationReportState) ToPointer() *AppPopulationReportState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppPopulationReportState) IsExact() bool { + if e != nil { + switch *e { + case "REPORT_STATE_UNSPECIFIED", "REPORT_STATE_PENDING", "REPORT_STATE_OK", "REPORT_STATE_ERROR": + return true + } + } + return false +} + // The AppPopulationReport is a generated report for a specific app that gives details about the app's users. These details include what groups, roles, and other entitlements the users have access to. type AppPopulationReport struct { // The appId is the Id of the app which the report is generated for. @@ -41,50 +52,50 @@ func (a AppPopulationReport) MarshalJSON() ([]byte, error) { } func (a *AppPopulationReport) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppPopulationReport) GetAppID() *string { - if o == nil { +func (a *AppPopulationReport) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppPopulationReport) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppPopulationReport) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppPopulationReport) GetDownloadURL() *string { - if o == nil { +func (a *AppPopulationReport) GetDownloadURL() *string { + if a == nil { return nil } - return o.DownloadURL + return a.DownloadURL } -func (o *AppPopulationReport) GetHashes() map[string]string { - if o == nil { +func (a *AppPopulationReport) GetHashes() map[string]string { + if a == nil { return nil } - return o.Hashes + return a.Hashes } -func (o *AppPopulationReport) GetID() *string { - if o == nil { +func (a *AppPopulationReport) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AppPopulationReport) GetState() *AppPopulationReportState { - if o == nil { +func (a *AppPopulationReport) GetState() *AppPopulationReportState { + if a == nil { return nil } - return o.State + return a.State } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appref.go index 4c2344b8..4e691b0b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appref.go @@ -8,9 +8,9 @@ type AppRef struct { ID *string `json:"id,omitempty"` } -func (o *AppRef) GetID() *string { - if o == nil { +func (a *AppRef) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appreportservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appreportservicelistresponse.go index aa38be85..25ffb98d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appreportservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appreportservicelistresponse.go @@ -12,16 +12,16 @@ type AppReportServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppReportServiceListResponse) GetList() []AppPopulationReport { - if o == nil { +func (a *AppReportServiceListResponse) GetList() []AppPopulationReport { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppReportServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppReportServiceListResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresource.go index 52a2aed5..91f0f6f3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresource.go @@ -44,106 +44,106 @@ func (a AppResource) MarshalJSON() ([]byte, error) { } func (a *AppResource) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppResource) GetSecretTrait() *SecretTrait { - if o == nil { +func (a *AppResource) GetSecretTrait() *SecretTrait { + if a == nil { return nil } - return o.SecretTrait + return a.SecretTrait } -func (o *AppResource) GetAppID() *string { - if o == nil { +func (a *AppResource) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppResource) GetAppResourceTypeID() *string { - if o == nil { +func (a *AppResource) GetAppResourceTypeID() *string { + if a == nil { return nil } - return o.AppResourceTypeID + return a.AppResourceTypeID } -func (o *AppResource) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppResource) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppResource) GetCustomDescription() *string { - if o == nil { +func (a *AppResource) GetCustomDescription() *string { + if a == nil { return nil } - return o.CustomDescription + return a.CustomDescription } -func (o *AppResource) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppResource) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppResource) GetDescription() *string { - if o == nil { +func (a *AppResource) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AppResource) GetDisplayName() *string { - if o == nil { +func (a *AppResource) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppResource) GetGrantCount() *int64 { - if o == nil { +func (a *AppResource) GetGrantCount() *int64 { + if a == nil { return nil } - return o.GrantCount + return a.GrantCount } -func (o *AppResource) GetID() *string { - if o == nil { +func (a *AppResource) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AppResource) GetMatchBatonID() *string { - if o == nil { +func (a *AppResource) GetMatchBatonID() *string { + if a == nil { return nil } - return o.MatchBatonID + return a.MatchBatonID } -func (o *AppResource) GetParentAppResourceID() *string { - if o == nil { +func (a *AppResource) GetParentAppResourceID() *string { + if a == nil { return nil } - return o.ParentAppResourceID + return a.ParentAppResourceID } -func (o *AppResource) GetParentAppResourceTypeID() *string { - if o == nil { +func (a *AppResource) GetParentAppResourceTypeID() *string { + if a == nil { return nil } - return o.ParentAppResourceTypeID + return a.ParentAppResourceTypeID } -func (o *AppResource) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AppResource) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceexpandmask.go index ac317b1b..84ae87ea 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceexpandmask.go @@ -8,9 +8,9 @@ type AppResourceExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *AppResourceExpandMask) GetPaths() []string { - if o == nil { +func (a *AppResourceExpandMask) GetPaths() []string { + if a == nil { return nil } - return o.Paths + return a.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcefilter.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcefilter.go new file mode 100644 index 00000000..4b5d81bf --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcefilter.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AppResourceFilter message. +type AppResourceFilter struct { + // The appId field. + AppID *string `json:"appId,omitempty"` + // The resourceTypeId field. + ResourceTypeID *string `json:"resourceTypeId,omitempty"` +} + +func (a *AppResourceFilter) GetAppID() *string { + if a == nil { + return nil + } + return a.AppID +} + +func (a *AppResourceFilter) GetResourceTypeID() *string { + if a == nil { + return nil + } + return a.ResourceTypeID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceinput.go index 5cc0769b..e691db70 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceinput.go @@ -31,79 +31,79 @@ type AppResourceInput struct { ParentAppResourceTypeID *string `json:"parentAppResourceTypeId,omitempty"` } -func (o *AppResourceInput) GetSecretTrait() *SecretTrait { - if o == nil { +func (a *AppResourceInput) GetSecretTrait() *SecretTrait { + if a == nil { return nil } - return o.SecretTrait + return a.SecretTrait } -func (o *AppResourceInput) GetAppID() *string { - if o == nil { +func (a *AppResourceInput) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppResourceInput) GetAppResourceTypeID() *string { - if o == nil { +func (a *AppResourceInput) GetAppResourceTypeID() *string { + if a == nil { return nil } - return o.AppResourceTypeID + return a.AppResourceTypeID } -func (o *AppResourceInput) GetCustomDescription() *string { - if o == nil { +func (a *AppResourceInput) GetCustomDescription() *string { + if a == nil { return nil } - return o.CustomDescription + return a.CustomDescription } -func (o *AppResourceInput) GetDescription() *string { - if o == nil { +func (a *AppResourceInput) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AppResourceInput) GetDisplayName() *string { - if o == nil { +func (a *AppResourceInput) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppResourceInput) GetGrantCount() *int64 { - if o == nil { +func (a *AppResourceInput) GetGrantCount() *int64 { + if a == nil { return nil } - return o.GrantCount + return a.GrantCount } -func (o *AppResourceInput) GetID() *string { - if o == nil { +func (a *AppResourceInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AppResourceInput) GetMatchBatonID() *string { - if o == nil { +func (a *AppResourceInput) GetMatchBatonID() *string { + if a == nil { return nil } - return o.MatchBatonID + return a.MatchBatonID } -func (o *AppResourceInput) GetParentAppResourceID() *string { - if o == nil { +func (a *AppResourceInput) GetParentAppResourceID() *string { + if a == nil { return nil } - return o.ParentAppResourceID + return a.ParentAppResourceID } -func (o *AppResourceInput) GetParentAppResourceTypeID() *string { - if o == nil { +func (a *AppResourceInput) GetParentAppResourceTypeID() *string { + if a == nil { return nil } - return o.ParentAppResourceTypeID + return a.ParentAppResourceTypeID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceref.go index 2f63ee18..80ef7b0a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceref.go @@ -12,23 +12,23 @@ type AppResourceRef struct { ID *string `json:"id,omitempty"` } -func (o *AppResourceRef) GetAppID() *string { - if o == nil { +func (a *AppResourceRef) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppResourceRef) GetAppResourceTypeID() *string { - if o == nil { +func (a *AppResourceRef) GetAppResourceTypeID() *string { + if a == nil { return nil } - return o.AppResourceTypeID + return a.AppResourceTypeID } -func (o *AppResourceRef) GetID() *string { - if o == nil { +func (a *AppResourceRef) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceservicegetresponse.go index 145af32b..d3866d5a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceservicegetresponse.go @@ -18,24 +18,24 @@ func (a AppResourceServiceGetResponseExpanded) MarshalJSON() ([]byte, error) { } func (a *AppResourceServiceGetResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppResourceServiceGetResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppResourceServiceGetResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppResourceServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppResourceServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // AppResourceServiceGetResponse - The app resource service get response contains the app resource view and array of expanded items indicated by the request's expand mask. @@ -46,16 +46,16 @@ type AppResourceServiceGetResponse struct { Expanded []AppResourceServiceGetResponseExpanded `json:"expanded,omitempty"` } -func (o *AppResourceServiceGetResponse) GetAppResourceView() *AppResourceView { - if o == nil { +func (a *AppResourceServiceGetResponse) GetAppResourceView() *AppResourceView { + if a == nil { return nil } - return o.AppResourceView + return a.AppResourceView } -func (o *AppResourceServiceGetResponse) GetExpanded() []AppResourceServiceGetResponseExpanded { - if o == nil { +func (a *AppResourceServiceGetResponse) GetExpanded() []AppResourceServiceGetResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceservicelistresponse.go index 37cac8de..d0822840 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceservicelistresponse.go @@ -18,24 +18,24 @@ func (a AppResourceServiceListResponseExpanded) MarshalJSON() ([]byte, error) { } func (a *AppResourceServiceListResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppResourceServiceListResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppResourceServiceListResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppResourceServiceListResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppResourceServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppResourceServiceListResponse message contains a list of results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type AppResourceServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppResourceServiceListResponse) GetExpanded() []AppResourceServiceListResponseExpanded { - if o == nil { +func (a *AppResourceServiceListResponse) GetExpanded() []AppResourceServiceListResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } -func (o *AppResourceServiceListResponse) GetList() []AppResourceView { - if o == nil { +func (a *AppResourceServiceListResponse) GetList() []AppResourceView { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppResourceServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppResourceServiceListResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceserviceupdaterequest.go index 2804cfc5..4b9727c8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceserviceupdaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceserviceupdaterequest.go @@ -15,23 +15,23 @@ type AppResourceServiceUpdateRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *AppResourceServiceUpdateRequest) GetAppResource() *AppResourceInput { - if o == nil { +func (a *AppResourceServiceUpdateRequest) GetAppResource() *AppResourceInput { + if a == nil { return nil } - return o.AppResource + return a.AppResource } -func (o *AppResourceServiceUpdateRequest) GetAppResourceExpandMask() *AppResourceExpandMask { - if o == nil { +func (a *AppResourceServiceUpdateRequest) GetAppResourceExpandMask() *AppResourceExpandMask { + if a == nil { return nil } - return o.AppResourceExpandMask + return a.AppResourceExpandMask } -func (o *AppResourceServiceUpdateRequest) GetUpdateMask() *string { - if o == nil { +func (a *AppResourceServiceUpdateRequest) GetUpdateMask() *string { + if a == nil { return nil } - return o.UpdateMask + return a.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceserviceupdateresponse.go index 4a90c783..e6229b88 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceserviceupdateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceserviceupdateresponse.go @@ -18,24 +18,24 @@ func (a AppResourceServiceUpdateResponseExpanded) MarshalJSON() ([]byte, error) } func (a *AppResourceServiceUpdateResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppResourceServiceUpdateResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppResourceServiceUpdateResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppResourceServiceUpdateResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppResourceServiceUpdateResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppResourceServiceUpdateResponse message. @@ -46,16 +46,16 @@ type AppResourceServiceUpdateResponse struct { Expanded []AppResourceServiceUpdateResponseExpanded `json:"expanded,omitempty"` } -func (o *AppResourceServiceUpdateResponse) GetAppResourceView() *AppResourceView { - if o == nil { +func (a *AppResourceServiceUpdateResponse) GetAppResourceView() *AppResourceView { + if a == nil { return nil } - return o.AppResourceView + return a.AppResourceView } -func (o *AppResourceServiceUpdateResponse) GetExpanded() []AppResourceServiceUpdateResponseExpanded { - if o == nil { +func (a *AppResourceServiceUpdateResponse) GetExpanded() []AppResourceServiceUpdateResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetype.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetype.go index d30cc0dc..9bd6df82 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetype.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetype.go @@ -27,57 +27,57 @@ func (a AppResourceType) MarshalJSON() ([]byte, error) { } func (a *AppResourceType) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppResourceType) GetAppID() *string { - if o == nil { +func (a *AppResourceType) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppResourceType) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppResourceType) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppResourceType) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppResourceType) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppResourceType) GetDisplayName() *string { - if o == nil { +func (a *AppResourceType) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppResourceType) GetID() *string { - if o == nil { +func (a *AppResourceType) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AppResourceType) GetTraitIds() []string { - if o == nil { +func (a *AppResourceType) GetTraitIds() []string { + if a == nil { return nil } - return o.TraitIds + return a.TraitIds } -func (o *AppResourceType) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AppResourceType) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeinput.go index 01e50863..6b019433 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeinput.go @@ -10,16 +10,16 @@ type AppResourceTypeInput struct { TraitIds []string `json:"traitIds,omitempty"` } -func (o *AppResourceTypeInput) GetDisplayName() *string { - if o == nil { +func (a *AppResourceTypeInput) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppResourceTypeInput) GetTraitIds() []string { - if o == nil { +func (a *AppResourceTypeInput) GetTraitIds() []string { + if a == nil { return nil } - return o.TraitIds + return a.TraitIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeservicegetresponse.go index 72b0fd5b..e163acec 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeservicegetresponse.go @@ -18,24 +18,24 @@ func (a AppResourceTypeServiceGetResponseExpanded) MarshalJSON() ([]byte, error) } func (a *AppResourceTypeServiceGetResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppResourceTypeServiceGetResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppResourceTypeServiceGetResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppResourceTypeServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppResourceTypeServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppResourceTypeServiceGetResponse contains an expanded array containing the expanded values indicated by the expand mask @@ -48,16 +48,16 @@ type AppResourceTypeServiceGetResponse struct { Expanded []AppResourceTypeServiceGetResponseExpanded `json:"expanded,omitempty"` } -func (o *AppResourceTypeServiceGetResponse) GetAppResourceTypeView() *AppResourceTypeView { - if o == nil { +func (a *AppResourceTypeServiceGetResponse) GetAppResourceTypeView() *AppResourceTypeView { + if a == nil { return nil } - return o.AppResourceTypeView + return a.AppResourceTypeView } -func (o *AppResourceTypeServiceGetResponse) GetExpanded() []AppResourceTypeServiceGetResponseExpanded { - if o == nil { +func (a *AppResourceTypeServiceGetResponse) GetExpanded() []AppResourceTypeServiceGetResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeservicelistresponse.go index ce34d81d..668dd4be 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeservicelistresponse.go @@ -18,24 +18,24 @@ func (a AppResourceTypeServiceListResponseExpanded) MarshalJSON() ([]byte, error } func (a *AppResourceTypeServiceListResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppResourceTypeServiceListResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppResourceTypeServiceListResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppResourceTypeServiceListResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppResourceTypeServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppResourceTypeServiceListResponse message contains a list of results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type AppResourceTypeServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppResourceTypeServiceListResponse) GetExpanded() []AppResourceTypeServiceListResponseExpanded { - if o == nil { +func (a *AppResourceTypeServiceListResponse) GetExpanded() []AppResourceTypeServiceListResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } -func (o *AppResourceTypeServiceListResponse) GetList() []AppResourceTypeView { - if o == nil { +func (a *AppResourceTypeServiceListResponse) GetList() []AppResourceTypeView { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppResourceTypeServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppResourceTypeServiceListResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeview.go index 6723a7cd..a05888fd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourcetypeview.go @@ -10,16 +10,16 @@ type AppResourceTypeView struct { AppPath *string `json:"appPath,omitempty"` } -func (o *AppResourceTypeView) GetAppResourceType() *AppResourceType { - if o == nil { +func (a *AppResourceTypeView) GetAppResourceType() *AppResourceType { + if a == nil { return nil } - return o.AppResourceType + return a.AppResourceType } -func (o *AppResourceTypeView) GetAppPath() *string { - if o == nil { +func (a *AppResourceTypeView) GetAppPath() *string { + if a == nil { return nil } - return o.AppPath + return a.AppPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceview.go index 81913055..bfa63dd9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appresourceview.go @@ -20,37 +20,37 @@ type AppResourceView struct { ResourceTypePath *string `json:"resourceTypePath,omitempty"` } -func (o *AppResourceView) GetAppResource() *AppResource { - if o == nil { +func (a *AppResourceView) GetAppResource() *AppResource { + if a == nil { return nil } - return o.AppResource + return a.AppResource } -func (o *AppResourceView) GetAppPath() *string { - if o == nil { +func (a *AppResourceView) GetAppPath() *string { + if a == nil { return nil } - return o.AppPath + return a.AppPath } -func (o *AppResourceView) GetParentResourcePath() *string { - if o == nil { +func (a *AppResourceView) GetParentResourcePath() *string { + if a == nil { return nil } - return o.ParentResourcePath + return a.ParentResourcePath } -func (o *AppResourceView) GetParentResourceTypePath() *string { - if o == nil { +func (a *AppResourceView) GetParentResourceTypePath() *string { + if a == nil { return nil } - return o.ParentResourceTypePath + return a.ParentResourceTypePath } -func (o *AppResourceView) GetResourceTypePath() *string { - if o == nil { +func (a *AppResourceView) GetResourceTypePath() *string { + if a == nil { return nil } - return o.ResourceTypePath + return a.ResourceTypePath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approval.go index e31eb908..53a21600 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approval.go @@ -29,6 +29,8 @@ type Approval struct { // This message contains a oneof named escalation_policy. Only a single field of the following list may be set at a time: // - replacePolicy // - reassignToApprovers + // - cancelTicket + // - skipStep // Escalation *Escalation `json:"escalation,omitempty"` // The ExpressionApproval message. @@ -64,142 +66,142 @@ type Approval struct { RequiresStepUpProviderID *string `json:"requiresStepUpProviderId,omitempty"` } -func (o *Approval) GetAgentApproval() *AgentApproval { - if o == nil { +func (a *Approval) GetAgentApproval() *AgentApproval { + if a == nil { return nil } - return o.AgentApproval + return a.AgentApproval } -func (o *Approval) GetAppGroupApproval() *AppGroupApproval { - if o == nil { +func (a *Approval) GetAppGroupApproval() *AppGroupApproval { + if a == nil { return nil } - return o.AppGroupApproval + return a.AppGroupApproval } -func (o *Approval) GetAppOwnerApproval() *AppOwnerApproval { - if o == nil { +func (a *Approval) GetAppOwnerApproval() *AppOwnerApproval { + if a == nil { return nil } - return o.AppOwnerApproval + return a.AppOwnerApproval } -func (o *Approval) GetEntitlementOwnerApproval() *EntitlementOwnerApproval { - if o == nil { +func (a *Approval) GetEntitlementOwnerApproval() *EntitlementOwnerApproval { + if a == nil { return nil } - return o.EntitlementOwnerApproval + return a.EntitlementOwnerApproval } -func (o *Approval) GetEscalation() *Escalation { - if o == nil { +func (a *Approval) GetEscalation() *Escalation { + if a == nil { return nil } - return o.Escalation + return a.Escalation } -func (o *Approval) GetExpressionApproval() *ExpressionApproval { - if o == nil { +func (a *Approval) GetExpressionApproval() *ExpressionApproval { + if a == nil { return nil } - return o.ExpressionApproval + return a.ExpressionApproval } -func (o *Approval) GetManagerApproval() *ManagerApproval { - if o == nil { +func (a *Approval) GetManagerApproval() *ManagerApproval { + if a == nil { return nil } - return o.ManagerApproval + return a.ManagerApproval } -func (o *Approval) GetResourceOwnerApproval() *ResourceOwnerApproval { - if o == nil { +func (a *Approval) GetResourceOwnerApproval() *ResourceOwnerApproval { + if a == nil { return nil } - return o.ResourceOwnerApproval + return a.ResourceOwnerApproval } -func (o *Approval) GetSelfApproval() *SelfApproval { - if o == nil { +func (a *Approval) GetSelfApproval() *SelfApproval { + if a == nil { return nil } - return o.SelfApproval + return a.SelfApproval } -func (o *Approval) GetUserApproval() *UserApproval { - if o == nil { +func (a *Approval) GetUserApproval() *UserApproval { + if a == nil { return nil } - return o.UserApproval + return a.UserApproval } -func (o *Approval) GetWebhookApproval() *WebhookApproval { - if o == nil { +func (a *Approval) GetWebhookApproval() *WebhookApproval { + if a == nil { return nil } - return o.WebhookApproval + return a.WebhookApproval } -func (o *Approval) GetAllowDelegation() *bool { - if o == nil { +func (a *Approval) GetAllowDelegation() *bool { + if a == nil { return nil } - return o.AllowDelegation + return a.AllowDelegation } -func (o *Approval) GetAllowReassignment() *bool { - if o == nil { +func (a *Approval) GetAllowReassignment() *bool { + if a == nil { return nil } - return o.AllowReassignment + return a.AllowReassignment } -func (o *Approval) GetAllowedReassignees() []string { - if o == nil { +func (a *Approval) GetAllowedReassignees() []string { + if a == nil { return nil } - return o.AllowedReassignees + return a.AllowedReassignees } -func (o *Approval) GetAssigned() *bool { - if o == nil { +func (a *Approval) GetAssigned() *bool { + if a == nil { return nil } - return o.Assigned + return a.Assigned } -func (o *Approval) GetEscalationEnabled() *bool { - if o == nil { +func (a *Approval) GetEscalationEnabled() *bool { + if a == nil { return nil } - return o.EscalationEnabled + return a.EscalationEnabled } -func (o *Approval) GetRequireApprovalReason() *bool { - if o == nil { +func (a *Approval) GetRequireApprovalReason() *bool { + if a == nil { return nil } - return o.RequireApprovalReason + return a.RequireApprovalReason } -func (o *Approval) GetRequireDenialReason() *bool { - if o == nil { +func (a *Approval) GetRequireDenialReason() *bool { + if a == nil { return nil } - return o.RequireDenialReason + return a.RequireDenialReason } -func (o *Approval) GetRequireReassignmentReason() *bool { - if o == nil { +func (a *Approval) GetRequireReassignmentReason() *bool { + if a == nil { return nil } - return o.RequireReassignmentReason + return a.RequireReassignmentReason } -func (o *Approval) GetRequiresStepUpProviderID() *string { - if o == nil { +func (a *Approval) GetRequiresStepUpProviderID() *string { + if a == nil { return nil } - return o.RequiresStepUpProviderID + return a.RequiresStepUpProviderID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvalinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvalinput.go index c5669c3e..8f3c070d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvalinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvalinput.go @@ -29,6 +29,8 @@ type ApprovalInput struct { // This message contains a oneof named escalation_policy. Only a single field of the following list may be set at a time: // - replacePolicy // - reassignToApprovers + // - cancelTicket + // - skipStep // Escalation *Escalation `json:"escalation,omitempty"` // The ExpressionApproval message. @@ -62,135 +64,135 @@ type ApprovalInput struct { RequiresStepUpProviderID *string `json:"requiresStepUpProviderId,omitempty"` } -func (o *ApprovalInput) GetAgentApproval() *AgentApproval { - if o == nil { +func (a *ApprovalInput) GetAgentApproval() *AgentApproval { + if a == nil { return nil } - return o.AgentApproval + return a.AgentApproval } -func (o *ApprovalInput) GetAppGroupApproval() *AppGroupApproval { - if o == nil { +func (a *ApprovalInput) GetAppGroupApproval() *AppGroupApproval { + if a == nil { return nil } - return o.AppGroupApproval + return a.AppGroupApproval } -func (o *ApprovalInput) GetAppOwnerApproval() *AppOwnerApproval { - if o == nil { +func (a *ApprovalInput) GetAppOwnerApproval() *AppOwnerApproval { + if a == nil { return nil } - return o.AppOwnerApproval + return a.AppOwnerApproval } -func (o *ApprovalInput) GetEntitlementOwnerApproval() *EntitlementOwnerApproval { - if o == nil { +func (a *ApprovalInput) GetEntitlementOwnerApproval() *EntitlementOwnerApproval { + if a == nil { return nil } - return o.EntitlementOwnerApproval + return a.EntitlementOwnerApproval } -func (o *ApprovalInput) GetEscalation() *Escalation { - if o == nil { +func (a *ApprovalInput) GetEscalation() *Escalation { + if a == nil { return nil } - return o.Escalation + return a.Escalation } -func (o *ApprovalInput) GetExpressionApproval() *ExpressionApprovalInput { - if o == nil { +func (a *ApprovalInput) GetExpressionApproval() *ExpressionApprovalInput { + if a == nil { return nil } - return o.ExpressionApproval + return a.ExpressionApproval } -func (o *ApprovalInput) GetManagerApproval() *ManagerApprovalInput { - if o == nil { +func (a *ApprovalInput) GetManagerApproval() *ManagerApprovalInput { + if a == nil { return nil } - return o.ManagerApproval + return a.ManagerApproval } -func (o *ApprovalInput) GetResourceOwnerApproval() *ResourceOwnerApproval { - if o == nil { +func (a *ApprovalInput) GetResourceOwnerApproval() *ResourceOwnerApproval { + if a == nil { return nil } - return o.ResourceOwnerApproval + return a.ResourceOwnerApproval } -func (o *ApprovalInput) GetSelfApproval() *SelfApprovalInput { - if o == nil { +func (a *ApprovalInput) GetSelfApproval() *SelfApprovalInput { + if a == nil { return nil } - return o.SelfApproval + return a.SelfApproval } -func (o *ApprovalInput) GetUserApproval() *UserApproval { - if o == nil { +func (a *ApprovalInput) GetUserApproval() *UserApproval { + if a == nil { return nil } - return o.UserApproval + return a.UserApproval } -func (o *ApprovalInput) GetWebhookApproval() *WebhookApproval { - if o == nil { +func (a *ApprovalInput) GetWebhookApproval() *WebhookApproval { + if a == nil { return nil } - return o.WebhookApproval + return a.WebhookApproval } -func (o *ApprovalInput) GetAllowDelegation() *bool { - if o == nil { +func (a *ApprovalInput) GetAllowDelegation() *bool { + if a == nil { return nil } - return o.AllowDelegation + return a.AllowDelegation } -func (o *ApprovalInput) GetAllowReassignment() *bool { - if o == nil { +func (a *ApprovalInput) GetAllowReassignment() *bool { + if a == nil { return nil } - return o.AllowReassignment + return a.AllowReassignment } -func (o *ApprovalInput) GetAllowedReassignees() []string { - if o == nil { +func (a *ApprovalInput) GetAllowedReassignees() []string { + if a == nil { return nil } - return o.AllowedReassignees + return a.AllowedReassignees } -func (o *ApprovalInput) GetEscalationEnabled() *bool { - if o == nil { +func (a *ApprovalInput) GetEscalationEnabled() *bool { + if a == nil { return nil } - return o.EscalationEnabled + return a.EscalationEnabled } -func (o *ApprovalInput) GetRequireApprovalReason() *bool { - if o == nil { +func (a *ApprovalInput) GetRequireApprovalReason() *bool { + if a == nil { return nil } - return o.RequireApprovalReason + return a.RequireApprovalReason } -func (o *ApprovalInput) GetRequireDenialReason() *bool { - if o == nil { +func (a *ApprovalInput) GetRequireDenialReason() *bool { + if a == nil { return nil } - return o.RequireDenialReason + return a.RequireDenialReason } -func (o *ApprovalInput) GetRequireReassignmentReason() *bool { - if o == nil { +func (a *ApprovalInput) GetRequireReassignmentReason() *bool { + if a == nil { return nil } - return o.RequireReassignmentReason + return a.RequireReassignmentReason } -func (o *ApprovalInput) GetRequiresStepUpProviderID() *string { - if o == nil { +func (a *ApprovalInput) GetRequiresStepUpProviderID() *string { + if a == nil { return nil } - return o.RequiresStepUpProviderID + return a.RequiresStepUpProviderID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvalinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvalinstance.go index 4d8fa3b9..ca61dfb4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvalinstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvalinstance.go @@ -2,6 +2,11 @@ package shared +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + // ApprovalInstanceState - The state of the approval instance type ApprovalInstanceState string @@ -17,6 +22,17 @@ func (e ApprovalInstanceState) ToPointer() *ApprovalInstanceState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ApprovalInstanceState) IsExact() bool { + if e != nil { + switch *e { + case "APPROVAL_INSTANCE_STATE_UNSPECIFIED", "APPROVAL_INSTANCE_STATE_INIT", "APPROVAL_INSTANCE_STATE_SENDING_NOTIFICATIONS", "APPROVAL_INSTANCE_STATE_WAITING", "APPROVAL_INSTANCE_STATE_DONE": + return true + } + } + return false +} + // ApprovalInstance - The approval instance object describes the way a policy step should be approved as well as its outcomes and state. // // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: @@ -51,6 +67,8 @@ type ApprovalInstance struct { // This message contains a oneof named escalation_policy. Only a single field of the following list may be set at a time: // - replacePolicy // - reassignToApprovers + // - cancelTicket + // - skipStep // EscalationInstance *EscalationInstance `json:"escalationInstance,omitempty"` // The ReassignedAction object describes the outcome of a policy step that has been reassigned. @@ -61,69 +79,88 @@ type ApprovalInstance struct { RestartAction *RestartAction `json:"restarted,omitempty"` // The SkippedAction object describes the outcome of a policy step that has been skipped. SkippedAction *SkippedAction `json:"skipped,omitempty"` + AssignedAt *time.Time `json:"assignedAt,omitempty"` // The state of the approval instance State *ApprovalInstanceState `json:"state,omitempty"` } -func (o *ApprovalInstance) GetApproval() *Approval { - if o == nil { +func (a ApprovalInstance) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *ApprovalInstance) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (a *ApprovalInstance) GetApproval() *Approval { + if a == nil { + return nil + } + return a.Approval +} + +func (a *ApprovalInstance) GetApprovedAction() *ApprovedAction { + if a == nil { return nil } - return o.Approval + return a.ApprovedAction } -func (o *ApprovalInstance) GetApprovedAction() *ApprovedAction { - if o == nil { +func (a *ApprovalInstance) GetDeniedAction() *DeniedAction { + if a == nil { return nil } - return o.ApprovedAction + return a.DeniedAction } -func (o *ApprovalInstance) GetDeniedAction() *DeniedAction { - if o == nil { +func (a *ApprovalInstance) GetEscalationInstance() *EscalationInstance { + if a == nil { return nil } - return o.DeniedAction + return a.EscalationInstance } -func (o *ApprovalInstance) GetEscalationInstance() *EscalationInstance { - if o == nil { +func (a *ApprovalInstance) GetReassignedAction() *ReassignedAction { + if a == nil { return nil } - return o.EscalationInstance + return a.ReassignedAction } -func (o *ApprovalInstance) GetReassignedAction() *ReassignedAction { - if o == nil { +func (a *ApprovalInstance) GetReassignedByErrorAction() *ReassignedByErrorAction { + if a == nil { return nil } - return o.ReassignedAction + return a.ReassignedByErrorAction } -func (o *ApprovalInstance) GetReassignedByErrorAction() *ReassignedByErrorAction { - if o == nil { +func (a *ApprovalInstance) GetRestartAction() *RestartAction { + if a == nil { return nil } - return o.ReassignedByErrorAction + return a.RestartAction } -func (o *ApprovalInstance) GetRestartAction() *RestartAction { - if o == nil { +func (a *ApprovalInstance) GetSkippedAction() *SkippedAction { + if a == nil { return nil } - return o.RestartAction + return a.SkippedAction } -func (o *ApprovalInstance) GetSkippedAction() *SkippedAction { - if o == nil { +func (a *ApprovalInstance) GetAssignedAt() *time.Time { + if a == nil { return nil } - return o.SkippedAction + return a.AssignedAt } -func (o *ApprovalInstance) GetState() *ApprovalInstanceState { - if o == nil { +func (a *ApprovalInstance) GetState() *ApprovalInstanceState { + if a == nil { return nil } - return o.State + return a.State } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvedaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvedaction.go index 7a891770..36a1ff79 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvedaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/approvedaction.go @@ -23,36 +23,36 @@ func (a ApprovedAction) MarshalJSON() ([]byte, error) { } func (a *ApprovedAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *ApprovedAction) GetApprovedAt() *time.Time { - if o == nil { +func (a *ApprovedAction) GetApprovedAt() *time.Time { + if a == nil { return nil } - return o.ApprovedAt + return a.ApprovedAt } -func (o *ApprovedAction) GetEntitlements() []AppEntitlementReference { - if o == nil { +func (a *ApprovedAction) GetEntitlements() []AppEntitlementReference { + if a == nil { return nil } - return o.Entitlements + return a.Entitlements } -func (o *ApprovedAction) GetStepUpTransactionID() *string { - if o == nil { +func (a *ApprovedAction) GetStepUpTransactionID() *string { + if a == nil { return nil } - return o.StepUpTransactionID + return a.StepUpTransactionID } -func (o *ApprovedAction) GetUserID() *string { - if o == nil { +func (a *ApprovedAction) GetUserID() *string { + if a == nil { return nil } - return o.UserID + return a.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appselectioncriteriascope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appselectioncriteriascope.go new file mode 100644 index 00000000..fcfe8478 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appselectioncriteriascope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AppSelectionCriteriaScope message. +type AppSelectionCriteriaScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusagecontrols.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusagecontrols.go index 523706d4..92d63d66 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusagecontrols.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusagecontrols.go @@ -16,37 +16,37 @@ type AppUsageControls struct { RevokeAfterDays *int64 `json:"revokeAfterDays,omitempty"` } -func (o *AppUsageControls) GetAppID() *string { - if o == nil { +func (a *AppUsageControls) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppUsageControls) GetNotify() *bool { - if o == nil { +func (a *AppUsageControls) GetNotify() *bool { + if a == nil { return nil } - return o.Notify + return a.Notify } -func (o *AppUsageControls) GetNotifyAfterDays() *int64 { - if o == nil { +func (a *AppUsageControls) GetNotifyAfterDays() *int64 { + if a == nil { return nil } - return o.NotifyAfterDays + return a.NotifyAfterDays } -func (o *AppUsageControls) GetRevoke() *bool { - if o == nil { +func (a *AppUsageControls) GetRevoke() *bool { + if a == nil { return nil } - return o.Revoke + return a.Revoke } -func (o *AppUsageControls) GetRevokeAfterDays() *int64 { - if o == nil { +func (a *AppUsageControls) GetRevokeAfterDays() *int64 { + if a == nil { return nil } - return o.RevokeAfterDays + return a.RevokeAfterDays } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuser.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuser.go index 0b8bcebc..e32bec07 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuser.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuser.go @@ -21,6 +21,17 @@ func (e AppUserType) ToPointer() *AppUserType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppUserType) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + // AppUser - Application User that represents an account in the application. type AppUser struct { // The satus of the applicaiton user. @@ -58,122 +69,122 @@ func (a AppUser) MarshalJSON() ([]byte, error) { } func (a *AppUser) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppUser) GetAppUserStatus() *AppUserStatus { - if o == nil { +func (a *AppUser) GetAppUserStatus() *AppUserStatus { + if a == nil { return nil } - return o.AppUserStatus + return a.AppUserStatus } -func (o *AppUser) GetAppID() *string { - if o == nil { +func (a *AppUser) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppUser) GetAppUserType() *AppUserType { - if o == nil { +func (a *AppUser) GetAppUserType() *AppUserType { + if a == nil { return nil } - return o.AppUserType + return a.AppUserType } -func (o *AppUser) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppUser) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppUser) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppUser) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppUser) GetDisplayName() *string { - if o == nil { +func (a *AppUser) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AppUser) GetEmail() *string { - if o == nil { +func (a *AppUser) GetEmail() *string { + if a == nil { return nil } - return o.Email + return a.Email } -func (o *AppUser) GetEmails() []string { - if o == nil { +func (a *AppUser) GetEmails() []string { + if a == nil { return nil } - return o.Emails + return a.Emails } -func (o *AppUser) GetEmployeeIds() []string { - if o == nil { +func (a *AppUser) GetEmployeeIds() []string { + if a == nil { return nil } - return o.EmployeeIds + return a.EmployeeIds } -func (o *AppUser) GetID() *string { - if o == nil { +func (a *AppUser) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AppUser) GetIdentityUserID() *string { - if o == nil { +func (a *AppUser) GetIdentityUserID() *string { + if a == nil { return nil } - return o.IdentityUserID + return a.IdentityUserID } -func (o *AppUser) GetIsExternal() *bool { - if o == nil { +func (a *AppUser) GetIsExternal() *bool { + if a == nil { return nil } - return o.IsExternal + return a.IsExternal } -func (o *AppUser) GetProfile() map[string]any { - if o == nil { +func (a *AppUser) GetProfile() map[string]any { + if a == nil { return nil } - return o.Profile + return a.Profile } -func (o *AppUser) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AppUser) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } -func (o *AppUser) GetUsername() *string { - if o == nil { +func (a *AppUser) GetUsername() *string { + if a == nil { return nil } - return o.Username + return a.Username } -func (o *AppUser) GetUsernames() []string { - if o == nil { +func (a *AppUser) GetUsernames() []string { + if a == nil { return nil } - return o.Usernames + return a.Usernames } // AppUserInput - Application User that represents an account in the application. @@ -184,16 +195,16 @@ type AppUserInput struct { AppUserType *AppUserType `json:"appUserType,omitempty"` } -func (o *AppUserInput) GetAppUserStatus() *AppUserStatusInput { - if o == nil { +func (a *AppUserInput) GetAppUserStatus() *AppUserStatusInput { + if a == nil { return nil } - return o.AppUserStatus + return a.AppUserStatus } -func (o *AppUserInput) GetAppUserType() *AppUserType { - if o == nil { +func (a *AppUserInput) GetAppUserType() *AppUserType { + if a == nil { return nil } - return o.AppUserType + return a.AppUserType } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusercreatedtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusercreatedtrigger.go index 18007358..d462a5e5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusercreatedtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusercreatedtrigger.go @@ -20,23 +20,23 @@ type AppUserCreatedTrigger struct { Condition *string `json:"condition,omitempty"` } -func (o *AppUserCreatedTrigger) GetAppID() *string { - if o == nil { +func (a *AppUserCreatedTrigger) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppUserCreatedTrigger) GetAppIDCel() *string { - if o == nil { +func (a *AppUserCreatedTrigger) GetAppIDCel() *string { + if a == nil { return nil } - return o.AppIDCel + return a.AppIDCel } -func (o *AppUserCreatedTrigger) GetCondition() *string { - if o == nil { +func (a *AppUserCreatedTrigger) GetCondition() *string { + if a == nil { return nil } - return o.Condition + return a.Condition } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusercredential.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusercredential.go index 4e8cdd15..209e2871 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusercredential.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusercredential.go @@ -31,64 +31,64 @@ func (a AppUserCredential) MarshalJSON() ([]byte, error) { } func (a *AppUserCredential) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppUserCredential) GetEncryptedData() *EncryptedData { - if o == nil { +func (a *AppUserCredential) GetEncryptedData() *EncryptedData { + if a == nil { return nil } - return o.EncryptedData + return a.EncryptedData } -func (o *AppUserCredential) GetAppID() *string { - if o == nil { +func (a *AppUserCredential) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppUserCredential) GetAppUserID() *string { - if o == nil { +func (a *AppUserCredential) GetAppUserID() *string { + if a == nil { return nil } - return o.AppUserID + return a.AppUserID } -func (o *AppUserCredential) GetCreatedAt() *time.Time { - if o == nil { +func (a *AppUserCredential) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AppUserCredential) GetDeletedAt() *time.Time { - if o == nil { +func (a *AppUserCredential) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AppUserCredential) GetExpiresAt() *time.Time { - if o == nil { +func (a *AppUserCredential) GetExpiresAt() *time.Time { + if a == nil { return nil } - return o.ExpiresAt + return a.ExpiresAt } -func (o *AppUserCredential) GetID() *string { - if o == nil { +func (a *AppUserCredential) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AppUserCredential) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AppUserCredential) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserexpandmask.go index b398db21..3f0c9667 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserexpandmask.go @@ -8,9 +8,9 @@ type AppUserExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *AppUserExpandMask) GetPaths() []string { - if o == nil { +func (a *AppUserExpandMask) GetPaths() []string { + if a == nil { return nil } - return o.Paths + return a.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserfilter.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserfilter.go new file mode 100644 index 00000000..6cbff9d0 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserfilter.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The AppUserFilter message. +type AppUserFilter struct { + // The appId field. + AppID *string `json:"appId,omitempty"` +} + +func (a *AppUserFilter) GetAppID() *string { + if a == nil { + return nil + } + return a.AppID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserref.go index 0a3a1933..eef2989b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserref.go @@ -10,16 +10,16 @@ type AppUserRef struct { ID *string `json:"id,omitempty"` } -func (o *AppUserRef) GetAppID() *string { - if o == nil { +func (a *AppUserRef) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppUserRef) GetID() *string { - if o == nil { +func (a *AppUserRef) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicelistcredentialsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicelistcredentialsresponse.go index e63c5fc2..436f21fa 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicelistcredentialsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicelistcredentialsresponse.go @@ -10,16 +10,16 @@ type AppUserServiceListCredentialsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppUserServiceListCredentialsResponse) GetList() []AppUserCredential { - if o == nil { +func (a *AppUserServiceListCredentialsResponse) GetList() []AppUserCredential { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppUserServiceListCredentialsResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppUserServiceListCredentialsResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicelistresponse.go index 9d55cd8a..74bfd20f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicelistresponse.go @@ -18,24 +18,24 @@ func (a AppUserServiceListResponseExpanded) MarshalJSON() ([]byte, error) { } func (a *AppUserServiceListResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppUserServiceListResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppUserServiceListResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppUserServiceListResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppUserServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppUserServiceListResponse message. @@ -48,23 +48,23 @@ type AppUserServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppUserServiceListResponse) GetExpanded() []AppUserServiceListResponseExpanded { - if o == nil { +func (a *AppUserServiceListResponse) GetExpanded() []AppUserServiceListResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } -func (o *AppUserServiceListResponse) GetList() []AppUserView { - if o == nil { +func (a *AppUserServiceListResponse) GetList() []AppUserView { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppUserServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppUserServiceListResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicesearchrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicesearchrequest.go index b92611f8..806ff7ca 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicesearchrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicesearchrequest.go @@ -14,32 +14,65 @@ func (e AppUserDomains) ToPointer() *AppUserDomains { return &e } -type AppUserStatuses string +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppUserDomains) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_DOMAIN_UNSPECIFIED", "APP_USER_DOMAIN_EXTERNAL", "APP_USER_DOMAIN_TRUSTED": + return true + } + } + return false +} + +type AppUserServiceSearchRequestAppUserStatuses string const ( - AppUserStatusesStatusUnspecified AppUserStatuses = "STATUS_UNSPECIFIED" - AppUserStatusesStatusEnabled AppUserStatuses = "STATUS_ENABLED" - AppUserStatusesStatusDisabled AppUserStatuses = "STATUS_DISABLED" - AppUserStatusesStatusDeleted AppUserStatuses = "STATUS_DELETED" + AppUserServiceSearchRequestAppUserStatusesStatusUnspecified AppUserServiceSearchRequestAppUserStatuses = "STATUS_UNSPECIFIED" + AppUserServiceSearchRequestAppUserStatusesStatusEnabled AppUserServiceSearchRequestAppUserStatuses = "STATUS_ENABLED" + AppUserServiceSearchRequestAppUserStatusesStatusDisabled AppUserServiceSearchRequestAppUserStatuses = "STATUS_DISABLED" + AppUserServiceSearchRequestAppUserStatusesStatusDeleted AppUserServiceSearchRequestAppUserStatuses = "STATUS_DELETED" ) -func (e AppUserStatuses) ToPointer() *AppUserStatuses { +func (e AppUserServiceSearchRequestAppUserStatuses) ToPointer() *AppUserServiceSearchRequestAppUserStatuses { return &e } -type AppUserTypes string +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppUserServiceSearchRequestAppUserStatuses) IsExact() bool { + if e != nil { + switch *e { + case "STATUS_UNSPECIFIED", "STATUS_ENABLED", "STATUS_DISABLED", "STATUS_DELETED": + return true + } + } + return false +} + +type AppUserServiceSearchRequestAppUserTypes string const ( - AppUserTypesAppUserTypeUnspecified AppUserTypes = "APP_USER_TYPE_UNSPECIFIED" - AppUserTypesAppUserTypeUser AppUserTypes = "APP_USER_TYPE_USER" - AppUserTypesAppUserTypeServiceAccount AppUserTypes = "APP_USER_TYPE_SERVICE_ACCOUNT" - AppUserTypesAppUserTypeSystemAccount AppUserTypes = "APP_USER_TYPE_SYSTEM_ACCOUNT" + AppUserServiceSearchRequestAppUserTypesAppUserTypeUnspecified AppUserServiceSearchRequestAppUserTypes = "APP_USER_TYPE_UNSPECIFIED" + AppUserServiceSearchRequestAppUserTypesAppUserTypeUser AppUserServiceSearchRequestAppUserTypes = "APP_USER_TYPE_USER" + AppUserServiceSearchRequestAppUserTypesAppUserTypeServiceAccount AppUserServiceSearchRequestAppUserTypes = "APP_USER_TYPE_SERVICE_ACCOUNT" + AppUserServiceSearchRequestAppUserTypesAppUserTypeSystemAccount AppUserServiceSearchRequestAppUserTypes = "APP_USER_TYPE_SYSTEM_ACCOUNT" ) -func (e AppUserTypes) ToPointer() *AppUserTypes { +func (e AppUserServiceSearchRequestAppUserTypes) ToPointer() *AppUserServiceSearchRequestAppUserTypes { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppUserServiceSearchRequestAppUserTypes) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + // AppUserServiceSearchRequest - Search App users based on filters specified in the request body type AppUserServiceSearchRequest struct { // The AppUserExpandMask message contains a list of paths to expand in the response. @@ -53,9 +86,9 @@ type AppUserServiceSearchRequest struct { // A list of app user status details to restrict the search to. AppUserStatusDetails []string `json:"appUserStatusDetails,omitempty"` // A list of app user statuses to restrict the search to. - AppUserStatuses []AppUserStatuses `json:"appUserStatuses,omitempty"` + AppUserStatuses []AppUserServiceSearchRequestAppUserStatuses `json:"appUserStatuses,omitempty"` // A list of app user types to restrict the search to. - AppUserTypes []AppUserTypes `json:"appUserTypes,omitempty"` + AppUserTypes []AppUserServiceSearchRequestAppUserTypes `json:"appUserTypes,omitempty"` // A list of app user IDs to remove from the results. ExcludeAppUserIds []string `json:"excludeAppUserIds,omitempty"` // The pageSize where 0 <= pageSize <= 100. Values < 10 will be set to 10. A value of 0 returns the default page size (currently 25) @@ -70,93 +103,93 @@ type AppUserServiceSearchRequest struct { UserIds []string `json:"userIds,omitempty"` } -func (o *AppUserServiceSearchRequest) GetAppUserExpandMask() *AppUserExpandMask { - if o == nil { +func (a *AppUserServiceSearchRequest) GetAppUserExpandMask() *AppUserExpandMask { + if a == nil { return nil } - return o.AppUserExpandMask + return a.AppUserExpandMask } -func (o *AppUserServiceSearchRequest) GetAppID() *string { - if o == nil { +func (a *AppUserServiceSearchRequest) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppUserServiceSearchRequest) GetAppUserDomains() []AppUserDomains { - if o == nil { +func (a *AppUserServiceSearchRequest) GetAppUserDomains() []AppUserDomains { + if a == nil { return nil } - return o.AppUserDomains + return a.AppUserDomains } -func (o *AppUserServiceSearchRequest) GetAppUserIds() []string { - if o == nil { +func (a *AppUserServiceSearchRequest) GetAppUserIds() []string { + if a == nil { return nil } - return o.AppUserIds + return a.AppUserIds } -func (o *AppUserServiceSearchRequest) GetAppUserStatusDetails() []string { - if o == nil { +func (a *AppUserServiceSearchRequest) GetAppUserStatusDetails() []string { + if a == nil { return nil } - return o.AppUserStatusDetails + return a.AppUserStatusDetails } -func (o *AppUserServiceSearchRequest) GetAppUserStatuses() []AppUserStatuses { - if o == nil { +func (a *AppUserServiceSearchRequest) GetAppUserStatuses() []AppUserServiceSearchRequestAppUserStatuses { + if a == nil { return nil } - return o.AppUserStatuses + return a.AppUserStatuses } -func (o *AppUserServiceSearchRequest) GetAppUserTypes() []AppUserTypes { - if o == nil { +func (a *AppUserServiceSearchRequest) GetAppUserTypes() []AppUserServiceSearchRequestAppUserTypes { + if a == nil { return nil } - return o.AppUserTypes + return a.AppUserTypes } -func (o *AppUserServiceSearchRequest) GetExcludeAppUserIds() []string { - if o == nil { +func (a *AppUserServiceSearchRequest) GetExcludeAppUserIds() []string { + if a == nil { return nil } - return o.ExcludeAppUserIds + return a.ExcludeAppUserIds } -func (o *AppUserServiceSearchRequest) GetPageSize() *int { - if o == nil { +func (a *AppUserServiceSearchRequest) GetPageSize() *int { + if a == nil { return nil } - return o.PageSize + return a.PageSize } -func (o *AppUserServiceSearchRequest) GetPageToken() *string { - if o == nil { +func (a *AppUserServiceSearchRequest) GetPageToken() *string { + if a == nil { return nil } - return o.PageToken + return a.PageToken } -func (o *AppUserServiceSearchRequest) GetQuery() *string { - if o == nil { +func (a *AppUserServiceSearchRequest) GetQuery() *string { + if a == nil { return nil } - return o.Query + return a.Query } -func (o *AppUserServiceSearchRequest) GetRefs() []AppUserRef { - if o == nil { +func (a *AppUserServiceSearchRequest) GetRefs() []AppUserRef { + if a == nil { return nil } - return o.Refs + return a.Refs } -func (o *AppUserServiceSearchRequest) GetUserIds() []string { - if o == nil { +func (a *AppUserServiceSearchRequest) GetUserIds() []string { + if a == nil { return nil } - return o.UserIds + return a.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicesearchresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicesearchresponse.go index d6b26344..f53ce5c5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicesearchresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserservicesearchresponse.go @@ -18,24 +18,24 @@ func (a AppUserServiceSearchResponseExpanded) MarshalJSON() ([]byte, error) { } func (a *AppUserServiceSearchResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppUserServiceSearchResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppUserServiceSearchResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppUserServiceSearchResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppUserServiceSearchResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppUserServiceSearchResponse message. @@ -50,23 +50,23 @@ type AppUserServiceSearchResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppUserServiceSearchResponse) GetExpanded() []AppUserServiceSearchResponseExpanded { - if o == nil { +func (a *AppUserServiceSearchResponse) GetExpanded() []AppUserServiceSearchResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } -func (o *AppUserServiceSearchResponse) GetList() []AppUserView { - if o == nil { +func (a *AppUserServiceSearchResponse) GetList() []AppUserView { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppUserServiceSearchResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppUserServiceSearchResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserserviceupdaterequest.go index 11fef4db..129a21c0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserserviceupdaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserserviceupdaterequest.go @@ -11,23 +11,23 @@ type AppUserServiceUpdateRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *AppUserServiceUpdateRequest) GetAppUser() *AppUserInput { - if o == nil { +func (a *AppUserServiceUpdateRequest) GetAppUser() *AppUserInput { + if a == nil { return nil } - return o.AppUser + return a.AppUser } -func (o *AppUserServiceUpdateRequest) GetAppUserExpandMask() *AppUserExpandMask { - if o == nil { +func (a *AppUserServiceUpdateRequest) GetAppUserExpandMask() *AppUserExpandMask { + if a == nil { return nil } - return o.AppUserExpandMask + return a.AppUserExpandMask } -func (o *AppUserServiceUpdateRequest) GetUpdateMask() *string { - if o == nil { +func (a *AppUserServiceUpdateRequest) GetUpdateMask() *string { + if a == nil { return nil } - return o.UpdateMask + return a.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserserviceupdateresponse.go index 345840ed..ea9cf583 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserserviceupdateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserserviceupdateresponse.go @@ -18,24 +18,24 @@ func (a AppUserServiceUpdateResponseExpanded) MarshalJSON() ([]byte, error) { } func (a *AppUserServiceUpdateResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppUserServiceUpdateResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppUserServiceUpdateResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppUserServiceUpdateResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppUserServiceUpdateResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppUserServiceUpdateResponse message. @@ -46,16 +46,16 @@ type AppUserServiceUpdateResponse struct { Expanded []AppUserServiceUpdateResponseExpanded `json:"expanded,omitempty"` } -func (o *AppUserServiceUpdateResponse) GetAppUserView() *AppUserView { - if o == nil { +func (a *AppUserServiceUpdateResponse) GetAppUserView() *AppUserView { + if a == nil { return nil } - return o.AppUserView + return a.AppUserView } -func (o *AppUserServiceUpdateResponse) GetExpanded() []AppUserServiceUpdateResponseExpanded { - if o == nil { +func (a *AppUserServiceUpdateResponse) GetExpanded() []AppUserServiceUpdateResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusersforuserservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusersforuserservicelistresponse.go index eaea728a..8f2574d4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusersforuserservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appusersforuserservicelistresponse.go @@ -18,24 +18,24 @@ func (a AppUsersForUserServiceListResponseExpanded) MarshalJSON() ([]byte, error } func (a *AppUsersForUserServiceListResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AppUsersForUserServiceListResponseExpanded) GetAtType() *string { - if o == nil { +func (a *AppUsersForUserServiceListResponseExpanded) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *AppUsersForUserServiceListResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *AppUsersForUserServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // The AppUsersForUserServiceListResponse message. @@ -48,23 +48,23 @@ type AppUsersForUserServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *AppUsersForUserServiceListResponse) GetExpanded() []AppUsersForUserServiceListResponseExpanded { - if o == nil { +func (a *AppUsersForUserServiceListResponse) GetExpanded() []AppUsersForUserServiceListResponseExpanded { + if a == nil { return nil } - return o.Expanded + return a.Expanded } -func (o *AppUsersForUserServiceListResponse) GetList() []AppUserView { - if o == nil { +func (a *AppUsersForUserServiceListResponse) GetList() []AppUserView { + if a == nil { return nil } - return o.List + return a.List } -func (o *AppUsersForUserServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (a *AppUsersForUserServiceListResponse) GetNextPageToken() *string { + if a == nil { return nil } - return o.NextPageToken + return a.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserstatus.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserstatus.go index 8e4070a8..8125203c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserstatus.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserstatus.go @@ -16,6 +16,17 @@ func (e AppUserStatusStatus) ToPointer() *AppUserStatusStatus { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AppUserStatusStatus) IsExact() bool { + if e != nil { + switch *e { + case "STATUS_UNSPECIFIED", "STATUS_ENABLED", "STATUS_DISABLED", "STATUS_DELETED": + return true + } + } + return false +} + // AppUserStatus - The satus of the applicaiton user. type AppUserStatus struct { // The details of applicaiton user status. @@ -24,16 +35,16 @@ type AppUserStatus struct { Status *AppUserStatusStatus `json:"status,omitempty"` } -func (o *AppUserStatus) GetDetails() *string { - if o == nil { +func (a *AppUserStatus) GetDetails() *string { + if a == nil { return nil } - return o.Details + return a.Details } -func (o *AppUserStatus) GetStatus() *AppUserStatusStatus { - if o == nil { +func (a *AppUserStatus) GetStatus() *AppUserStatusStatus { + if a == nil { return nil } - return o.Status + return a.Status } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserupdatedtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserupdatedtrigger.go index 1f1e3ffc..bc552d62 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserupdatedtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserupdatedtrigger.go @@ -20,23 +20,23 @@ type AppUserUpdatedTrigger struct { Condition *string `json:"condition,omitempty"` } -func (o *AppUserUpdatedTrigger) GetAppID() *string { - if o == nil { +func (a *AppUserUpdatedTrigger) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AppUserUpdatedTrigger) GetAppIDCel() *string { - if o == nil { +func (a *AppUserUpdatedTrigger) GetAppIDCel() *string { + if a == nil { return nil } - return o.AppIDCel + return a.AppIDCel } -func (o *AppUserUpdatedTrigger) GetCondition() *string { - if o == nil { +func (a *AppUserUpdatedTrigger) GetCondition() *string { + if a == nil { return nil } - return o.Condition + return a.Condition } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserview.go index 12f5f3a0..68cae1d1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/appuserview.go @@ -14,30 +14,30 @@ type AppUserView struct { LastUsagePath *string `json:"lastUsagePath,omitempty"` } -func (o *AppUserView) GetAppUser() *AppUser { - if o == nil { +func (a *AppUserView) GetAppUser() *AppUser { + if a == nil { return nil } - return o.AppUser + return a.AppUser } -func (o *AppUserView) GetAppPath() *string { - if o == nil { +func (a *AppUserView) GetAppPath() *string { + if a == nil { return nil } - return o.AppPath + return a.AppPath } -func (o *AppUserView) GetIdentityUserPath() *string { - if o == nil { +func (a *AppUserView) GetIdentityUserPath() *string { + if a == nil { return nil } - return o.IdentityUserPath + return a.IdentityUserPath } -func (o *AppUserView) GetLastUsagePath() *string { - if o == nil { +func (a *AppUserView) GetLastUsagePath() *string { + if a == nil { return nil } - return o.LastUsagePath + return a.LastUsagePath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/attributetype.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/attributetype.go index 14872c19..5afd8c64 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/attributetype.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/attributetype.go @@ -10,16 +10,16 @@ type AttributeType struct { Name *string `json:"name,omitempty"` } -func (o *AttributeType) GetID() *string { - if o == nil { +func (a *AttributeType) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeType) GetName() *string { - if o == nil { +func (a *AttributeType) GetName() *string { + if a == nil { return nil } - return o.Name + return a.Name } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/attributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/attributevalue.go index cdbe8a55..eb00d9dd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/attributevalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/attributevalue.go @@ -25,50 +25,50 @@ func (a AttributeValue) MarshalJSON() ([]byte, error) { } func (a *AttributeValue) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AttributeValue) GetAttributeTypeID() *string { - if o == nil { +func (a *AttributeValue) GetAttributeTypeID() *string { + if a == nil { return nil } - return o.AttributeTypeID + return a.AttributeTypeID } -func (o *AttributeValue) GetCreatedAt() *time.Time { - if o == nil { +func (a *AttributeValue) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AttributeValue) GetDeletedAt() *time.Time { - if o == nil { +func (a *AttributeValue) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AttributeValue) GetID() *string { - if o == nil { +func (a *AttributeValue) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeValue) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AttributeValue) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } -func (o *AttributeValue) GetValue() *string { - if o == nil { +func (a *AttributeValue) GetValue() *string { + if a == nil { return nil } - return o.Value + return a.Value } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automation.go index ab60517a..22549ccf 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automation.go @@ -22,12 +22,25 @@ const ( PrimaryTriggerTypeTriggerTypeWebhook PrimaryTriggerType = "TRIGGER_TYPE_WEBHOOK" PrimaryTriggerTypeTriggerTypeSchedule PrimaryTriggerType = "TRIGGER_TYPE_SCHEDULE" PrimaryTriggerTypeTriggerTypeForm PrimaryTriggerType = "TRIGGER_TYPE_FORM" + PrimaryTriggerTypeTriggerTypeScheduleAppUser PrimaryTriggerType = "TRIGGER_TYPE_SCHEDULE_APP_USER" + PrimaryTriggerTypeTriggerTypeAccessConflict PrimaryTriggerType = "TRIGGER_TYPE_ACCESS_CONFLICT" ) func (e PrimaryTriggerType) ToPointer() *PrimaryTriggerType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PrimaryTriggerType) IsExact() bool { + if e != nil { + switch *e { + case "TRIGGER_TYPE_UNSPECIFIED", "TRIGGER_TYPE_USER_PROFILE_CHANGE", "TRIGGER_TYPE_APP_USER_CREATE", "TRIGGER_TYPE_APP_USER_UPDATE", "TRIGGER_TYPE_UNUSED_ACCESS", "TRIGGER_TYPE_USER_CREATED", "TRIGGER_TYPE_GRANT_FOUND", "TRIGGER_TYPE_GRANT_DELETED", "TRIGGER_TYPE_WEBHOOK", "TRIGGER_TYPE_SCHEDULE", "TRIGGER_TYPE_FORM", "TRIGGER_TYPE_SCHEDULE_APP_USER", "TRIGGER_TYPE_ACCESS_CONFLICT": + return true + } + } + return false +} + // The Automation message. // // This message contains a oneof named disabled_reason. Only a single field of the following list may be set at a time: @@ -70,122 +83,122 @@ func (a Automation) MarshalJSON() ([]byte, error) { } func (a *Automation) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *Automation) GetAutomationContext() *AutomationContext { - if o == nil { +func (a *Automation) GetAutomationContext() *AutomationContext { + if a == nil { return nil } - return o.AutomationContext + return a.AutomationContext } -func (o *Automation) GetDisabledReasonCircuitBreaker() *DisabledReasonCircuitBreaker { - if o == nil { +func (a *Automation) GetDisabledReasonCircuitBreaker() *DisabledReasonCircuitBreaker { + if a == nil { return nil } - return o.DisabledReasonCircuitBreaker + return a.DisabledReasonCircuitBreaker } -func (o *Automation) GetAppID() *string { - if o == nil { +func (a *Automation) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *Automation) GetAutomationSteps() []AutomationStep { - if o == nil { +func (a *Automation) GetAutomationSteps() []AutomationStep { + if a == nil { return nil } - return o.AutomationSteps + return a.AutomationSteps } -func (o *Automation) GetCreatedAt() *time.Time { - if o == nil { +func (a *Automation) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *Automation) GetCurrentVersion() *int64 { - if o == nil { +func (a *Automation) GetCurrentVersion() *int64 { + if a == nil { return nil } - return o.CurrentVersion + return a.CurrentVersion } -func (o *Automation) GetDescription() *string { - if o == nil { +func (a *Automation) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *Automation) GetDisplayName() *string { - if o == nil { +func (a *Automation) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *Automation) GetDraftAutomationSteps() []AutomationStep { - if o == nil { +func (a *Automation) GetDraftAutomationSteps() []AutomationStep { + if a == nil { return nil } - return o.DraftAutomationSteps + return a.DraftAutomationSteps } -func (o *Automation) GetDraftTriggers() []AutomationTrigger { - if o == nil { +func (a *Automation) GetDraftTriggers() []AutomationTrigger { + if a == nil { return nil } - return o.DraftTriggers + return a.DraftTriggers } -func (o *Automation) GetEnabled() *bool { - if o == nil { +func (a *Automation) GetEnabled() *bool { + if a == nil { return nil } - return o.Enabled + return a.Enabled } -func (o *Automation) GetID() *string { - if o == nil { +func (a *Automation) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *Automation) GetIsDraft() *bool { - if o == nil { +func (a *Automation) GetIsDraft() *bool { + if a == nil { return nil } - return o.IsDraft + return a.IsDraft } -func (o *Automation) GetLastExecutedAt() *time.Time { - if o == nil { +func (a *Automation) GetLastExecutedAt() *time.Time { + if a == nil { return nil } - return o.LastExecutedAt + return a.LastExecutedAt } -func (o *Automation) GetPrimaryTriggerType() *PrimaryTriggerType { - if o == nil { +func (a *Automation) GetPrimaryTriggerType() *PrimaryTriggerType { + if a == nil { return nil } - return o.PrimaryTriggerType + return a.PrimaryTriggerType } -func (o *Automation) GetTriggers() []AutomationTrigger { - if o == nil { +func (a *Automation) GetTriggers() []AutomationTrigger { + if a == nil { return nil } - return o.Triggers + return a.Triggers } // AutomationInput - The Automation message. @@ -228,113 +241,113 @@ func (a AutomationInput) MarshalJSON() ([]byte, error) { } func (a *AutomationInput) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AutomationInput) GetAutomationContext() *AutomationContext { - if o == nil { +func (a *AutomationInput) GetAutomationContext() *AutomationContext { + if a == nil { return nil } - return o.AutomationContext + return a.AutomationContext } -func (o *AutomationInput) GetDisabledReasonCircuitBreaker() *DisabledReasonCircuitBreaker { - if o == nil { +func (a *AutomationInput) GetDisabledReasonCircuitBreaker() *DisabledReasonCircuitBreaker { + if a == nil { return nil } - return o.DisabledReasonCircuitBreaker + return a.DisabledReasonCircuitBreaker } -func (o *AutomationInput) GetAppID() *string { - if o == nil { +func (a *AutomationInput) GetAppID() *string { + if a == nil { return nil } - return o.AppID + return a.AppID } -func (o *AutomationInput) GetAutomationSteps() []AutomationStep { - if o == nil { +func (a *AutomationInput) GetAutomationSteps() []AutomationStep { + if a == nil { return nil } - return o.AutomationSteps + return a.AutomationSteps } -func (o *AutomationInput) GetCreatedAt() *time.Time { - if o == nil { +func (a *AutomationInput) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AutomationInput) GetCurrentVersion() *int64 { - if o == nil { +func (a *AutomationInput) GetCurrentVersion() *int64 { + if a == nil { return nil } - return o.CurrentVersion + return a.CurrentVersion } -func (o *AutomationInput) GetDescription() *string { - if o == nil { +func (a *AutomationInput) GetDescription() *string { + if a == nil { return nil } - return o.Description + return a.Description } -func (o *AutomationInput) GetDisplayName() *string { - if o == nil { +func (a *AutomationInput) GetDisplayName() *string { + if a == nil { return nil } - return o.DisplayName + return a.DisplayName } -func (o *AutomationInput) GetDraftAutomationSteps() []AutomationStep { - if o == nil { +func (a *AutomationInput) GetDraftAutomationSteps() []AutomationStep { + if a == nil { return nil } - return o.DraftAutomationSteps + return a.DraftAutomationSteps } -func (o *AutomationInput) GetDraftTriggers() []AutomationTrigger { - if o == nil { +func (a *AutomationInput) GetDraftTriggers() []AutomationTrigger { + if a == nil { return nil } - return o.DraftTriggers + return a.DraftTriggers } -func (o *AutomationInput) GetEnabled() *bool { - if o == nil { +func (a *AutomationInput) GetEnabled() *bool { + if a == nil { return nil } - return o.Enabled + return a.Enabled } -func (o *AutomationInput) GetIsDraft() *bool { - if o == nil { +func (a *AutomationInput) GetIsDraft() *bool { + if a == nil { return nil } - return o.IsDraft + return a.IsDraft } -func (o *AutomationInput) GetLastExecutedAt() *time.Time { - if o == nil { +func (a *AutomationInput) GetLastExecutedAt() *time.Time { + if a == nil { return nil } - return o.LastExecutedAt + return a.LastExecutedAt } -func (o *AutomationInput) GetPrimaryTriggerType() *PrimaryTriggerType { - if o == nil { +func (a *AutomationInput) GetPrimaryTriggerType() *PrimaryTriggerType { + if a == nil { return nil } - return o.PrimaryTriggerType + return a.PrimaryTriggerType } -func (o *AutomationInput) GetTriggers() []AutomationTrigger { - if o == nil { +func (a *AutomationInput) GetTriggers() []AutomationTrigger { + if a == nil { return nil } - return o.Triggers + return a.Triggers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationcontext.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationcontext.go index 6287d786..ed638056 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationcontext.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationcontext.go @@ -7,9 +7,9 @@ type AutomationContext struct { Context map[string]any `json:"context,omitempty"` } -func (o *AutomationContext) GetContext() map[string]any { - if o == nil { +func (a *AutomationContext) GetContext() map[string]any { + if a == nil { return nil } - return o.Context + return a.Context } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecution.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecution.go index e4971ccb..db14337e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecution.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecution.go @@ -27,6 +27,17 @@ func (e AutomationExecutionState) ToPointer() *AutomationExecutionState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *AutomationExecutionState) IsExact() bool { + if e != nil { + switch *e { + case "AUTOMATION_EXECUTION_STATE_UNSPECIFIED", "AUTOMATION_EXECUTION_STATE_PENDING", "AUTOMATION_EXECUTION_STATE_CREATING", "AUTOMATION_EXECUTION_STATE_GET_STEP", "AUTOMATION_EXECUTION_STATE_PROCESS_STEP", "AUTOMATION_EXECUTION_STATE_COMPLETE_STEP", "AUTOMATION_EXECUTION_STATE_DONE", "AUTOMATION_EXECUTION_STATE_ERROR", "AUTOMATION_EXECUTION_STATE_TERMINATE", "AUTOMATION_EXECUTION_STATE_WAITING": + return true + } + } + return false +} + // The AutomationExecution message. type AutomationExecution struct { // The AutomationContext message. @@ -53,85 +64,85 @@ func (a AutomationExecution) MarshalJSON() ([]byte, error) { } func (a *AutomationExecution) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AutomationExecution) GetAutomationContext() *AutomationContext { - if o == nil { +func (a *AutomationExecution) GetAutomationContext() *AutomationContext { + if a == nil { return nil } - return o.AutomationContext + return a.AutomationContext } -func (o *AutomationExecution) GetAutomationTemplateID() *string { - if o == nil { +func (a *AutomationExecution) GetAutomationTemplateID() *string { + if a == nil { return nil } - return o.AutomationTemplateID + return a.AutomationTemplateID } -func (o *AutomationExecution) GetCompletedAt() *time.Time { - if o == nil { +func (a *AutomationExecution) GetCompletedAt() *time.Time { + if a == nil { return nil } - return o.CompletedAt + return a.CompletedAt } -func (o *AutomationExecution) GetCreatedAt() *time.Time { - if o == nil { +func (a *AutomationExecution) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AutomationExecution) GetCurrentVersion() *int { - if o == nil { +func (a *AutomationExecution) GetCurrentVersion() *int { + if a == nil { return nil } - return o.CurrentVersion + return a.CurrentVersion } -func (o *AutomationExecution) GetDeletedAt() *time.Time { - if o == nil { +func (a *AutomationExecution) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AutomationExecution) GetDuration() *string { - if o == nil { +func (a *AutomationExecution) GetDuration() *string { + if a == nil { return nil } - return o.Duration + return a.Duration } -func (o *AutomationExecution) GetID() *int64 { - if o == nil { +func (a *AutomationExecution) GetID() *int64 { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AutomationExecution) GetIsDraft() *bool { - if o == nil { +func (a *AutomationExecution) GetIsDraft() *bool { + if a == nil { return nil } - return o.IsDraft + return a.IsDraft } -func (o *AutomationExecution) GetState() *AutomationExecutionState { - if o == nil { +func (a *AutomationExecution) GetState() *AutomationExecutionState { + if a == nil { return nil } - return o.State + return a.State } -func (o *AutomationExecution) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AutomationExecution) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionexpandmask.go index 8d48de92..d2d5be10 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionexpandmask.go @@ -8,9 +8,9 @@ type AutomationExecutionExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *AutomationExecutionExpandMask) GetPaths() []string { - if o == nil { +func (a *AutomationExecutionExpandMask) GetPaths() []string { + if a == nil { return nil } - return o.Paths + return a.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionref.go index 726f991b..7feab2dd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionref.go @@ -8,9 +8,9 @@ type AutomationExecutionRef struct { ID *int64 `integer:"string" json:"id,omitempty"` } -func (o *AutomationExecutionRef) GetID() *int64 { - if o == nil { +func (a *AutomationExecutionRef) GetID() *int64 { + if a == nil { return nil } - return o.ID + return a.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionview.go index e4ec4e5f..f78541f9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationexecutionview.go @@ -12,23 +12,23 @@ type AutomationExecutionView struct { AutomationPath *string `json:"automationPath,omitempty"` } -func (o *AutomationExecutionView) GetAutomationExecution() *AutomationExecution { - if o == nil { +func (a *AutomationExecutionView) GetAutomationExecution() *AutomationExecution { + if a == nil { return nil } - return o.AutomationExecution + return a.AutomationExecution } -func (o *AutomationExecutionView) GetAutomationExecutionTriggerPath() *string { - if o == nil { +func (a *AutomationExecutionView) GetAutomationExecutionTriggerPath() *string { + if a == nil { return nil } - return o.AutomationExecutionTriggerPath + return a.AutomationExecutionTriggerPath } -func (o *AutomationExecutionView) GetAutomationPath() *string { - if o == nil { +func (a *AutomationExecutionView) GetAutomationPath() *string { + if a == nil { return nil } - return o.AutomationPath + return a.AutomationPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationstep.go index f057956b..f17f53fc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationstep.go @@ -9,6 +9,7 @@ package shared // - waitForDuration // - unenrollFromAllAccessProfiles // - createRevokeTasks +// - createRevokeTasksV2 // - sendEmail // - removeFromDelegation // - runAutomation @@ -20,7 +21,17 @@ package shared // - grantEntitlements // - sendSlackMessage // - callFunction +// - accountLifecycleAction +// - generatePassword +// - evaluateExpressions type AutomationStep struct { + // The AccountLifecycleAction message. + // + // This message contains a oneof named account_identifier. Only a single field of the following list may be set at a time: + // - accountRef + // - accountInContext + // + AccountLifecycleAction *AccountLifecycleAction `json:"accountLifecycleAction,omitempty"` // The CallFunction message. CallFunction *CallFunction `json:"callFunction,omitempty"` // The ConnectorAction message. @@ -40,6 +51,32 @@ type AutomationStep struct { CreateAccessReview *CreateAccessReview `json:"createAccessReview,omitempty"` // The CreateRevokeTasks message. CreateRevokeTasks *CreateRevokeTasks `json:"createRevokeTasks,omitempty"` + // The CreateRevokeTasksV2 message. + // + // This message contains a oneof named user. Only a single field of the following list may be set at a time: + // - userIdCel + // - userRef + // - useSubjectUser + // + // + // This message contains a oneof named inclusion. Only a single field of the following list may be set at a time: + // - inclusionList + // - inclusionAll + // - inclusionCriteria + // - inclusionListCel + // + // + // This message contains a oneof named exclusion. Only a single field of the following list may be set at a time: + // - exclusionNone + // - exclusionList + // - exclusionCriteria + // - exclusionListCel + // + CreateRevokeTasksV2 *CreateRevokeTasksV2 `json:"createRevokeTasksV2,omitempty"` + // The EvaluateExpressions message. + EvaluateExpressions *EvaluateExpressions `json:"evaluateExpressions,omitempty"` + // The GeneratePassword message. + GeneratePassword *GeneratePassword `json:"generatePassword,omitempty"` // The GrantEntitlements message. GrantEntitlements *GrantEntitlements `json:"grantEntitlements,omitempty"` // RemoveFromDelegation: find all users that have the target user as their delegated user, and modify the delegation. @@ -103,128 +140,156 @@ type AutomationStep struct { StepName *string `json:"stepName,omitempty"` } -func (o *AutomationStep) GetCallFunction() *CallFunction { - if o == nil { +func (a *AutomationStep) GetAccountLifecycleAction() *AccountLifecycleAction { + if a == nil { + return nil + } + return a.AccountLifecycleAction +} + +func (a *AutomationStep) GetCallFunction() *CallFunction { + if a == nil { + return nil + } + return a.CallFunction +} + +func (a *AutomationStep) GetConnectorAction() *ConnectorAction { + if a == nil { + return nil + } + return a.ConnectorAction +} + +func (a *AutomationStep) GetConnectorCreateAccount() *ConnectorCreateAccount { + if a == nil { + return nil + } + return a.ConnectorCreateAccount +} + +func (a *AutomationStep) GetCreateAccessReview() *CreateAccessReview { + if a == nil { return nil } - return o.CallFunction + return a.CreateAccessReview } -func (o *AutomationStep) GetConnectorAction() *ConnectorAction { - if o == nil { +func (a *AutomationStep) GetCreateRevokeTasks() *CreateRevokeTasks { + if a == nil { return nil } - return o.ConnectorAction + return a.CreateRevokeTasks } -func (o *AutomationStep) GetConnectorCreateAccount() *ConnectorCreateAccount { - if o == nil { +func (a *AutomationStep) GetCreateRevokeTasksV2() *CreateRevokeTasksV2 { + if a == nil { return nil } - return o.ConnectorCreateAccount + return a.CreateRevokeTasksV2 } -func (o *AutomationStep) GetCreateAccessReview() *CreateAccessReview { - if o == nil { +func (a *AutomationStep) GetEvaluateExpressions() *EvaluateExpressions { + if a == nil { return nil } - return o.CreateAccessReview + return a.EvaluateExpressions } -func (o *AutomationStep) GetCreateRevokeTasks() *CreateRevokeTasks { - if o == nil { +func (a *AutomationStep) GetGeneratePassword() *GeneratePassword { + if a == nil { return nil } - return o.CreateRevokeTasks + return a.GeneratePassword } -func (o *AutomationStep) GetGrantEntitlements() *GrantEntitlements { - if o == nil { +func (a *AutomationStep) GetGrantEntitlements() *GrantEntitlements { + if a == nil { return nil } - return o.GrantEntitlements + return a.GrantEntitlements } -func (o *AutomationStep) GetRemoveFromDelegation() *RemoveFromDelegation { - if o == nil { +func (a *AutomationStep) GetRemoveFromDelegation() *RemoveFromDelegation { + if a == nil { return nil } - return o.RemoveFromDelegation + return a.RemoveFromDelegation } -func (o *AutomationStep) GetRunAutomation() *RunAutomation { - if o == nil { +func (a *AutomationStep) GetRunAutomation() *RunAutomation { + if a == nil { return nil } - return o.RunAutomation + return a.RunAutomation } -func (o *AutomationStep) GetSendEmail() *SendEmail { - if o == nil { +func (a *AutomationStep) GetSendEmail() *SendEmail { + if a == nil { return nil } - return o.SendEmail + return a.SendEmail } -func (o *AutomationStep) GetSendSlackMessage() *SendSlackMessage { - if o == nil { +func (a *AutomationStep) GetSendSlackMessage() *SendSlackMessage { + if a == nil { return nil } - return o.SendSlackMessage + return a.SendSlackMessage } -func (o *AutomationStep) GetTaskAction() *TaskAction { - if o == nil { +func (a *AutomationStep) GetTaskAction() *TaskAction { + if a == nil { return nil } - return o.TaskAction + return a.TaskAction } -func (o *AutomationStep) GetUnenrollFromAllAccessProfiles() *UnenrollFromAllAccessProfiles { - if o == nil { +func (a *AutomationStep) GetUnenrollFromAllAccessProfiles() *UnenrollFromAllAccessProfiles { + if a == nil { return nil } - return o.UnenrollFromAllAccessProfiles + return a.UnenrollFromAllAccessProfiles } -func (o *AutomationStep) GetUpdateUser() *UpdateUser { - if o == nil { +func (a *AutomationStep) GetUpdateUser() *UpdateUser { + if a == nil { return nil } - return o.UpdateUser + return a.UpdateUser } -func (o *AutomationStep) GetWaitForDuration() *WaitForDuration { - if o == nil { +func (a *AutomationStep) GetWaitForDuration() *WaitForDuration { + if a == nil { return nil } - return o.WaitForDuration + return a.WaitForDuration } -func (o *AutomationStep) GetWebhook() *Webhook { - if o == nil { +func (a *AutomationStep) GetWebhook() *Webhook { + if a == nil { return nil } - return o.Webhook + return a.Webhook } -func (o *AutomationStep) GetSkipIfTrueCel() *string { - if o == nil { +func (a *AutomationStep) GetSkipIfTrueCel() *string { + if a == nil { return nil } - return o.SkipIfTrueCel + return a.SkipIfTrueCel } -func (o *AutomationStep) GetStepDisplayName() *string { - if o == nil { +func (a *AutomationStep) GetStepDisplayName() *string { + if a == nil { return nil } - return o.StepDisplayName + return a.StepDisplayName } -func (o *AutomationStep) GetStepName() *string { - if o == nil { +func (a *AutomationStep) GetStepName() *string { + if a == nil { return nil } - return o.StepName + return a.StepName } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtemplateref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtemplateref.go index dc491622..fb04fba7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtemplateref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtemplateref.go @@ -8,9 +8,9 @@ type AutomationTemplateRef struct { ID *string `json:"id,omitempty"` } -func (o *AutomationTemplateRef) GetID() *string { - if o == nil { +func (a *AutomationTemplateRef) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtemplateversion.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtemplateversion.go index da166917..68951838 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtemplateversion.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtemplateversion.go @@ -27,57 +27,57 @@ func (a AutomationTemplateVersion) MarshalJSON() ([]byte, error) { } func (a *AutomationTemplateVersion) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *AutomationTemplateVersion) GetAutomationSteps() []AutomationStep { - if o == nil { +func (a *AutomationTemplateVersion) GetAutomationSteps() []AutomationStep { + if a == nil { return nil } - return o.AutomationSteps + return a.AutomationSteps } -func (o *AutomationTemplateVersion) GetAutomationTemplateID() *string { - if o == nil { +func (a *AutomationTemplateVersion) GetAutomationTemplateID() *string { + if a == nil { return nil } - return o.AutomationTemplateID + return a.AutomationTemplateID } -func (o *AutomationTemplateVersion) GetCreatedAt() *time.Time { - if o == nil { +func (a *AutomationTemplateVersion) GetCreatedAt() *time.Time { + if a == nil { return nil } - return o.CreatedAt + return a.CreatedAt } -func (o *AutomationTemplateVersion) GetDeletedAt() *time.Time { - if o == nil { +func (a *AutomationTemplateVersion) GetDeletedAt() *time.Time { + if a == nil { return nil } - return o.DeletedAt + return a.DeletedAt } -func (o *AutomationTemplateVersion) GetTriggers() []AutomationTrigger { - if o == nil { +func (a *AutomationTemplateVersion) GetTriggers() []AutomationTrigger { + if a == nil { return nil } - return o.Triggers + return a.Triggers } -func (o *AutomationTemplateVersion) GetUpdatedAt() *time.Time { - if o == nil { +func (a *AutomationTemplateVersion) GetUpdatedAt() *time.Time { + if a == nil { return nil } - return o.UpdatedAt + return a.UpdatedAt } -func (o *AutomationTemplateVersion) GetVersion() *int64 { - if o == nil { +func (a *AutomationTemplateVersion) GetVersion() *int64 { + if a == nil { return nil } - return o.Version + return a.Version } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtrigger.go index 0e3b97b6..359abda3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/automationtrigger.go @@ -16,7 +16,16 @@ package shared // - webhook // - schedule // - form +// - scheduleAppUser +// - accessConflict type AutomationTrigger struct { + // The AccessConflictTrigger message. + // + // This message contains a oneof named conflict_monitor_selector. Only a single field of the following list may be set at a time: + // - conflictMonitorRefs + // - allConflictMonitors + // + AccessConflictTrigger *AccessConflictTrigger `json:"accessConflict,omitempty"` // The AppUserCreatedTrigger message. // // This message contains a oneof named app_identifier. Only a single field of the following list may be set at a time: @@ -41,6 +50,8 @@ type AutomationTrigger struct { ManualAutomationTrigger *ManualAutomationTrigger `json:"manual,omitempty"` // The ScheduleTrigger message. ScheduleTrigger *ScheduleTrigger `json:"schedule,omitempty"` + // The ScheduleTriggerAppUser message. + ScheduleTriggerAppUser *ScheduleTriggerAppUser `json:"scheduleAppUser,omitempty"` // The UsageBasedRevocationTrigger message. // // This message contains a oneof named cold_start_schedule. Only a single field of the following list may be set at a time: @@ -61,79 +72,93 @@ type AutomationTrigger struct { WebhookAutomationTrigger *WebhookAutomationTrigger `json:"webhook,omitempty"` } -func (o *AutomationTrigger) GetAppUserCreatedTrigger() *AppUserCreatedTrigger { - if o == nil { +func (a *AutomationTrigger) GetAccessConflictTrigger() *AccessConflictTrigger { + if a == nil { + return nil + } + return a.AccessConflictTrigger +} + +func (a *AutomationTrigger) GetAppUserCreatedTrigger() *AppUserCreatedTrigger { + if a == nil { + return nil + } + return a.AppUserCreatedTrigger +} + +func (a *AutomationTrigger) GetAppUserUpdatedTrigger() *AppUserUpdatedTrigger { + if a == nil { return nil } - return o.AppUserCreatedTrigger + return a.AppUserUpdatedTrigger } -func (o *AutomationTrigger) GetAppUserUpdatedTrigger() *AppUserUpdatedTrigger { - if o == nil { +func (a *AutomationTrigger) GetFormTrigger() *FormTrigger { + if a == nil { return nil } - return o.AppUserUpdatedTrigger + return a.FormTrigger } -func (o *AutomationTrigger) GetFormTrigger() *FormTrigger { - if o == nil { +func (a *AutomationTrigger) GetGrantDeletedTrigger() *GrantDeletedTrigger { + if a == nil { return nil } - return o.FormTrigger + return a.GrantDeletedTrigger } -func (o *AutomationTrigger) GetGrantDeletedTrigger() *GrantDeletedTrigger { - if o == nil { +func (a *AutomationTrigger) GetGrantFoundTrigger() *GrantFoundTrigger { + if a == nil { return nil } - return o.GrantDeletedTrigger + return a.GrantFoundTrigger } -func (o *AutomationTrigger) GetGrantFoundTrigger() *GrantFoundTrigger { - if o == nil { +func (a *AutomationTrigger) GetManualAutomationTrigger() *ManualAutomationTrigger { + if a == nil { return nil } - return o.GrantFoundTrigger + return a.ManualAutomationTrigger } -func (o *AutomationTrigger) GetManualAutomationTrigger() *ManualAutomationTrigger { - if o == nil { +func (a *AutomationTrigger) GetScheduleTrigger() *ScheduleTrigger { + if a == nil { return nil } - return o.ManualAutomationTrigger + return a.ScheduleTrigger } -func (o *AutomationTrigger) GetScheduleTrigger() *ScheduleTrigger { - if o == nil { +func (a *AutomationTrigger) GetScheduleTriggerAppUser() *ScheduleTriggerAppUser { + if a == nil { return nil } - return o.ScheduleTrigger + return a.ScheduleTriggerAppUser } -func (o *AutomationTrigger) GetUsageBasedRevocationTrigger() *UsageBasedRevocationTrigger { - if o == nil { +func (a *AutomationTrigger) GetUsageBasedRevocationTrigger() *UsageBasedRevocationTrigger { + if a == nil { return nil } - return o.UsageBasedRevocationTrigger + return a.UsageBasedRevocationTrigger } -func (o *AutomationTrigger) GetUserCreatedTrigger() *UserCreatedTrigger { - if o == nil { +func (a *AutomationTrigger) GetUserCreatedTrigger() *UserCreatedTrigger { + if a == nil { return nil } - return o.UserCreatedTrigger + return a.UserCreatedTrigger } -func (o *AutomationTrigger) GetUserProfileChangeTrigger() *UserProfileChangeTrigger { - if o == nil { +func (a *AutomationTrigger) GetUserProfileChangeTrigger() *UserProfileChangeTrigger { + if a == nil { return nil } - return o.UserProfileChangeTrigger + return a.UserProfileChangeTrigger } -func (o *AutomationTrigger) GetWebhookAutomationTrigger() *WebhookAutomationTrigger { - if o == nil { +func (a *AutomationTrigger) GetWebhookAutomationTrigger() *WebhookAutomationTrigger { + if a == nil { return nil } - return o.WebhookAutomationTrigger + return a.WebhookAutomationTrigger } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/awsexternalid.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/awsexternalid.go index a2738c96..37cc5c2e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/awsexternalid.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/awsexternalid.go @@ -8,9 +8,9 @@ type AWSExternalID struct { ExternalID *string `json:"externalId,omitempty"` } -func (o *AWSExternalID) GetExternalID() *string { - if o == nil { +func (a *AWSExternalID) GetExternalID() *string { + if a == nil { return nil } - return o.ExternalID + return a.ExternalID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bindingobjectsetup.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bindingobjectsetup.go new file mode 100644 index 00000000..67585249 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bindingobjectsetup.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The BindingObjectSetup message. +type BindingObjectSetup struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/body.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/body.go index 1d837d64..5e0221f0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/body.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/body.go @@ -18,24 +18,24 @@ func (p Payload) MarshalJSON() ([]byte, error) { } func (p *Payload) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil } -func (o *Payload) GetAtType() *string { - if o == nil { +func (p *Payload) GetAtType() *string { + if p == nil { return nil } - return o.AtType + return p.AtType } -func (o *Payload) GetAdditionalProperties() map[string]any { - if o == nil { +func (p *Payload) GetAdditionalProperties() map[string]any { + if p == nil { return nil } - return o.AdditionalProperties + return p.AdditionalProperties } // The Body message. @@ -69,37 +69,37 @@ type Body struct { WebhookID *string `json:"webhookId,omitempty"` } -func (o *Body) GetCallbackURL() *string { - if o == nil { +func (b *Body) GetCallbackURL() *string { + if b == nil { return nil } - return o.CallbackURL + return b.CallbackURL } -func (o *Body) GetEvent() *string { - if o == nil { +func (b *Body) GetEvent() *string { + if b == nil { return nil } - return o.Event + return b.Event } -func (o *Body) GetPayload() *Payload { - if o == nil { +func (b *Body) GetPayload() *Payload { + if b == nil { return nil } - return o.Payload + return b.Payload } -func (o *Body) GetVersion() *string { - if o == nil { +func (b *Body) GetVersion() *string { + if b == nil { return nil } - return o.Version + return b.Version } -func (o *Body) GetWebhookID() *string { - if o == nil { +func (b *Body) GetWebhookID() *string { + if b == nil { return nil } - return o.WebhookID + return b.WebhookID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/boolfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/boolfield.go index 7d8ba3d6..9767ec41 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/boolfield.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/boolfield.go @@ -6,6 +6,7 @@ package shared // // This message contains a oneof named view. Only a single field of the following list may be set at a time: // - checkboxField +// - toggleField // // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: // - rules @@ -14,27 +15,36 @@ type BoolField struct { BoolRules *BoolRules `json:"rules,omitempty"` // The CheckboxField message. CheckboxField *CheckboxField `json:"checkboxField,omitempty"` + // The ToggleField message. + ToggleField *ToggleField `json:"toggleField,omitempty"` // The defaultValue field. DefaultValue *bool `json:"defaultValue,omitempty"` } -func (o *BoolField) GetBoolRules() *BoolRules { - if o == nil { +func (b *BoolField) GetBoolRules() *BoolRules { + if b == nil { return nil } - return o.BoolRules + return b.BoolRules } -func (o *BoolField) GetCheckboxField() *CheckboxField { - if o == nil { +func (b *BoolField) GetCheckboxField() *CheckboxField { + if b == nil { return nil } - return o.CheckboxField + return b.CheckboxField } -func (o *BoolField) GetDefaultValue() *bool { - if o == nil { +func (b *BoolField) GetToggleField() *ToggleField { + if b == nil { return nil } - return o.DefaultValue + return b.ToggleField +} + +func (b *BoolField) GetDefaultValue() *bool { + if b == nil { + return nil + } + return b.DefaultValue } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/boolrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/boolrules.go index aef39621..6b64cf1f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/boolrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/boolrules.go @@ -8,9 +8,9 @@ type BoolRules struct { Const *bool `json:"const,omitempty"` } -func (o *BoolRules) GetConst() *bool { - if o == nil { +func (b *BoolRules) GetConst() *bool { + if b == nil { return nil } - return o.Const + return b.Const } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomation.go index bc0a7ad6..dcb900f7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomation.go @@ -38,85 +38,85 @@ func (b BundleAutomation) MarshalJSON() ([]byte, error) { } func (b *BundleAutomation) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &b, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &b, "", false, nil); err != nil { return err } return nil } -func (o *BundleAutomation) GetBundleAutomationCircuitBreaker() *BundleAutomationCircuitBreaker { - if o == nil { +func (b *BundleAutomation) GetBundleAutomationCircuitBreaker() *BundleAutomationCircuitBreaker { + if b == nil { return nil } - return o.BundleAutomationCircuitBreaker + return b.BundleAutomationCircuitBreaker } -func (o *BundleAutomation) GetBundleAutomationLastRunState() *BundleAutomationLastRunState { - if o == nil { +func (b *BundleAutomation) GetBundleAutomationLastRunState() *BundleAutomationLastRunState { + if b == nil { return nil } - return o.BundleAutomationLastRunState + return b.BundleAutomationLastRunState } -func (o *BundleAutomation) GetBundleAutomationRuleEntitlement() *BundleAutomationRuleEntitlement { - if o == nil { +func (b *BundleAutomation) GetBundleAutomationRuleEntitlement() *BundleAutomationRuleEntitlement { + if b == nil { return nil } - return o.BundleAutomationRuleEntitlement + return b.BundleAutomationRuleEntitlement } -func (o *BundleAutomation) GetCreateTasks() *bool { - if o == nil { +func (b *BundleAutomation) GetCreateTasks() *bool { + if b == nil { return nil } - return o.CreateTasks + return b.CreateTasks } -func (o *BundleAutomation) GetCreatedAt() *time.Time { - if o == nil { +func (b *BundleAutomation) GetCreatedAt() *time.Time { + if b == nil { return nil } - return o.CreatedAt + return b.CreatedAt } -func (o *BundleAutomation) GetDeletedAt() *time.Time { - if o == nil { +func (b *BundleAutomation) GetDeletedAt() *time.Time { + if b == nil { return nil } - return o.DeletedAt + return b.DeletedAt } -func (o *BundleAutomation) GetDisableCircuitBreaker() *bool { - if o == nil { +func (b *BundleAutomation) GetDisableCircuitBreaker() *bool { + if b == nil { return nil } - return o.DisableCircuitBreaker + return b.DisableCircuitBreaker } -func (o *BundleAutomation) GetEnabled() *bool { - if o == nil { +func (b *BundleAutomation) GetEnabled() *bool { + if b == nil { return nil } - return o.Enabled + return b.Enabled } -func (o *BundleAutomation) GetRequestCatalogID() *string { - if o == nil { +func (b *BundleAutomation) GetRequestCatalogID() *string { + if b == nil { return nil } - return o.RequestCatalogID + return b.RequestCatalogID } -func (o *BundleAutomation) GetTenantID() *string { - if o == nil { +func (b *BundleAutomation) GetTenantID() *string { + if b == nil { return nil } - return o.TenantID + return b.TenantID } -func (o *BundleAutomation) GetUpdatedAt() *time.Time { - if o == nil { +func (b *BundleAutomation) GetUpdatedAt() *time.Time { + if b == nil { return nil } - return o.UpdatedAt + return b.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationcircuitbreaker.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationcircuitbreaker.go index e761f2a8..0fcfbfcd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationcircuitbreaker.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationcircuitbreaker.go @@ -20,6 +20,17 @@ func (e BundleAutomationCircuitBreakerState) ToPointer() *BundleAutomationCircui return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *BundleAutomationCircuitBreakerState) IsExact() bool { + if e != nil { + switch *e { + case "CIRCUIT_BREAKER_STATE_UNSPECIFIED", "CIRCUIT_BREAKER_STATE_TRIGGERED", "CIRCUIT_BREAKER_STATE_BYPASS": + return true + } + } + return false +} + // The BundleAutomationCircuitBreaker message. type BundleAutomationCircuitBreaker struct { // A reference to a user. @@ -36,36 +47,36 @@ func (b BundleAutomationCircuitBreaker) MarshalJSON() ([]byte, error) { } func (b *BundleAutomationCircuitBreaker) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &b, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &b, "", false, nil); err != nil { return err } return nil } -func (o *BundleAutomationCircuitBreaker) GetUserRef() *UserRef { - if o == nil { +func (b *BundleAutomationCircuitBreaker) GetUserRef() *UserRef { + if b == nil { return nil } - return o.UserRef + return b.UserRef } -func (o *BundleAutomationCircuitBreaker) GetRemovedMembersThresholdPercentage() *int64 { - if o == nil { +func (b *BundleAutomationCircuitBreaker) GetRemovedMembersThresholdPercentage() *int64 { + if b == nil { return nil } - return o.RemovedMembersThresholdPercentage + return b.RemovedMembersThresholdPercentage } -func (o *BundleAutomationCircuitBreaker) GetState() *BundleAutomationCircuitBreakerState { - if o == nil { +func (b *BundleAutomationCircuitBreaker) GetState() *BundleAutomationCircuitBreakerState { + if b == nil { return nil } - return o.State + return b.State } -func (o *BundleAutomationCircuitBreaker) GetUpdatedAt() *time.Time { - if o == nil { +func (b *BundleAutomationCircuitBreaker) GetUpdatedAt() *time.Time { + if b == nil { return nil } - return o.UpdatedAt + return b.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationlastrunstate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationlastrunstate.go index ff475645..a8eb3b2a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationlastrunstate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationlastrunstate.go @@ -22,6 +22,17 @@ func (e BundleAutomationLastRunStateStatus) ToPointer() *BundleAutomationLastRun return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *BundleAutomationLastRunStateStatus) IsExact() bool { + if e != nil { + switch *e { + case "BUNDLE_AUTOMATION_RUN_STATUS_UNSPECIFIED", "BUNDLE_AUTOMATION_RUN_STATUS_SUCCESS", "BUNDLE_AUTOMATION_RUN_STATUS_FAILURE", "BUNDLE_AUTOMATION_RUN_STATUS_IN_PROGRESS", "BUNDLE_AUTOMATION_RUN_STATUS_WAITING_FOR_APPROVAL": + return true + } + } + return false +} + // The BundleAutomationLastRunState message. type BundleAutomationLastRunState struct { // The errorMessage field. @@ -36,29 +47,29 @@ func (b BundleAutomationLastRunState) MarshalJSON() ([]byte, error) { } func (b *BundleAutomationLastRunState) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &b, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &b, "", false, nil); err != nil { return err } return nil } -func (o *BundleAutomationLastRunState) GetErrorMessage() *string { - if o == nil { +func (b *BundleAutomationLastRunState) GetErrorMessage() *string { + if b == nil { return nil } - return o.ErrorMessage + return b.ErrorMessage } -func (o *BundleAutomationLastRunState) GetLastRunAt() *time.Time { - if o == nil { +func (b *BundleAutomationLastRunState) GetLastRunAt() *time.Time { + if b == nil { return nil } - return o.LastRunAt + return b.LastRunAt } -func (o *BundleAutomationLastRunState) GetStatus() *BundleAutomationLastRunStateStatus { - if o == nil { +func (b *BundleAutomationLastRunState) GetStatus() *BundleAutomationLastRunStateStatus { + if b == nil { return nil } - return o.Status + return b.Status } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationruleentitlement.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationruleentitlement.go index ad339e54..f9a501c1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationruleentitlement.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bundleautomationruleentitlement.go @@ -8,9 +8,9 @@ type BundleAutomationRuleEntitlement struct { EntitlementRefs []AppEntitlementRef `json:"entitlementRefs,omitempty"` } -func (o *BundleAutomationRuleEntitlement) GetEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (b *BundleAutomationRuleEntitlement) GetEntitlementRefs() []AppEntitlementRef { + if b == nil { return nil } - return o.EntitlementRefs + return b.EntitlementRefs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bytesrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bytesrules.go index d8c7ed2a..2b9a0a70 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bytesrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/bytesrules.go @@ -58,100 +58,100 @@ type BytesRules struct { Suffix *string `json:"suffix,omitempty"` } -func (o *BytesRules) GetConst() *string { - if o == nil { +func (b *BytesRules) GetConst() *string { + if b == nil { return nil } - return o.Const + return b.Const } -func (o *BytesRules) GetContains() *string { - if o == nil { +func (b *BytesRules) GetContains() *string { + if b == nil { return nil } - return o.Contains + return b.Contains } -func (o *BytesRules) GetIgnoreEmpty() *bool { - if o == nil { +func (b *BytesRules) GetIgnoreEmpty() *bool { + if b == nil { return nil } - return o.IgnoreEmpty + return b.IgnoreEmpty } -func (o *BytesRules) GetIn() []string { - if o == nil { +func (b *BytesRules) GetIn() []string { + if b == nil { return nil } - return o.In + return b.In } -func (o *BytesRules) GetIP() *bool { - if o == nil { +func (b *BytesRules) GetIP() *bool { + if b == nil { return nil } - return o.IP + return b.IP } -func (o *BytesRules) GetIpv4() *bool { - if o == nil { +func (b *BytesRules) GetIpv4() *bool { + if b == nil { return nil } - return o.Ipv4 + return b.Ipv4 } -func (o *BytesRules) GetIpv6() *bool { - if o == nil { +func (b *BytesRules) GetIpv6() *bool { + if b == nil { return nil } - return o.Ipv6 + return b.Ipv6 } -func (o *BytesRules) GetLen() *string { - if o == nil { +func (b *BytesRules) GetLen() *string { + if b == nil { return nil } - return o.Len + return b.Len } -func (o *BytesRules) GetMaxLen() *string { - if o == nil { +func (b *BytesRules) GetMaxLen() *string { + if b == nil { return nil } - return o.MaxLen + return b.MaxLen } -func (o *BytesRules) GetMinLen() *string { - if o == nil { +func (b *BytesRules) GetMinLen() *string { + if b == nil { return nil } - return o.MinLen + return b.MinLen } -func (o *BytesRules) GetNotIn() []string { - if o == nil { +func (b *BytesRules) GetNotIn() []string { + if b == nil { return nil } - return o.NotIn + return b.NotIn } -func (o *BytesRules) GetPattern() *string { - if o == nil { +func (b *BytesRules) GetPattern() *string { + if b == nil { return nil } - return o.Pattern + return b.Pattern } -func (o *BytesRules) GetPrefix() *string { - if o == nil { +func (b *BytesRules) GetPrefix() *string { + if b == nil { return nil } - return o.Prefix + return b.Prefix } -func (o *BytesRules) GetSuffix() *string { - if o == nil { +func (b *BytesRules) GetSuffix() *string { + if b == nil { return nil } - return o.Suffix + return b.Suffix } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/callfunction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/callfunction.go index 8e2c52a9..a36c8000 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/callfunction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/callfunction.go @@ -10,16 +10,16 @@ type CallFunction struct { FunctionID *string `json:"functionId,omitempty"` } -func (o *CallFunction) GetArgs() map[string]string { - if o == nil { +func (c *CallFunction) GetArgs() map[string]string { + if c == nil { return nil } - return o.Args + return c.Args } -func (o *CallFunction) GetFunctionID() *string { - if o == nil { +func (c *CallFunction) GetFunctionID() *string { + if c == nil { return nil } - return o.FunctionID + return c.FunctionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/campaignentitlementdetails.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/campaignentitlementdetails.go new file mode 100644 index 00000000..6d1ba3d6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/campaignentitlementdetails.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The CampaignEntitlementDetails message. +type CampaignEntitlementDetails struct { + // The appId field. + AppID *string `json:"appId,omitempty"` + // The entitlementId field. + EntitlementID *string `json:"entitlementId,omitempty"` + // The policyId field. + PolicyID *string `json:"policyId,omitempty"` +} + +func (c *CampaignEntitlementDetails) GetAppID() *string { + if c == nil { + return nil + } + return c.AppID +} + +func (c *CampaignEntitlementDetails) GetEntitlementID() *string { + if c == nil { + return nil + } + return c.EntitlementID +} + +func (c *CampaignEntitlementDetails) GetPolicyID() *string { + if c == nil { + return nil + } + return c.PolicyID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cancelledaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cancelledaction.go index 3ed574c8..7970f9be 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cancelledaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cancelledaction.go @@ -19,22 +19,22 @@ func (c CancelledAction) MarshalJSON() ([]byte, error) { } func (c *CancelledAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *CancelledAction) GetCancelledAt() *time.Time { - if o == nil { +func (c *CancelledAction) GetCancelledAt() *time.Time { + if c == nil { return nil } - return o.CancelledAt + return c.CancelledAt } -func (o *CancelledAction) GetCancelledByUserID() *string { - if o == nil { +func (c *CancelledAction) GetCancelledByUserID() *string { + if c == nil { return nil } - return o.CancelledByUserID + return c.CancelledByUserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cancelticket.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cancelticket.go new file mode 100644 index 00000000..ef561bfe --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cancelticket.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The CancelTicket message. +type CancelTicket struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/celexpressionscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/celexpressionscope.go new file mode 100644 index 00000000..83ee424a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/celexpressionscope.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The CelExpressionScope message. +type CelExpressionScope struct { + // The expression field. + Expression *string `json:"expression,omitempty"` +} + +func (c *CelExpressionScope) GetExpression() *string { + if c == nil { + return nil + } + return c.Expression +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/checkboxfield1.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/checkboxfield1.go new file mode 100644 index 00000000..cab9c9f1 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/checkboxfield1.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// CheckboxField1 - The CheckboxField message. +type CheckboxField1 struct { + // The checked field. + Checked *bool `json:"checked,omitempty"` +} + +func (c *CheckboxField1) GetChecked() *bool { + if c == nil { + return nil + } + return c.Checked +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cidrrestriction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cidrrestriction.go index 6916ed47..0b317882 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cidrrestriction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/cidrrestriction.go @@ -10,16 +10,16 @@ type CIDRRestriction struct { SourceCidr []string `json:"sourceCidr,omitempty"` } -func (o *CIDRRestriction) GetEnabled() *bool { - if o == nil { +func (c *CIDRRestriction) GetEnabled() *bool { + if c == nil { return nil } - return o.Enabled + return c.Enabled } -func (o *CIDRRestriction) GetSourceCidr() []string { - if o == nil { +func (c *CIDRRestriction) GetSourceCidr() []string { + if c == nil { return nil } - return o.SourceCidr + return c.SourceCidr } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/closeaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/closeaction.go index 89ce5926..91f0f7fb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/closeaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/closeaction.go @@ -18,23 +18,23 @@ type CloseAction struct { UserIDCel *string `json:"userIdCel,omitempty"` } -func (o *CloseAction) GetUserRef() *UserRef { - if o == nil { +func (c *CloseAction) GetUserRef() *UserRef { + if c == nil { return nil } - return o.UserRef + return c.UserRef } -func (o *CloseAction) GetUseSubjectUser() *bool { - if o == nil { +func (c *CloseAction) GetUseSubjectUser() *bool { + if c == nil { return nil } - return o.UseSubjectUser + return c.UseSubjectUser } -func (o *CloseAction) GetUserIDCel() *string { - if o == nil { +func (c *CloseAction) GetUserIDCel() *string { + if c == nil { return nil } - return o.UserIDCel + return c.UserIDCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/completedaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/completedaction.go index 6b939b1e..0b68b70d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/completedaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/completedaction.go @@ -21,29 +21,29 @@ func (c CompletedAction) MarshalJSON() ([]byte, error) { } func (c *CompletedAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *CompletedAction) GetCompletedAt() *time.Time { - if o == nil { +func (c *CompletedAction) GetCompletedAt() *time.Time { + if c == nil { return nil } - return o.CompletedAt + return c.CompletedAt } -func (o *CompletedAction) GetEntitlements() []AppEntitlementReference { - if o == nil { +func (c *CompletedAction) GetEntitlements() []AppEntitlementReference { + if c == nil { return nil } - return o.Entitlements + return c.Entitlements } -func (o *CompletedAction) GetUserID() *string { - if o == nil { +func (c *CompletedAction) GetUserID() *string { + if c == nil { return nil } - return o.UserID + return c.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conditionsucceeded.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conditionsucceeded.go index e19d08c4..a65f13cf 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conditionsucceeded.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conditionsucceeded.go @@ -17,15 +17,15 @@ func (c ConditionSucceeded) MarshalJSON() ([]byte, error) { } func (c *ConditionSucceeded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConditionSucceeded) GetSucceededAt() *time.Time { - if o == nil { +func (c *ConditionSucceeded) GetSucceededAt() *time.Time { + if c == nil { return nil } - return o.SucceededAt + return c.SucceededAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conditiontimedout.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conditiontimedout.go index c0746a83..7d56fd63 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conditiontimedout.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conditiontimedout.go @@ -17,15 +17,15 @@ func (c ConditionTimedOut) MarshalJSON() ([]byte, error) { } func (c *ConditionTimedOut) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConditionTimedOut) GetTimedOutAt() *time.Time { - if o == nil { +func (c *ConditionTimedOut) GetTimedOutAt() *time.Time { + if c == nil { return nil } - return o.TimedOutAt + return c.TimedOutAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/configschema.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/configschema.go new file mode 100644 index 00000000..2be78afc --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/configschema.go @@ -0,0 +1,81 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ConfigSchema message. +type ConfigSchema struct { + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // Optional. Metadata for displaying fields in the UI. + FieldGroups []FieldGroup `json:"fieldGroups,omitempty"` + // The fields field. + Fields []Field `json:"fields,omitempty"` + // The helpUrl field. + HelpURL *string `json:"helpUrl,omitempty"` + // The iconUrl field. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. + IconURL *string `json:"iconUrl,omitempty"` + // The isOauth2 field. + IsOauth2 *bool `json:"isOauth2,omitempty"` + // The requiresExternalConnector field. + RequiresExternalConnector *bool `json:"requiresExternalConnector,omitempty"` + // The supportsExternalResources field. + SupportsExternalResources *bool `json:"supportsExternalResources,omitempty"` +} + +func (c *ConfigSchema) GetDisplayName() *string { + if c == nil { + return nil + } + return c.DisplayName +} + +func (c *ConfigSchema) GetFieldGroups() []FieldGroup { + if c == nil { + return nil + } + return c.FieldGroups +} + +func (c *ConfigSchema) GetFields() []Field { + if c == nil { + return nil + } + return c.Fields +} + +func (c *ConfigSchema) GetHelpURL() *string { + if c == nil { + return nil + } + return c.HelpURL +} + +func (c *ConfigSchema) GetIconURL() *string { + if c == nil { + return nil + } + return c.IconURL +} + +func (c *ConfigSchema) GetIsOauth2() *bool { + if c == nil { + return nil + } + return c.IsOauth2 +} + +func (c *ConfigSchema) GetRequiresExternalConnector() *bool { + if c == nil { + return nil + } + return c.RequiresExternalConnector +} + +func (c *ConfigSchema) GetSupportsExternalResources() *bool { + if c == nil { + return nil + } + return c.SupportsExternalResources +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/confirmsyncvalidrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/confirmsyncvalidrequest.go new file mode 100644 index 00000000..f0d9d81f --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/confirmsyncvalidrequest.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ConfirmSyncValidRequest message. +type ConfirmSyncValidRequest struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/confirmsyncvalidresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/confirmsyncvalidresponse.go new file mode 100644 index 00000000..7f1decc8 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/confirmsyncvalidresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ConfirmSyncValidResponse message. +type ConfirmSyncValidResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitor.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitor.go index 56659a91..0980b61c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitor.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitor.go @@ -10,9 +10,9 @@ import ( // The ConflictMonitor message. type ConflictMonitor struct { // The NotificationConfig message. - NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` + NotificationConfig *NotificationConfig1 `json:"notificationConfig,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` // The description field. Description *string `json:"description,omitempty"` // The displayName field. @@ -33,78 +33,78 @@ func (c ConflictMonitor) MarshalJSON() ([]byte, error) { } func (c *ConflictMonitor) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConflictMonitor) GetNotificationConfig() *NotificationConfig { - if o == nil { +func (c *ConflictMonitor) GetNotificationConfig() *NotificationConfig1 { + if c == nil { return nil } - return o.NotificationConfig + return c.NotificationConfig } -func (o *ConflictMonitor) GetCreatedAt() *time.Time { - if o == nil { +func (c *ConflictMonitor) GetCreatedAt() *time.Time { + if c == nil { return nil } - return o.CreatedAt + return c.CreatedAt } -func (o *ConflictMonitor) GetDeletedAt() *time.Time { - if o == nil { +func (c *ConflictMonitor) GetDeletedAt() *time.Time { + if c == nil { return nil } - return o.DeletedAt + return c.DeletedAt } -func (o *ConflictMonitor) GetDescription() *string { - if o == nil { +func (c *ConflictMonitor) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *ConflictMonitor) GetDisplayName() *string { - if o == nil { +func (c *ConflictMonitor) GetDisplayName() *string { + if c == nil { return nil } - return o.DisplayName + return c.DisplayName } -func (o *ConflictMonitor) GetEnabled() *bool { - if o == nil { +func (c *ConflictMonitor) GetEnabled() *bool { + if c == nil { return nil } - return o.Enabled + return c.Enabled } -func (o *ConflictMonitor) GetEntitlementSetAID() *string { - if o == nil { +func (c *ConflictMonitor) GetEntitlementSetAID() *string { + if c == nil { return nil } - return o.EntitlementSetAID + return c.EntitlementSetAID } -func (o *ConflictMonitor) GetEntitlementSetBID() *string { - if o == nil { +func (c *ConflictMonitor) GetEntitlementSetBID() *string { + if c == nil { return nil } - return o.EntitlementSetBID + return c.EntitlementSetBID } -func (o *ConflictMonitor) GetID() *string { - if o == nil { +func (c *ConflictMonitor) GetID() *string { + if c == nil { return nil } - return o.ID + return c.ID } -func (o *ConflictMonitor) GetUpdatedAt() *time.Time { - if o == nil { +func (c *ConflictMonitor) GetUpdatedAt() *time.Time { + if c == nil { return nil } - return o.UpdatedAt + return c.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorcreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorcreaterequest.go index 24d6c0ec..5a4f17f6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorcreaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorcreaterequest.go @@ -5,30 +5,30 @@ package shared // The ConflictMonitorCreateRequest message. type ConflictMonitorCreateRequest struct { // The NotificationConfig message. - NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` + NotificationConfig *NotificationConfig1 `json:"notificationConfig,omitempty"` // The description field. Description *string `json:"description,omitempty"` // The displayName field. DisplayName string `json:"displayName"` } -func (o *ConflictMonitorCreateRequest) GetNotificationConfig() *NotificationConfig { - if o == nil { +func (c *ConflictMonitorCreateRequest) GetNotificationConfig() *NotificationConfig1 { + if c == nil { return nil } - return o.NotificationConfig + return c.NotificationConfig } -func (o *ConflictMonitorCreateRequest) GetDescription() *string { - if o == nil { +func (c *ConflictMonitorCreateRequest) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *ConflictMonitorCreateRequest) GetDisplayName() string { - if o == nil { +func (c *ConflictMonitorCreateRequest) GetDisplayName() string { + if c == nil { return "" } - return o.DisplayName + return c.DisplayName } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorref.go new file mode 100644 index 00000000..f516968c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorref.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ConflictMonitorRef message. +type ConflictMonitorRef struct { + // The id field. + ID *string `json:"id,omitempty"` +} + +func (c *ConflictMonitorRef) GetID() *string { + if c == nil { + return nil + } + return c.ID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorrefs.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorrefs.go new file mode 100644 index 00000000..b918578a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorrefs.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ConflictMonitorRefs message. +type ConflictMonitorRefs struct { + // The conflictMonitorRefs field. + ConflictMonitorRefs []ConflictMonitorRef `json:"conflictMonitorRefs,omitempty"` +} + +func (c *ConflictMonitorRefs) GetConflictMonitorRefs() []ConflictMonitorRef { + if c == nil { + return nil + } + return c.ConflictMonitorRefs +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorupdaterequest.go index 24d217e1..b6c09506 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorupdaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/conflictmonitorupdaterequest.go @@ -5,30 +5,30 @@ package shared // The ConflictMonitorUpdateRequest message. type ConflictMonitorUpdateRequest struct { // The NotificationConfig message. - NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` + NotificationConfig *NotificationConfig1 `json:"notificationConfig,omitempty"` // The description field. Description *string `json:"description,omitempty"` // The displayName field. DisplayName *string `json:"displayName,omitempty"` } -func (o *ConflictMonitorUpdateRequest) GetNotificationConfig() *NotificationConfig { - if o == nil { +func (c *ConflictMonitorUpdateRequest) GetNotificationConfig() *NotificationConfig1 { + if c == nil { return nil } - return o.NotificationConfig + return c.NotificationConfig } -func (o *ConflictMonitorUpdateRequest) GetDescription() *string { - if o == nil { +func (c *ConflictMonitorUpdateRequest) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *ConflictMonitorUpdateRequest) GetDisplayName() *string { - if o == nil { +func (c *ConflictMonitorUpdateRequest) GetDisplayName() *string { + if c == nil { return nil } - return o.DisplayName + return c.DisplayName } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connector.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connector.go index f2d972da..b06586db 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connector.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connector.go @@ -19,24 +19,24 @@ func (c Config) MarshalJSON() ([]byte, error) { } func (c *Config) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *Config) GetAtType() *string { - if o == nil { +func (c *Config) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *Config) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *Config) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // A Connector is used to sync objects into Apps @@ -45,6 +45,8 @@ type Connector struct { ConnectorStatus *ConnectorStatus `json:"status,omitempty"` // OAuth2AuthorizedAs tracks the user that OAuthed with the connector. OAuth2AuthorizedAs *OAuth2AuthorizedAs `json:"oauthAuthorizedAs,omitempty"` + // The SyncConfig message. + SyncConfig *SyncConfig `json:"syncConfig,omitempty"` // The id of the app the connector is associated with. AppID *string `json:"appId,omitempty"` // The canResumeSync field. @@ -84,150 +86,157 @@ func (c Connector) MarshalJSON() ([]byte, error) { } func (c *Connector) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *Connector) GetConnectorStatus() *ConnectorStatus { - if o == nil { +func (c *Connector) GetConnectorStatus() *ConnectorStatus { + if c == nil { return nil } - return o.ConnectorStatus + return c.ConnectorStatus } -func (o *Connector) GetOAuth2AuthorizedAs() *OAuth2AuthorizedAs { - if o == nil { +func (c *Connector) GetOAuth2AuthorizedAs() *OAuth2AuthorizedAs { + if c == nil { return nil } - return o.OAuth2AuthorizedAs + return c.OAuth2AuthorizedAs } -func (o *Connector) GetAppID() *string { - if o == nil { +func (c *Connector) GetSyncConfig() *SyncConfig { + if c == nil { return nil } - return o.AppID + return c.SyncConfig } -func (o *Connector) GetCanResumeSync() *bool { - if o == nil { +func (c *Connector) GetAppID() *string { + if c == nil { return nil } - return o.CanResumeSync + return c.AppID } -func (o *Connector) GetCatalogID() *string { - if o == nil { +func (c *Connector) GetCanResumeSync() *bool { + if c == nil { return nil } - return o.CatalogID + return c.CanResumeSync } -func (o *Connector) GetConfig() *Config { - if o == nil { +func (c *Connector) GetCatalogID() *string { + if c == nil { return nil } - return o.Config + return c.CatalogID } -func (o *Connector) GetCreatedAt() *time.Time { - if o == nil { +func (c *Connector) GetConfig() *Config { + if c == nil { return nil } - return o.CreatedAt + return c.Config } -func (o *Connector) GetDeletedAt() *time.Time { - if o == nil { +func (c *Connector) GetCreatedAt() *time.Time { + if c == nil { return nil } - return o.DeletedAt + return c.CreatedAt } -func (o *Connector) GetDescription() *string { - if o == nil { +func (c *Connector) GetDeletedAt() *time.Time { + if c == nil { return nil } - return o.Description + return c.DeletedAt } -func (o *Connector) GetDisableCheckBadSync() *bool { - if o == nil { +func (c *Connector) GetDescription() *string { + if c == nil { return nil } - return o.DisableCheckBadSync + return c.Description } -func (o *Connector) GetDisplayName() *string { - if o == nil { +func (c *Connector) GetDisableCheckBadSync() *bool { + if c == nil { return nil } - return o.DisplayName + return c.DisableCheckBadSync } -func (o *Connector) GetDownloadURL() *string { - if o == nil { +func (c *Connector) GetDisplayName() *string { + if c == nil { return nil } - return o.DownloadURL + return c.DisplayName } -func (o *Connector) GetID() *string { - if o == nil { +func (c *Connector) GetDownloadURL() *string { + if c == nil { return nil } - return o.ID + return c.DownloadURL } -func (o *Connector) GetProfileAllowList() []string { - if o == nil { +func (c *Connector) GetID() *string { + if c == nil { return nil } - return o.ProfileAllowList + return c.ID } -func (o *Connector) GetProfileIgnoreList() []string { - if o == nil { +func (c *Connector) GetProfileAllowList() []string { + if c == nil { return nil } - return o.ProfileIgnoreList + return c.ProfileAllowList } -func (o *Connector) GetSyncDisabledAt() *time.Time { - if o == nil { +func (c *Connector) GetProfileIgnoreList() []string { + if c == nil { return nil } - return o.SyncDisabledAt + return c.ProfileIgnoreList } -func (o *Connector) GetSyncDisabledCategory() *string { - if o == nil { +func (c *Connector) GetSyncDisabledAt() *time.Time { + if c == nil { return nil } - return o.SyncDisabledCategory + return c.SyncDisabledAt } -func (o *Connector) GetSyncDisabledReason() *string { - if o == nil { +func (c *Connector) GetSyncDisabledCategory() *string { + if c == nil { return nil } - return o.SyncDisabledReason + return c.SyncDisabledCategory } -func (o *Connector) GetUpdatedAt() *time.Time { - if o == nil { +func (c *Connector) GetSyncDisabledReason() *string { + if c == nil { return nil } - return o.UpdatedAt + return c.SyncDisabledReason } -func (o *Connector) GetUserIds() []string { - if o == nil { +func (c *Connector) GetUpdatedAt() *time.Time { + if c == nil { return nil } - return o.UserIds + return c.UpdatedAt +} + +func (c *Connector) GetUserIds() []string { + if c == nil { + return nil + } + return c.UserIds } // ConnectorInput - A Connector is used to sync objects into Apps @@ -236,6 +245,8 @@ type ConnectorInput struct { ConnectorStatus *ConnectorStatus `json:"status,omitempty"` // OAuth2AuthorizedAs tracks the user that OAuthed with the connector. OAuth2AuthorizedAs *OAuth2AuthorizedAsInput `json:"oauthAuthorizedAs,omitempty"` + // The SyncConfig message. + SyncConfig *SyncConfig `json:"syncConfig,omitempty"` // The id of the app the connector is associated with. AppID *string `json:"appId,omitempty"` // The canResumeSync field. @@ -264,107 +275,114 @@ type ConnectorInput struct { UserIds []string `json:"userIds,omitempty"` } -func (o *ConnectorInput) GetConnectorStatus() *ConnectorStatus { - if o == nil { +func (c *ConnectorInput) GetConnectorStatus() *ConnectorStatus { + if c == nil { + return nil + } + return c.ConnectorStatus +} + +func (c *ConnectorInput) GetOAuth2AuthorizedAs() *OAuth2AuthorizedAsInput { + if c == nil { return nil } - return o.ConnectorStatus + return c.OAuth2AuthorizedAs } -func (o *ConnectorInput) GetOAuth2AuthorizedAs() *OAuth2AuthorizedAsInput { - if o == nil { +func (c *ConnectorInput) GetSyncConfig() *SyncConfig { + if c == nil { return nil } - return o.OAuth2AuthorizedAs + return c.SyncConfig } -func (o *ConnectorInput) GetAppID() *string { - if o == nil { +func (c *ConnectorInput) GetAppID() *string { + if c == nil { return nil } - return o.AppID + return c.AppID } -func (o *ConnectorInput) GetCanResumeSync() *bool { - if o == nil { +func (c *ConnectorInput) GetCanResumeSync() *bool { + if c == nil { return nil } - return o.CanResumeSync + return c.CanResumeSync } -func (o *ConnectorInput) GetCatalogID() *string { - if o == nil { +func (c *ConnectorInput) GetCatalogID() *string { + if c == nil { return nil } - return o.CatalogID + return c.CatalogID } -func (o *ConnectorInput) GetConfig() *Config { - if o == nil { +func (c *ConnectorInput) GetConfig() *Config { + if c == nil { return nil } - return o.Config + return c.Config } -func (o *ConnectorInput) GetDescription() *string { - if o == nil { +func (c *ConnectorInput) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *ConnectorInput) GetDisableCheckBadSync() *bool { - if o == nil { +func (c *ConnectorInput) GetDisableCheckBadSync() *bool { + if c == nil { return nil } - return o.DisableCheckBadSync + return c.DisableCheckBadSync } -func (o *ConnectorInput) GetDisplayName() *string { - if o == nil { +func (c *ConnectorInput) GetDisplayName() *string { + if c == nil { return nil } - return o.DisplayName + return c.DisplayName } -func (o *ConnectorInput) GetID() *string { - if o == nil { +func (c *ConnectorInput) GetID() *string { + if c == nil { return nil } - return o.ID + return c.ID } -func (o *ConnectorInput) GetProfileAllowList() []string { - if o == nil { +func (c *ConnectorInput) GetProfileAllowList() []string { + if c == nil { return nil } - return o.ProfileAllowList + return c.ProfileAllowList } -func (o *ConnectorInput) GetProfileIgnoreList() []string { - if o == nil { +func (c *ConnectorInput) GetProfileIgnoreList() []string { + if c == nil { return nil } - return o.ProfileIgnoreList + return c.ProfileIgnoreList } -func (o *ConnectorInput) GetSyncDisabledCategory() *string { - if o == nil { +func (c *ConnectorInput) GetSyncDisabledCategory() *string { + if c == nil { return nil } - return o.SyncDisabledCategory + return c.SyncDisabledCategory } -func (o *ConnectorInput) GetSyncDisabledReason() *string { - if o == nil { +func (c *ConnectorInput) GetSyncDisabledReason() *string { + if c == nil { return nil } - return o.SyncDisabledReason + return c.SyncDisabledReason } -func (o *ConnectorInput) GetUserIds() []string { - if o == nil { +func (c *ConnectorInput) GetUserIds() []string { + if c == nil { return nil } - return o.UserIds + return c.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectoraction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectoraction.go index 832a0a78..7b8d0725 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectoraction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectoraction.go @@ -12,25 +12,34 @@ type ConnectorAction struct { // The actionName field. ActionName *string `json:"actionName,omitempty"` ArgsTemplate map[string]any `json:"argsTemplate,omitempty"` + // The resourceTypeId field. + ResourceTypeID *string `json:"resourceTypeId,omitempty"` } -func (o *ConnectorAction) GetConnectorRef() *ConnectorRef { - if o == nil { +func (c *ConnectorAction) GetConnectorRef() *ConnectorRef { + if c == nil { return nil } - return o.ConnectorRef + return c.ConnectorRef } -func (o *ConnectorAction) GetActionName() *string { - if o == nil { +func (c *ConnectorAction) GetActionName() *string { + if c == nil { return nil } - return o.ActionName + return c.ActionName } -func (o *ConnectorAction) GetArgsTemplate() map[string]any { - if o == nil { +func (c *ConnectorAction) GetArgsTemplate() map[string]any { + if c == nil { return nil } - return o.ArgsTemplate + return c.ArgsTemplate +} + +func (c *ConnectorAction) GetResourceTypeID() *string { + if c == nil { + return nil + } + return c.ResourceTypeID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcatalogserviceconfigurationschemarequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcatalogserviceconfigurationschemarequest.go new file mode 100644 index 00000000..7afd1760 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcatalogserviceconfigurationschemarequest.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ConnectorCatalogServiceConfigurationSchemaRequest message. +type ConnectorCatalogServiceConfigurationSchemaRequest struct { + // The appId field. + AppID *string `json:"appId,omitempty"` + // The catalogId field. + CatalogID *string `json:"catalogId,omitempty"` + // The connectorId field. + ConnectorID *string `json:"connectorId,omitempty"` +} + +func (c *ConnectorCatalogServiceConfigurationSchemaRequest) GetAppID() *string { + if c == nil { + return nil + } + return c.AppID +} + +func (c *ConnectorCatalogServiceConfigurationSchemaRequest) GetCatalogID() *string { + if c == nil { + return nil + } + return c.CatalogID +} + +func (c *ConnectorCatalogServiceConfigurationSchemaRequest) GetConnectorID() *string { + if c == nil { + return nil + } + return c.ConnectorID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcatalogserviceconfigurationschemaresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcatalogserviceconfigurationschemaresponse.go new file mode 100644 index 00000000..69e8fce3 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcatalogserviceconfigurationschemaresponse.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ConnectorCatalogServiceConfigurationSchemaResponse message. +type ConnectorCatalogServiceConfigurationSchemaResponse struct { + // The ConfigSchema message. + ConfigSchema *ConfigSchema `json:"schema,omitempty"` + // A form is a collection of fields to be filled out by a user + Form *FormInput `json:"formSchema,omitempty"` +} + +func (c *ConnectorCatalogServiceConfigurationSchemaResponse) GetConfigSchema() *ConfigSchema { + if c == nil { + return nil + } + return c.ConfigSchema +} + +func (c *ConnectorCatalogServiceConfigurationSchemaResponse) GetForm() *FormInput { + if c == nil { + return nil + } + return c.Form +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcreateaccount.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcreateaccount.go index 7f1d2ab1..cc11b1db 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcreateaccount.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcreateaccount.go @@ -18,23 +18,23 @@ type ConnectorCreateAccount struct { UserIDCel *string `json:"userIdCel,omitempty"` } -func (o *ConnectorCreateAccount) GetConnectorRef() *ConnectorRef { - if o == nil { +func (c *ConnectorCreateAccount) GetConnectorRef() *ConnectorRef { + if c == nil { return nil } - return o.ConnectorRef + return c.ConnectorRef } -func (o *ConnectorCreateAccount) GetUserProperties() *UserProperties { - if o == nil { +func (c *ConnectorCreateAccount) GetUserProperties() *UserProperties { + if c == nil { return nil } - return o.UserProperties + return c.UserProperties } -func (o *ConnectorCreateAccount) GetUserIDCel() *string { - if o == nil { +func (c *ConnectorCreateAccount) GetUserIDCel() *string { + if c == nil { return nil } - return o.UserIDCel + return c.UserIDCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcredential.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcredential.go index bacee222..e771c938 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcredential.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorcredential.go @@ -13,6 +13,8 @@ type ConnectorCredential struct { AppID *string `json:"appId,omitempty"` // The client id of the ConnectorCredential. ClientID *string `json:"clientId,omitempty"` + // The client secret of the ConnectorCredential. It's only returned on creation. + ClientSecret *string `json:"clientSecret,omitempty"` // The connectorId of the connector the credential is associated with. ConnectorID *string `json:"connectorId,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` @@ -31,78 +33,85 @@ func (c ConnectorCredential) MarshalJSON() ([]byte, error) { } func (c *ConnectorCredential) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConnectorCredential) GetAppID() *string { - if o == nil { +func (c *ConnectorCredential) GetAppID() *string { + if c == nil { return nil } - return o.AppID + return c.AppID } -func (o *ConnectorCredential) GetClientID() *string { - if o == nil { +func (c *ConnectorCredential) GetClientID() *string { + if c == nil { return nil } - return o.ClientID + return c.ClientID } -func (o *ConnectorCredential) GetConnectorID() *string { - if o == nil { +func (c *ConnectorCredential) GetClientSecret() *string { + if c == nil { return nil } - return o.ConnectorID + return c.ClientSecret } -func (o *ConnectorCredential) GetCreatedAt() *time.Time { - if o == nil { +func (c *ConnectorCredential) GetConnectorID() *string { + if c == nil { return nil } - return o.CreatedAt + return c.ConnectorID } -func (o *ConnectorCredential) GetDeletedAt() *time.Time { - if o == nil { +func (c *ConnectorCredential) GetCreatedAt() *time.Time { + if c == nil { return nil } - return o.DeletedAt + return c.CreatedAt } -func (o *ConnectorCredential) GetDisplayName() *string { - if o == nil { +func (c *ConnectorCredential) GetDeletedAt() *time.Time { + if c == nil { return nil } - return o.DisplayName + return c.DeletedAt } -func (o *ConnectorCredential) GetExpiresTime() *time.Time { - if o == nil { +func (c *ConnectorCredential) GetDisplayName() *string { + if c == nil { return nil } - return o.ExpiresTime + return c.DisplayName } -func (o *ConnectorCredential) GetID() *string { - if o == nil { +func (c *ConnectorCredential) GetExpiresTime() *time.Time { + if c == nil { return nil } - return o.ID + return c.ExpiresTime } -func (o *ConnectorCredential) GetLastUsedAt() *time.Time { - if o == nil { +func (c *ConnectorCredential) GetID() *string { + if c == nil { return nil } - return o.LastUsedAt + return c.ID } -func (o *ConnectorCredential) GetUpdatedAt() *time.Time { - if o == nil { +func (c *ConnectorCredential) GetLastUsedAt() *time.Time { + if c == nil { return nil } - return o.UpdatedAt + return c.LastUsedAt +} + +func (c *ConnectorCredential) GetUpdatedAt() *time.Time { + if c == nil { + return nil + } + return c.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorexpandmask.go index 9f32bda2..9de9e38e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorexpandmask.go @@ -8,9 +8,9 @@ type ConnectorExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *ConnectorExpandMask) GetPaths() []string { - if o == nil { +func (c *ConnectorExpandMask) GetPaths() []string { + if c == nil { return nil } - return o.Paths + return c.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorprovision.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorprovision.go index ca72d7ec..5122c89e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorprovision.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorprovision.go @@ -22,23 +22,23 @@ type ConnectorProvision struct { DeleteAccount *DeleteAccount `json:"deleteAccount,omitempty"` } -func (o *ConnectorProvision) GetAccountProvision() *AccountProvision { - if o == nil { +func (c *ConnectorProvision) GetAccountProvision() *AccountProvision { + if c == nil { return nil } - return o.AccountProvision + return c.AccountProvision } -func (o *ConnectorProvision) GetDefaultBehavior() *DefaultBehavior { - if o == nil { +func (c *ConnectorProvision) GetDefaultBehavior() *DefaultBehavior { + if c == nil { return nil } - return o.DefaultBehavior + return c.DefaultBehavior } -func (o *ConnectorProvision) GetDeleteAccount() *DeleteAccount { - if o == nil { +func (c *ConnectorProvision) GetDeleteAccount() *DeleteAccount { + if c == nil { return nil } - return o.DeleteAccount + return c.DeleteAccount } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorref.go index b6f6db8a..70849b11 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorref.go @@ -10,16 +10,16 @@ type ConnectorRef struct { ID *string `json:"id,omitempty"` } -func (o *ConnectorRef) GetAppID() *string { - if o == nil { +func (c *ConnectorRef) GetAppID() *string { + if c == nil { return nil } - return o.AppID + return c.AppID } -func (o *ConnectorRef) GetID() *string { - if o == nil { +func (c *ConnectorRef) GetID() *string { + if c == nil { return nil } - return o.ID + return c.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorschedulecron.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorschedulecron.go new file mode 100644 index 00000000..c1011141 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorschedulecron.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ConnectorScheduleCron message. +type ConnectorScheduleCron struct { + // The cronSpec field. + CronSpec *string `json:"cronSpec,omitempty"` + // The timezone field. + Timezone *string `json:"timezone,omitempty"` +} + +func (c *ConnectorScheduleCron) GetCronSpec() *string { + if c == nil { + return nil + } + return c.CronSpec +} + +func (c *ConnectorScheduleCron) GetTimezone() *string { + if c == nil { + return nil + } + return c.Timezone +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreatedelegatedrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreatedelegatedrequest.go index a95b8bae..f65f3922 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreatedelegatedrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreatedelegatedrequest.go @@ -18,44 +18,44 @@ type ConnectorServiceCreateDelegatedRequest struct { UserIds []string `json:"userIds,omitempty"` } -func (o *ConnectorServiceCreateDelegatedRequest) GetAppManagedStateBindingRef() *AppManagedStateBindingRef { - if o == nil { +func (c *ConnectorServiceCreateDelegatedRequest) GetAppManagedStateBindingRef() *AppManagedStateBindingRef { + if c == nil { return nil } - return o.AppManagedStateBindingRef + return c.AppManagedStateBindingRef } -func (o *ConnectorServiceCreateDelegatedRequest) GetConnectorExpandMask() *ConnectorExpandMask { - if o == nil { +func (c *ConnectorServiceCreateDelegatedRequest) GetConnectorExpandMask() *ConnectorExpandMask { + if c == nil { return nil } - return o.ConnectorExpandMask + return c.ConnectorExpandMask } -func (o *ConnectorServiceCreateDelegatedRequest) GetCatalogID() *string { - if o == nil { +func (c *ConnectorServiceCreateDelegatedRequest) GetCatalogID() *string { + if c == nil { return nil } - return o.CatalogID + return c.CatalogID } -func (o *ConnectorServiceCreateDelegatedRequest) GetDescription() *string { - if o == nil { +func (c *ConnectorServiceCreateDelegatedRequest) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *ConnectorServiceCreateDelegatedRequest) GetDisplayName() *string { - if o == nil { +func (c *ConnectorServiceCreateDelegatedRequest) GetDisplayName() *string { + if c == nil { return nil } - return o.DisplayName + return c.DisplayName } -func (o *ConnectorServiceCreateDelegatedRequest) GetUserIds() []string { - if o == nil { +func (c *ConnectorServiceCreateDelegatedRequest) GetUserIds() []string { + if c == nil { return nil } - return o.UserIds + return c.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreaterequest.go index cc20786c..c81d8d35 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreaterequest.go @@ -18,24 +18,24 @@ func (c ConnectorServiceCreateRequestConfig) MarshalJSON() ([]byte, error) { } func (c *ConnectorServiceCreateRequestConfig) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConnectorServiceCreateRequestConfig) GetAtType() *string { - if o == nil { +func (c *ConnectorServiceCreateRequestConfig) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *ConnectorServiceCreateRequestConfig) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *ConnectorServiceCreateRequestConfig) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // The ConnectorServiceCreateRequest message. @@ -52,37 +52,37 @@ type ConnectorServiceCreateRequest struct { UserIds []string `json:"userIds,omitempty"` } -func (o *ConnectorServiceCreateRequest) GetConnectorExpandMask() *ConnectorExpandMask { - if o == nil { +func (c *ConnectorServiceCreateRequest) GetConnectorExpandMask() *ConnectorExpandMask { + if c == nil { return nil } - return o.ConnectorExpandMask + return c.ConnectorExpandMask } -func (o *ConnectorServiceCreateRequest) GetCatalogID() *string { - if o == nil { +func (c *ConnectorServiceCreateRequest) GetCatalogID() *string { + if c == nil { return nil } - return o.CatalogID + return c.CatalogID } -func (o *ConnectorServiceCreateRequest) GetConfig() *ConnectorServiceCreateRequestConfig { - if o == nil { +func (c *ConnectorServiceCreateRequest) GetConfig() *ConnectorServiceCreateRequestConfig { + if c == nil { return nil } - return o.Config + return c.Config } -func (o *ConnectorServiceCreateRequest) GetDescription() *string { - if o == nil { +func (c *ConnectorServiceCreateRequest) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *ConnectorServiceCreateRequest) GetUserIds() []string { - if o == nil { +func (c *ConnectorServiceCreateRequest) GetUserIds() []string { + if c == nil { return nil } - return o.UserIds + return c.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreateresponse.go index ee00857a..e8cb17c4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicecreateresponse.go @@ -18,24 +18,24 @@ func (c ConnectorServiceCreateResponseExpanded) MarshalJSON() ([]byte, error) { } func (c *ConnectorServiceCreateResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConnectorServiceCreateResponseExpanded) GetAtType() *string { - if o == nil { +func (c *ConnectorServiceCreateResponseExpanded) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *ConnectorServiceCreateResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *ConnectorServiceCreateResponseExpanded) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // The ConnectorServiceCreateResponse is the response returned from creating a connector. @@ -46,16 +46,16 @@ type ConnectorServiceCreateResponse struct { Expanded []ConnectorServiceCreateResponseExpanded `json:"expanded,omitempty"` } -func (o *ConnectorServiceCreateResponse) GetConnectorView() *ConnectorView { - if o == nil { +func (c *ConnectorServiceCreateResponse) GetConnectorView() *ConnectorView { + if c == nil { return nil } - return o.ConnectorView + return c.ConnectorView } -func (o *ConnectorServiceCreateResponse) GetExpanded() []ConnectorServiceCreateResponseExpanded { - if o == nil { +func (c *ConnectorServiceCreateResponse) GetExpanded() []ConnectorServiceCreateResponseExpanded { + if c == nil { return nil } - return o.Expanded + return c.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicegetcredentialsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicegetcredentialsresponse.go index 31dc7da4..fec8fddf 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicegetcredentialsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicegetcredentialsresponse.go @@ -8,9 +8,9 @@ type ConnectorServiceGetCredentialsResponse struct { ConnectorCredential *ConnectorCredential `json:"credential,omitempty"` } -func (o *ConnectorServiceGetCredentialsResponse) GetConnectorCredential() *ConnectorCredential { - if o == nil { +func (c *ConnectorServiceGetCredentialsResponse) GetConnectorCredential() *ConnectorCredential { + if c == nil { return nil } - return o.ConnectorCredential + return c.ConnectorCredential } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicegetresponse.go index 813e2731..37da1391 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicegetresponse.go @@ -18,24 +18,24 @@ func (c ConnectorServiceGetResponseExpanded) MarshalJSON() ([]byte, error) { } func (c *ConnectorServiceGetResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConnectorServiceGetResponseExpanded) GetAtType() *string { - if o == nil { +func (c *ConnectorServiceGetResponseExpanded) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *ConnectorServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *ConnectorServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // The ConnectorServiceGetResponse message contains the connectorView, and an expand mask. @@ -46,16 +46,16 @@ type ConnectorServiceGetResponse struct { Expanded []ConnectorServiceGetResponseExpanded `json:"expanded,omitempty"` } -func (o *ConnectorServiceGetResponse) GetConnectorView() *ConnectorView { - if o == nil { +func (c *ConnectorServiceGetResponse) GetConnectorView() *ConnectorView { + if c == nil { return nil } - return o.ConnectorView + return c.ConnectorView } -func (o *ConnectorServiceGetResponse) GetExpanded() []ConnectorServiceGetResponseExpanded { - if o == nil { +func (c *ConnectorServiceGetResponse) GetExpanded() []ConnectorServiceGetResponseExpanded { + if c == nil { return nil } - return o.Expanded + return c.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicelistresponse.go index e6c4642e..7178501a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicelistresponse.go @@ -18,24 +18,24 @@ func (c ConnectorServiceListResponseExpanded) MarshalJSON() ([]byte, error) { } func (c *ConnectorServiceListResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConnectorServiceListResponseExpanded) GetAtType() *string { - if o == nil { +func (c *ConnectorServiceListResponseExpanded) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *ConnectorServiceListResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *ConnectorServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // The ConnectorServiceListResponse message contains a list of results and a nextPageToken if applicable @@ -48,23 +48,23 @@ type ConnectorServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ConnectorServiceListResponse) GetExpanded() []ConnectorServiceListResponseExpanded { - if o == nil { +func (c *ConnectorServiceListResponse) GetExpanded() []ConnectorServiceListResponseExpanded { + if c == nil { return nil } - return o.Expanded + return c.Expanded } -func (o *ConnectorServiceListResponse) GetList() []ConnectorView { - if o == nil { +func (c *ConnectorServiceListResponse) GetList() []ConnectorView { + if c == nil { return nil } - return o.List + return c.List } -func (o *ConnectorServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (c *ConnectorServiceListResponse) GetNextPageToken() *string { + if c == nil { return nil } - return o.NextPageToken + return c.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicerotatecredentialrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicerotatecredentialrequest.go index 6f1e02cd..77bda643 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicerotatecredentialrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicerotatecredentialrequest.go @@ -4,4 +4,22 @@ package shared // ConnectorServiceRotateCredentialRequest is a request for rotating connector credentials. It uses URL values for input. type ConnectorServiceRotateCredentialRequest struct { + // The appId of the app the connector is attached to. + AppID *string `json:"appId,omitempty"` + // The connectorId of the connector that we are rotating the credentials for. + ConnectorID *string `json:"connectorId,omitempty"` +} + +func (c *ConnectorServiceRotateCredentialRequest) GetAppID() *string { + if c == nil { + return nil + } + return c.AppID +} + +func (c *ConnectorServiceRotateCredentialRequest) GetConnectorID() *string { + if c == nil { + return nil + } + return c.ConnectorID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicerotatecredentialresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicerotatecredentialresponse.go index 6a996b3a..1ce5c57c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicerotatecredentialresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorservicerotatecredentialresponse.go @@ -6,20 +6,11 @@ package shared type ConnectorServiceRotateCredentialResponse struct { // ConnectorCredential is used by a connector to authenticate with conductor one. ConnectorCredential *ConnectorCredential `json:"credential,omitempty"` - // The new clientSecret returned after rotating the connector credential. - ClientSecret *string `json:"clientSecret,omitempty"` } -func (o *ConnectorServiceRotateCredentialResponse) GetConnectorCredential() *ConnectorCredential { - if o == nil { +func (c *ConnectorServiceRotateCredentialResponse) GetConnectorCredential() *ConnectorCredential { + if c == nil { return nil } - return o.ConnectorCredential -} - -func (o *ConnectorServiceRotateCredentialResponse) GetClientSecret() *string { - if o == nil { - return nil - } - return o.ClientSecret + return c.ConnectorCredential } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdatedelegatedrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdatedelegatedrequest.go index de373b3f..0f40e207 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdatedelegatedrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdatedelegatedrequest.go @@ -11,23 +11,23 @@ type ConnectorServiceUpdateDelegatedRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *ConnectorServiceUpdateDelegatedRequest) GetConnector() *ConnectorInput { - if o == nil { +func (c *ConnectorServiceUpdateDelegatedRequest) GetConnector() *ConnectorInput { + if c == nil { return nil } - return o.Connector + return c.Connector } -func (o *ConnectorServiceUpdateDelegatedRequest) GetConnectorExpandMask() *ConnectorExpandMask { - if o == nil { +func (c *ConnectorServiceUpdateDelegatedRequest) GetConnectorExpandMask() *ConnectorExpandMask { + if c == nil { return nil } - return o.ConnectorExpandMask + return c.ConnectorExpandMask } -func (o *ConnectorServiceUpdateDelegatedRequest) GetUpdateMask() *string { - if o == nil { +func (c *ConnectorServiceUpdateDelegatedRequest) GetUpdateMask() *string { + if c == nil { return nil } - return o.UpdateMask + return c.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdaterequest.go index 26cfefae..feab0265 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdaterequest.go @@ -11,23 +11,23 @@ type ConnectorServiceUpdateRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *ConnectorServiceUpdateRequest) GetConnector() *ConnectorInput { - if o == nil { +func (c *ConnectorServiceUpdateRequest) GetConnector() *ConnectorInput { + if c == nil { return nil } - return o.Connector + return c.Connector } -func (o *ConnectorServiceUpdateRequest) GetConnectorExpandMask() *ConnectorExpandMask { - if o == nil { +func (c *ConnectorServiceUpdateRequest) GetConnectorExpandMask() *ConnectorExpandMask { + if c == nil { return nil } - return o.ConnectorExpandMask + return c.ConnectorExpandMask } -func (o *ConnectorServiceUpdateRequest) GetUpdateMask() *string { - if o == nil { +func (c *ConnectorServiceUpdateRequest) GetUpdateMask() *string { + if c == nil { return nil } - return o.UpdateMask + return c.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdateresponse.go index 3ea7819f..e24e2a6c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorserviceupdateresponse.go @@ -18,24 +18,24 @@ func (c ConnectorServiceUpdateResponseExpanded) MarshalJSON() ([]byte, error) { } func (c *ConnectorServiceUpdateResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConnectorServiceUpdateResponseExpanded) GetAtType() *string { - if o == nil { +func (c *ConnectorServiceUpdateResponseExpanded) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *ConnectorServiceUpdateResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *ConnectorServiceUpdateResponseExpanded) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // ConnectorServiceUpdateResponse is the response returned by the update method. @@ -46,16 +46,16 @@ type ConnectorServiceUpdateResponse struct { Expanded []ConnectorServiceUpdateResponseExpanded `json:"expanded,omitempty"` } -func (o *ConnectorServiceUpdateResponse) GetConnectorView() *ConnectorView { - if o == nil { +func (c *ConnectorServiceUpdateResponse) GetConnectorView() *ConnectorView { + if c == nil { return nil } - return o.ConnectorView + return c.ConnectorView } -func (o *ConnectorServiceUpdateResponse) GetExpanded() []ConnectorServiceUpdateResponseExpanded { - if o == nil { +func (c *ConnectorServiceUpdateResponse) GetExpanded() []ConnectorServiceUpdateResponseExpanded { + if c == nil { return nil } - return o.Expanded + return c.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorstatus.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorstatus.go index d76ce160..43301a2c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorstatus.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorstatus.go @@ -22,6 +22,17 @@ func (e ConnectorStatusStatus) ToPointer() *ConnectorStatusStatus { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ConnectorStatusStatus) IsExact() bool { + if e != nil { + switch *e { + case "SYNC_STATUS_UNSPECIFIED", "SYNC_STATUS_RUNNING", "SYNC_STATUS_DONE", "SYNC_STATUS_ERROR", "SYNC_STATUS_DISABLED": + return true + } + } + return false +} + // ConnectorStatus - The status field on the connector is used to track the status of the connectors sync, and when syncing last started, completed, or caused the connector to update. type ConnectorStatus struct { CompletedAt *time.Time `json:"completedAt,omitempty"` @@ -38,43 +49,43 @@ func (c ConnectorStatus) MarshalJSON() ([]byte, error) { } func (c *ConnectorStatus) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *ConnectorStatus) GetCompletedAt() *time.Time { - if o == nil { +func (c *ConnectorStatus) GetCompletedAt() *time.Time { + if c == nil { return nil } - return o.CompletedAt + return c.CompletedAt } -func (o *ConnectorStatus) GetLastError() *string { - if o == nil { +func (c *ConnectorStatus) GetLastError() *string { + if c == nil { return nil } - return o.LastError + return c.LastError } -func (o *ConnectorStatus) GetStartedAt() *time.Time { - if o == nil { +func (c *ConnectorStatus) GetStartedAt() *time.Time { + if c == nil { return nil } - return o.StartedAt + return c.StartedAt } -func (o *ConnectorStatus) GetStatus() *ConnectorStatusStatus { - if o == nil { +func (c *ConnectorStatus) GetStatus() *ConnectorStatusStatus { + if c == nil { return nil } - return o.Status + return c.Status } -func (o *ConnectorStatus) GetUpdatedAt() *time.Time { - if o == nil { +func (c *ConnectorStatus) GetUpdatedAt() *time.Time { + if c == nil { return nil } - return o.UpdatedAt + return c.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorview.go index 7ef9b3de..01c0bd01 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/connectorview.go @@ -14,30 +14,30 @@ type ConnectorView struct { UsersPath *string `json:"usersPath,omitempty"` } -func (o *ConnectorView) GetConnector() *Connector { - if o == nil { +func (c *ConnectorView) GetConnector() *Connector { + if c == nil { return nil } - return o.Connector + return c.Connector } -func (o *ConnectorView) GetAppPath() *string { - if o == nil { +func (c *ConnectorView) GetAppPath() *string { + if c == nil { return nil } - return o.AppPath + return c.AppPath } -func (o *ConnectorView) GetCapabilitiesPath() *string { - if o == nil { +func (c *ConnectorView) GetCapabilitiesPath() *string { + if c == nil { return nil } - return o.CapabilitiesPath + return c.CapabilitiesPath } -func (o *ConnectorView) GetUsersPath() *string { - if o == nil { +func (c *ConnectorView) GetUsersPath() *string { + if c == nil { return nil } - return o.UsersPath + return c.UsersPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createaccessreview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createaccessreview.go index 76340147..722f8a2b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createaccessreview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createaccessreview.go @@ -18,44 +18,44 @@ type CreateAccessReview struct { UserRefs []UserRef `json:"userRefs,omitempty"` } -func (o *CreateAccessReview) GetAccessReviewTemplateCel() *string { - if o == nil { +func (c *CreateAccessReview) GetAccessReviewTemplateCel() *string { + if c == nil { return nil } - return o.AccessReviewTemplateCel + return c.AccessReviewTemplateCel } -func (o *CreateAccessReview) GetAccessReviewTemplateID() *string { - if o == nil { +func (c *CreateAccessReview) GetAccessReviewTemplateID() *string { + if c == nil { return nil } - return o.AccessReviewTemplateID + return c.AccessReviewTemplateID } -func (o *CreateAccessReview) GetCampaignName() *string { - if o == nil { +func (c *CreateAccessReview) GetCampaignName() *string { + if c == nil { return nil } - return o.CampaignName + return c.CampaignName } -func (o *CreateAccessReview) GetUseSubjectUser() *bool { - if o == nil { +func (c *CreateAccessReview) GetUseSubjectUser() *bool { + if c == nil { return nil } - return o.UseSubjectUser + return c.UseSubjectUser } -func (o *CreateAccessReview) GetUserIdsCel() *string { - if o == nil { +func (c *CreateAccessReview) GetUserIdsCel() *string { + if c == nil { return nil } - return o.UserIdsCel + return c.UserIdsCel } -func (o *CreateAccessReview) GetUserRefs() []UserRef { - if o == nil { +func (c *CreateAccessReview) GetUserRefs() []UserRef { + if c == nil { return nil } - return o.UserRefs + return c.UserRefs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementmonitorbindingrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementmonitorbindingrequest.go index 6a35876f..e60f629f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementmonitorbindingrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementmonitorbindingrequest.go @@ -15,6 +15,17 @@ func (e CreateAppEntitlementMonitorBindingRequestEntitlementGroup) ToPointer() * return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *CreateAppEntitlementMonitorBindingRequestEntitlementGroup) IsExact() bool { + if e != nil { + switch *e { + case "ENTITLEMENT_GROUP_UNSPECIFIED", "ENTITLEMENT_GROUP_A", "ENTITLEMENT_GROUP_B": + return true + } + } + return false +} + // The CreateAppEntitlementMonitorBindingRequest message. type CreateAppEntitlementMonitorBindingRequest struct { // The appEntitlementId field. @@ -27,30 +38,30 @@ type CreateAppEntitlementMonitorBindingRequest struct { MonitorID *string `json:"monitorId,omitempty"` } -func (o *CreateAppEntitlementMonitorBindingRequest) GetAppEntitlementID() *string { - if o == nil { +func (c *CreateAppEntitlementMonitorBindingRequest) GetAppEntitlementID() *string { + if c == nil { return nil } - return o.AppEntitlementID + return c.AppEntitlementID } -func (o *CreateAppEntitlementMonitorBindingRequest) GetAppID() *string { - if o == nil { +func (c *CreateAppEntitlementMonitorBindingRequest) GetAppID() *string { + if c == nil { return nil } - return o.AppID + return c.AppID } -func (o *CreateAppEntitlementMonitorBindingRequest) GetEntitlementGroup() *CreateAppEntitlementMonitorBindingRequestEntitlementGroup { - if o == nil { +func (c *CreateAppEntitlementMonitorBindingRequest) GetEntitlementGroup() *CreateAppEntitlementMonitorBindingRequestEntitlementGroup { + if c == nil { return nil } - return o.EntitlementGroup + return c.EntitlementGroup } -func (o *CreateAppEntitlementMonitorBindingRequest) GetMonitorID() *string { - if o == nil { +func (c *CreateAppEntitlementMonitorBindingRequest) GetMonitorID() *string { + if c == nil { return nil } - return o.MonitorID + return c.MonitorID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementproxyrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementproxyrequest.go index 6c5189d0..3b345245 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementproxyrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementproxyrequest.go @@ -8,9 +8,9 @@ type CreateAppEntitlementProxyRequest struct { AppEntitlementProxyExpandMask *AppEntitlementProxyExpandMask `json:"expandMask,omitempty"` } -func (o *CreateAppEntitlementProxyRequest) GetAppEntitlementProxyExpandMask() *AppEntitlementProxyExpandMask { - if o == nil { +func (c *CreateAppEntitlementProxyRequest) GetAppEntitlementProxyExpandMask() *AppEntitlementProxyExpandMask { + if c == nil { return nil } - return o.AppEntitlementProxyExpandMask + return c.AppEntitlementProxyExpandMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementproxyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementproxyresponse.go index ee0db3d2..041f7802 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementproxyresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementproxyresponse.go @@ -18,24 +18,24 @@ func (c CreateAppEntitlementProxyResponseExpanded) MarshalJSON() ([]byte, error) } func (c *CreateAppEntitlementProxyResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *CreateAppEntitlementProxyResponseExpanded) GetAtType() *string { - if o == nil { +func (c *CreateAppEntitlementProxyResponseExpanded) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *CreateAppEntitlementProxyResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *CreateAppEntitlementProxyResponseExpanded) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // The CreateAppEntitlementProxyResponse message. @@ -46,16 +46,16 @@ type CreateAppEntitlementProxyResponse struct { Expanded []CreateAppEntitlementProxyResponseExpanded `json:"expanded,omitempty"` } -func (o *CreateAppEntitlementProxyResponse) GetAppEntitlementProxyView() *AppEntitlementProxyView { - if o == nil { +func (c *CreateAppEntitlementProxyResponse) GetAppEntitlementProxyView() *AppEntitlementProxyView { + if c == nil { return nil } - return o.AppEntitlementProxyView + return c.AppEntitlementProxyView } -func (o *CreateAppEntitlementProxyResponse) GetExpanded() []CreateAppEntitlementProxyResponseExpanded { - if o == nil { +func (c *CreateAppEntitlementProxyResponse) GetExpanded() []CreateAppEntitlementProxyResponseExpanded { + if c == nil { return nil } - return o.Expanded + return c.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementrequest.go index 0d8f1846..7937b85e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementrequest.go @@ -18,6 +18,17 @@ func (e CreateAppEntitlementRequestPurpose) ToPointer() *CreateAppEntitlementReq return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *CreateAppEntitlementRequestPurpose) IsExact() bool { + if e != nil { + switch *e { + case "APP_ENTITLEMENT_PURPOSE_VALUE_UNSPECIFIED", "APP_ENTITLEMENT_PURPOSE_VALUE_ASSIGNMENT", "APP_ENTITLEMENT_PURPOSE_VALUE_PERMISSION": + return true + } + } + return false +} + // The CreateAppEntitlementRequest message. // // This message contains a oneof named max_grant_duration. Only a single field of the following list may be set at a time: @@ -36,6 +47,7 @@ type CreateAppEntitlementRequest struct { // - multiStep // - externalTicket // - unconfigured + // - action // ProvisionPolicy *ProvisionPolicyInput `json:"provisionPolicy,omitempty"` // The alias field. @@ -76,149 +88,149 @@ type CreateAppEntitlementRequest struct { Slug *string `json:"slug,omitempty"` } -func (o *CreateAppEntitlementRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { - if o == nil { +func (c *CreateAppEntitlementRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { + if c == nil { return nil } - return o.AppEntitlementExpandMask + return c.AppEntitlementExpandMask } -func (o *CreateAppEntitlementRequest) GetProvisionPolicy() *ProvisionPolicyInput { - if o == nil { +func (c *CreateAppEntitlementRequest) GetProvisionPolicy() *ProvisionPolicyInput { + if c == nil { return nil } - return o.ProvisionPolicy + return c.ProvisionPolicy } -func (o *CreateAppEntitlementRequest) GetAlias() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetAlias() *string { + if c == nil { return nil } - return o.Alias + return c.Alias } -func (o *CreateAppEntitlementRequest) GetAppEntitlementOwnerIds() []string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetAppEntitlementOwnerIds() []string { + if c == nil { return nil } - return o.AppEntitlementOwnerIds + return c.AppEntitlementOwnerIds } -func (o *CreateAppEntitlementRequest) GetAppResourceID() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetAppResourceID() *string { + if c == nil { return nil } - return o.AppResourceID + return c.AppResourceID } -func (o *CreateAppEntitlementRequest) GetAppResourceTypeID() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetAppResourceTypeID() *string { + if c == nil { return nil } - return o.AppResourceTypeID + return c.AppResourceTypeID } -func (o *CreateAppEntitlementRequest) GetCertifyPolicyID() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetCertifyPolicyID() *string { + if c == nil { return nil } - return o.CertifyPolicyID + return c.CertifyPolicyID } -func (o *CreateAppEntitlementRequest) GetComplianceFrameworkValueIds() []string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetComplianceFrameworkValueIds() []string { + if c == nil { return nil } - return o.ComplianceFrameworkValueIds + return c.ComplianceFrameworkValueIds } -func (o *CreateAppEntitlementRequest) GetDescription() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *CreateAppEntitlementRequest) GetDisplayName() string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetDisplayName() string { + if c == nil { return "" } - return o.DisplayName + return c.DisplayName } -func (o *CreateAppEntitlementRequest) GetDurationGrant() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetDurationGrant() *string { + if c == nil { return nil } - return o.DurationGrant + return c.DurationGrant } -func (o *CreateAppEntitlementRequest) GetDurationUnset() *CreateAppEntitlementRequestDurationUnset { - if o == nil { +func (c *CreateAppEntitlementRequest) GetDurationUnset() *CreateAppEntitlementRequestDurationUnset { + if c == nil { return nil } - return o.DurationUnset + return c.DurationUnset } -func (o *CreateAppEntitlementRequest) GetEmergencyGrantEnabled() *bool { - if o == nil { +func (c *CreateAppEntitlementRequest) GetEmergencyGrantEnabled() *bool { + if c == nil { return nil } - return o.EmergencyGrantEnabled + return c.EmergencyGrantEnabled } -func (o *CreateAppEntitlementRequest) GetEmergencyGrantPolicyID() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetEmergencyGrantPolicyID() *string { + if c == nil { return nil } - return o.EmergencyGrantPolicyID + return c.EmergencyGrantPolicyID } -func (o *CreateAppEntitlementRequest) GetGrantPolicyID() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetGrantPolicyID() *string { + if c == nil { return nil } - return o.GrantPolicyID + return c.GrantPolicyID } -func (o *CreateAppEntitlementRequest) GetMatchBatonID() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetMatchBatonID() *string { + if c == nil { return nil } - return o.MatchBatonID + return c.MatchBatonID } -func (o *CreateAppEntitlementRequest) GetOverrideAccessRequestsDefaults() *bool { - if o == nil { +func (c *CreateAppEntitlementRequest) GetOverrideAccessRequestsDefaults() *bool { + if c == nil { return nil } - return o.OverrideAccessRequestsDefaults + return c.OverrideAccessRequestsDefaults } -func (o *CreateAppEntitlementRequest) GetPurpose() *CreateAppEntitlementRequestPurpose { - if o == nil { +func (c *CreateAppEntitlementRequest) GetPurpose() *CreateAppEntitlementRequestPurpose { + if c == nil { return nil } - return o.Purpose + return c.Purpose } -func (o *CreateAppEntitlementRequest) GetRevokePolicyID() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetRevokePolicyID() *string { + if c == nil { return nil } - return o.RevokePolicyID + return c.RevokePolicyID } -func (o *CreateAppEntitlementRequest) GetRiskLevelValueID() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetRiskLevelValueID() *string { + if c == nil { return nil } - return o.RiskLevelValueID + return c.RiskLevelValueID } -func (o *CreateAppEntitlementRequest) GetSlug() *string { - if o == nil { +func (c *CreateAppEntitlementRequest) GetSlug() *string { + if c == nil { return nil } - return o.Slug + return c.Slug } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementresponse.go index e58cac3c..35aec3e7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappentitlementresponse.go @@ -18,24 +18,24 @@ func (c CreateAppEntitlementResponseExpanded) MarshalJSON() ([]byte, error) { } func (c *CreateAppEntitlementResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *CreateAppEntitlementResponseExpanded) GetAtType() *string { - if o == nil { +func (c *CreateAppEntitlementResponseExpanded) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *CreateAppEntitlementResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *CreateAppEntitlementResponseExpanded) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // The CreateAppEntitlementResponse message. @@ -46,16 +46,16 @@ type CreateAppEntitlementResponse struct { Expanded []CreateAppEntitlementResponseExpanded `json:"expanded,omitempty"` } -func (o *CreateAppEntitlementResponse) GetAppEntitlementView() *AppEntitlementView { - if o == nil { +func (c *CreateAppEntitlementResponse) GetAppEntitlementView() *AppEntitlementView { + if c == nil { return nil } - return o.AppEntitlementView + return c.AppEntitlementView } -func (o *CreateAppEntitlementResponse) GetExpanded() []CreateAppEntitlementResponseExpanded { - if o == nil { +func (c *CreateAppEntitlementResponse) GetExpanded() []CreateAppEntitlementResponseExpanded { + if c == nil { return nil } - return o.Expanded + return c.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createapprequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createapprequest.go index c9be47a4..747dcfd8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createapprequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createapprequest.go @@ -15,6 +15,17 @@ func (e CreateAppRequestIdentityMatching) ToPointer() *CreateAppRequestIdentityM return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *CreateAppRequestIdentityMatching) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_IDENTITY_MATCHING_UNSPECIFIED", "APP_USER_IDENTITY_MATCHING_STRICT", "APP_USER_IDENTITY_MATCHING_DISPLAY_NAME": + return true + } + } + return false +} + // The CreateAppRequest message is used to create a new app. type CreateAppRequest struct { // Creates the app with this certify policy. @@ -27,6 +38,8 @@ type CreateAppRequest struct { GrantPolicyID *string `json:"grantPolicyId,omitempty"` // Define the app user identity matching strategy for this app. IdentityMatching *CreateAppRequestIdentityMatching `json:"identityMatching,omitempty"` + // Instructions shown to users in the access request form when requesting access for this app. + Instructions *string `json:"instructions,omitempty"` // Creates the app with this monthly cost per seat. MonthlyCostUsd *int `json:"monthlyCostUsd,omitempty"` // Creates the app with this array of owners. @@ -37,65 +50,72 @@ type CreateAppRequest struct { StrictAccessEntitlementProvisioning *bool `json:"strictAccessEntitlementProvisioning,omitempty"` } -func (o *CreateAppRequest) GetCertifyPolicyID() *string { - if o == nil { +func (c *CreateAppRequest) GetCertifyPolicyID() *string { + if c == nil { return nil } - return o.CertifyPolicyID + return c.CertifyPolicyID } -func (o *CreateAppRequest) GetDescription() *string { - if o == nil { +func (c *CreateAppRequest) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *CreateAppRequest) GetDisplayName() string { - if o == nil { +func (c *CreateAppRequest) GetDisplayName() string { + if c == nil { return "" } - return o.DisplayName + return c.DisplayName +} + +func (c *CreateAppRequest) GetGrantPolicyID() *string { + if c == nil { + return nil + } + return c.GrantPolicyID } -func (o *CreateAppRequest) GetGrantPolicyID() *string { - if o == nil { +func (c *CreateAppRequest) GetIdentityMatching() *CreateAppRequestIdentityMatching { + if c == nil { return nil } - return o.GrantPolicyID + return c.IdentityMatching } -func (o *CreateAppRequest) GetIdentityMatching() *CreateAppRequestIdentityMatching { - if o == nil { +func (c *CreateAppRequest) GetInstructions() *string { + if c == nil { return nil } - return o.IdentityMatching + return c.Instructions } -func (o *CreateAppRequest) GetMonthlyCostUsd() *int { - if o == nil { +func (c *CreateAppRequest) GetMonthlyCostUsd() *int { + if c == nil { return nil } - return o.MonthlyCostUsd + return c.MonthlyCostUsd } -func (o *CreateAppRequest) GetOwners() []string { - if o == nil { +func (c *CreateAppRequest) GetOwners() []string { + if c == nil { return nil } - return o.Owners + return c.Owners } -func (o *CreateAppRequest) GetRevokePolicyID() *string { - if o == nil { +func (c *CreateAppRequest) GetRevokePolicyID() *string { + if c == nil { return nil } - return o.RevokePolicyID + return c.RevokePolicyID } -func (o *CreateAppRequest) GetStrictAccessEntitlementProvisioning() *bool { - if o == nil { +func (c *CreateAppRequest) GetStrictAccessEntitlementProvisioning() *bool { + if c == nil { return nil } - return o.StrictAccessEntitlementProvisioning + return c.StrictAccessEntitlementProvisioning } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappresponse.go index e3f38202..e1b17c83 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createappresponse.go @@ -8,9 +8,9 @@ type CreateAppResponse struct { App *App `json:"app,omitempty"` } -func (o *CreateAppResponse) GetApp() *App { - if o == nil { +func (c *CreateAppResponse) GetApp() *App { + if c == nil { return nil } - return o.App + return c.App } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createattributevaluerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createattributevaluerequest.go index b9dc1cc9..6dd99a7b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createattributevaluerequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createattributevaluerequest.go @@ -10,16 +10,16 @@ type CreateAttributeValueRequest struct { Value *string `json:"value,omitempty"` } -func (o *CreateAttributeValueRequest) GetAttributeTypeID() *string { - if o == nil { +func (c *CreateAttributeValueRequest) GetAttributeTypeID() *string { + if c == nil { return nil } - return o.AttributeTypeID + return c.AttributeTypeID } -func (o *CreateAttributeValueRequest) GetValue() *string { - if o == nil { +func (c *CreateAttributeValueRequest) GetValue() *string { + if c == nil { return nil } - return o.Value + return c.Value } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createattributevalueresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createattributevalueresponse.go index 2887ec8b..908666c2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createattributevalueresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createattributevalueresponse.go @@ -8,9 +8,9 @@ type CreateAttributeValueResponse struct { AttributeValue *AttributeValue `json:"value,omitempty"` } -func (o *CreateAttributeValueResponse) GetAttributeValue() *AttributeValue { - if o == nil { +func (c *CreateAttributeValueResponse) GetAttributeValue() *AttributeValue { + if c == nil { return nil } - return o.AttributeValue + return c.AttributeValue } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationrequest.go index 649715a7..e4c32928 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationrequest.go @@ -15,9 +15,9 @@ type CreateAutomationRequest struct { AppEntitlementAutomation *AppEntitlementAutomationInput `json:"automation,omitempty"` } -func (o *CreateAutomationRequest) GetAppEntitlementAutomation() *AppEntitlementAutomationInput { - if o == nil { +func (c *CreateAutomationRequest) GetAppEntitlementAutomation() *AppEntitlementAutomationInput { + if c == nil { return nil } - return o.AppEntitlementAutomation + return c.AppEntitlementAutomation } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationrequestinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationrequestinput.go index 6669cf63..41b73cf7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationrequestinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationrequestinput.go @@ -26,72 +26,72 @@ type CreateAutomationRequestInput struct { Triggers []AutomationTrigger `json:"triggers,omitempty"` } -func (o *CreateAutomationRequestInput) GetAutomationContext() *AutomationContext { - if o == nil { +func (c *CreateAutomationRequestInput) GetAutomationContext() *AutomationContext { + if c == nil { return nil } - return o.AutomationContext + return c.AutomationContext } -func (o *CreateAutomationRequestInput) GetAppID() *string { - if o == nil { +func (c *CreateAutomationRequestInput) GetAppID() *string { + if c == nil { return nil } - return o.AppID + return c.AppID } -func (o *CreateAutomationRequestInput) GetAutomationSteps() []AutomationStep { - if o == nil { +func (c *CreateAutomationRequestInput) GetAutomationSteps() []AutomationStep { + if c == nil { return nil } - return o.AutomationSteps + return c.AutomationSteps } -func (o *CreateAutomationRequestInput) GetDescription() *string { - if o == nil { +func (c *CreateAutomationRequestInput) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *CreateAutomationRequestInput) GetDisplayName() *string { - if o == nil { +func (c *CreateAutomationRequestInput) GetDisplayName() *string { + if c == nil { return nil } - return o.DisplayName + return c.DisplayName } -func (o *CreateAutomationRequestInput) GetDraftAutomationSteps() []AutomationStep { - if o == nil { +func (c *CreateAutomationRequestInput) GetDraftAutomationSteps() []AutomationStep { + if c == nil { return nil } - return o.DraftAutomationSteps + return c.DraftAutomationSteps } -func (o *CreateAutomationRequestInput) GetDraftTriggers() []AutomationTrigger { - if o == nil { +func (c *CreateAutomationRequestInput) GetDraftTriggers() []AutomationTrigger { + if c == nil { return nil } - return o.DraftTriggers + return c.DraftTriggers } -func (o *CreateAutomationRequestInput) GetEnabled() *bool { - if o == nil { +func (c *CreateAutomationRequestInput) GetEnabled() *bool { + if c == nil { return nil } - return o.Enabled + return c.Enabled } -func (o *CreateAutomationRequestInput) GetIsDraft() *bool { - if o == nil { +func (c *CreateAutomationRequestInput) GetIsDraft() *bool { + if c == nil { return nil } - return o.IsDraft + return c.IsDraft } -func (o *CreateAutomationRequestInput) GetTriggers() []AutomationTrigger { - if o == nil { +func (c *CreateAutomationRequestInput) GetTriggers() []AutomationTrigger { + if c == nil { return nil } - return o.Triggers + return c.Triggers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationresponse.go index 2b9067d4..6fb1688a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationresponse.go @@ -15,9 +15,9 @@ type CreateAutomationResponse struct { AppEntitlementAutomation *AppEntitlementAutomation `json:"automation,omitempty"` } -func (o *CreateAutomationResponse) GetAppEntitlementAutomation() *AppEntitlementAutomation { - if o == nil { +func (c *CreateAutomationResponse) GetAppEntitlementAutomation() *AppEntitlementAutomation { + if c == nil { return nil } - return o.AppEntitlementAutomation + return c.AppEntitlementAutomation } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationresponseinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationresponseinput.go index 01b1db46..4e424518 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationresponseinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createautomationresponseinput.go @@ -14,16 +14,16 @@ type CreateAutomationResponseInput struct { WebhookHmacSecret *string `json:"webhookHmacSecret,omitempty"` } -func (o *CreateAutomationResponseInput) GetAutomation() *Automation { - if o == nil { +func (c *CreateAutomationResponseInput) GetAutomation() *Automation { + if c == nil { return nil } - return o.Automation + return c.Automation } -func (o *CreateAutomationResponseInput) GetWebhookHmacSecret() *string { - if o == nil { +func (c *CreateAutomationResponseInput) GetWebhookHmacSecret() *string { + if c == nil { return nil } - return o.WebhookHmacSecret + return c.WebhookHmacSecret } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createbundleautomationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createbundleautomationrequest.go index 170d0230..c311ba1b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createbundleautomationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createbundleautomationrequest.go @@ -17,30 +17,30 @@ type CreateBundleAutomationRequest struct { Enabled *bool `json:"enabled,omitempty"` } -func (o *CreateBundleAutomationRequest) GetBundleAutomationRuleEntitlement() *BundleAutomationRuleEntitlement { - if o == nil { +func (c *CreateBundleAutomationRequest) GetBundleAutomationRuleEntitlement() *BundleAutomationRuleEntitlement { + if c == nil { return nil } - return o.BundleAutomationRuleEntitlement + return c.BundleAutomationRuleEntitlement } -func (o *CreateBundleAutomationRequest) GetCreateTasks() *bool { - if o == nil { +func (c *CreateBundleAutomationRequest) GetCreateTasks() *bool { + if c == nil { return nil } - return o.CreateTasks + return c.CreateTasks } -func (o *CreateBundleAutomationRequest) GetDisableCircuitBreaker() *bool { - if o == nil { +func (c *CreateBundleAutomationRequest) GetDisableCircuitBreaker() *bool { + if c == nil { return nil } - return o.DisableCircuitBreaker + return c.DisableCircuitBreaker } -func (o *CreateBundleAutomationRequest) GetEnabled() *bool { - if o == nil { +func (c *CreateBundleAutomationRequest) GetEnabled() *bool { + if c == nil { return nil } - return o.Enabled + return c.Enabled } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createcomplianceframeworkattributevaluerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createcomplianceframeworkattributevaluerequest.go index 5a96f734..96ec1b99 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createcomplianceframeworkattributevaluerequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createcomplianceframeworkattributevaluerequest.go @@ -8,9 +8,9 @@ type CreateComplianceFrameworkAttributeValueRequest struct { Value *string `json:"value,omitempty"` } -func (o *CreateComplianceFrameworkAttributeValueRequest) GetValue() *string { - if o == nil { +func (c *CreateComplianceFrameworkAttributeValueRequest) GetValue() *string { + if c == nil { return nil } - return o.Value + return c.Value } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createcomplianceframeworkattributevalueresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createcomplianceframeworkattributevalueresponse.go index 05539255..b623796d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createcomplianceframeworkattributevalueresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createcomplianceframeworkattributevalueresponse.go @@ -8,9 +8,9 @@ type CreateComplianceFrameworkAttributeValueResponse struct { AttributeValue *AttributeValue `json:"value,omitempty"` } -func (o *CreateComplianceFrameworkAttributeValueResponse) GetAttributeValue() *AttributeValue { - if o == nil { +func (c *CreateComplianceFrameworkAttributeValueResponse) GetAttributeValue() *AttributeValue { + if c == nil { return nil } - return o.AttributeValue + return c.AttributeValue } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedappresourcerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedappresourcerequest.go index 34b4509e..f3beaa4d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedappresourcerequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedappresourcerequest.go @@ -14,30 +14,30 @@ type CreateManuallyManagedAppResourceRequest struct { ResourceOwnerUserIds []string `json:"resourceOwnerUserIds,omitempty"` } -func (o *CreateManuallyManagedAppResourceRequest) GetDescription() *string { - if o == nil { +func (c *CreateManuallyManagedAppResourceRequest) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *CreateManuallyManagedAppResourceRequest) GetDisplayName() string { - if o == nil { +func (c *CreateManuallyManagedAppResourceRequest) GetDisplayName() string { + if c == nil { return "" } - return o.DisplayName + return c.DisplayName } -func (o *CreateManuallyManagedAppResourceRequest) GetMatchBatonID() *string { - if o == nil { +func (c *CreateManuallyManagedAppResourceRequest) GetMatchBatonID() *string { + if c == nil { return nil } - return o.MatchBatonID + return c.MatchBatonID } -func (o *CreateManuallyManagedAppResourceRequest) GetResourceOwnerUserIds() []string { - if o == nil { +func (c *CreateManuallyManagedAppResourceRequest) GetResourceOwnerUserIds() []string { + if c == nil { return nil } - return o.ResourceOwnerUserIds + return c.ResourceOwnerUserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedappresourceresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedappresourceresponse.go index 3955b7b8..a1838fa2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedappresourceresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedappresourceresponse.go @@ -12,9 +12,9 @@ type CreateManuallyManagedAppResourceResponse struct { AppResource *AppResource `json:"appResource,omitempty"` } -func (o *CreateManuallyManagedAppResourceResponse) GetAppResource() *AppResource { - if o == nil { +func (c *CreateManuallyManagedAppResourceResponse) GetAppResource() *AppResource { + if c == nil { return nil } - return o.AppResource + return c.AppResource } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedresourcetyperequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedresourcetyperequest.go index c875633c..d3cd28f9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedresourcetyperequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedresourcetyperequest.go @@ -6,19 +6,31 @@ package shared type ResourceType string const ( - ResourceTypeRole ResourceType = "ROLE" - ResourceTypeGroup ResourceType = "GROUP" - ResourceTypeLicense ResourceType = "LICENSE" - ResourceTypeProject ResourceType = "PROJECT" - ResourceTypeCatalog ResourceType = "CATALOG" - ResourceTypeCustom ResourceType = "CUSTOM" - ResourceTypeVault ResourceType = "VAULT" + ResourceTypeRole ResourceType = "ROLE" + ResourceTypeGroup ResourceType = "GROUP" + ResourceTypeLicense ResourceType = "LICENSE" + ResourceTypeProject ResourceType = "PROJECT" + ResourceTypeCatalog ResourceType = "CATALOG" + ResourceTypeCustom ResourceType = "CUSTOM" + ResourceTypeVault ResourceType = "VAULT" + ResourceTypeProfileType ResourceType = "PROFILE_TYPE" ) func (e ResourceType) ToPointer() *ResourceType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ResourceType) IsExact() bool { + if e != nil { + switch *e { + case "ROLE", "GROUP", "LICENSE", "PROJECT", "CATALOG", "CUSTOM", "VAULT", "PROFILE_TYPE": + return true + } + } + return false +} + // The CreateManuallyManagedResourceTypeRequest message. type CreateManuallyManagedResourceTypeRequest struct { // The displayName field. @@ -27,16 +39,16 @@ type CreateManuallyManagedResourceTypeRequest struct { ResourceType ResourceType `json:"resourceType"` } -func (o *CreateManuallyManagedResourceTypeRequest) GetDisplayName() string { - if o == nil { +func (c *CreateManuallyManagedResourceTypeRequest) GetDisplayName() string { + if c == nil { return "" } - return o.DisplayName + return c.DisplayName } -func (o *CreateManuallyManagedResourceTypeRequest) GetResourceType() ResourceType { - if o == nil { +func (c *CreateManuallyManagedResourceTypeRequest) GetResourceType() ResourceType { + if c == nil { return ResourceType("") } - return o.ResourceType + return c.ResourceType } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedresourcetyperesponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedresourcetyperesponse.go index 67bb7fe2..b0db119d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedresourcetyperesponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createmanuallymanagedresourcetyperesponse.go @@ -18,24 +18,24 @@ func (c CreateManuallyManagedResourceTypeResponseExpanded) MarshalJSON() ([]byte } func (c *CreateManuallyManagedResourceTypeResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil } -func (o *CreateManuallyManagedResourceTypeResponseExpanded) GetAtType() *string { - if o == nil { +func (c *CreateManuallyManagedResourceTypeResponseExpanded) GetAtType() *string { + if c == nil { return nil } - return o.AtType + return c.AtType } -func (o *CreateManuallyManagedResourceTypeResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (c *CreateManuallyManagedResourceTypeResponseExpanded) GetAdditionalProperties() map[string]any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // The CreateManuallyManagedResourceTypeResponse message. @@ -46,16 +46,16 @@ type CreateManuallyManagedResourceTypeResponse struct { Expanded []CreateManuallyManagedResourceTypeResponseExpanded `json:"expanded,omitempty"` } -func (o *CreateManuallyManagedResourceTypeResponse) GetAppResourceType() *AppResourceType { - if o == nil { +func (c *CreateManuallyManagedResourceTypeResponse) GetAppResourceType() *AppResourceType { + if c == nil { return nil } - return o.AppResourceType + return c.AppResourceType } -func (o *CreateManuallyManagedResourceTypeResponse) GetExpanded() []CreateManuallyManagedResourceTypeResponseExpanded { - if o == nil { +func (c *CreateManuallyManagedResourceTypeResponse) GetExpanded() []CreateManuallyManagedResourceTypeResponseExpanded { + if c == nil { return nil } - return o.Expanded + return c.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createpolicyrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createpolicyrequest.go index a448c4a5..5fc73db3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createpolicyrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createpolicyrequest.go @@ -18,6 +18,17 @@ func (e PolicyType) ToPointer() *PolicyType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PolicyType) IsExact() bool { + if e != nil { + switch *e { + case "POLICY_TYPE_UNSPECIFIED", "POLICY_TYPE_GRANT", "POLICY_TYPE_REVOKE", "POLICY_TYPE_CERTIFY", "POLICY_TYPE_ACCESS_REQUEST", "POLICY_TYPE_PROVISION": + return true + } + } + return false +} + // The CreatePolicyRequest message is used to create a new policy. type CreatePolicyRequest struct { // The description of the new policy. @@ -38,51 +49,51 @@ type CreatePolicyRequest struct { Rules []Rule `json:"rules,omitempty"` } -func (o *CreatePolicyRequest) GetDescription() *string { - if o == nil { +func (c *CreatePolicyRequest) GetDescription() *string { + if c == nil { return nil } - return o.Description + return c.Description } -func (o *CreatePolicyRequest) GetDisplayName() string { - if o == nil { +func (c *CreatePolicyRequest) GetDisplayName() string { + if c == nil { return "" } - return o.DisplayName + return c.DisplayName } -func (o *CreatePolicyRequest) GetPolicySteps() map[string]PolicyStepsInput { - if o == nil { +func (c *CreatePolicyRequest) GetPolicySteps() map[string]PolicyStepsInput { + if c == nil { return nil } - return o.PolicySteps + return c.PolicySteps } -func (o *CreatePolicyRequest) GetPolicyType() *PolicyType { - if o == nil { +func (c *CreatePolicyRequest) GetPolicyType() *PolicyType { + if c == nil { return nil } - return o.PolicyType + return c.PolicyType } -func (o *CreatePolicyRequest) GetPostActions() []PolicyPostActions { - if o == nil { +func (c *CreatePolicyRequest) GetPostActions() []PolicyPostActions { + if c == nil { return nil } - return o.PostActions + return c.PostActions } -func (o *CreatePolicyRequest) GetReassignTasksToDelegates() *bool { - if o == nil { +func (c *CreatePolicyRequest) GetReassignTasksToDelegates() *bool { + if c == nil { return nil } - return o.ReassignTasksToDelegates + return c.ReassignTasksToDelegates } -func (o *CreatePolicyRequest) GetRules() []Rule { - if o == nil { +func (c *CreatePolicyRequest) GetRules() []Rule { + if c == nil { return nil } - return o.Rules + return c.Rules } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createpolicyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createpolicyresponse.go index 5bc17774..7ce77eba 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createpolicyresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createpolicyresponse.go @@ -8,9 +8,9 @@ type CreatePolicyResponse struct { Policy *Policy `json:"policy,omitempty"` } -func (o *CreatePolicyResponse) GetPolicy() *Policy { - if o == nil { +func (c *CreatePolicyResponse) GetPolicy() *Policy { + if c == nil { return nil } - return o.Policy + return c.Policy } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrevoketasks.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrevoketasks.go index 82a478ce..f3b39c0d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrevoketasks.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrevoketasks.go @@ -10,9 +10,11 @@ type CreateRevokeTasks struct { AppEntitlementRefs []AppEntitlementRef `json:"appEntitlementRefs,omitempty"` // The appEntitlementRefsCel field. AppEntitlementRefsCel *string `json:"appEntitlementRefsCel,omitempty"` + // The excludedAppEntitlementRefs field. + ExcludedAppEntitlementRefs []AppEntitlementRef `json:"excludedAppEntitlementRefs,omitempty"` + // The excludedAppEntitlementRefsCel field. + ExcludedAppEntitlementRefsCel *string `json:"excludedAppEntitlementRefsCel,omitempty"` // The revokeAll field. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. RevokeAll *bool `json:"revokeAll,omitempty"` // If true, the step will use the subject user of the automation as the subject. UseSubjectUser *bool `json:"useSubjectUser,omitempty"` @@ -20,44 +22,58 @@ type CreateRevokeTasks struct { UserIDCel *string `json:"userIdCel,omitempty"` } -func (o *CreateRevokeTasks) GetUserRef() *UserRef { - if o == nil { +func (c *CreateRevokeTasks) GetUserRef() *UserRef { + if c == nil { return nil } - return o.UserRef + return c.UserRef } -func (o *CreateRevokeTasks) GetAppEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (c *CreateRevokeTasks) GetAppEntitlementRefs() []AppEntitlementRef { + if c == nil { return nil } - return o.AppEntitlementRefs + return c.AppEntitlementRefs } -func (o *CreateRevokeTasks) GetAppEntitlementRefsCel() *string { - if o == nil { +func (c *CreateRevokeTasks) GetAppEntitlementRefsCel() *string { + if c == nil { return nil } - return o.AppEntitlementRefsCel + return c.AppEntitlementRefsCel } -func (o *CreateRevokeTasks) GetRevokeAll() *bool { - if o == nil { +func (c *CreateRevokeTasks) GetExcludedAppEntitlementRefs() []AppEntitlementRef { + if c == nil { return nil } - return o.RevokeAll + return c.ExcludedAppEntitlementRefs } -func (o *CreateRevokeTasks) GetUseSubjectUser() *bool { - if o == nil { +func (c *CreateRevokeTasks) GetExcludedAppEntitlementRefsCel() *string { + if c == nil { return nil } - return o.UseSubjectUser + return c.ExcludedAppEntitlementRefsCel } -func (o *CreateRevokeTasks) GetUserIDCel() *string { - if o == nil { +func (c *CreateRevokeTasks) GetRevokeAll() *bool { + if c == nil { return nil } - return o.UserIDCel + return c.RevokeAll +} + +func (c *CreateRevokeTasks) GetUseSubjectUser() *bool { + if c == nil { + return nil + } + return c.UseSubjectUser +} + +func (c *CreateRevokeTasks) GetUserIDCel() *string { + if c == nil { + return nil + } + return c.UserIDCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrevoketasksv2.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrevoketasksv2.go new file mode 100644 index 00000000..a07b768c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrevoketasksv2.go @@ -0,0 +1,127 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The CreateRevokeTasksV2 message. +// +// This message contains a oneof named user. Only a single field of the following list may be set at a time: +// - userIdCel +// - userRef +// - useSubjectUser +// +// This message contains a oneof named inclusion. Only a single field of the following list may be set at a time: +// - inclusionList +// - inclusionAll +// - inclusionCriteria +// - inclusionListCel +// +// This message contains a oneof named exclusion. Only a single field of the following list may be set at a time: +// - exclusionNone +// - exclusionList +// - exclusionCriteria +// - exclusionListCel +type CreateRevokeTasksV2 struct { + // The EntitlementExclusionCriteria message. + EntitlementExclusionCriteria *EntitlementExclusionCriteria `json:"exclusionCriteria,omitempty"` + // The EntitlementExclusionList message. + EntitlementExclusionList *EntitlementExclusionList `json:"exclusionList,omitempty"` + // The EntitlementExclusionListCel message. + EntitlementExclusionListCel *EntitlementExclusionListCel `json:"exclusionListCel,omitempty"` + // The EntitlementExclusionNone message. + EntitlementExclusionNone *EntitlementExclusionNone `json:"exclusionNone,omitempty"` + // The EntitlementInclusionAll message. + EntitlementInclusionAll *EntitlementInclusionAll `json:"inclusionAll,omitempty"` + // The EntitlementInclusionCriteria message. + EntitlementInclusionCriteria *EntitlementInclusionCriteria `json:"inclusionCriteria,omitempty"` + // The EntitlementInclusionList message. + EntitlementInclusionList *EntitlementInclusionList `json:"inclusionList,omitempty"` + // The EntitlementInclusionListCel message. + EntitlementInclusionListCel *EntitlementInclusionListCel `json:"inclusionListCel,omitempty"` + // A reference to a user. + UserRef *UserRef `json:"userRef,omitempty"` + // The useSubjectUser field. + // This field is part of the `user` oneof. + // See the documentation for `c1.api.automations.v1.CreateRevokeTasksV2` for more details. + UseSubjectUser *bool `json:"useSubjectUser,omitempty"` + // The userIdCel field. + // This field is part of the `user` oneof. + // See the documentation for `c1.api.automations.v1.CreateRevokeTasksV2` for more details. + UserIDCel *string `json:"userIdCel,omitempty"` +} + +func (c *CreateRevokeTasksV2) GetEntitlementExclusionCriteria() *EntitlementExclusionCriteria { + if c == nil { + return nil + } + return c.EntitlementExclusionCriteria +} + +func (c *CreateRevokeTasksV2) GetEntitlementExclusionList() *EntitlementExclusionList { + if c == nil { + return nil + } + return c.EntitlementExclusionList +} + +func (c *CreateRevokeTasksV2) GetEntitlementExclusionListCel() *EntitlementExclusionListCel { + if c == nil { + return nil + } + return c.EntitlementExclusionListCel +} + +func (c *CreateRevokeTasksV2) GetEntitlementExclusionNone() *EntitlementExclusionNone { + if c == nil { + return nil + } + return c.EntitlementExclusionNone +} + +func (c *CreateRevokeTasksV2) GetEntitlementInclusionAll() *EntitlementInclusionAll { + if c == nil { + return nil + } + return c.EntitlementInclusionAll +} + +func (c *CreateRevokeTasksV2) GetEntitlementInclusionCriteria() *EntitlementInclusionCriteria { + if c == nil { + return nil + } + return c.EntitlementInclusionCriteria +} + +func (c *CreateRevokeTasksV2) GetEntitlementInclusionList() *EntitlementInclusionList { + if c == nil { + return nil + } + return c.EntitlementInclusionList +} + +func (c *CreateRevokeTasksV2) GetEntitlementInclusionListCel() *EntitlementInclusionListCel { + if c == nil { + return nil + } + return c.EntitlementInclusionListCel +} + +func (c *CreateRevokeTasksV2) GetUserRef() *UserRef { + if c == nil { + return nil + } + return c.UserRef +} + +func (c *CreateRevokeTasksV2) GetUseSubjectUser() *bool { + if c == nil { + return nil + } + return c.UseSubjectUser +} + +func (c *CreateRevokeTasksV2) GetUserIDCel() *string { + if c == nil { + return nil + } + return c.UserIDCel +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrisklevelattributevaluerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrisklevelattributevaluerequest.go index 57570bfd..4bde830c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrisklevelattributevaluerequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrisklevelattributevaluerequest.go @@ -8,9 +8,9 @@ type CreateRiskLevelAttributeValueRequest struct { Value *string `json:"value,omitempty"` } -func (o *CreateRiskLevelAttributeValueRequest) GetValue() *string { - if o == nil { +func (c *CreateRiskLevelAttributeValueRequest) GetValue() *string { + if c == nil { return nil } - return o.Value + return c.Value } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrisklevelattributevalueresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrisklevelattributevalueresponse.go index 146ed208..e1d86556 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrisklevelattributevalueresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createrisklevelattributevalueresponse.go @@ -8,9 +8,9 @@ type CreateRiskLevelAttributeValueResponse struct { AttributeValue *AttributeValue `json:"value,omitempty"` } -func (o *CreateRiskLevelAttributeValueResponse) GetAttributeValue() *AttributeValue { - if o == nil { +func (c *CreateRiskLevelAttributeValueResponse) GetAttributeValue() *AttributeValue { + if c == nil { return nil } - return o.AttributeValue + return c.AttributeValue } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createstepupproviderrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createstepupproviderrequest.go index 242aba94..fac91293 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createstepupproviderrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createstepupproviderrequest.go @@ -30,44 +30,44 @@ type CreateStepUpProviderRequest struct { IssuerURL *string `json:"issuerUrl,omitempty"` } -func (o *CreateStepUpProviderRequest) GetStepUpMicrosoftSettings() *StepUpMicrosoftSettings { - if o == nil { +func (c *CreateStepUpProviderRequest) GetStepUpMicrosoftSettings() *StepUpMicrosoftSettings { + if c == nil { return nil } - return o.StepUpMicrosoftSettings + return c.StepUpMicrosoftSettings } -func (o *CreateStepUpProviderRequest) GetStepUpOAuth2Settings() *StepUpOAuth2Settings { - if o == nil { +func (c *CreateStepUpProviderRequest) GetStepUpOAuth2Settings() *StepUpOAuth2Settings { + if c == nil { return nil } - return o.StepUpOAuth2Settings + return c.StepUpOAuth2Settings } -func (o *CreateStepUpProviderRequest) GetClientID() *string { - if o == nil { +func (c *CreateStepUpProviderRequest) GetClientID() *string { + if c == nil { return nil } - return o.ClientID + return c.ClientID } -func (o *CreateStepUpProviderRequest) GetClientSecret() *string { - if o == nil { +func (c *CreateStepUpProviderRequest) GetClientSecret() *string { + if c == nil { return nil } - return o.ClientSecret + return c.ClientSecret } -func (o *CreateStepUpProviderRequest) GetDisplayName() *string { - if o == nil { +func (c *CreateStepUpProviderRequest) GetDisplayName() *string { + if c == nil { return nil } - return o.DisplayName + return c.DisplayName } -func (o *CreateStepUpProviderRequest) GetIssuerURL() *string { - if o == nil { +func (c *CreateStepUpProviderRequest) GetIssuerURL() *string { + if c == nil { return nil } - return o.IssuerURL + return c.IssuerURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createstepupproviderresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createstepupproviderresponse.go index a2f964d6..c7054bce 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createstepupproviderresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/createstepupproviderresponse.go @@ -13,9 +13,9 @@ type CreateStepUpProviderResponse struct { StepUpProvider *StepUpProvider `json:"stepUpProvider,omitempty"` } -func (o *CreateStepUpProviderResponse) GetStepUpProvider() *StepUpProvider { - if o == nil { +func (c *CreateStepUpProviderResponse) GetStepUpProvider() *StepUpProvider { + if c == nil { return nil } - return o.StepUpProvider + return c.StepUpProvider } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/defaultbehavior.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/defaultbehavior.go index 3be7c347..d482ea43 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/defaultbehavior.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/defaultbehavior.go @@ -9,9 +9,9 @@ type DefaultBehavior struct { ConnectorID *string `json:"connectorId,omitempty"` } -func (o *DefaultBehavior) GetConnectorID() *string { - if o == nil { +func (d *DefaultBehavior) GetConnectorID() *string { + if d == nil { return nil } - return o.ConnectorID + return d.ConnectorID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/delegatedprovision.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/delegatedprovision.go index cb256060..76be238b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/delegatedprovision.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/delegatedprovision.go @@ -12,23 +12,23 @@ type DelegatedProvision struct { Implicit *bool `json:"implicit,omitempty"` } -func (o *DelegatedProvision) GetAppID() *string { - if o == nil { +func (d *DelegatedProvision) GetAppID() *string { + if d == nil { return nil } - return o.AppID + return d.AppID } -func (o *DelegatedProvision) GetEntitlementID() *string { - if o == nil { +func (d *DelegatedProvision) GetEntitlementID() *string { + if d == nil { return nil } - return o.EntitlementID + return d.EntitlementID } -func (o *DelegatedProvision) GetImplicit() *bool { - if o == nil { +func (d *DelegatedProvision) GetImplicit() *bool { + if d == nil { return nil } - return o.Implicit + return d.Implicit } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteaccount.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteaccount.go index 5f8955ed..a2a197c0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteaccount.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteaccount.go @@ -8,9 +8,9 @@ type DeleteAccount struct { ConnectorID *string `json:"connectorId,omitempty"` } -func (o *DeleteAccount) GetConnectorID() *string { - if o == nil { +func (d *DeleteAccount) GetConnectorID() *string { + if d == nil { return nil } - return o.ConnectorID + return d.ConnectorID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementmonitorbindingrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementmonitorbindingrequest.go index b035c268..59fd32c1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementmonitorbindingrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementmonitorbindingrequest.go @@ -15,6 +15,17 @@ func (e DeleteAppEntitlementMonitorBindingRequestEntitlementGroup) ToPointer() * return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *DeleteAppEntitlementMonitorBindingRequestEntitlementGroup) IsExact() bool { + if e != nil { + switch *e { + case "ENTITLEMENT_GROUP_UNSPECIFIED", "ENTITLEMENT_GROUP_A", "ENTITLEMENT_GROUP_B": + return true + } + } + return false +} + // The DeleteAppEntitlementMonitorBindingRequest message. type DeleteAppEntitlementMonitorBindingRequest struct { // The appEntitlementId field. @@ -27,30 +38,30 @@ type DeleteAppEntitlementMonitorBindingRequest struct { MonitorID *string `json:"monitorId,omitempty"` } -func (o *DeleteAppEntitlementMonitorBindingRequest) GetAppEntitlementID() *string { - if o == nil { +func (d *DeleteAppEntitlementMonitorBindingRequest) GetAppEntitlementID() *string { + if d == nil { return nil } - return o.AppEntitlementID + return d.AppEntitlementID } -func (o *DeleteAppEntitlementMonitorBindingRequest) GetAppID() *string { - if o == nil { +func (d *DeleteAppEntitlementMonitorBindingRequest) GetAppID() *string { + if d == nil { return nil } - return o.AppID + return d.AppID } -func (o *DeleteAppEntitlementMonitorBindingRequest) GetEntitlementGroup() *DeleteAppEntitlementMonitorBindingRequestEntitlementGroup { - if o == nil { +func (d *DeleteAppEntitlementMonitorBindingRequest) GetEntitlementGroup() *DeleteAppEntitlementMonitorBindingRequestEntitlementGroup { + if d == nil { return nil } - return o.EntitlementGroup + return d.EntitlementGroup } -func (o *DeleteAppEntitlementMonitorBindingRequest) GetMonitorID() *string { - if o == nil { +func (d *DeleteAppEntitlementMonitorBindingRequest) GetMonitorID() *string { + if d == nil { return nil } - return o.MonitorID + return d.MonitorID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementownersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementownersrequest.go new file mode 100644 index 00000000..402f3d81 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementownersrequest.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// DeleteAppEntitlementOwnersRequest - The request message for deleting app entitlement owners. +type DeleteAppEntitlementOwnersRequest struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementownersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementownersresponse.go new file mode 100644 index 00000000..643d2a0c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappentitlementownersresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// DeleteAppEntitlementOwnersResponse - the empty response message for deleting app entitlement owners. +type DeleteAppEntitlementOwnersResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappownersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappownersrequest.go new file mode 100644 index 00000000..59f78a6a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappownersrequest.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// DeleteAppOwnersRequest - The request message for deleting app owners. +type DeleteAppOwnersRequest struct { + // The user_ids field for the users to set as an owner of the app. + UserIds []string `json:"userIds,omitempty"` +} + +func (d *DeleteAppOwnersRequest) GetUserIds() []string { + if d == nil { + return nil + } + return d.UserIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappownersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappownersresponse.go new file mode 100644 index 00000000..d680401a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappownersresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// DeleteAppOwnersResponse - the empty response message for deleting app owners. +type DeleteAppOwnersResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappresourceownersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappresourceownersrequest.go new file mode 100644 index 00000000..1b1d108a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappresourceownersrequest.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// DeleteAppResourceOwnersRequest - The request message for deleting app resource owners. +type DeleteAppResourceOwnersRequest struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappresourceownersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappresourceownersresponse.go new file mode 100644 index 00000000..f14a3b18 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deleteappresourceownersresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// DeleteAppResourceOwnersResponse - the empty response message for deleting app resource owners. +type DeleteAppResourceOwnersResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deniedaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deniedaction.go index 35a41bdd..d20a19e4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deniedaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/deniedaction.go @@ -19,22 +19,22 @@ func (d DeniedAction) MarshalJSON() ([]byte, error) { } func (d *DeniedAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { return err } return nil } -func (o *DeniedAction) GetDeniedAt() *time.Time { - if o == nil { +func (d *DeniedAction) GetDeniedAt() *time.Time { + if d == nil { return nil } - return o.DeniedAt + return d.DeniedAt } -func (o *DeniedAction) GetUserID() *string { - if o == nil { +func (d *DeniedAction) GetUserID() *string { + if d == nil { return nil } - return o.UserID + return d.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directory.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directory.go index 6200b8ed..c2e0288c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directory.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directory.go @@ -8,7 +8,15 @@ import ( ) // Directory - This object indicates that an app is also a directory. +// +// This message contains a oneof named account_filter. Only a single field of the following list may be set at a time: +// - all +// - celExpression type Directory struct { + // The DirectoryAccountFilterAll message. + DirectoryAccountFilterAll *DirectoryAccountFilterAll `json:"all,omitempty"` + // The DirectoryAccountFilterCel message. + DirectoryAccountFilterCel *DirectoryAccountFilterCel `json:"celExpression,omitempty"` // The ID of the app associated with the directory. AppID *string `json:"appId,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` @@ -21,36 +29,50 @@ func (d Directory) MarshalJSON() ([]byte, error) { } func (d *Directory) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { return err } return nil } -func (o *Directory) GetAppID() *string { - if o == nil { +func (d *Directory) GetDirectoryAccountFilterAll() *DirectoryAccountFilterAll { + if d == nil { return nil } - return o.AppID + return d.DirectoryAccountFilterAll } -func (o *Directory) GetCreatedAt() *time.Time { - if o == nil { +func (d *Directory) GetDirectoryAccountFilterCel() *DirectoryAccountFilterCel { + if d == nil { return nil } - return o.CreatedAt + return d.DirectoryAccountFilterCel } -func (o *Directory) GetDeletedAt() *time.Time { - if o == nil { +func (d *Directory) GetAppID() *string { + if d == nil { return nil } - return o.DeletedAt + return d.AppID } -func (o *Directory) GetUpdatedAt() *time.Time { - if o == nil { +func (d *Directory) GetCreatedAt() *time.Time { + if d == nil { return nil } - return o.UpdatedAt + return d.CreatedAt +} + +func (d *Directory) GetDeletedAt() *time.Time { + if d == nil { + return nil + } + return d.DeletedAt +} + +func (d *Directory) GetUpdatedAt() *time.Time { + if d == nil { + return nil + } + return d.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryaccountfilterall.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryaccountfilterall.go new file mode 100644 index 00000000..34f6ff9b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryaccountfilterall.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The DirectoryAccountFilterAll message. +type DirectoryAccountFilterAll struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryaccountfiltercel.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryaccountfiltercel.go new file mode 100644 index 00000000..cb5decdc --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryaccountfiltercel.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The DirectoryAccountFilterCel message. +type DirectoryAccountFilterCel struct { + // The expression field. + Expression *string `json:"expression,omitempty"` +} + +func (d *DirectoryAccountFilterCel) GetExpression() *string { + if d == nil { + return nil + } + return d.Expression +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryexpandmask.go index db3bf297..66417fcc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryexpandmask.go @@ -8,9 +8,9 @@ type DirectoryExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *DirectoryExpandMask) GetPaths() []string { - if o == nil { +func (d *DirectoryExpandMask) GetPaths() []string { + if d == nil { return nil } - return o.Paths + return d.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicecreaterequest.go index 823d4b43..cdee3063 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicecreaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicecreaterequest.go @@ -3,23 +3,45 @@ package shared // DirectoryServiceCreateRequest - Uplevel an app into a full directory. +// +// This message contains a oneof named account_filter. Only a single field of the following list may be set at a time: +// - all +// - celExpression type DirectoryServiceCreateRequest struct { + // The DirectoryAccountFilterAll message. + DirectoryAccountFilterAll *DirectoryAccountFilterAll `json:"all,omitempty"` + // The DirectoryAccountFilterCel message. + DirectoryAccountFilterCel *DirectoryAccountFilterCel `json:"celExpression,omitempty"` // The fields to be included in the directory response. DirectoryExpandMask *DirectoryExpandMask `json:"expandMask,omitempty"` // The AppID to make into a directory, providing identities and more for the C1 app. AppID *string `json:"appId,omitempty"` } -func (o *DirectoryServiceCreateRequest) GetDirectoryExpandMask() *DirectoryExpandMask { - if o == nil { +func (d *DirectoryServiceCreateRequest) GetDirectoryAccountFilterAll() *DirectoryAccountFilterAll { + if d == nil { return nil } - return o.DirectoryExpandMask + return d.DirectoryAccountFilterAll } -func (o *DirectoryServiceCreateRequest) GetAppID() *string { - if o == nil { +func (d *DirectoryServiceCreateRequest) GetDirectoryAccountFilterCel() *DirectoryAccountFilterCel { + if d == nil { return nil } - return o.AppID + return d.DirectoryAccountFilterCel +} + +func (d *DirectoryServiceCreateRequest) GetDirectoryExpandMask() *DirectoryExpandMask { + if d == nil { + return nil + } + return d.DirectoryExpandMask +} + +func (d *DirectoryServiceCreateRequest) GetAppID() *string { + if d == nil { + return nil + } + return d.AppID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicecreateresponse.go index 45b3bc2d..28ee1c71 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicecreateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicecreateresponse.go @@ -18,24 +18,24 @@ func (d DirectoryServiceCreateResponseExpanded) MarshalJSON() ([]byte, error) { } func (d *DirectoryServiceCreateResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { return err } return nil } -func (o *DirectoryServiceCreateResponseExpanded) GetAtType() *string { - if o == nil { +func (d *DirectoryServiceCreateResponseExpanded) GetAtType() *string { + if d == nil { return nil } - return o.AtType + return d.AtType } -func (o *DirectoryServiceCreateResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (d *DirectoryServiceCreateResponseExpanded) GetAdditionalProperties() map[string]any { + if d == nil { return nil } - return o.AdditionalProperties + return d.AdditionalProperties } // The DirectoryServiceCreateResponse message. @@ -46,16 +46,16 @@ type DirectoryServiceCreateResponse struct { Expanded []DirectoryServiceCreateResponseExpanded `json:"expanded,omitempty"` } -func (o *DirectoryServiceCreateResponse) GetDirectoryView() *DirectoryView { - if o == nil { +func (d *DirectoryServiceCreateResponse) GetDirectoryView() *DirectoryView { + if d == nil { return nil } - return o.DirectoryView + return d.DirectoryView } -func (o *DirectoryServiceCreateResponse) GetExpanded() []DirectoryServiceCreateResponseExpanded { - if o == nil { +func (d *DirectoryServiceCreateResponse) GetExpanded() []DirectoryServiceCreateResponseExpanded { + if d == nil { return nil } - return o.Expanded + return d.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicegetresponse.go index 533891ff..ccaacf1b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicegetresponse.go @@ -18,24 +18,24 @@ func (d DirectoryServiceGetResponseExpanded) MarshalJSON() ([]byte, error) { } func (d *DirectoryServiceGetResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { return err } return nil } -func (o *DirectoryServiceGetResponseExpanded) GetAtType() *string { - if o == nil { +func (d *DirectoryServiceGetResponseExpanded) GetAtType() *string { + if d == nil { return nil } - return o.AtType + return d.AtType } -func (o *DirectoryServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (d *DirectoryServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { + if d == nil { return nil } - return o.AdditionalProperties + return d.AdditionalProperties } // DirectoryServiceGetResponse - The Directory Service Get Response returns a directory view with a directory and JSONPATHs indicating the @@ -48,16 +48,16 @@ type DirectoryServiceGetResponse struct { Expanded []DirectoryServiceGetResponseExpanded `json:"expanded,omitempty"` } -func (o *DirectoryServiceGetResponse) GetDirectoryView() *DirectoryView { - if o == nil { +func (d *DirectoryServiceGetResponse) GetDirectoryView() *DirectoryView { + if d == nil { return nil } - return o.DirectoryView + return d.DirectoryView } -func (o *DirectoryServiceGetResponse) GetExpanded() []DirectoryServiceGetResponseExpanded { - if o == nil { +func (d *DirectoryServiceGetResponse) GetExpanded() []DirectoryServiceGetResponseExpanded { + if d == nil { return nil } - return o.Expanded + return d.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicelistresponse.go index cd78e836..a9a2b635 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryservicelistresponse.go @@ -18,24 +18,24 @@ func (d DirectoryServiceListResponseExpanded) MarshalJSON() ([]byte, error) { } func (d *DirectoryServiceListResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { return err } return nil } -func (o *DirectoryServiceListResponseExpanded) GetAtType() *string { - if o == nil { +func (d *DirectoryServiceListResponseExpanded) GetAtType() *string { + if d == nil { return nil } - return o.AtType + return d.AtType } -func (o *DirectoryServiceListResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (d *DirectoryServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if d == nil { return nil } - return o.AdditionalProperties + return d.AdditionalProperties } // The DirectoryServiceListResponse message contains a list of results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type DirectoryServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *DirectoryServiceListResponse) GetExpanded() []DirectoryServiceListResponseExpanded { - if o == nil { +func (d *DirectoryServiceListResponse) GetExpanded() []DirectoryServiceListResponseExpanded { + if d == nil { return nil } - return o.Expanded + return d.Expanded } -func (o *DirectoryServiceListResponse) GetList() []DirectoryView { - if o == nil { +func (d *DirectoryServiceListResponse) GetList() []DirectoryView { + if d == nil { return nil } - return o.List + return d.List } -func (o *DirectoryServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (d *DirectoryServiceListResponse) GetNextPageToken() *string { + if d == nil { return nil } - return o.NextPageToken + return d.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryserviceupdaterequest.go new file mode 100644 index 00000000..05ca3036 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryserviceupdaterequest.go @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// DirectoryServiceUpdateRequest - Update a directory by app_id. +// +// This message contains a oneof named account_filter. Only a single field of the following list may be set at a time: +// - all +// - celExpression +type DirectoryServiceUpdateRequest struct { + // The DirectoryAccountFilterAll message. + DirectoryAccountFilterAll *DirectoryAccountFilterAll `json:"all,omitempty"` + // The DirectoryAccountFilterCel message. + DirectoryAccountFilterCel *DirectoryAccountFilterCel `json:"celExpression,omitempty"` + // The fields to be included in the directory response. + DirectoryExpandMask *DirectoryExpandMask `json:"expandMask,omitempty"` +} + +func (d *DirectoryServiceUpdateRequest) GetDirectoryAccountFilterAll() *DirectoryAccountFilterAll { + if d == nil { + return nil + } + return d.DirectoryAccountFilterAll +} + +func (d *DirectoryServiceUpdateRequest) GetDirectoryAccountFilterCel() *DirectoryAccountFilterCel { + if d == nil { + return nil + } + return d.DirectoryAccountFilterCel +} + +func (d *DirectoryServiceUpdateRequest) GetDirectoryExpandMask() *DirectoryExpandMask { + if d == nil { + return nil + } + return d.DirectoryExpandMask +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryserviceupdateresponse.go new file mode 100644 index 00000000..3a83ce8b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryserviceupdateresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" +) + +// DirectoryServiceUpdateResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. +type DirectoryServiceUpdateResponseExpanded struct { + // The type of the serialized message. + AtType *string `json:"@type,omitempty"` + AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` +} + +func (d DirectoryServiceUpdateResponseExpanded) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DirectoryServiceUpdateResponseExpanded) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { + return err + } + return nil +} + +func (d *DirectoryServiceUpdateResponseExpanded) GetAtType() *string { + if d == nil { + return nil + } + return d.AtType +} + +func (d *DirectoryServiceUpdateResponseExpanded) GetAdditionalProperties() map[string]any { + if d == nil { + return nil + } + return d.AdditionalProperties +} + +// The DirectoryServiceUpdateResponse message. +type DirectoryServiceUpdateResponse struct { + // The directory view contains a directory and an app_path which is a JSONPATH set to the location in the expand mask that the expanded app will live if requested by the expander. + DirectoryView *DirectoryView `json:"directoryView,omitempty"` + // List of serialized related objects. + Expanded []DirectoryServiceUpdateResponseExpanded `json:"expanded,omitempty"` +} + +func (d *DirectoryServiceUpdateResponse) GetDirectoryView() *DirectoryView { + if d == nil { + return nil + } + return d.DirectoryView +} + +func (d *DirectoryServiceUpdateResponse) GetExpanded() []DirectoryServiceUpdateResponseExpanded { + if d == nil { + return nil + } + return d.Expanded +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryview.go index 268d3863..c36299ee 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/directoryview.go @@ -5,21 +5,26 @@ package shared // DirectoryView - The directory view contains a directory and an app_path which is a JSONPATH set to the location in the expand mask that the expanded app will live if requested by the expander. type DirectoryView struct { // This object indicates that an app is also a directory. + // + // This message contains a oneof named account_filter. Only a single field of the following list may be set at a time: + // - all + // - celExpression + // Directory *Directory `json:"directory,omitempty"` - // JSONPATH expression indicating the location of the App object in the array. + // JSONPATH expression indicating the location of the App object in the array. AppPath *string `json:"appPath,omitempty"` } -func (o *DirectoryView) GetDirectory() *Directory { - if o == nil { +func (d *DirectoryView) GetDirectory() *Directory { + if d == nil { return nil } - return o.Directory + return d.Directory } -func (o *DirectoryView) GetAppPath() *string { - if o == nil { +func (d *DirectoryView) GetAppPath() *string { + if d == nil { return nil } - return o.AppPath + return d.AppPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/doublerules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/doublerules.go index b7e8356b..c9d20757 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/doublerules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/doublerules.go @@ -31,58 +31,58 @@ type DoubleRules struct { NotIn []float64 `json:"notIn,omitempty"` } -func (o *DoubleRules) GetConst() *float64 { - if o == nil { +func (d *DoubleRules) GetConst() *float64 { + if d == nil { return nil } - return o.Const + return d.Const } -func (o *DoubleRules) GetGt() *float64 { - if o == nil { +func (d *DoubleRules) GetGt() *float64 { + if d == nil { return nil } - return o.Gt + return d.Gt } -func (o *DoubleRules) GetGte() *float64 { - if o == nil { +func (d *DoubleRules) GetGte() *float64 { + if d == nil { return nil } - return o.Gte + return d.Gte } -func (o *DoubleRules) GetIgnoreEmpty() *bool { - if o == nil { +func (d *DoubleRules) GetIgnoreEmpty() *bool { + if d == nil { return nil } - return o.IgnoreEmpty + return d.IgnoreEmpty } -func (o *DoubleRules) GetIn() []float64 { - if o == nil { +func (d *DoubleRules) GetIn() []float64 { + if d == nil { return nil } - return o.In + return d.In } -func (o *DoubleRules) GetLt() *float64 { - if o == nil { +func (d *DoubleRules) GetLt() *float64 { + if d == nil { return nil } - return o.Lt + return d.Lt } -func (o *DoubleRules) GetLte() *float64 { - if o == nil { +func (d *DoubleRules) GetLte() *float64 { + if d == nil { return nil } - return o.Lte + return d.Lte } -func (o *DoubleRules) GetNotIn() []float64 { - if o == nil { +func (d *DoubleRules) GetNotIn() []float64 { + if d == nil { return nil } - return o.NotIn + return d.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/durationrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/durationrules.go index 0810ae46..c81647ba 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/durationrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/durationrules.go @@ -21,58 +21,58 @@ type DurationRules struct { Required *bool `json:"required,omitempty"` } -func (o *DurationRules) GetConst() *string { - if o == nil { +func (d *DurationRules) GetConst() *string { + if d == nil { return nil } - return o.Const + return d.Const } -func (o *DurationRules) GetGt() *string { - if o == nil { +func (d *DurationRules) GetGt() *string { + if d == nil { return nil } - return o.Gt + return d.Gt } -func (o *DurationRules) GetGte() *string { - if o == nil { +func (d *DurationRules) GetGte() *string { + if d == nil { return nil } - return o.Gte + return d.Gte } -func (o *DurationRules) GetIn() []string { - if o == nil { +func (d *DurationRules) GetIn() []string { + if d == nil { return nil } - return o.In + return d.In } -func (o *DurationRules) GetLt() *string { - if o == nil { +func (d *DurationRules) GetLt() *string { + if d == nil { return nil } - return o.Lt + return d.Lt } -func (o *DurationRules) GetLte() *string { - if o == nil { +func (d *DurationRules) GetLte() *string { + if d == nil { return nil } - return o.Lte + return d.Lte } -func (o *DurationRules) GetNotIn() []string { - if o == nil { +func (d *DurationRules) GetNotIn() []string { + if d == nil { return nil } - return o.NotIn + return d.NotIn } -func (o *DurationRules) GetRequired() *bool { - if o == nil { +func (d *DurationRules) GetRequired() *bool { + if d == nil { return nil } - return o.Required + return d.Required } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editormarker.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editormarker.go index 63b0c2ea..fe441be9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editormarker.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editormarker.go @@ -17,6 +17,17 @@ func (e Severity) ToPointer() *Severity { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Severity) IsExact() bool { + if e != nil { + switch *e { + case "UNKNOWN", "HINT", "INFO", "WARNING", "ERROR": + return true + } + } + return false +} + // The EditorMarker message. type EditorMarker struct { // The endColumn field. @@ -33,44 +44,44 @@ type EditorMarker struct { StartLineNumber *int `json:"startLineNumber,omitempty"` } -func (o *EditorMarker) GetEndColumn() *int { - if o == nil { +func (e *EditorMarker) GetEndColumn() *int { + if e == nil { return nil } - return o.EndColumn + return e.EndColumn } -func (o *EditorMarker) GetEndLineNumber() *int { - if o == nil { +func (e *EditorMarker) GetEndLineNumber() *int { + if e == nil { return nil } - return o.EndLineNumber + return e.EndLineNumber } -func (o *EditorMarker) GetMessage() *string { - if o == nil { +func (e *EditorMarker) GetMessage() *string { + if e == nil { return nil } - return o.Message + return e.Message } -func (o *EditorMarker) GetSeverity() *Severity { - if o == nil { +func (e *EditorMarker) GetSeverity() *Severity { + if e == nil { return nil } - return o.Severity + return e.Severity } -func (o *EditorMarker) GetStartColumn() *int { - if o == nil { +func (e *EditorMarker) GetStartColumn() *int { + if e == nil { return nil } - return o.StartColumn + return e.StartColumn } -func (o *EditorMarker) GetStartLineNumber() *int { - if o == nil { +func (e *EditorMarker) GetStartLineNumber() *int { + if e == nil { return nil } - return o.StartLineNumber + return e.StartLineNumber } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editorvalidaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editorvalidaterequest.go index 47c009c6..95a306b3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editorvalidaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editorvalidaterequest.go @@ -8,9 +8,9 @@ type EditorValidateRequest struct { Text *string `json:"text,omitempty"` } -func (o *EditorValidateRequest) GetText() *string { - if o == nil { +func (e *EditorValidateRequest) GetText() *string { + if e == nil { return nil } - return o.Text + return e.Text } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editorvalidateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editorvalidateresponse.go index bcc029d8..b572db60 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editorvalidateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/editorvalidateresponse.go @@ -8,9 +8,9 @@ type EditorValidateResponse struct { Markers []EditorMarker `json:"markers,omitempty"` } -func (o *EditorValidateResponse) GetMarkers() []EditorMarker { - if o == nil { +func (e *EditorValidateResponse) GetMarkers() []EditorMarker { + if e == nil { return nil } - return o.Markers + return e.Markers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/emailnotifications.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/emailnotifications.go index 2084a054..c42ab999 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/emailnotifications.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/emailnotifications.go @@ -10,16 +10,16 @@ type EmailNotifications struct { IdentityUserIds []string `json:"identityUserIds,omitempty"` } -func (o *EmailNotifications) GetEnabled() *bool { - if o == nil { +func (e *EmailNotifications) GetEnabled() *bool { + if e == nil { return nil } - return o.Enabled + return e.Enabled } -func (o *EmailNotifications) GetIdentityUserIds() []string { - if o == nil { +func (e *EmailNotifications) GetIdentityUserIds() []string { + if e == nil { return nil } - return o.IdentityUserIds + return e.IdentityUserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/encrypteddata.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/encrypteddata.go index 8a22ba74..75b83851 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/encrypteddata.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/encrypteddata.go @@ -18,44 +18,44 @@ type EncryptedData struct { Schema *string `json:"schema,omitempty"` } -func (o *EncryptedData) GetDescription() *string { - if o == nil { +func (e *EncryptedData) GetDescription() *string { + if e == nil { return nil } - return o.Description + return e.Description } -func (o *EncryptedData) GetEncryptedBytes() *string { - if o == nil { +func (e *EncryptedData) GetEncryptedBytes() *string { + if e == nil { return nil } - return o.EncryptedBytes + return e.EncryptedBytes } -func (o *EncryptedData) GetKeyID() *string { - if o == nil { +func (e *EncryptedData) GetKeyID() *string { + if e == nil { return nil } - return o.KeyID + return e.KeyID } -func (o *EncryptedData) GetName() *string { - if o == nil { +func (e *EncryptedData) GetName() *string { + if e == nil { return nil } - return o.Name + return e.Name } -func (o *EncryptedData) GetProvider() *string { - if o == nil { +func (e *EncryptedData) GetProvider() *string { + if e == nil { return nil } - return o.Provider + return e.Provider } -func (o *EncryptedData) GetSchema() *string { - if o == nil { +func (e *EncryptedData) GetSchema() *string { + if e == nil { return nil } - return o.Schema + return e.Schema } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusioncriteria.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusioncriteria.go new file mode 100644 index 00000000..42da98c6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusioncriteria.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementExclusionCriteria message. +type EntitlementExclusionCriteria struct { + // The excludedAppIds field. + ExcludedAppIds []string `json:"excludedAppIds,omitempty"` + // The excludedComplianceFrameworkIds field. + ExcludedComplianceFrameworkIds []string `json:"excludedComplianceFrameworkIds,omitempty"` + // The excludedResourceTypeIds field. + ExcludedResourceTypeIds []string `json:"excludedResourceTypeIds,omitempty"` + // The excludedRiskLevelIds field. + ExcludedRiskLevelIds []string `json:"excludedRiskLevelIds,omitempty"` +} + +func (e *EntitlementExclusionCriteria) GetExcludedAppIds() []string { + if e == nil { + return nil + } + return e.ExcludedAppIds +} + +func (e *EntitlementExclusionCriteria) GetExcludedComplianceFrameworkIds() []string { + if e == nil { + return nil + } + return e.ExcludedComplianceFrameworkIds +} + +func (e *EntitlementExclusionCriteria) GetExcludedResourceTypeIds() []string { + if e == nil { + return nil + } + return e.ExcludedResourceTypeIds +} + +func (e *EntitlementExclusionCriteria) GetExcludedRiskLevelIds() []string { + if e == nil { + return nil + } + return e.ExcludedRiskLevelIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionlist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionlist.go new file mode 100644 index 00000000..7cabf72b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionlist.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementExclusionList message. +type EntitlementExclusionList struct { + // The excludedAppEntitlementRefs field. + ExcludedAppEntitlementRefs []AppEntitlementRef `json:"excludedAppEntitlementRefs,omitempty"` +} + +func (e *EntitlementExclusionList) GetExcludedAppEntitlementRefs() []AppEntitlementRef { + if e == nil { + return nil + } + return e.ExcludedAppEntitlementRefs +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionlistcel.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionlistcel.go new file mode 100644 index 00000000..ff89bede --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionlistcel.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementExclusionListCel message. +type EntitlementExclusionListCel struct { + // The excludedAppEntitlementRefsCel field. + ExcludedAppEntitlementRefsCel *string `json:"excludedAppEntitlementRefsCel,omitempty"` +} + +func (e *EntitlementExclusionListCel) GetExcludedAppEntitlementRefsCel() *string { + if e == nil { + return nil + } + return e.ExcludedAppEntitlementRefsCel +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionnone.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionnone.go new file mode 100644 index 00000000..222e0ebc --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementexclusionnone.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementExclusionNone message. +type EntitlementExclusionNone struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementfilter.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementfilter.go index 944c2573..c9a6c8a7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementfilter.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementfilter.go @@ -12,23 +12,23 @@ type EntitlementFilter struct { AppID *string `json:"appId,omitempty"` } -func (o *EntitlementFilter) GetAppEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (e *EntitlementFilter) GetAppEntitlementRefs() []AppEntitlementRef { + if e == nil { return nil } - return o.AppEntitlementRefs + return e.AppEntitlementRefs } -func (o *EntitlementFilter) GetAppEntitlementRefsCel() *string { - if o == nil { +func (e *EntitlementFilter) GetAppEntitlementRefsCel() *string { + if e == nil { return nil } - return o.AppEntitlementRefsCel + return e.AppEntitlementRefsCel } -func (o *EntitlementFilter) GetAppID() *string { - if o == nil { +func (e *EntitlementFilter) GetAppID() *string { + if e == nil { return nil } - return o.AppID + return e.AppID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionall.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionall.go new file mode 100644 index 00000000..1dabf9f8 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionall.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementInclusionAll message. +type EntitlementInclusionAll struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusioncriteria.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusioncriteria.go new file mode 100644 index 00000000..021dc476 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusioncriteria.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementInclusionCriteria message. +type EntitlementInclusionCriteria struct { + // The appIds field. + AppIds []string `json:"appIds,omitempty"` + // The complianceFrameworkIds field. + ComplianceFrameworkIds []string `json:"complianceFrameworkIds,omitempty"` + // The resourceTypeIds field. + ResourceTypeIds []string `json:"resourceTypeIds,omitempty"` + // The riskLevelIds field. + RiskLevelIds []string `json:"riskLevelIds,omitempty"` +} + +func (e *EntitlementInclusionCriteria) GetAppIds() []string { + if e == nil { + return nil + } + return e.AppIds +} + +func (e *EntitlementInclusionCriteria) GetComplianceFrameworkIds() []string { + if e == nil { + return nil + } + return e.ComplianceFrameworkIds +} + +func (e *EntitlementInclusionCriteria) GetResourceTypeIds() []string { + if e == nil { + return nil + } + return e.ResourceTypeIds +} + +func (e *EntitlementInclusionCriteria) GetRiskLevelIds() []string { + if e == nil { + return nil + } + return e.RiskLevelIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionlist.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionlist.go new file mode 100644 index 00000000..c093cac6 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionlist.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementInclusionList message. +type EntitlementInclusionList struct { + // The appEntitlementRefs field. + AppEntitlementRefs []AppEntitlementRef `json:"appEntitlementRefs,omitempty"` +} + +func (e *EntitlementInclusionList) GetAppEntitlementRefs() []AppEntitlementRef { + if e == nil { + return nil + } + return e.AppEntitlementRefs +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionlistcel.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionlistcel.go new file mode 100644 index 00000000..8970b763 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementinclusionlistcel.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementInclusionListCel message. +type EntitlementInclusionListCel struct { + // The appEntitlementRefsCel field. + AppEntitlementRefsCel *string `json:"appEntitlementRefsCel,omitempty"` +} + +func (e *EntitlementInclusionListCel) GetAppEntitlementRefsCel() *string { + if e == nil { + return nil + } + return e.AppEntitlementRefsCel +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementownerapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementownerapproval.go index e44bd85d..dbde3734 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementownerapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementownerapproval.go @@ -8,27 +8,54 @@ type EntitlementOwnerApproval struct { AllowSelfApproval *bool `json:"allowSelfApproval,omitempty"` // Configuration to allow a fallback if the entitlement owner cannot be identified. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and the entitlement owner cannot be identified. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if fallback is enabled and the entitlement owner cannot be identified. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` } -func (o *EntitlementOwnerApproval) GetAllowSelfApproval() *bool { - if o == nil { +func (e *EntitlementOwnerApproval) GetAllowSelfApproval() *bool { + if e == nil { return nil } - return o.AllowSelfApproval + return e.AllowSelfApproval } -func (o *EntitlementOwnerApproval) GetFallback() *bool { - if o == nil { +func (e *EntitlementOwnerApproval) GetFallback() *bool { + if e == nil { return nil } - return o.Fallback + return e.Fallback } -func (o *EntitlementOwnerApproval) GetFallbackUserIds() []string { - if o == nil { +func (e *EntitlementOwnerApproval) GetFallbackGroupIds() []AppEntitlementReference { + if e == nil { return nil } - return o.FallbackUserIds + return e.FallbackGroupIds +} + +func (e *EntitlementOwnerApproval) GetFallbackUserIds() []string { + if e == nil { + return nil + } + return e.FallbackUserIds +} + +func (e *EntitlementOwnerApproval) GetIsGroupFallbackEnabled() *bool { + if e == nil { + return nil + } + return e.IsGroupFallbackEnabled +} + +func (e *EntitlementOwnerApproval) GetRequireDistinctApprovers() *bool { + if e == nil { + return nil + } + return e.RequireDistinctApprovers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementtodetails.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementtodetails.go new file mode 100644 index 00000000..713d8e1c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/entitlementtodetails.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EntitlementToDetails message. +type EntitlementToDetails struct { + // The entitlementDetails field. + EntitlementDetails map[string]CampaignEntitlementDetails `json:"entitlementDetails,omitempty"` +} + +func (e *EntitlementToDetails) GetEntitlementDetails() map[string]CampaignEntitlementDetails { + if e == nil { + return nil + } + return e.EntitlementDetails +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/enumrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/enumrules.go index 0ee3b84b..8a6ee81c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/enumrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/enumrules.go @@ -17,30 +17,30 @@ type EnumRules struct { NotIn []int `json:"notIn,omitempty"` } -func (o *EnumRules) GetConst() *int { - if o == nil { +func (e *EnumRules) GetConst() *int { + if e == nil { return nil } - return o.Const + return e.Const } -func (o *EnumRules) GetDefinedOnly() *bool { - if o == nil { +func (e *EnumRules) GetDefinedOnly() *bool { + if e == nil { return nil } - return o.DefinedOnly + return e.DefinedOnly } -func (o *EnumRules) GetIn() []int { - if o == nil { +func (e *EnumRules) GetIn() []int { + if e == nil { return nil } - return o.In + return e.In } -func (o *EnumRules) GetNotIn() []int { - if o == nil { +func (e *EnumRules) GetNotIn() []int { + if e == nil { return nil } - return o.NotIn + return e.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/erroredaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/erroredaction.go index a1d87753..e2511860 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/erroredaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/erroredaction.go @@ -21,29 +21,29 @@ func (e ErroredAction) MarshalJSON() ([]byte, error) { } func (e *ErroredAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { return err } return nil } -func (o *ErroredAction) GetDescription() *string { - if o == nil { +func (e *ErroredAction) GetDescription() *string { + if e == nil { return nil } - return o.Description + return e.Description } -func (o *ErroredAction) GetErrorCode() *string { - if o == nil { +func (e *ErroredAction) GetErrorCode() *string { + if e == nil { return nil } - return o.ErrorCode + return e.ErrorCode } -func (o *ErroredAction) GetErroredAt() *time.Time { - if o == nil { +func (e *ErroredAction) GetErroredAt() *time.Time { + if e == nil { return nil } - return o.ErroredAt + return e.ErroredAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/escalation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/escalation.go index 191f9c1a..b5c39599 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/escalation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/escalation.go @@ -7,41 +7,61 @@ package shared // This message contains a oneof named escalation_policy. Only a single field of the following list may be set at a time: // - replacePolicy // - reassignToApprovers +// - cancelTicket +// - skipStep type Escalation struct { + // The CancelTicket message. + CancelTicket *CancelTicket `json:"cancelTicket,omitempty"` // The ReassignToApprovers message. ReassignToApprovers *ReassignToApprovers `json:"reassignToApprovers,omitempty"` // The ReplacePolicy message. ReplacePolicy *ReplacePolicy `json:"replacePolicy,omitempty"` + // The SkipStep message. + SkipStep *SkipStep `json:"skipStep,omitempty"` // The escalationComment field. EscalationComment *string `json:"escalationComment,omitempty"` // The expiration field. Expiration *int64 `integer:"string" json:"expiration,omitempty"` } -func (o *Escalation) GetReassignToApprovers() *ReassignToApprovers { - if o == nil { +func (e *Escalation) GetCancelTicket() *CancelTicket { + if e == nil { return nil } - return o.ReassignToApprovers + return e.CancelTicket } -func (o *Escalation) GetReplacePolicy() *ReplacePolicy { - if o == nil { +func (e *Escalation) GetReassignToApprovers() *ReassignToApprovers { + if e == nil { return nil } - return o.ReplacePolicy + return e.ReassignToApprovers } -func (o *Escalation) GetEscalationComment() *string { - if o == nil { +func (e *Escalation) GetReplacePolicy() *ReplacePolicy { + if e == nil { return nil } - return o.EscalationComment + return e.ReplacePolicy } -func (o *Escalation) GetExpiration() *int64 { - if o == nil { +func (e *Escalation) GetSkipStep() *SkipStep { + if e == nil { return nil } - return o.Expiration + return e.SkipStep +} + +func (e *Escalation) GetEscalationComment() *string { + if e == nil { + return nil + } + return e.EscalationComment +} + +func (e *Escalation) GetExpiration() *int64 { + if e == nil { + return nil + } + return e.Expiration } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/escalationinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/escalationinstance.go index 0e95fa86..328ac967 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/escalationinstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/escalationinstance.go @@ -12,11 +12,17 @@ import ( // This message contains a oneof named escalation_policy. Only a single field of the following list may be set at a time: // - replacePolicy // - reassignToApprovers +// - cancelTicket +// - skipStep type EscalationInstance struct { + // The CancelTicket message. + CancelTicket *CancelTicket `json:"cancelTicket,omitempty"` // The ReassignToApprovers message. ReassignToApprovers *ReassignToApprovers `json:"reassignToApprovers,omitempty"` // The ReplacePolicy message. ReplacePolicy *ReplacePolicy `json:"replacePolicy,omitempty"` + // The SkipStep message. + SkipStep *SkipStep `json:"skipStep,omitempty"` // The alreadyEscalated field. AlreadyEscalated *bool `json:"alreadyEscalated,omitempty"` // The escalationComment field. @@ -29,43 +35,57 @@ func (e EscalationInstance) MarshalJSON() ([]byte, error) { } func (e *EscalationInstance) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { return err } return nil } -func (o *EscalationInstance) GetReassignToApprovers() *ReassignToApprovers { - if o == nil { +func (e *EscalationInstance) GetCancelTicket() *CancelTicket { + if e == nil { return nil } - return o.ReassignToApprovers + return e.CancelTicket } -func (o *EscalationInstance) GetReplacePolicy() *ReplacePolicy { - if o == nil { +func (e *EscalationInstance) GetReassignToApprovers() *ReassignToApprovers { + if e == nil { return nil } - return o.ReplacePolicy + return e.ReassignToApprovers } -func (o *EscalationInstance) GetAlreadyEscalated() *bool { - if o == nil { +func (e *EscalationInstance) GetReplacePolicy() *ReplacePolicy { + if e == nil { return nil } - return o.AlreadyEscalated + return e.ReplacePolicy } -func (o *EscalationInstance) GetEscalationComment() *string { - if o == nil { +func (e *EscalationInstance) GetSkipStep() *SkipStep { + if e == nil { return nil } - return o.EscalationComment + return e.SkipStep } -func (o *EscalationInstance) GetExpiresAt() *time.Time { - if o == nil { +func (e *EscalationInstance) GetAlreadyEscalated() *bool { + if e == nil { return nil } - return o.ExpiresAt + return e.AlreadyEscalated +} + +func (e *EscalationInstance) GetEscalationComment() *string { + if e == nil { + return nil + } + return e.EscalationComment +} + +func (e *EscalationInstance) GetExpiresAt() *time.Time { + if e == nil { + return nil + } + return e.ExpiresAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/evaluateexpressions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/evaluateexpressions.go new file mode 100644 index 00000000..30667dfb --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/evaluateexpressions.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The EvaluateExpressions message. +type EvaluateExpressions struct { + // The expressions field. + Expressions []Expression `json:"expressions,omitempty"` +} + +func (e *EvaluateExpressions) GetExpressions() []Expression { + if e == nil { + return nil + } + return e.Expressions +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/executeautomationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/executeautomationrequest.go index adfe46a0..be16851c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/executeautomationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/executeautomationrequest.go @@ -8,9 +8,9 @@ type ExecuteAutomationRequest struct { AutomationContext *AutomationContext `json:"context,omitempty"` } -func (o *ExecuteAutomationRequest) GetAutomationContext() *AutomationContext { - if o == nil { +func (e *ExecuteAutomationRequest) GetAutomationContext() *AutomationContext { + if e == nil { return nil } - return o.AutomationContext + return e.AutomationContext } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/executeautomationresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/executeautomationresponse.go index c4fe9522..79119fbb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/executeautomationresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/executeautomationresponse.go @@ -8,9 +8,9 @@ type ExecuteAutomationResponse struct { ExecutionID *int64 `integer:"string" json:"executionId,omitempty"` } -func (o *ExecuteAutomationResponse) GetExecutionID() *int64 { - if o == nil { +func (e *ExecuteAutomationResponse) GetExecutionID() *int64 { + if e == nil { return nil } - return o.ExecutionID + return e.ExecutionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expiringuserdelegationbinding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expiringuserdelegationbinding.go new file mode 100644 index 00000000..5b29fefd --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expiringuserdelegationbinding.go @@ -0,0 +1,81 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The ExpiringUserDelegationBinding message. +type ExpiringUserDelegationBinding struct { + CreatedAt *time.Time `json:"createdAt,omitempty"` + // The delegatedUserId field. + DelegatedUserID *string `json:"delegatedUserId,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + ExpirationAt *time.Time `json:"expirationAt,omitempty"` + StartAt *time.Time `json:"startAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + // The userId field. + UserID *string `json:"userId,omitempty"` +} + +func (e ExpiringUserDelegationBinding) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *ExpiringUserDelegationBinding) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { + return err + } + return nil +} + +func (e *ExpiringUserDelegationBinding) GetCreatedAt() *time.Time { + if e == nil { + return nil + } + return e.CreatedAt +} + +func (e *ExpiringUserDelegationBinding) GetDelegatedUserID() *string { + if e == nil { + return nil + } + return e.DelegatedUserID +} + +func (e *ExpiringUserDelegationBinding) GetDeletedAt() *time.Time { + if e == nil { + return nil + } + return e.DeletedAt +} + +func (e *ExpiringUserDelegationBinding) GetExpirationAt() *time.Time { + if e == nil { + return nil + } + return e.ExpirationAt +} + +func (e *ExpiringUserDelegationBinding) GetStartAt() *time.Time { + if e == nil { + return nil + } + return e.StartAt +} + +func (e *ExpiringUserDelegationBinding) GetUpdatedAt() *time.Time { + if e == nil { + return nil + } + return e.UpdatedAt +} + +func (e *ExpiringUserDelegationBinding) GetUserID() *string { + if e == nil { + return nil + } + return e.UserID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporter.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporter.go index 9b486d1a..ddd540e8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporter.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporter.go @@ -21,6 +21,17 @@ func (e ExporterState) ToPointer() *ExporterState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ExporterState) IsExact() bool { + if e != nil { + switch *e { + case "EXPORT_STATE_UNSPECIFIED", "EXPORT_STATE_EXPORTING", "EXPORT_STATE_WAITING", "EXPORT_STATE_ERROR": + return true + } + } + return false +} + // The Exporter message. // // This message contains a oneof named export_to. Only a single field of the following list may be set at a time: @@ -46,64 +57,64 @@ func (e Exporter) MarshalJSON() ([]byte, error) { } func (e *Exporter) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { return err } return nil } -func (o *Exporter) GetExportToDatasource() *ExportToDatasource { - if o == nil { +func (e *Exporter) GetExportToDatasource() *ExportToDatasource { + if e == nil { return nil } - return o.ExportToDatasource + return e.ExportToDatasource } -func (o *Exporter) GetCreatedAt() *time.Time { - if o == nil { +func (e *Exporter) GetCreatedAt() *time.Time { + if e == nil { return nil } - return o.CreatedAt + return e.CreatedAt } -func (o *Exporter) GetDeletedAt() *time.Time { - if o == nil { +func (e *Exporter) GetDeletedAt() *time.Time { + if e == nil { return nil } - return o.DeletedAt + return e.DeletedAt } -func (o *Exporter) GetDisplayName() *string { - if o == nil { +func (e *Exporter) GetDisplayName() *string { + if e == nil { return nil } - return o.DisplayName + return e.DisplayName } -func (o *Exporter) GetExportID() *string { - if o == nil { +func (e *Exporter) GetExportID() *string { + if e == nil { return nil } - return o.ExportID + return e.ExportID } -func (o *Exporter) GetState() *ExporterState { - if o == nil { +func (e *Exporter) GetState() *ExporterState { + if e == nil { return nil } - return o.State + return e.State } -func (o *Exporter) GetUpdatedAt() *time.Time { - if o == nil { +func (e *Exporter) GetUpdatedAt() *time.Time { + if e == nil { return nil } - return o.UpdatedAt + return e.UpdatedAt } -func (o *Exporter) GetWatermarkEventID() *string { - if o == nil { +func (e *Exporter) GetWatermarkEventID() *string { + if e == nil { return nil } - return o.WatermarkEventID + return e.WatermarkEventID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporterinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporterinput.go index edb6d2ab..5402316f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporterinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporterinput.go @@ -13,16 +13,16 @@ type ExporterInput struct { DisplayName *string `json:"displayName,omitempty"` } -func (o *ExporterInput) GetExportToDatasource() *ExportToDatasource { - if o == nil { +func (e *ExporterInput) GetExportToDatasource() *ExportToDatasource { + if e == nil { return nil } - return o.ExportToDatasource + return e.ExportToDatasource } -func (o *ExporterInput) GetDisplayName() *string { - if o == nil { +func (e *ExporterInput) GetDisplayName() *string { + if e == nil { return nil } - return o.DisplayName + return e.DisplayName } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporterref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporterref.go index 691fbd95..2a2e4456 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporterref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporterref.go @@ -8,9 +8,9 @@ type ExporterRef struct { ExportID *string `json:"exportId,omitempty"` } -func (o *ExporterRef) GetExportID() *string { - if o == nil { +func (e *ExporterRef) GetExportID() *string { + if e == nil { return nil } - return o.ExportID + return e.ExportID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicecreaterequest.go index f8ae6cfe..f9622729 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicecreaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicecreaterequest.go @@ -13,16 +13,16 @@ type ExportServiceCreateRequest struct { DisplayName *string `json:"displayName,omitempty"` } -func (o *ExportServiceCreateRequest) GetExportToDatasource() *ExportToDatasource { - if o == nil { +func (e *ExportServiceCreateRequest) GetExportToDatasource() *ExportToDatasource { + if e == nil { return nil } - return o.ExportToDatasource + return e.ExportToDatasource } -func (o *ExportServiceCreateRequest) GetDisplayName() *string { - if o == nil { +func (e *ExportServiceCreateRequest) GetDisplayName() *string { + if e == nil { return nil } - return o.DisplayName + return e.DisplayName } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicecreateresponse.go index d7dcff7c..575325bb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicecreateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicecreateresponse.go @@ -12,9 +12,9 @@ type ExportServiceCreateResponse struct { Exporter *Exporter `json:"exporter,omitempty"` } -func (o *ExportServiceCreateResponse) GetExporter() *Exporter { - if o == nil { +func (e *ExportServiceCreateResponse) GetExporter() *Exporter { + if e == nil { return nil } - return o.Exporter + return e.Exporter } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicegetresponse.go index 17c7c3e9..a2bcaf48 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicegetresponse.go @@ -12,9 +12,9 @@ type ExportServiceGetResponse struct { Exporter *Exporter `json:"exporter,omitempty"` } -func (o *ExportServiceGetResponse) GetExporter() *Exporter { - if o == nil { +func (e *ExportServiceGetResponse) GetExporter() *Exporter { + if e == nil { return nil } - return o.Exporter + return e.Exporter } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelisteventsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelisteventsrequest.go index 42ab21e4..e4ed8d9a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelisteventsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelisteventsrequest.go @@ -10,16 +10,16 @@ type ExportServiceListEventsRequest struct { PageToken *string `json:"pageToken,omitempty"` } -func (o *ExportServiceListEventsRequest) GetPageSize() *int { - if o == nil { +func (e *ExportServiceListEventsRequest) GetPageSize() *int { + if e == nil { return nil } - return o.PageSize + return e.PageSize } -func (o *ExportServiceListEventsRequest) GetPageToken() *string { - if o == nil { +func (e *ExportServiceListEventsRequest) GetPageToken() *string { + if e == nil { return nil } - return o.PageToken + return e.PageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelisteventsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelisteventsresponse.go index e725ae0a..ecac17d4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelisteventsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelisteventsresponse.go @@ -10,16 +10,16 @@ type ExportServiceListEventsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ExportServiceListEventsResponse) GetList() []map[string]any { - if o == nil { +func (e *ExportServiceListEventsResponse) GetList() []map[string]any { + if e == nil { return nil } - return o.List + return e.List } -func (o *ExportServiceListEventsResponse) GetNextPageToken() *string { - if o == nil { +func (e *ExportServiceListEventsResponse) GetNextPageToken() *string { + if e == nil { return nil } - return o.NextPageToken + return e.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelistresponse.go index cc9da2a1..13e56771 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportservicelistresponse.go @@ -10,16 +10,16 @@ type ExportServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ExportServiceListResponse) GetList() []Exporter { - if o == nil { +func (e *ExportServiceListResponse) GetList() []Exporter { + if e == nil { return nil } - return o.List + return e.List } -func (o *ExportServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (e *ExportServiceListResponse) GetNextPageToken() *string { + if e == nil { return nil } - return o.NextPageToken + return e.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportserviceupdaterequest.go index f0564811..6741c902 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportserviceupdaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportserviceupdaterequest.go @@ -13,16 +13,16 @@ type ExportServiceUpdateRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *ExportServiceUpdateRequest) GetExporter() *ExporterInput { - if o == nil { +func (e *ExportServiceUpdateRequest) GetExporter() *ExporterInput { + if e == nil { return nil } - return o.Exporter + return e.Exporter } -func (o *ExportServiceUpdateRequest) GetUpdateMask() *string { - if o == nil { +func (e *ExportServiceUpdateRequest) GetUpdateMask() *string { + if e == nil { return nil } - return o.UpdateMask + return e.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportserviceupdateresponse.go index 9612784b..de77e2fd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportserviceupdateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportserviceupdateresponse.go @@ -12,9 +12,9 @@ type ExportServiceUpdateResponse struct { Exporter *Exporter `json:"exporter,omitempty"` } -func (o *ExportServiceUpdateResponse) GetExporter() *Exporter { - if o == nil { +func (e *ExportServiceUpdateResponse) GetExporter() *Exporter { + if e == nil { return nil } - return o.Exporter + return e.Exporter } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportssearchservicesearchrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportssearchservicesearchrequest.go index dd9446b7..f6bf32ba 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportssearchservicesearchrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportssearchservicesearchrequest.go @@ -16,37 +16,37 @@ type ExportsSearchServiceSearchRequest struct { Refs []ExporterRef `json:"refs,omitempty"` } -func (o *ExportsSearchServiceSearchRequest) GetDisplayName() *string { - if o == nil { +func (e *ExportsSearchServiceSearchRequest) GetDisplayName() *string { + if e == nil { return nil } - return o.DisplayName + return e.DisplayName } -func (o *ExportsSearchServiceSearchRequest) GetPageSize() *int { - if o == nil { +func (e *ExportsSearchServiceSearchRequest) GetPageSize() *int { + if e == nil { return nil } - return o.PageSize + return e.PageSize } -func (o *ExportsSearchServiceSearchRequest) GetPageToken() *string { - if o == nil { +func (e *ExportsSearchServiceSearchRequest) GetPageToken() *string { + if e == nil { return nil } - return o.PageToken + return e.PageToken } -func (o *ExportsSearchServiceSearchRequest) GetQuery() *string { - if o == nil { +func (e *ExportsSearchServiceSearchRequest) GetQuery() *string { + if e == nil { return nil } - return o.Query + return e.Query } -func (o *ExportsSearchServiceSearchRequest) GetRefs() []ExporterRef { - if o == nil { +func (e *ExportsSearchServiceSearchRequest) GetRefs() []ExporterRef { + if e == nil { return nil } - return o.Refs + return e.Refs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportssearchservicesearchresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportssearchservicesearchresponse.go index db6d3414..f2928b11 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportssearchservicesearchresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exportssearchservicesearchresponse.go @@ -10,16 +10,16 @@ type ExportsSearchServiceSearchResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ExportsSearchServiceSearchResponse) GetList() []Exporter { - if o == nil { +func (e *ExportsSearchServiceSearchResponse) GetList() []Exporter { + if e == nil { return nil } - return o.List + return e.List } -func (o *ExportsSearchServiceSearchResponse) GetNextPageToken() *string { - if o == nil { +func (e *ExportsSearchServiceSearchResponse) GetNextPageToken() *string { + if e == nil { return nil } - return o.NextPageToken + return e.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporttodatasource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporttodatasource.go index ef66bf3f..c7d49786 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporttodatasource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/exporttodatasource.go @@ -15,6 +15,17 @@ func (e Format) ToPointer() *Format { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Format) IsExact() bool { + if e != nil { + switch *e { + case "EXPORT_FORMAT_UNSPECIFIED", "EXPORT_FORMAT_OCSF_JSON_ZSTD", "EXPORT_FORMAT_OCSF_JSON_GZIP": + return true + } + } + return false +} + // The ExportToDatasource message. type ExportToDatasource struct { // The datasourceId field. @@ -25,23 +36,23 @@ type ExportToDatasource struct { Prefix *string `json:"prefix,omitempty"` } -func (o *ExportToDatasource) GetDatasourceID() *string { - if o == nil { +func (e *ExportToDatasource) GetDatasourceID() *string { + if e == nil { return nil } - return o.DatasourceID + return e.DatasourceID } -func (o *ExportToDatasource) GetFormat() *Format { - if o == nil { +func (e *ExportToDatasource) GetFormat() *Format { + if e == nil { return nil } - return o.Format + return e.Format } -func (o *ExportToDatasource) GetPrefix() *string { - if o == nil { +func (e *ExportToDatasource) GetPrefix() *string { + if e == nil { return nil } - return o.Prefix + return e.Prefix } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expression.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expression.go new file mode 100644 index 00000000..49621fb7 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expression.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The Expression message. +type Expression struct { + // The expressionCel field. + ExpressionCel *string `json:"expressionCel,omitempty"` + // The isSecret field. + IsSecret *bool `json:"isSecret,omitempty"` + // The key field. + Key *string `json:"key,omitempty"` +} + +func (e *Expression) GetExpressionCel() *string { + if e == nil { + return nil + } + return e.ExpressionCel +} + +func (e *Expression) GetIsSecret() *bool { + if e == nil { + return nil + } + return e.IsSecret +} + +func (e *Expression) GetKey() *string { + if e == nil { + return nil + } + return e.Key +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expressionapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expressionapproval.go index c23127fe..063c1668 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expressionapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expressionapproval.go @@ -12,41 +12,68 @@ type ExpressionApproval struct { Expressions []string `json:"expressions,omitempty"` // Configuration to allow a fallback if the expression does not return a valid list of users. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and the expression does not return a valid list of users. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if and the expression does not return a valid list of users. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` } -func (o *ExpressionApproval) GetAllowSelfApproval() *bool { - if o == nil { +func (e *ExpressionApproval) GetAllowSelfApproval() *bool { + if e == nil { return nil } - return o.AllowSelfApproval + return e.AllowSelfApproval } -func (o *ExpressionApproval) GetAssignedUserIds() []string { - if o == nil { +func (e *ExpressionApproval) GetAssignedUserIds() []string { + if e == nil { return nil } - return o.AssignedUserIds + return e.AssignedUserIds } -func (o *ExpressionApproval) GetExpressions() []string { - if o == nil { +func (e *ExpressionApproval) GetExpressions() []string { + if e == nil { return nil } - return o.Expressions + return e.Expressions } -func (o *ExpressionApproval) GetFallback() *bool { - if o == nil { +func (e *ExpressionApproval) GetFallback() *bool { + if e == nil { return nil } - return o.Fallback + return e.Fallback } -func (o *ExpressionApproval) GetFallbackUserIds() []string { - if o == nil { +func (e *ExpressionApproval) GetFallbackGroupIds() []AppEntitlementReference { + if e == nil { return nil } - return o.FallbackUserIds + return e.FallbackGroupIds +} + +func (e *ExpressionApproval) GetFallbackUserIds() []string { + if e == nil { + return nil + } + return e.FallbackUserIds +} + +func (e *ExpressionApproval) GetIsGroupFallbackEnabled() *bool { + if e == nil { + return nil + } + return e.IsGroupFallbackEnabled +} + +func (e *ExpressionApproval) GetRequireDistinctApprovers() *bool { + if e == nil { + return nil + } + return e.RequireDistinctApprovers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expressionapprovalinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expressionapprovalinput.go index 4b90c2f6..5415ad1e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expressionapprovalinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/expressionapprovalinput.go @@ -10,34 +10,61 @@ type ExpressionApprovalInput struct { Expressions []string `json:"expressions,omitempty"` // Configuration to allow a fallback if the expression does not return a valid list of users. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and the expression does not return a valid list of users. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if and the expression does not return a valid list of users. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` } -func (o *ExpressionApprovalInput) GetAllowSelfApproval() *bool { - if o == nil { +func (e *ExpressionApprovalInput) GetAllowSelfApproval() *bool { + if e == nil { return nil } - return o.AllowSelfApproval + return e.AllowSelfApproval } -func (o *ExpressionApprovalInput) GetExpressions() []string { - if o == nil { +func (e *ExpressionApprovalInput) GetExpressions() []string { + if e == nil { return nil } - return o.Expressions + return e.Expressions } -func (o *ExpressionApprovalInput) GetFallback() *bool { - if o == nil { +func (e *ExpressionApprovalInput) GetFallback() *bool { + if e == nil { return nil } - return o.Fallback + return e.Fallback } -func (o *ExpressionApprovalInput) GetFallbackUserIds() []string { - if o == nil { +func (e *ExpressionApprovalInput) GetFallbackGroupIds() []AppEntitlementReference { + if e == nil { return nil } - return o.FallbackUserIds + return e.FallbackGroupIds +} + +func (e *ExpressionApprovalInput) GetFallbackUserIds() []string { + if e == nil { + return nil + } + return e.FallbackUserIds +} + +func (e *ExpressionApprovalInput) GetIsGroupFallbackEnabled() *bool { + if e == nil { + return nil + } + return e.IsGroupFallbackEnabled +} + +func (e *ExpressionApprovalInput) GetRequireDistinctApprovers() *bool { + if e == nil { + return nil + } + return e.RequireDistinctApprovers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/externalref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/externalref.go index a1043971..0adac617 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/externalref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/externalref.go @@ -14,6 +14,17 @@ func (e ExternalRefSource) ToPointer() *ExternalRefSource { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ExternalRefSource) IsExact() bool { + if e != nil { + switch *e { + case "UNSPECIFIED", "JIRA": + return true + } + } + return false +} + // ExternalRef - A reference to an external source. This value is unused currently, but may be brought back. type ExternalRef struct { // The source of the external reference. @@ -24,23 +35,23 @@ type ExternalRef struct { URL *string `json:"url,omitempty"` } -func (o *ExternalRef) GetExternalRefSource() *ExternalRefSource { - if o == nil { +func (e *ExternalRef) GetExternalRefSource() *ExternalRefSource { + if e == nil { return nil } - return o.ExternalRefSource + return e.ExternalRefSource } -func (o *ExternalRef) GetName() *string { - if o == nil { +func (e *ExternalRef) GetName() *string { + if e == nil { return nil } - return o.Name + return e.Name } -func (o *ExternalRef) GetURL() *string { - if o == nil { +func (e *ExternalRef) GetURL() *string { + if e == nil { return nil } - return o.URL + return e.URL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/externalticketprovision.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/externalticketprovision.go index 059a3577..39b9603c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/externalticketprovision.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/externalticketprovision.go @@ -14,30 +14,30 @@ type ExternalTicketProvision struct { Instructions *string `json:"instructions,omitempty"` } -func (o *ExternalTicketProvision) GetAppID() *string { - if o == nil { +func (e *ExternalTicketProvision) GetAppID() *string { + if e == nil { return nil } - return o.AppID + return e.AppID } -func (o *ExternalTicketProvision) GetConnectorID() *string { - if o == nil { +func (e *ExternalTicketProvision) GetConnectorID() *string { + if e == nil { return nil } - return o.ConnectorID + return e.ConnectorID } -func (o *ExternalTicketProvision) GetExternalTicketProvisionerConfigID() *string { - if o == nil { +func (e *ExternalTicketProvision) GetExternalTicketProvisionerConfigID() *string { + if e == nil { return nil } - return o.ExternalTicketProvisionerConfigID + return e.ExternalTicketProvisionerConfigID } -func (o *ExternalTicketProvision) GetInstructions() *string { - if o == nil { +func (e *ExternalTicketProvision) GetInstructions() *string { + if e == nil { return nil } - return o.Instructions + return e.Instructions } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetcategory.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetcategory.go index 2102cdb2..08f6d83a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetcategory.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetcategory.go @@ -20,37 +20,37 @@ type FacetCategory struct { Param *string `json:"param,omitempty"` } -func (o *FacetCategory) GetFacetRangeItem() *FacetRangeItem { - if o == nil { +func (f *FacetCategory) GetFacetRangeItem() *FacetRangeItem { + if f == nil { return nil } - return o.FacetRangeItem + return f.FacetRangeItem } -func (o *FacetCategory) GetFacetValueItem() *FacetValueItem { - if o == nil { +func (f *FacetCategory) GetFacetValueItem() *FacetValueItem { + if f == nil { return nil } - return o.FacetValueItem + return f.FacetValueItem } -func (o *FacetCategory) GetDisplayName() *string { - if o == nil { +func (f *FacetCategory) GetDisplayName() *string { + if f == nil { return nil } - return o.DisplayName + return f.DisplayName } -func (o *FacetCategory) GetIconURL() *string { - if o == nil { +func (f *FacetCategory) GetIconURL() *string { + if f == nil { return nil } - return o.IconURL + return f.IconURL } -func (o *FacetCategory) GetParam() *string { - if o == nil { +func (f *FacetCategory) GetParam() *string { + if f == nil { return nil } - return o.Param + return f.Param } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetrange.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetrange.go index 46ff9a36..0b2a7323 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetrange.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetrange.go @@ -16,37 +16,37 @@ type FacetRange struct { To *int64 `integer:"string" json:"to,omitempty"` } -func (o *FacetRange) GetCount() *int64 { - if o == nil { +func (f *FacetRange) GetCount() *int64 { + if f == nil { return nil } - return o.Count + return f.Count } -func (o *FacetRange) GetDisplayName() *string { - if o == nil { +func (f *FacetRange) GetDisplayName() *string { + if f == nil { return nil } - return o.DisplayName + return f.DisplayName } -func (o *FacetRange) GetFrom() *int64 { - if o == nil { +func (f *FacetRange) GetFrom() *int64 { + if f == nil { return nil } - return o.From + return f.From } -func (o *FacetRange) GetIconURL() *string { - if o == nil { +func (f *FacetRange) GetIconURL() *string { + if f == nil { return nil } - return o.IconURL + return f.IconURL } -func (o *FacetRange) GetTo() *int64 { - if o == nil { +func (f *FacetRange) GetTo() *int64 { + if f == nil { return nil } - return o.To + return f.To } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetrangeitem.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetrangeitem.go index faaec35f..d7da88da 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetrangeitem.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetrangeitem.go @@ -8,9 +8,9 @@ type FacetRangeItem struct { Ranges []FacetRange `json:"ranges,omitempty"` } -func (o *FacetRangeItem) GetRanges() []FacetRange { - if o == nil { +func (f *FacetRangeItem) GetRanges() []FacetRange { + if f == nil { return nil } - return o.Ranges + return f.Ranges } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facets.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facets.go index dd39c4a2..495c3e85 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facets.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facets.go @@ -10,16 +10,16 @@ type Facets struct { Facets []FacetCategory `json:"facets,omitempty"` } -func (o *Facets) GetCount() *int64 { - if o == nil { +func (f *Facets) GetCount() *int64 { + if f == nil { return nil } - return o.Count + return f.Count } -func (o *Facets) GetFacets() []FacetCategory { - if o == nil { +func (f *Facets) GetFacets() []FacetCategory { + if f == nil { return nil } - return o.Facets + return f.Facets } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetvalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetvalue.go index 6ef0308a..4801e858 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetvalue.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetvalue.go @@ -14,30 +14,30 @@ type FacetValue struct { Value *string `json:"value,omitempty"` } -func (o *FacetValue) GetCount() *int64 { - if o == nil { +func (f *FacetValue) GetCount() *int64 { + if f == nil { return nil } - return o.Count + return f.Count } -func (o *FacetValue) GetDisplayName() *string { - if o == nil { +func (f *FacetValue) GetDisplayName() *string { + if f == nil { return nil } - return o.DisplayName + return f.DisplayName } -func (o *FacetValue) GetIconURL() *string { - if o == nil { +func (f *FacetValue) GetIconURL() *string { + if f == nil { return nil } - return o.IconURL + return f.IconURL } -func (o *FacetValue) GetValue() *string { - if o == nil { +func (f *FacetValue) GetValue() *string { + if f == nil { return nil } - return o.Value + return f.Value } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetvalueitem.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetvalueitem.go index 51a7e760..8d7430b0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetvalueitem.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/facetvalueitem.go @@ -8,9 +8,9 @@ type FacetValueItem struct { Values []FacetValue `json:"values,omitempty"` } -func (o *FacetValueItem) GetValues() []FacetValue { - if o == nil { +func (f *FacetValueItem) GetValues() []FacetValue { + if f == nil { return nil } - return o.Values + return f.Values } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/field.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/field.go index ff92b7ac..3bd1d8da 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/field.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/field.go @@ -2,112 +2,202 @@ package shared -// Field - A field is a single input meant to collect a piece of data from a user +// The Field message. // -// This message contains a oneof named type. Only a single field of the following list may be set at a time: -// - stringField -// - boolField -// - stringSliceField -// - int64Field +// This message contains a oneof named field. Only a single field of the following list may be set at a time: +// - str +// - select +// - random +// - import +// - oauth2 +// - readOnly +// - options +// - checkbox +// - secret +// - strList +// - text +// - keyValue +// - stringMap type Field struct { - // The BoolField message. - // - // This message contains a oneof named view. Only a single field of the following list may be set at a time: - // - checkboxField - // - // - // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: - // - rules - // - BoolField *BoolField `json:"boolField,omitempty"` - // The Int64Field message. - // - // This message contains a oneof named view. Only a single field of the following list may be set at a time: - // - numberField - // - // - // This message contains a oneof named _default_value. Only a single field of the following list may be set at a time: - // - defaultValue - // - // - // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: - // - rules - // - Int64Field *Int64Field `json:"int64Field,omitempty"` + // The CheckboxField message. + CheckboxField *CheckboxField1 `json:"checkbox,omitempty"` + // The ImportField message. + ImportField *ImportField `json:"import,omitempty"` + // The KeyValueField message. + KeyValueField *KeyValueField `json:"keyValue,omitempty"` + // The OAuth2Field message. + OAuth2Field *OAuth2Field `json:"oauth2,omitempty"` + // The OptionsField message. + OptionsField *OptionsField `json:"options,omitempty"` + // The RandomStringField message. + RandomStringField *RandomStringField `json:"random,omitempty"` + // The ReadOnlyField message. + ReadOnlyField *ReadOnlyField `json:"readOnly,omitempty"` + // The RotatableSecretField message. + RotatableSecretField *RotatableSecretField `json:"secret,omitempty"` + // The SelectField message. + SelectField *SelectField `json:"select,omitempty"` // The StringField message. - // - // This message contains a oneof named view. Only a single field of the following list may be set at a time: - // - textField - // - passwordField - // - // - // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: - // - rules - // - StringField *StringField `json:"stringField,omitempty"` - // The StringSliceField message. - // - // This message contains a oneof named view. Only a single field of the following list may be set at a time: - // - chipsField - // - // - // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: - // - rules - // - StringSliceField *StringSliceField `json:"stringSliceField,omitempty"` - // The description field. - Description *string `json:"description,omitempty"` - // The displayName field. + StringField *StringField `json:"str,omitempty"` + // The StringListField message. + StringListField *StringListField `json:"strList,omitempty"` + // The StringMapField message. + StringMapField *StringMapField `json:"stringMap,omitempty"` + // The TextField message. + TextField *TextField `json:"text,omitempty"` + // Optional. Additional placeholder text for the field + // In cases where a single placeholder is not enough to describe the field + AdditionalPlaceholder *string `json:"additionalPlaceholder,omitempty"` + // The dependsOnFields field. + DependsOnFields []string `json:"dependsOnFields,omitempty"` + // Human-readable label for this Field DisplayName *string `json:"displayName,omitempty"` - // The name field. + // empty or https URL + HelpURL *string `json:"helpUrl,omitempty"` + // Must not start with `C1_` and match [a-zA-Z0-9_]{2,64}. Must be unique within a connector. Name *string `json:"name,omitempty"` + // The placeholder field. + Placeholder *string `json:"placeholder,omitempty"` + // The postCreate field. + PostCreate *bool `json:"postCreate,omitempty"` } -func (o *Field) GetBoolField() *BoolField { - if o == nil { +func (f *Field) GetCheckboxField() *CheckboxField1 { + if f == nil { return nil } - return o.BoolField + return f.CheckboxField } -func (o *Field) GetInt64Field() *Int64Field { - if o == nil { +func (f *Field) GetImportField() *ImportField { + if f == nil { return nil } - return o.Int64Field + return f.ImportField } -func (o *Field) GetStringField() *StringField { - if o == nil { +func (f *Field) GetKeyValueField() *KeyValueField { + if f == nil { return nil } - return o.StringField + return f.KeyValueField } -func (o *Field) GetStringSliceField() *StringSliceField { - if o == nil { +func (f *Field) GetOAuth2Field() *OAuth2Field { + if f == nil { return nil } - return o.StringSliceField + return f.OAuth2Field } -func (o *Field) GetDescription() *string { - if o == nil { +func (f *Field) GetOptionsField() *OptionsField { + if f == nil { return nil } - return o.Description + return f.OptionsField } -func (o *Field) GetDisplayName() *string { - if o == nil { +func (f *Field) GetRandomStringField() *RandomStringField { + if f == nil { return nil } - return o.DisplayName + return f.RandomStringField } -func (o *Field) GetName() *string { - if o == nil { +func (f *Field) GetReadOnlyField() *ReadOnlyField { + if f == nil { return nil } - return o.Name + return f.ReadOnlyField +} + +func (f *Field) GetRotatableSecretField() *RotatableSecretField { + if f == nil { + return nil + } + return f.RotatableSecretField +} + +func (f *Field) GetSelectField() *SelectField { + if f == nil { + return nil + } + return f.SelectField +} + +func (f *Field) GetStringField() *StringField { + if f == nil { + return nil + } + return f.StringField +} + +func (f *Field) GetStringListField() *StringListField { + if f == nil { + return nil + } + return f.StringListField +} + +func (f *Field) GetStringMapField() *StringMapField { + if f == nil { + return nil + } + return f.StringMapField +} + +func (f *Field) GetTextField() *TextField { + if f == nil { + return nil + } + return f.TextField +} + +func (f *Field) GetAdditionalPlaceholder() *string { + if f == nil { + return nil + } + return f.AdditionalPlaceholder +} + +func (f *Field) GetDependsOnFields() []string { + if f == nil { + return nil + } + return f.DependsOnFields +} + +func (f *Field) GetDisplayName() *string { + if f == nil { + return nil + } + return f.DisplayName +} + +func (f *Field) GetHelpURL() *string { + if f == nil { + return nil + } + return f.HelpURL +} + +func (f *Field) GetName() *string { + if f == nil { + return nil + } + return f.Name +} + +func (f *Field) GetPlaceholder() *string { + if f == nil { + return nil + } + return f.Placeholder +} + +func (f *Field) GetPostCreate() *bool { + if f == nil { + return nil + } + return f.PostCreate } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldgroup.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldgroup.go new file mode 100644 index 00000000..91cb6aa4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldgroup.go @@ -0,0 +1,52 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The FieldGroup message. +type FieldGroup struct { + // The default field. + Default *bool `json:"default,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The fields field. + Fields []string `json:"fields,omitempty"` + // The helpText field. + HelpText *string `json:"helpText,omitempty"` + // The name field. + Name *string `json:"name,omitempty"` +} + +func (f *FieldGroup) GetDefault() *bool { + if f == nil { + return nil + } + return f.Default +} + +func (f *FieldGroup) GetDisplayName() *string { + if f == nil { + return nil + } + return f.DisplayName +} + +func (f *FieldGroup) GetFields() []string { + if f == nil { + return nil + } + return f.Fields +} + +func (f *FieldGroup) GetHelpText() *string { + if f == nil { + return nil + } + return f.HelpText +} + +func (f *FieldGroup) GetName() *string { + if f == nil { + return nil + } + return f.Name +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldinput.go new file mode 100644 index 00000000..8f87717e --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldinput.go @@ -0,0 +1,181 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// FieldInput - A field is a single input meant to collect a piece of data from a user +// +// This message contains a oneof named type. Only a single field of the following list may be set at a time: +// - stringField +// - boolField +// - stringSliceField +// - int64Field +// - fileField +// - oauth2Field +// +// This message contains a oneof named provider_config. Only a single field of the following list may be set at a time: +// - userConfig +// - adminConfig +// - sharedConfig +type FieldInput struct { + // The AdminProviderConfig message. + AdminProviderConfig *AdminProviderConfig `json:"adminConfig,omitempty"` + // The BoolField message. + // + // This message contains a oneof named view. Only a single field of the following list may be set at a time: + // - checkboxField + // - toggleField + // + // + // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: + // - rules + // + BoolField *BoolField `json:"boolField,omitempty"` + // The FileField message. + // + // This message contains a oneof named view. Only a single field of the following list may be set at a time: + // - fileInputField + // + // + // This message contains a oneof named _max_file_size. Only a single field of the following list may be set at a time: + // - maxFileSize + // + FileField *FileField `json:"fileField,omitempty"` + // The Int64Field message. + // + // This message contains a oneof named view. Only a single field of the following list may be set at a time: + // - numberField + // + // + // This message contains a oneof named _default_value. Only a single field of the following list may be set at a time: + // - defaultValue + // + // + // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: + // - rules + // + Int64Field *Int64Field `json:"int64Field,omitempty"` + // The Oauth2Field message. + // + // This message contains a oneof named view. Only a single field of the following list may be set at a time: + // - oauth2FieldView + // + Oauth2Field *Oauth2Field1 `json:"oauth2Field,omitempty"` + // The SharedProviderConfig message. + SharedProviderConfig *SharedProviderConfig `json:"sharedConfig,omitempty"` + // The StringField message. + // + // This message contains a oneof named view. Only a single field of the following list may be set at a time: + // - textField + // - passwordField + // - selectField + // - pickerField + // + // + // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: + // - rules + // + StringField *StringField `json:"stringField,omitempty"` + // The StringSliceField message. + // + // This message contains a oneof named view. Only a single field of the following list may be set at a time: + // - chipsField + // - pickerField + // + // + // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: + // - rules + // + StringSliceField *StringSliceField `json:"stringSliceField,omitempty"` + // The UserProviderConfig message. + UserProviderConfig *UserProviderConfig `json:"userConfig,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The name field. + Name *string `json:"name,omitempty"` +} + +func (f *FieldInput) GetAdminProviderConfig() *AdminProviderConfig { + if f == nil { + return nil + } + return f.AdminProviderConfig +} + +func (f *FieldInput) GetBoolField() *BoolField { + if f == nil { + return nil + } + return f.BoolField +} + +func (f *FieldInput) GetFileField() *FileField { + if f == nil { + return nil + } + return f.FileField +} + +func (f *FieldInput) GetInt64Field() *Int64Field { + if f == nil { + return nil + } + return f.Int64Field +} + +func (f *FieldInput) GetOauth2Field() *Oauth2Field1 { + if f == nil { + return nil + } + return f.Oauth2Field +} + +func (f *FieldInput) GetSharedProviderConfig() *SharedProviderConfig { + if f == nil { + return nil + } + return f.SharedProviderConfig +} + +func (f *FieldInput) GetStringField() *StringField { + if f == nil { + return nil + } + return f.StringField +} + +func (f *FieldInput) GetStringSliceField() *StringSliceField { + if f == nil { + return nil + } + return f.StringSliceField +} + +func (f *FieldInput) GetUserProviderConfig() *UserProviderConfig { + if f == nil { + return nil + } + return f.UserProviderConfig +} + +func (f *FieldInput) GetDescription() *string { + if f == nil { + return nil + } + return f.Description +} + +func (f *FieldInput) GetDisplayName() *string { + if f == nil { + return nil + } + return f.DisplayName +} + +func (f *FieldInput) GetName() *string { + if f == nil { + return nil + } + return f.Name +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldrelationship.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldrelationship.go index aaa01cb2..dd553fee 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldrelationship.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldrelationship.go @@ -21,30 +21,30 @@ type FieldRelationship struct { FieldNames []string `json:"fieldNames,omitempty"` } -func (o *FieldRelationship) GetAtLeastOne() *AtLeastOne { - if o == nil { +func (f *FieldRelationship) GetAtLeastOne() *AtLeastOne { + if f == nil { return nil } - return o.AtLeastOne + return f.AtLeastOne } -func (o *FieldRelationship) GetMutuallyExclusive() *MutuallyExclusive { - if o == nil { +func (f *FieldRelationship) GetMutuallyExclusive() *MutuallyExclusive { + if f == nil { return nil } - return o.MutuallyExclusive + return f.MutuallyExclusive } -func (o *FieldRelationship) GetRequiredTogether() *RequiredTogether { - if o == nil { +func (f *FieldRelationship) GetRequiredTogether() *RequiredTogether { + if f == nil { return nil } - return o.RequiredTogether + return f.RequiredTogether } -func (o *FieldRelationship) GetFieldNames() []string { - if o == nil { +func (f *FieldRelationship) GetFieldNames() []string { + if f == nil { return nil } - return o.FieldNames + return f.FieldNames } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldrules.go index 1d9fab45..92b5d0f3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fieldrules.go @@ -98,156 +98,156 @@ type FieldRules struct { UInt64Rules *UInt64Rules `json:"uint64,omitempty"` } -func (o *FieldRules) GetAnyRules() *AnyRules { - if o == nil { +func (f *FieldRules) GetAnyRules() *AnyRules { + if f == nil { return nil } - return o.AnyRules + return f.AnyRules } -func (o *FieldRules) GetBoolRules() *BoolRules { - if o == nil { +func (f *FieldRules) GetBoolRules() *BoolRules { + if f == nil { return nil } - return o.BoolRules + return f.BoolRules } -func (o *FieldRules) GetBytesRules() *BytesRules { - if o == nil { +func (f *FieldRules) GetBytesRules() *BytesRules { + if f == nil { return nil } - return o.BytesRules + return f.BytesRules } -func (o *FieldRules) GetDoubleRules() *DoubleRules { - if o == nil { +func (f *FieldRules) GetDoubleRules() *DoubleRules { + if f == nil { return nil } - return o.DoubleRules + return f.DoubleRules } -func (o *FieldRules) GetDurationRules() *DurationRules { - if o == nil { +func (f *FieldRules) GetDurationRules() *DurationRules { + if f == nil { return nil } - return o.DurationRules + return f.DurationRules } -func (o *FieldRules) GetEnumRules() *EnumRules { - if o == nil { +func (f *FieldRules) GetEnumRules() *EnumRules { + if f == nil { return nil } - return o.EnumRules + return f.EnumRules } -func (o *FieldRules) GetFixed32Rules() *Fixed32Rules { - if o == nil { +func (f *FieldRules) GetFixed32Rules() *Fixed32Rules { + if f == nil { return nil } - return o.Fixed32Rules + return f.Fixed32Rules } -func (o *FieldRules) GetFixed64Rules() *Fixed64Rules { - if o == nil { +func (f *FieldRules) GetFixed64Rules() *Fixed64Rules { + if f == nil { return nil } - return o.Fixed64Rules + return f.Fixed64Rules } -func (o *FieldRules) GetFloatRules() *FloatRules { - if o == nil { +func (f *FieldRules) GetFloatRules() *FloatRules { + if f == nil { return nil } - return o.FloatRules + return f.FloatRules } -func (o *FieldRules) GetInt32Rules() *Int32Rules { - if o == nil { +func (f *FieldRules) GetInt32Rules() *Int32Rules { + if f == nil { return nil } - return o.Int32Rules + return f.Int32Rules } -func (o *FieldRules) GetInt64Rules() *Int64Rules { - if o == nil { +func (f *FieldRules) GetInt64Rules() *Int64Rules { + if f == nil { return nil } - return o.Int64Rules + return f.Int64Rules } -func (o *FieldRules) GetMapRules() *MapRules { - if o == nil { +func (f *FieldRules) GetMapRules() *MapRules { + if f == nil { return nil } - return o.MapRules + return f.MapRules } -func (o *FieldRules) GetMessageRules() *MessageRules { - if o == nil { +func (f *FieldRules) GetMessageRules() *MessageRules { + if f == nil { return nil } - return o.MessageRules + return f.MessageRules } -func (o *FieldRules) GetRepeatedRules() *RepeatedRules { - if o == nil { +func (f *FieldRules) GetRepeatedRules() *RepeatedRules { + if f == nil { return nil } - return o.RepeatedRules + return f.RepeatedRules } -func (o *FieldRules) GetSFixed32Rules() *SFixed32Rules { - if o == nil { +func (f *FieldRules) GetSFixed32Rules() *SFixed32Rules { + if f == nil { return nil } - return o.SFixed32Rules + return f.SFixed32Rules } -func (o *FieldRules) GetSFixed64Rules() *SFixed64Rules { - if o == nil { +func (f *FieldRules) GetSFixed64Rules() *SFixed64Rules { + if f == nil { return nil } - return o.SFixed64Rules + return f.SFixed64Rules } -func (o *FieldRules) GetSInt32Rules() *SInt32Rules { - if o == nil { +func (f *FieldRules) GetSInt32Rules() *SInt32Rules { + if f == nil { return nil } - return o.SInt32Rules + return f.SInt32Rules } -func (o *FieldRules) GetSInt64Rules() *SInt64Rules { - if o == nil { +func (f *FieldRules) GetSInt64Rules() *SInt64Rules { + if f == nil { return nil } - return o.SInt64Rules + return f.SInt64Rules } -func (o *FieldRules) GetStringRules() *StringRules { - if o == nil { +func (f *FieldRules) GetStringRules() *StringRules { + if f == nil { return nil } - return o.StringRules + return f.StringRules } -func (o *FieldRules) GetTimestampRules() *TimestampRules { - if o == nil { +func (f *FieldRules) GetTimestampRules() *TimestampRules { + if f == nil { return nil } - return o.TimestampRules + return f.TimestampRules } -func (o *FieldRules) GetUInt32Rules() *UInt32Rules { - if o == nil { +func (f *FieldRules) GetUInt32Rules() *UInt32Rules { + if f == nil { return nil } - return o.UInt32Rules + return f.UInt32Rules } -func (o *FieldRules) GetUInt64Rules() *UInt64Rules { - if o == nil { +func (f *FieldRules) GetUInt64Rules() *UInt64Rules { + if f == nil { return nil } - return o.UInt64Rules + return f.UInt64Rules } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/filefield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/filefield.go new file mode 100644 index 00000000..d91f6820 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/filefield.go @@ -0,0 +1,42 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The FileField message. +// +// This message contains a oneof named view. Only a single field of the following list may be set at a time: +// - fileInputField +// +// This message contains a oneof named _max_file_size. Only a single field of the following list may be set at a time: +// - maxFileSize +type FileField struct { + // The FileInputField message. + FileInputField *FileInputField `json:"fileInputField,omitempty"` + // The acceptedFileTypes field. + AcceptedFileTypes []string `json:"acceptedFileTypes,omitempty"` + // The maxFileSize field. + // This field is part of the `_max_file_size` oneof. + // See the documentation for `c1.api.form.v1.FileField` for more details. + MaxFileSize *int64 `integer:"string" json:"maxFileSize,omitempty"` +} + +func (f *FileField) GetFileInputField() *FileInputField { + if f == nil { + return nil + } + return f.FileInputField +} + +func (f *FileField) GetAcceptedFileTypes() []string { + if f == nil { + return nil + } + return f.AcceptedFileTypes +} + +func (f *FileField) GetMaxFileSize() *int64 { + if f == nil { + return nil + } + return f.MaxFileSize +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fileinputfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fileinputfield.go new file mode 100644 index 00000000..2ba0fe8f --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fileinputfield.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The FileInputField message. +type FileInputField struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fixed32rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fixed32rules.go index 475d54e1..93082c65 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fixed32rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fixed32rules.go @@ -31,58 +31,58 @@ type Fixed32Rules struct { NotIn []int64 `json:"notIn,omitempty"` } -func (o *Fixed32Rules) GetConst() *int64 { - if o == nil { +func (f *Fixed32Rules) GetConst() *int64 { + if f == nil { return nil } - return o.Const + return f.Const } -func (o *Fixed32Rules) GetGt() *int64 { - if o == nil { +func (f *Fixed32Rules) GetGt() *int64 { + if f == nil { return nil } - return o.Gt + return f.Gt } -func (o *Fixed32Rules) GetGte() *int64 { - if o == nil { +func (f *Fixed32Rules) GetGte() *int64 { + if f == nil { return nil } - return o.Gte + return f.Gte } -func (o *Fixed32Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (f *Fixed32Rules) GetIgnoreEmpty() *bool { + if f == nil { return nil } - return o.IgnoreEmpty + return f.IgnoreEmpty } -func (o *Fixed32Rules) GetIn() []int64 { - if o == nil { +func (f *Fixed32Rules) GetIn() []int64 { + if f == nil { return nil } - return o.In + return f.In } -func (o *Fixed32Rules) GetLt() *int64 { - if o == nil { +func (f *Fixed32Rules) GetLt() *int64 { + if f == nil { return nil } - return o.Lt + return f.Lt } -func (o *Fixed32Rules) GetLte() *int64 { - if o == nil { +func (f *Fixed32Rules) GetLte() *int64 { + if f == nil { return nil } - return o.Lte + return f.Lte } -func (o *Fixed32Rules) GetNotIn() []int64 { - if o == nil { +func (f *Fixed32Rules) GetNotIn() []int64 { + if f == nil { return nil } - return o.NotIn + return f.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fixed64rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fixed64rules.go index 282c4f5f..8793bff1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fixed64rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/fixed64rules.go @@ -31,58 +31,58 @@ type Fixed64Rules struct { NotIn []string `json:"notIn,omitempty"` } -func (o *Fixed64Rules) GetConst() *string { - if o == nil { +func (f *Fixed64Rules) GetConst() *string { + if f == nil { return nil } - return o.Const + return f.Const } -func (o *Fixed64Rules) GetGt() *string { - if o == nil { +func (f *Fixed64Rules) GetGt() *string { + if f == nil { return nil } - return o.Gt + return f.Gt } -func (o *Fixed64Rules) GetGte() *string { - if o == nil { +func (f *Fixed64Rules) GetGte() *string { + if f == nil { return nil } - return o.Gte + return f.Gte } -func (o *Fixed64Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (f *Fixed64Rules) GetIgnoreEmpty() *bool { + if f == nil { return nil } - return o.IgnoreEmpty + return f.IgnoreEmpty } -func (o *Fixed64Rules) GetIn() []string { - if o == nil { +func (f *Fixed64Rules) GetIn() []string { + if f == nil { return nil } - return o.In + return f.In } -func (o *Fixed64Rules) GetLt() *string { - if o == nil { +func (f *Fixed64Rules) GetLt() *string { + if f == nil { return nil } - return o.Lt + return f.Lt } -func (o *Fixed64Rules) GetLte() *string { - if o == nil { +func (f *Fixed64Rules) GetLte() *string { + if f == nil { return nil } - return o.Lte + return f.Lte } -func (o *Fixed64Rules) GetNotIn() []string { - if o == nil { +func (f *Fixed64Rules) GetNotIn() []string { + if f == nil { return nil } - return o.NotIn + return f.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/floatrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/floatrules.go index 30d8afea..d0889cb3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/floatrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/floatrules.go @@ -31,58 +31,58 @@ type FloatRules struct { NotIn []float64 `json:"notIn,omitempty"` } -func (o *FloatRules) GetConst() *float64 { - if o == nil { +func (f *FloatRules) GetConst() *float64 { + if f == nil { return nil } - return o.Const + return f.Const } -func (o *FloatRules) GetGt() *float64 { - if o == nil { +func (f *FloatRules) GetGt() *float64 { + if f == nil { return nil } - return o.Gt + return f.Gt } -func (o *FloatRules) GetGte() *float64 { - if o == nil { +func (f *FloatRules) GetGte() *float64 { + if f == nil { return nil } - return o.Gte + return f.Gte } -func (o *FloatRules) GetIgnoreEmpty() *bool { - if o == nil { +func (f *FloatRules) GetIgnoreEmpty() *bool { + if f == nil { return nil } - return o.IgnoreEmpty + return f.IgnoreEmpty } -func (o *FloatRules) GetIn() []float64 { - if o == nil { +func (f *FloatRules) GetIn() []float64 { + if f == nil { return nil } - return o.In + return f.In } -func (o *FloatRules) GetLt() *float64 { - if o == nil { +func (f *FloatRules) GetLt() *float64 { + if f == nil { return nil } - return o.Lt + return f.Lt } -func (o *FloatRules) GetLte() *float64 { - if o == nil { +func (f *FloatRules) GetLte() *float64 { + if f == nil { return nil } - return o.Lte + return f.Lte } -func (o *FloatRules) GetNotIn() []float64 { - if o == nil { +func (f *FloatRules) GetNotIn() []float64 { + if f == nil { return nil } - return o.NotIn + return f.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forcerunbundleautomationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forcerunbundleautomationrequest.go index fc7c413f..ba448f20 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forcerunbundleautomationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forcerunbundleautomationrequest.go @@ -8,9 +8,9 @@ type ForceRunBundleAutomationRequest struct { Refs []AppEntitlementRef `json:"refs,omitempty"` } -func (o *ForceRunBundleAutomationRequest) GetRefs() []AppEntitlementRef { - if o == nil { +func (f *ForceRunBundleAutomationRequest) GetRefs() []AppEntitlementRef { + if f == nil { return nil } - return o.Refs + return f.Refs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/form.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/form.go index 277cee39..0d9424d8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/form.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/form.go @@ -8,9 +8,9 @@ type Form struct { Form *FormInput `json:"form,omitempty"` } -func (o *Form) GetForm() *FormInput { - if o == nil { +func (f *Form) GetForm() *FormInput { + if f == nil { return nil } - return o.Form + return f.Form } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/formcompletedaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/formcompletedaction.go index 48c9f53f..ba194ac4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/formcompletedaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/formcompletedaction.go @@ -19,22 +19,22 @@ func (f FormCompletedAction) MarshalJSON() ([]byte, error) { } func (f *FormCompletedAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { return err } return nil } -func (o *FormCompletedAction) GetCompletedAt() *time.Time { - if o == nil { +func (f *FormCompletedAction) GetCompletedAt() *time.Time { + if f == nil { return nil } - return o.CompletedAt + return f.CompletedAt } -func (o *FormCompletedAction) GetUserID() *string { - if o == nil { +func (f *FormCompletedAction) GetUserID() *string { + if f == nil { return nil } - return o.UserID + return f.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminput.go index 01ec037c..012ea7e7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminput.go @@ -8,45 +8,54 @@ type FormInput struct { Description *string `json:"description,omitempty"` // The displayName field. DisplayName *string `json:"displayName,omitempty"` + // The fieldGroups field. + FieldGroups []FieldGroup `json:"fieldGroups,omitempty"` // The fieldRelationships field. FieldRelationships []FieldRelationship `json:"fieldRelationships,omitempty"` // The fields field. - Fields []Field `json:"fields,omitempty"` + Fields []FieldInput `json:"fields,omitempty"` // The id field. ID *string `json:"id,omitempty"` } -func (o *FormInput) GetDescription() *string { - if o == nil { +func (f *FormInput) GetDescription() *string { + if f == nil { return nil } - return o.Description + return f.Description } -func (o *FormInput) GetDisplayName() *string { - if o == nil { +func (f *FormInput) GetDisplayName() *string { + if f == nil { return nil } - return o.DisplayName + return f.DisplayName } -func (o *FormInput) GetFieldRelationships() []FieldRelationship { - if o == nil { +func (f *FormInput) GetFieldGroups() []FieldGroup { + if f == nil { return nil } - return o.FieldRelationships + return f.FieldGroups } -func (o *FormInput) GetFields() []Field { - if o == nil { +func (f *FormInput) GetFieldRelationships() []FieldRelationship { + if f == nil { return nil } - return o.Fields + return f.FieldRelationships } -func (o *FormInput) GetID() *string { - if o == nil { +func (f *FormInput) GetFields() []FieldInput { + if f == nil { return nil } - return o.ID + return f.Fields +} + +func (f *FormInput) GetID() *string { + if f == nil { + return nil + } + return f.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminput1.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminput1.go index fde80c78..768827ae 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminput1.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminput1.go @@ -8,9 +8,9 @@ type FormInput1 struct { Form *FormInput `json:"form,omitempty"` } -func (o *FormInput1) GetForm() *FormInput { - if o == nil { +func (f *FormInput1) GetForm() *FormInput { + if f == nil { return nil } - return o.Form + return f.Form } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminstance.go index 1e9668ff..4cdd2312 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/forminstance.go @@ -15,6 +15,17 @@ func (e FormInstanceState) ToPointer() *FormInstanceState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *FormInstanceState) IsExact() bool { + if e != nil { + switch *e { + case "FORM_INSTANCE_STATE_UNSPECIFIED", "FORM_INSTANCE_STATE_WAITING", "FORM_INSTANCE_STATE_DONE": + return true + } + } + return false +} + // The FormInstance message. // // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: @@ -38,51 +49,51 @@ type FormInstance struct { State *FormInstanceState `json:"state,omitempty"` } -func (o *FormInstance) GetForm() *FormInput { - if o == nil { +func (f *FormInstance) GetForm() *FormInput { + if f == nil { return nil } - return o.Form + return f.Form } -func (o *FormInstance) GetFormCompletedAction() *FormCompletedAction { - if o == nil { +func (f *FormInstance) GetFormCompletedAction() *FormCompletedAction { + if f == nil { return nil } - return o.FormCompletedAction + return f.FormCompletedAction } -func (o *FormInstance) GetReassignedAction() *ReassignedAction { - if o == nil { +func (f *FormInstance) GetReassignedAction() *ReassignedAction { + if f == nil { return nil } - return o.ReassignedAction + return f.ReassignedAction } -func (o *FormInstance) GetRestartAction() *RestartAction { - if o == nil { +func (f *FormInstance) GetRestartAction() *RestartAction { + if f == nil { return nil } - return o.RestartAction + return f.RestartAction } -func (o *FormInstance) GetSkippedAction() *SkippedAction { - if o == nil { +func (f *FormInstance) GetSkippedAction() *SkippedAction { + if f == nil { return nil } - return o.SkippedAction + return f.SkippedAction } -func (o *FormInstance) GetData() map[string]any { - if o == nil { +func (f *FormInstance) GetData() map[string]any { + if f == nil { return nil } - return o.Data + return f.Data } -func (o *FormInstance) GetState() *FormInstanceState { - if o == nil { +func (f *FormInstance) GetState() *FormInstanceState { + if f == nil { return nil } - return o.State + return f.State } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/formtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/formtrigger.go index 138348d6..5f116ec5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/formtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/formtrigger.go @@ -8,9 +8,9 @@ type FormTrigger struct { Form *FormInput `json:"form,omitempty"` } -func (o *FormTrigger) GetForm() *FormInput { - if o == nil { +func (f *FormTrigger) GetForm() *FormInput { + if f == nil { return nil } - return o.Form + return f.Form } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/function.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/function.go index 1c04f62e..74d15299 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/function.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/function.go @@ -19,6 +19,17 @@ func (e FunctionType) ToPointer() *FunctionType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *FunctionType) IsExact() bool { + if e != nil { + switch *e { + case "FUNCTION_TYPE_UNSPECIFIED", "FUNCTION_TYPE_ANY": + return true + } + } + return false +} + // Function represents a customer-provided code extension in the API type Function struct { CreatedAt *time.Time `json:"createdAt,omitempty"` @@ -27,6 +38,8 @@ type Function struct { Description *string `json:"description,omitempty"` // The displayName field. DisplayName *string `json:"displayName,omitempty"` + // The encryptedValues field. + EncryptedValues map[string]string `json:"encryptedValues,omitempty"` // The functionType field. FunctionType *FunctionType `json:"functionType,omitempty"` // The head field. @@ -35,9 +48,18 @@ type Function struct { ID *string `json:"id,omitempty"` // The isDraft field. IsDraft *bool `json:"isDraft,omitempty"` + // The outboundNetworkAllowlist field. + OutboundNetworkAllowlist []string `json:"outboundNetworkAllowlist,omitempty"` // The publishedCommitId field. - PublishedCommitID *string `json:"publishedCommitId,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` + PublishedCommitID *string `json:"publishedCommitId,omitempty"` + // Scoped role IDs define the permissions granted to this function when calling + // ConductorOne APIs. These are role IDs (not service roles) that get resolved + // to their service roles at authentication time. + // + // Currently only the "Read-Only Administrator" role (system:viewer) is supported. + // The role ID can be obtained from the roles API. + ScopedRoleIds []string `json:"scopedRoleIds,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` } func (f Function) MarshalJSON() ([]byte, error) { @@ -45,80 +67,101 @@ func (f Function) MarshalJSON() ([]byte, error) { } func (f *Function) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { return err } return nil } -func (o *Function) GetCreatedAt() *time.Time { - if o == nil { +func (f *Function) GetCreatedAt() *time.Time { + if f == nil { + return nil + } + return f.CreatedAt +} + +func (f *Function) GetDeletedAt() *time.Time { + if f == nil { + return nil + } + return f.DeletedAt +} + +func (f *Function) GetDescription() *string { + if f == nil { + return nil + } + return f.Description +} + +func (f *Function) GetDisplayName() *string { + if f == nil { return nil } - return o.CreatedAt + return f.DisplayName } -func (o *Function) GetDeletedAt() *time.Time { - if o == nil { +func (f *Function) GetEncryptedValues() map[string]string { + if f == nil { return nil } - return o.DeletedAt + return f.EncryptedValues } -func (o *Function) GetDescription() *string { - if o == nil { +func (f *Function) GetFunctionType() *FunctionType { + if f == nil { return nil } - return o.Description + return f.FunctionType } -func (o *Function) GetDisplayName() *string { - if o == nil { +func (f *Function) GetHead() *string { + if f == nil { return nil } - return o.DisplayName + return f.Head } -func (o *Function) GetFunctionType() *FunctionType { - if o == nil { +func (f *Function) GetID() *string { + if f == nil { return nil } - return o.FunctionType + return f.ID } -func (o *Function) GetHead() *string { - if o == nil { +func (f *Function) GetIsDraft() *bool { + if f == nil { return nil } - return o.Head + return f.IsDraft } -func (o *Function) GetID() *string { - if o == nil { +func (f *Function) GetOutboundNetworkAllowlist() []string { + if f == nil { return nil } - return o.ID + return f.OutboundNetworkAllowlist } -func (o *Function) GetIsDraft() *bool { - if o == nil { +func (f *Function) GetPublishedCommitID() *string { + if f == nil { return nil } - return o.IsDraft + return f.PublishedCommitID } -func (o *Function) GetPublishedCommitID() *string { - if o == nil { +func (f *Function) GetScopedRoleIds() []string { + if f == nil { return nil } - return o.PublishedCommitID + return f.ScopedRoleIds } -func (o *Function) GetUpdatedAt() *time.Time { - if o == nil { +func (f *Function) GetUpdatedAt() *time.Time { + if f == nil { return nil } - return o.UpdatedAt + return f.UpdatedAt } // FunctionInput - Function represents a customer-provided code extension in the API @@ -127,6 +170,8 @@ type FunctionInput struct { Description *string `json:"description,omitempty"` // The displayName field. DisplayName *string `json:"displayName,omitempty"` + // The encryptedValues field. + EncryptedValues map[string]string `json:"encryptedValues,omitempty"` // The functionType field. FunctionType *FunctionType `json:"functionType,omitempty"` // The head field. @@ -135,55 +180,85 @@ type FunctionInput struct { ID *string `json:"id,omitempty"` // The isDraft field. IsDraft *bool `json:"isDraft,omitempty"` + // The outboundNetworkAllowlist field. + OutboundNetworkAllowlist []string `json:"outboundNetworkAllowlist,omitempty"` // The publishedCommitId field. PublishedCommitID *string `json:"publishedCommitId,omitempty"` + // Scoped role IDs define the permissions granted to this function when calling + // ConductorOne APIs. These are role IDs (not service roles) that get resolved + // to their service roles at authentication time. + // + // Currently only the "Read-Only Administrator" role (system:viewer) is supported. + // The role ID can be obtained from the roles API. + ScopedRoleIds []string `json:"scopedRoleIds,omitempty"` +} + +func (f *FunctionInput) GetDescription() *string { + if f == nil { + return nil + } + return f.Description +} + +func (f *FunctionInput) GetDisplayName() *string { + if f == nil { + return nil + } + return f.DisplayName +} + +func (f *FunctionInput) GetEncryptedValues() map[string]string { + if f == nil { + return nil + } + return f.EncryptedValues } -func (o *FunctionInput) GetDescription() *string { - if o == nil { +func (f *FunctionInput) GetFunctionType() *FunctionType { + if f == nil { return nil } - return o.Description + return f.FunctionType } -func (o *FunctionInput) GetDisplayName() *string { - if o == nil { +func (f *FunctionInput) GetHead() *string { + if f == nil { return nil } - return o.DisplayName + return f.Head } -func (o *FunctionInput) GetFunctionType() *FunctionType { - if o == nil { +func (f *FunctionInput) GetID() *string { + if f == nil { return nil } - return o.FunctionType + return f.ID } -func (o *FunctionInput) GetHead() *string { - if o == nil { +func (f *FunctionInput) GetIsDraft() *bool { + if f == nil { return nil } - return o.Head + return f.IsDraft } -func (o *FunctionInput) GetID() *string { - if o == nil { +func (f *FunctionInput) GetOutboundNetworkAllowlist() []string { + if f == nil { return nil } - return o.ID + return f.OutboundNetworkAllowlist } -func (o *FunctionInput) GetIsDraft() *bool { - if o == nil { +func (f *FunctionInput) GetPublishedCommitID() *string { + if f == nil { return nil } - return o.IsDraft + return f.PublishedCommitID } -func (o *FunctionInput) GetPublishedCommitID() *string { - if o == nil { +func (f *FunctionInput) GetScopedRoleIds() []string { + if f == nil { return nil } - return o.PublishedCommitID + return f.ScopedRoleIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functioncommit.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functioncommit.go index aa331165..e9af3b4c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functioncommit.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functioncommit.go @@ -25,43 +25,43 @@ func (f FunctionCommit) MarshalJSON() ([]byte, error) { } func (f *FunctionCommit) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { return err } return nil } -func (o *FunctionCommit) GetAuthor() *string { - if o == nil { +func (f *FunctionCommit) GetAuthor() *string { + if f == nil { return nil } - return o.Author + return f.Author } -func (o *FunctionCommit) GetCreatedAt() *time.Time { - if o == nil { +func (f *FunctionCommit) GetCreatedAt() *time.Time { + if f == nil { return nil } - return o.CreatedAt + return f.CreatedAt } -func (o *FunctionCommit) GetFunctionID() *string { - if o == nil { +func (f *FunctionCommit) GetFunctionID() *string { + if f == nil { return nil } - return o.FunctionID + return f.FunctionID } -func (o *FunctionCommit) GetID() *string { - if o == nil { +func (f *FunctionCommit) GetID() *string { + if f == nil { return nil } - return o.ID + return f.ID } -func (o *FunctionCommit) GetMessage() *string { - if o == nil { +func (f *FunctionCommit) GetMessage() *string { + if f == nil { return nil } - return o.Message + return f.Message } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functioninvocation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functioninvocation.go new file mode 100644 index 00000000..9ff7a1e3 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functioninvocation.go @@ -0,0 +1,126 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// FunctionInvocationStatus - The status field. +type FunctionInvocationStatus string + +const ( + FunctionInvocationStatusFunctionInvocationStatusUnspecified FunctionInvocationStatus = "FUNCTION_INVOCATION_STATUS_UNSPECIFIED" + FunctionInvocationStatusFunctionInvocationStatusPending FunctionInvocationStatus = "FUNCTION_INVOCATION_STATUS_PENDING" + FunctionInvocationStatusFunctionInvocationStatusRunning FunctionInvocationStatus = "FUNCTION_INVOCATION_STATUS_RUNNING" + FunctionInvocationStatusFunctionInvocationStatusSuccess FunctionInvocationStatus = "FUNCTION_INVOCATION_STATUS_SUCCESS" + FunctionInvocationStatusFunctionInvocationStatusError FunctionInvocationStatus = "FUNCTION_INVOCATION_STATUS_ERROR" +) + +func (e FunctionInvocationStatus) ToPointer() *FunctionInvocationStatus { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *FunctionInvocationStatus) IsExact() bool { + if e != nil { + switch *e { + case "FUNCTION_INVOCATION_STATUS_UNSPECIFIED", "FUNCTION_INVOCATION_STATUS_PENDING", "FUNCTION_INVOCATION_STATUS_RUNNING", "FUNCTION_INVOCATION_STATUS_SUCCESS", "FUNCTION_INVOCATION_STATUS_ERROR": + return true + } + } + return false +} + +// The FunctionInvocation message. +type FunctionInvocation struct { + // The commitId field. + CommitID *string `json:"commitId,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + // The error field. + Error *string `json:"error,omitempty"` + // The functionId field. + FunctionID *string `json:"functionId,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` + Input map[string]any `json:"input,omitempty"` + Output map[string]any `json:"output,omitempty"` + // The status field. + Status *FunctionInvocationStatus `json:"status,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` +} + +func (f FunctionInvocation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FunctionInvocation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { + return err + } + return nil +} + +func (f *FunctionInvocation) GetCommitID() *string { + if f == nil { + return nil + } + return f.CommitID +} + +func (f *FunctionInvocation) GetCreatedAt() *time.Time { + if f == nil { + return nil + } + return f.CreatedAt +} + +func (f *FunctionInvocation) GetError() *string { + if f == nil { + return nil + } + return f.Error +} + +func (f *FunctionInvocation) GetFunctionID() *string { + if f == nil { + return nil + } + return f.FunctionID +} + +func (f *FunctionInvocation) GetID() *string { + if f == nil { + return nil + } + return f.ID +} + +func (f *FunctionInvocation) GetInput() map[string]any { + if f == nil { + return nil + } + return f.Input +} + +func (f *FunctionInvocation) GetOutput() map[string]any { + if f == nil { + return nil + } + return f.Output +} + +func (f *FunctionInvocation) GetStatus() *FunctionInvocationStatus { + if f == nil { + return nil + } + return f.Status +} + +func (f *FunctionInvocation) GetUpdatedAt() *time.Time { + if f == nil { + return nil + } + return f.UpdatedAt +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsinvocationservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsinvocationservicegetresponse.go new file mode 100644 index 00000000..311d1593 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsinvocationservicegetresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The FunctionsInvocationServiceGetResponse message. +type FunctionsInvocationServiceGetResponse struct { + // The FunctionInvocation message. + FunctionInvocation *FunctionInvocation `json:"invocation,omitempty"` +} + +func (f *FunctionsInvocationServiceGetResponse) GetFunctionInvocation() *FunctionInvocation { + if f == nil { + return nil + } + return f.FunctionInvocation +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsinvocationservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsinvocationservicelistresponse.go new file mode 100644 index 00000000..d4285604 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsinvocationservicelistresponse.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The FunctionsInvocationServiceListResponse message. +type FunctionsInvocationServiceListResponse struct { + // The list field. + List []FunctionInvocation `json:"list,omitempty"` + // The nextPageToken field. + NextPageToken *string `json:"nextPageToken,omitempty"` +} + +func (f *FunctionsInvocationServiceListResponse) GetList() []FunctionInvocation { + if f == nil { + return nil + } + return f.List +} + +func (f *FunctionsInvocationServiceListResponse) GetNextPageToken() *string { + if f == nil { + return nil + } + return f.NextPageToken +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionssearchrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionssearchrequest.go index c9ceafa2..5250fc44 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionssearchrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionssearchrequest.go @@ -13,6 +13,17 @@ func (e FunctionTypes) ToPointer() *FunctionTypes { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *FunctionTypes) IsExact() bool { + if e != nil { + switch *e { + case "FUNCTION_TYPE_UNSPECIFIED", "FUNCTION_TYPE_ANY": + return true + } + } + return false +} + // The FunctionsSearchRequest message. type FunctionsSearchRequest struct { // The functionTypes field. @@ -25,30 +36,30 @@ type FunctionsSearchRequest struct { Query *string `json:"query,omitempty"` } -func (o *FunctionsSearchRequest) GetFunctionTypes() []FunctionTypes { - if o == nil { +func (f *FunctionsSearchRequest) GetFunctionTypes() []FunctionTypes { + if f == nil { return nil } - return o.FunctionTypes + return f.FunctionTypes } -func (o *FunctionsSearchRequest) GetPageSize() *int { - if o == nil { +func (f *FunctionsSearchRequest) GetPageSize() *int { + if f == nil { return nil } - return o.PageSize + return f.PageSize } -func (o *FunctionsSearchRequest) GetPageToken() *string { - if o == nil { +func (f *FunctionsSearchRequest) GetPageToken() *string { + if f == nil { return nil } - return o.PageToken + return f.PageToken } -func (o *FunctionsSearchRequest) GetQuery() *string { - if o == nil { +func (f *FunctionsSearchRequest) GetQuery() *string { + if f == nil { return nil } - return o.Query + return f.Query } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionssearchresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionssearchresponse.go index 6f57567d..ff13160b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionssearchresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionssearchresponse.go @@ -10,16 +10,16 @@ type FunctionsSearchResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *FunctionsSearchResponse) GetList() []Function { - if o == nil { +func (f *FunctionsSearchResponse) GetList() []Function { + if f == nil { return nil } - return o.List + return f.List } -func (o *FunctionsSearchResponse) GetNextPageToken() *string { - if o == nil { +func (f *FunctionsSearchResponse) GetNextPageToken() *string { + if f == nil { return nil } - return o.NextPageToken + return f.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecommitrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecommitrequest.go deleted file mode 100644 index e2f53a2d..00000000 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecommitrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package shared - -// The FunctionsServiceCommitRequest message. -type FunctionsServiceCommitRequest struct { - // The commitMessage field. - CommitMessage *string `json:"commitMessage,omitempty"` - // The content field. - Content map[string]string `json:"content,omitempty"` -} - -func (o *FunctionsServiceCommitRequest) GetCommitMessage() *string { - if o == nil { - return nil - } - return o.CommitMessage -} - -func (o *FunctionsServiceCommitRequest) GetContent() map[string]string { - if o == nil { - return nil - } - return o.Content -} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecommitresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecommitresponse.go deleted file mode 100644 index a151c2c9..00000000 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecommitresponse.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package shared - -// The FunctionsServiceCommitResponse message. -type FunctionsServiceCommitResponse struct { - // FunctionCommit represents a single commit in a function's history - FunctionCommit *FunctionCommit `json:"commit,omitempty"` -} - -func (o *FunctionsServiceCommitResponse) GetFunctionCommit() *FunctionCommit { - if o == nil { - return nil - } - return o.FunctionCommit -} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatefunctionrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatefunctionrequest.go index 80a91983..30a91f71 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatefunctionrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatefunctionrequest.go @@ -14,6 +14,17 @@ func (e FunctionsServiceCreateFunctionRequestFunctionType) ToPointer() *Function return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *FunctionsServiceCreateFunctionRequestFunctionType) IsExact() bool { + if e != nil { + switch *e { + case "FUNCTION_TYPE_UNSPECIFIED", "FUNCTION_TYPE_ANY": + return true + } + } + return false +} + // The FunctionsServiceCreateFunctionRequest message. type FunctionsServiceCreateFunctionRequest struct { // The commitMessage field. @@ -28,37 +39,37 @@ type FunctionsServiceCreateFunctionRequest struct { InitialContent map[string]string `json:"initialContent,omitempty"` } -func (o *FunctionsServiceCreateFunctionRequest) GetCommitMessage() *string { - if o == nil { +func (f *FunctionsServiceCreateFunctionRequest) GetCommitMessage() *string { + if f == nil { return nil } - return o.CommitMessage + return f.CommitMessage } -func (o *FunctionsServiceCreateFunctionRequest) GetDescription() *string { - if o == nil { +func (f *FunctionsServiceCreateFunctionRequest) GetDescription() *string { + if f == nil { return nil } - return o.Description + return f.Description } -func (o *FunctionsServiceCreateFunctionRequest) GetDisplayName() *string { - if o == nil { +func (f *FunctionsServiceCreateFunctionRequest) GetDisplayName() *string { + if f == nil { return nil } - return o.DisplayName + return f.DisplayName } -func (o *FunctionsServiceCreateFunctionRequest) GetFunctionType() *FunctionsServiceCreateFunctionRequestFunctionType { - if o == nil { +func (f *FunctionsServiceCreateFunctionRequest) GetFunctionType() *FunctionsServiceCreateFunctionRequestFunctionType { + if f == nil { return nil } - return o.FunctionType + return f.FunctionType } -func (o *FunctionsServiceCreateFunctionRequest) GetInitialContent() map[string]string { - if o == nil { +func (f *FunctionsServiceCreateFunctionRequest) GetInitialContent() map[string]string { + if f == nil { return nil } - return o.InitialContent + return f.InitialContent } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatefunctionresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatefunctionresponse.go index 852697ec..267f9112 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatefunctionresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatefunctionresponse.go @@ -10,16 +10,16 @@ type FunctionsServiceCreateFunctionResponse struct { FunctionCommit *FunctionCommit `json:"commit,omitempty"` } -func (o *FunctionsServiceCreateFunctionResponse) GetFunction() *Function { - if o == nil { +func (f *FunctionsServiceCreateFunctionResponse) GetFunction() *Function { + if f == nil { return nil } - return o.Function + return f.Function } -func (o *FunctionsServiceCreateFunctionResponse) GetFunctionCommit() *FunctionCommit { - if o == nil { +func (f *FunctionsServiceCreateFunctionResponse) GetFunctionCommit() *FunctionCommit { + if f == nil { return nil } - return o.FunctionCommit + return f.FunctionCommit } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatetagrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatetagrequest.go index a1b5965f..8afce7a7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatetagrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicecreatetagrequest.go @@ -10,16 +10,16 @@ type FunctionsServiceCreateTagRequest struct { Name *string `json:"name,omitempty"` } -func (o *FunctionsServiceCreateTagRequest) GetCommitID() *string { - if o == nil { +func (f *FunctionsServiceCreateTagRequest) GetCommitID() *string { + if f == nil { return nil } - return o.CommitID + return f.CommitID } -func (o *FunctionsServiceCreateTagRequest) GetName() *string { - if o == nil { +func (f *FunctionsServiceCreateTagRequest) GetName() *string { + if f == nil { return nil } - return o.Name + return f.Name } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetcommitresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetcommitresponse.go deleted file mode 100644 index c8b44a1a..00000000 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetcommitresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package shared - -// The FunctionsServiceGetCommitResponse message. -type FunctionsServiceGetCommitResponse struct { - // FunctionCommit represents a single commit in a function's history - FunctionCommit *FunctionCommit `json:"commit,omitempty"` - // The content field. - Content map[string]string `json:"content,omitempty"` -} - -func (o *FunctionsServiceGetCommitResponse) GetFunctionCommit() *FunctionCommit { - if o == nil { - return nil - } - return o.FunctionCommit -} - -func (o *FunctionsServiceGetCommitResponse) GetContent() map[string]string { - if o == nil { - return nil - } - return o.Content -} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetfunctionresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetfunctionresponse.go index 3134d4f6..29d13bb1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetfunctionresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetfunctionresponse.go @@ -8,9 +8,9 @@ type FunctionsServiceGetFunctionResponse struct { Function *Function `json:"function,omitempty"` } -func (o *FunctionsServiceGetFunctionResponse) GetFunction() *Function { - if o == nil { +func (f *FunctionsServiceGetFunctionResponse) GetFunction() *Function { + if f == nil { return nil } - return o.Function + return f.Function } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetfunctionsecretencryptionkeyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetfunctionsecretencryptionkeyresponse.go new file mode 100644 index 00000000..d67f05bd --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicegetfunctionsecretencryptionkeyresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The FunctionsServiceGetFunctionSecretEncryptionKeyResponse message. +type FunctionsServiceGetFunctionSecretEncryptionKeyResponse struct { + // The publicKey field. + PublicKey *string `json:"publicKey,omitempty"` +} + +func (f *FunctionsServiceGetFunctionSecretEncryptionKeyResponse) GetPublicKey() *string { + if f == nil { + return nil + } + return f.PublicKey +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceinvokerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceinvokerequest.go index 8cb14f0c..71ad58c3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceinvokerequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceinvokerequest.go @@ -15,16 +15,16 @@ type FunctionsServiceInvokeRequest struct { JSON *string `json:"json,omitempty"` } -func (o *FunctionsServiceInvokeRequest) GetCommitID() *string { - if o == nil { +func (f *FunctionsServiceInvokeRequest) GetCommitID() *string { + if f == nil { return nil } - return o.CommitID + return f.CommitID } -func (o *FunctionsServiceInvokeRequest) GetJSON() *string { - if o == nil { +func (f *FunctionsServiceInvokeRequest) GetJSON() *string { + if f == nil { return nil } - return o.JSON + return f.JSON } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceinvokeresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceinvokeresponse.go index ed81ca92..236ce0be 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceinvokeresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceinvokeresponse.go @@ -7,15 +7,26 @@ package shared // This message contains a oneof named resp. Only a single field of the following list may be set at a time: // - json type FunctionsServiceInvokeResponse struct { + // The invocationId field. + InvocationID *string `json:"invocationId,omitempty"` // The json field. // This field is part of the `resp` oneof. // See the documentation for `c1.api.functions.v1.FunctionsServiceInvokeResponse` for more details. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. JSON *string `json:"json,omitempty"` } -func (o *FunctionsServiceInvokeResponse) GetJSON() *string { - if o == nil { +func (f *FunctionsServiceInvokeResponse) GetInvocationID() *string { + if f == nil { return nil } - return o.JSON + return f.InvocationID +} + +func (f *FunctionsServiceInvokeResponse) GetJSON() *string { + if f == nil { + return nil + } + return f.JSON } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelistcommitsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelistcommitsresponse.go index b38d062d..0a7b4f29 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelistcommitsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelistcommitsresponse.go @@ -10,16 +10,16 @@ type FunctionsServiceListCommitsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *FunctionsServiceListCommitsResponse) GetList() []FunctionCommit { - if o == nil { +func (f *FunctionsServiceListCommitsResponse) GetList() []FunctionCommit { + if f == nil { return nil } - return o.List + return f.List } -func (o *FunctionsServiceListCommitsResponse) GetNextPageToken() *string { - if o == nil { +func (f *FunctionsServiceListCommitsResponse) GetNextPageToken() *string { + if f == nil { return nil } - return o.NextPageToken + return f.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelistfunctionsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelistfunctionsresponse.go index ccf6d3e6..a5b15349 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelistfunctionsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelistfunctionsresponse.go @@ -10,16 +10,16 @@ type FunctionsServiceListFunctionsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *FunctionsServiceListFunctionsResponse) GetList() []Function { - if o == nil { +func (f *FunctionsServiceListFunctionsResponse) GetList() []Function { + if f == nil { return nil } - return o.List + return f.List } -func (o *FunctionsServiceListFunctionsResponse) GetNextPageToken() *string { - if o == nil { +func (f *FunctionsServiceListFunctionsResponse) GetNextPageToken() *string { + if f == nil { return nil } - return o.NextPageToken + return f.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelisttagsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelisttagsresponse.go index d48325b2..37b4780b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelisttagsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsservicelisttagsresponse.go @@ -8,9 +8,9 @@ type FunctionsServiceListTagsResponse struct { Tags map[string]FunctionCommit `json:"tags,omitempty"` } -func (o *FunctionsServiceListTagsResponse) GetTags() map[string]FunctionCommit { - if o == nil { +func (f *FunctionsServiceListTagsResponse) GetTags() map[string]FunctionCommit { + if f == nil { return nil } - return o.Tags + return f.Tags } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceupdatefunctionrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceupdatefunctionrequest.go index ae2c8cfb..84fcb50c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceupdatefunctionrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceupdatefunctionrequest.go @@ -9,16 +9,16 @@ type FunctionsServiceUpdateFunctionRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *FunctionsServiceUpdateFunctionRequest) GetFunction() *FunctionInput { - if o == nil { +func (f *FunctionsServiceUpdateFunctionRequest) GetFunction() *FunctionInput { + if f == nil { return nil } - return o.Function + return f.Function } -func (o *FunctionsServiceUpdateFunctionRequest) GetUpdateMask() *string { - if o == nil { +func (f *FunctionsServiceUpdateFunctionRequest) GetUpdateMask() *string { + if f == nil { return nil } - return o.UpdateMask + return f.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceupdatefunctionresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceupdatefunctionresponse.go index 3b818593..fa0fb25e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceupdatefunctionresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/functionsserviceupdatefunctionresponse.go @@ -8,9 +8,9 @@ type FunctionsServiceUpdateFunctionResponse struct { Function *Function `json:"function,omitempty"` } -func (o *FunctionsServiceUpdateFunctionResponse) GetFunction() *Function { - if o == nil { +func (f *FunctionsServiceUpdateFunctionResponse) GetFunction() *Function { + if f == nil { return nil } - return o.Function + return f.Function } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/generatepassword.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/generatepassword.go new file mode 100644 index 00000000..f1e936ea --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/generatepassword.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The GeneratePassword message. +type GeneratePassword struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementmonitorbindingrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementmonitorbindingrequest.go index fad5379a..7efa04fe 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementmonitorbindingrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementmonitorbindingrequest.go @@ -15,6 +15,17 @@ func (e GetAppEntitlementMonitorBindingRequestEntitlementGroup) ToPointer() *Get return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *GetAppEntitlementMonitorBindingRequestEntitlementGroup) IsExact() bool { + if e != nil { + switch *e { + case "ENTITLEMENT_GROUP_UNSPECIFIED", "ENTITLEMENT_GROUP_A", "ENTITLEMENT_GROUP_B": + return true + } + } + return false +} + // The GetAppEntitlementMonitorBindingRequest message. type GetAppEntitlementMonitorBindingRequest struct { // The appEntitlementId field. @@ -27,30 +38,30 @@ type GetAppEntitlementMonitorBindingRequest struct { MonitorID *string `json:"monitorId,omitempty"` } -func (o *GetAppEntitlementMonitorBindingRequest) GetAppEntitlementID() *string { - if o == nil { +func (g *GetAppEntitlementMonitorBindingRequest) GetAppEntitlementID() *string { + if g == nil { return nil } - return o.AppEntitlementID + return g.AppEntitlementID } -func (o *GetAppEntitlementMonitorBindingRequest) GetAppID() *string { - if o == nil { +func (g *GetAppEntitlementMonitorBindingRequest) GetAppID() *string { + if g == nil { return nil } - return o.AppID + return g.AppID } -func (o *GetAppEntitlementMonitorBindingRequest) GetEntitlementGroup() *GetAppEntitlementMonitorBindingRequestEntitlementGroup { - if o == nil { +func (g *GetAppEntitlementMonitorBindingRequest) GetEntitlementGroup() *GetAppEntitlementMonitorBindingRequestEntitlementGroup { + if g == nil { return nil } - return o.EntitlementGroup + return g.EntitlementGroup } -func (o *GetAppEntitlementMonitorBindingRequest) GetMonitorID() *string { - if o == nil { +func (g *GetAppEntitlementMonitorBindingRequest) GetMonitorID() *string { + if g == nil { return nil } - return o.MonitorID + return g.MonitorID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementproxyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementproxyresponse.go index 0aa34260..a1ce9d3b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementproxyresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementproxyresponse.go @@ -18,24 +18,24 @@ func (g GetAppEntitlementProxyResponseExpanded) MarshalJSON() ([]byte, error) { } func (g *GetAppEntitlementProxyResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { return err } return nil } -func (o *GetAppEntitlementProxyResponseExpanded) GetAtType() *string { - if o == nil { +func (g *GetAppEntitlementProxyResponseExpanded) GetAtType() *string { + if g == nil { return nil } - return o.AtType + return g.AtType } -func (o *GetAppEntitlementProxyResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (g *GetAppEntitlementProxyResponseExpanded) GetAdditionalProperties() map[string]any { + if g == nil { return nil } - return o.AdditionalProperties + return g.AdditionalProperties } // The GetAppEntitlementProxyResponse message. @@ -46,16 +46,16 @@ type GetAppEntitlementProxyResponse struct { Expanded []GetAppEntitlementProxyResponseExpanded `json:"expanded,omitempty"` } -func (o *GetAppEntitlementProxyResponse) GetAppEntitlementProxyView() *AppEntitlementProxyView { - if o == nil { +func (g *GetAppEntitlementProxyResponse) GetAppEntitlementProxyView() *AppEntitlementProxyView { + if g == nil { return nil } - return o.AppEntitlementProxyView + return g.AppEntitlementProxyView } -func (o *GetAppEntitlementProxyResponse) GetExpanded() []GetAppEntitlementProxyResponseExpanded { - if o == nil { +func (g *GetAppEntitlementProxyResponse) GetExpanded() []GetAppEntitlementProxyResponseExpanded { + if g == nil { return nil } - return o.Expanded + return g.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementresponse.go index c7f633c0..6b6259e5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappentitlementresponse.go @@ -18,24 +18,24 @@ func (g GetAppEntitlementResponseExpanded) MarshalJSON() ([]byte, error) { } func (g *GetAppEntitlementResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { return err } return nil } -func (o *GetAppEntitlementResponseExpanded) GetAtType() *string { - if o == nil { +func (g *GetAppEntitlementResponseExpanded) GetAtType() *string { + if g == nil { return nil } - return o.AtType + return g.AtType } -func (o *GetAppEntitlementResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (g *GetAppEntitlementResponseExpanded) GetAdditionalProperties() map[string]any { + if g == nil { return nil } - return o.AdditionalProperties + return g.AdditionalProperties } // GetAppEntitlementResponse - The get app entitlement response returns an entitlement view containing paths in the expanded array for the objects expanded as indicated by the expand mask in the request. @@ -46,16 +46,16 @@ type GetAppEntitlementResponse struct { Expanded []GetAppEntitlementResponseExpanded `json:"expanded,omitempty"` } -func (o *GetAppEntitlementResponse) GetAppEntitlementView() *AppEntitlementView { - if o == nil { +func (g *GetAppEntitlementResponse) GetAppEntitlementView() *AppEntitlementView { + if g == nil { return nil } - return o.AppEntitlementView + return g.AppEntitlementView } -func (o *GetAppEntitlementResponse) GetExpanded() []GetAppEntitlementResponseExpanded { - if o == nil { +func (g *GetAppEntitlementResponse) GetExpanded() []GetAppEntitlementResponseExpanded { + if g == nil { return nil } - return o.Expanded + return g.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappresponse.go index 32dfa1e1..9b11cb76 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappresponse.go @@ -8,9 +8,9 @@ type GetAppResponse struct { App *App `json:"app,omitempty"` } -func (o *GetAppResponse) GetApp() *App { - if o == nil { +func (g *GetAppResponse) GetApp() *App { + if g == nil { return nil } - return o.App + return g.App } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappusagecontrolsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappusagecontrolsresponse.go index 0502031e..a4f89f3f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappusagecontrolsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getappusagecontrolsresponse.go @@ -10,16 +10,16 @@ type GetAppUsageControlsResponse struct { HasUsageData *bool `json:"hasUsageData,omitempty"` } -func (o *GetAppUsageControlsResponse) GetAppUsageControls() *AppUsageControls { - if o == nil { +func (g *GetAppUsageControlsResponse) GetAppUsageControls() *AppUsageControls { + if g == nil { return nil } - return o.AppUsageControls + return g.AppUsageControls } -func (o *GetAppUsageControlsResponse) GetHasUsageData() *bool { - if o == nil { +func (g *GetAppUsageControlsResponse) GetHasUsageData() *bool { + if g == nil { return nil } - return o.HasUsageData + return g.HasUsageData } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getattributevalueresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getattributevalueresponse.go index 1678353e..90250ecd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getattributevalueresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getattributevalueresponse.go @@ -8,9 +8,9 @@ type GetAttributeValueResponse struct { AttributeValue *AttributeValue `json:"value,omitempty"` } -func (o *GetAttributeValueResponse) GetAttributeValue() *AttributeValue { - if o == nil { +func (g *GetAttributeValueResponse) GetAttributeValue() *AttributeValue { + if g == nil { return nil } - return o.AttributeValue + return g.AttributeValue } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getautomationexecutionresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getautomationexecutionresponse.go index efecab84..29c1f862 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getautomationexecutionresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getautomationexecutionresponse.go @@ -2,15 +2,69 @@ package shared +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" +) + +// GetAutomationExecutionResponseExpanded - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. +type GetAutomationExecutionResponseExpanded struct { + // The type of the serialized message. + AtType *string `json:"@type,omitempty"` + AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` +} + +func (g GetAutomationExecutionResponseExpanded) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetAutomationExecutionResponseExpanded) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + +func (g *GetAutomationExecutionResponseExpanded) GetAtType() *string { + if g == nil { + return nil + } + return g.AtType +} + +func (g *GetAutomationExecutionResponseExpanded) GetAdditionalProperties() map[string]any { + if g == nil { + return nil + } + return g.AdditionalProperties +} + // The GetAutomationExecutionResponse message. type GetAutomationExecutionResponse struct { // The AutomationExecution message. AutomationExecution *AutomationExecution `json:"automationExecution,omitempty"` + // The AutomationExecutionView message. + AutomationExecutionView *AutomationExecutionView `json:"view,omitempty"` + // The expanded field. + Expanded []GetAutomationExecutionResponseExpanded `json:"expanded,omitempty"` +} + +func (g *GetAutomationExecutionResponse) GetAutomationExecution() *AutomationExecution { + if g == nil { + return nil + } + return g.AutomationExecution +} + +func (g *GetAutomationExecutionResponse) GetAutomationExecutionView() *AutomationExecutionView { + if g == nil { + return nil + } + return g.AutomationExecutionView } -func (o *GetAutomationExecutionResponse) GetAutomationExecution() *AutomationExecution { - if o == nil { +func (g *GetAutomationExecutionResponse) GetExpanded() []GetAutomationExecutionResponseExpanded { + if g == nil { return nil } - return o.AutomationExecution + return g.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getautomationresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getautomationresponse.go index 40365587..c349fd43 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getautomationresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getautomationresponse.go @@ -12,9 +12,9 @@ type GetAutomationResponse struct { Automation *Automation `json:"automation,omitempty"` } -func (o *GetAutomationResponse) GetAutomation() *Automation { - if o == nil { +func (g *GetAutomationResponse) GetAutomation() *Automation { + if g == nil { return nil } - return o.Automation + return g.Automation } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getawsexternalidresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getawsexternalidresponse.go index 76af4708..470dd349 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getawsexternalidresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getawsexternalidresponse.go @@ -8,9 +8,9 @@ type GetAWSExternalIDResponse struct { AWSExternalID *AWSExternalID `json:"awsExternalId,omitempty"` } -func (o *GetAWSExternalIDResponse) GetAWSExternalID() *AWSExternalID { - if o == nil { +func (g *GetAWSExternalIDResponse) GetAWSExternalID() *AWSExternalID { + if g == nil { return nil } - return o.AWSExternalID + return g.AWSExternalID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getcomplianceframeworkattributevalueresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getcomplianceframeworkattributevalueresponse.go index 88da12c0..08a03d32 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getcomplianceframeworkattributevalueresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getcomplianceframeworkattributevalueresponse.go @@ -8,9 +8,9 @@ type GetComplianceFrameworkAttributeValueResponse struct { AttributeValue *AttributeValue `json:"value,omitempty"` } -func (o *GetComplianceFrameworkAttributeValueResponse) GetAttributeValue() *AttributeValue { - if o == nil { +func (g *GetComplianceFrameworkAttributeValueResponse) GetAttributeValue() *AttributeValue { + if g == nil { return nil } - return o.AttributeValue + return g.AttributeValue } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getconnectorsyncdownloadurlresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getconnectorsyncdownloadurlresponse.go new file mode 100644 index 00000000..49ac17d1 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getconnectorsyncdownloadurlresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The GetConnectorSyncDownloadURLResponse message. +type GetConnectorSyncDownloadURLResponse struct { + // Short-lived download URL for the connector sync artifact + DownloadURL *string `json:"downloadUrl,omitempty"` +} + +func (g *GetConnectorSyncDownloadURLResponse) GetDownloadURL() *string { + if g == nil { + return nil + } + return g.DownloadURL +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getpolicyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getpolicyresponse.go index 47032d15..3a487d3b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getpolicyresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getpolicyresponse.go @@ -8,9 +8,9 @@ type GetPolicyResponse struct { Policy *Policy `json:"policy,omitempty"` } -func (o *GetPolicyResponse) GetPolicy() *Policy { - if o == nil { +func (g *GetPolicyResponse) GetPolicy() *Policy { + if g == nil { return nil } - return o.Policy + return g.Policy } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getrisklevelattributevalueresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getrisklevelattributevalueresponse.go index 7ce4fec9..d5f22fbe 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getrisklevelattributevalueresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getrisklevelattributevalueresponse.go @@ -8,9 +8,9 @@ type GetRiskLevelAttributeValueResponse struct { AttributeValue *AttributeValue `json:"value,omitempty"` } -func (o *GetRiskLevelAttributeValueResponse) GetAttributeValue() *AttributeValue { - if o == nil { +func (g *GetRiskLevelAttributeValueResponse) GetAttributeValue() *AttributeValue { + if g == nil { return nil } - return o.AttributeValue + return g.AttributeValue } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getrolesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getrolesresponse.go index cfa214ed..32fe6ef3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getrolesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getrolesresponse.go @@ -8,9 +8,9 @@ type GetRolesResponse struct { Role *Role `json:"role,omitempty"` } -func (o *GetRolesResponse) GetRole() *Role { - if o == nil { +func (g *GetRolesResponse) GetRole() *Role { + if g == nil { return nil } - return o.Role + return g.Role } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getsessionsettingsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getsessionsettingsresponse.go index 7504b4b4..83988ce4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getsessionsettingsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getsessionsettingsresponse.go @@ -8,9 +8,9 @@ type GetSessionSettingsResponse struct { SessionSettings *SessionSettings `json:"sessionSettings,omitempty"` } -func (o *GetSessionSettingsResponse) GetSessionSettings() *SessionSettings { - if o == nil { +func (g *GetSessionSettingsResponse) GetSessionSettings() *SessionSettings { + if g == nil { return nil } - return o.SessionSettings + return g.SessionSettings } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getstepupproviderresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getstepupproviderresponse.go index b4388cf0..b92d1781 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getstepupproviderresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getstepupproviderresponse.go @@ -13,9 +13,9 @@ type GetStepUpProviderResponse struct { StepUpProvider *StepUpProvider `json:"stepUpProvider,omitempty"` } -func (o *GetStepUpProviderResponse) GetStepUpProvider() *StepUpProvider { - if o == nil { +func (g *GetStepUpProviderResponse) GetStepUpProvider() *StepUpProvider { + if g == nil { return nil } - return o.StepUpProvider + return g.StepUpProvider } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getstepuptransactionresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getstepuptransactionresponse.go index 16fcc7f4..da8444ab 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getstepuptransactionresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getstepuptransactionresponse.go @@ -13,9 +13,9 @@ type GetStepUpTransactionResponse struct { StepUpTransaction *StepUpTransaction `json:"transaction,omitempty"` } -func (o *GetStepUpTransactionResponse) GetStepUpTransaction() *StepUpTransaction { - if o == nil { +func (g *GetStepUpTransactionResponse) GetStepUpTransaction() *StepUpTransaction { + if g == nil { return nil } - return o.StepUpTransaction + return g.StepUpTransaction } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getuserprofiletypesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getuserprofiletypesresponse.go new file mode 100644 index 00000000..3c54ac2e --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/getuserprofiletypesresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The GetUserProfileTypesResponse message. +type GetUserProfileTypesResponse struct { + // The profileTypes field. + ProfileTypes []ProfileType `json:"profileTypes,omitempty"` +} + +func (g *GetUserProfileTypesResponse) GetProfileTypes() []ProfileType { + if g == nil { + return nil + } + return g.ProfileTypes +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantaccessprofilefilter.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantaccessprofilefilter.go new file mode 100644 index 00000000..c5458e40 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantaccessprofilefilter.go @@ -0,0 +1,64 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// FilterType - The filterType field. +type FilterType string + +const ( + FilterTypeAccessProfileFilterTypeUnspecified FilterType = "ACCESS_PROFILE_FILTER_TYPE_UNSPECIFIED" + FilterTypeAccessProfileFilterTypeIncludeAll FilterType = "ACCESS_PROFILE_FILTER_TYPE_INCLUDE_ALL" + FilterTypeAccessProfileFilterTypeExcludeAll FilterType = "ACCESS_PROFILE_FILTER_TYPE_EXCLUDE_ALL" + FilterTypeAccessProfileFilterTypeExcludeSpecific FilterType = "ACCESS_PROFILE_FILTER_TYPE_EXCLUDE_SPECIFIC" + FilterTypeAccessProfileFilterTypeIncludeSpecific FilterType = "ACCESS_PROFILE_FILTER_TYPE_INCLUDE_SPECIFIC" +) + +func (e FilterType) ToPointer() *FilterType { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *FilterType) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_PROFILE_FILTER_TYPE_UNSPECIFIED", "ACCESS_PROFILE_FILTER_TYPE_INCLUDE_ALL", "ACCESS_PROFILE_FILTER_TYPE_EXCLUDE_ALL", "ACCESS_PROFILE_FILTER_TYPE_EXCLUDE_SPECIFIC", "ACCESS_PROFILE_FILTER_TYPE_INCLUDE_SPECIFIC": + return true + } + } + return false +} + +// The GrantAccessProfileFilter message. +type GrantAccessProfileFilter struct { + // Access profile IDs to EXCLUDE from the campaign + // Used when filter_type = EXCLUDE_SPECIFIC + // Max 32 profile IDs + ExcludedAccessProfileIds []string `json:"excludedAccessProfileIds,omitempty"` + // The filterType field. + FilterType *FilterType `json:"filterType,omitempty"` + // Access profile IDs to INCLUDE in the campaign + // Used when filter_type = INCLUDE_SPECIFIC + // Max 32 profile IDs + IncludedAccessProfileIds []string `json:"includedAccessProfileIds,omitempty"` +} + +func (g *GrantAccessProfileFilter) GetExcludedAccessProfileIds() []string { + if g == nil { + return nil + } + return g.ExcludedAccessProfileIds +} + +func (g *GrantAccessProfileFilter) GetFilterType() *FilterType { + if g == nil { + return nil + } + return g.FilterType +} + +func (g *GrantAccessProfileFilter) GetIncludedAccessProfileIds() []string { + if g == nil { + return nil + } + return g.IncludedAccessProfileIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantdeletedtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantdeletedtrigger.go index 603bbeb3..e06d9ade 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantdeletedtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantdeletedtrigger.go @@ -5,12 +5,19 @@ package shared // The GrantDeletedTrigger message. type GrantDeletedTrigger struct { // The GrantTriggerFilter message. + // + // This message contains a oneof named entitlement_inclusion. Only a single field of the following list may be set at a time: + // - inclusionList + // - inclusionAll + // - inclusionCriteria + // - inclusionListCel + // GrantTriggerFilter *GrantTriggerFilter `json:"grantTriggerFilter,omitempty"` } -func (o *GrantDeletedTrigger) GetGrantTriggerFilter() *GrantTriggerFilter { - if o == nil { +func (g *GrantDeletedTrigger) GetGrantTriggerFilter() *GrantTriggerFilter { + if g == nil { return nil } - return o.GrantTriggerFilter + return g.GrantTriggerFilter } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantentitlements.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantentitlements.go index 238fa50f..2e038232 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantentitlements.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantentitlements.go @@ -16,37 +16,37 @@ type GrantEntitlements struct { UserIDCel *string `json:"userIdCel,omitempty"` } -func (o *GrantEntitlements) GetUserRef() *UserRef { - if o == nil { +func (g *GrantEntitlements) GetUserRef() *UserRef { + if g == nil { return nil } - return o.UserRef + return g.UserRef } -func (o *GrantEntitlements) GetAppEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (g *GrantEntitlements) GetAppEntitlementRefs() []AppEntitlementRef { + if g == nil { return nil } - return o.AppEntitlementRefs + return g.AppEntitlementRefs } -func (o *GrantEntitlements) GetAppEntitlementRefsCel() *string { - if o == nil { +func (g *GrantEntitlements) GetAppEntitlementRefsCel() *string { + if g == nil { return nil } - return o.AppEntitlementRefsCel + return g.AppEntitlementRefsCel } -func (o *GrantEntitlements) GetUseSubjectUser() *bool { - if o == nil { +func (g *GrantEntitlements) GetUseSubjectUser() *bool { + if g == nil { return nil } - return o.UseSubjectUser + return g.UseSubjectUser } -func (o *GrantEntitlements) GetUserIDCel() *string { - if o == nil { +func (g *GrantEntitlements) GetUserIDCel() *string { + if g == nil { return nil } - return o.UserIDCel + return g.UserIDCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantfilter.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantfilter.go index a36b1a55..e58edef3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantfilter.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantfilter.go @@ -15,6 +15,17 @@ func (e GrantFilterType) ToPointer() *GrantFilterType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *GrantFilterType) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_FILTER_TYPE_UNSPECIFIED", "GRANT_FILTER_TYPE_PERMANENT", "GRANT_FILTER_TYPE_TEMPORARY": + return true + } + } + return false +} + // GrantJustificationType - The grantJustificationType field. type GrantJustificationType string @@ -29,6 +40,17 @@ func (e GrantJustificationType) ToPointer() *GrantJustificationType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *GrantJustificationType) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_JUSTIFICATION_TYPE_UNSPECIFIED", "GRANT_JUSTIFICATION_TYPE_ALL", "GRANT_JUSTIFICATION_TYPE_CONDUCTOR_ONE", "GRANT_JUSTIFICATION_TYPE_DIRECT": + return true + } + } + return false +} + // GrantSourceFilter - The grantSourceFilter field. type GrantSourceFilter string @@ -42,6 +64,17 @@ func (e GrantSourceFilter) ToPointer() *GrantSourceFilter { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *GrantSourceFilter) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_SOURCE_FILTER_UNSPECIFIED", "GRANT_SOURCE_FILTER_DIRECT", "GRANT_SOURCE_FILTER_INHERITED": + return true + } + } + return false +} + // The GrantFilter message. type GrantFilter struct { // The grantFilterType field. @@ -52,23 +85,23 @@ type GrantFilter struct { GrantSourceFilter *GrantSourceFilter `json:"grantSourceFilter,omitempty"` } -func (o *GrantFilter) GetGrantFilterType() *GrantFilterType { - if o == nil { +func (g *GrantFilter) GetGrantFilterType() *GrantFilterType { + if g == nil { return nil } - return o.GrantFilterType + return g.GrantFilterType } -func (o *GrantFilter) GetGrantJustificationType() *GrantJustificationType { - if o == nil { +func (g *GrantFilter) GetGrantJustificationType() *GrantJustificationType { + if g == nil { return nil } - return o.GrantJustificationType + return g.GrantJustificationType } -func (o *GrantFilter) GetGrantSourceFilter() *GrantSourceFilter { - if o == nil { +func (g *GrantFilter) GetGrantSourceFilter() *GrantSourceFilter { + if g == nil { return nil } - return o.GrantSourceFilter + return g.GrantSourceFilter } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantfoundtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantfoundtrigger.go index 6e296416..14c208f0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantfoundtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantfoundtrigger.go @@ -5,12 +5,19 @@ package shared // The GrantFoundTrigger message. type GrantFoundTrigger struct { // The GrantTriggerFilter message. + // + // This message contains a oneof named entitlement_inclusion. Only a single field of the following list may be set at a time: + // - inclusionList + // - inclusionAll + // - inclusionCriteria + // - inclusionListCel + // GrantTriggerFilter *GrantTriggerFilter `json:"grantTriggerFilter,omitempty"` } -func (o *GrantFoundTrigger) GetGrantTriggerFilter() *GrantTriggerFilter { - if o == nil { +func (g *GrantFoundTrigger) GetGrantTriggerFilter() *GrantTriggerFilter { + if g == nil { return nil } - return o.GrantTriggerFilter + return g.GrantTriggerFilter } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantreason.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantreason.go index 740d64fa..d73dc91f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantreason.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantreason.go @@ -22,6 +22,17 @@ func (e ReferenceStrength) ToPointer() *ReferenceStrength { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ReferenceStrength) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_REASON_REFERENCE_STRENGTH_UNSPECIFIED", "GRANT_REASON_REFERENCE_STRENGTH_WEAK", "GRANT_REASON_REFERENCE_STRENGTH_STRONG": + return true + } + } + return false +} + // The GrantReason message. type GrantReason struct { // The ID of the app entitlement that is associated with the grant reason. @@ -48,78 +59,78 @@ func (g GrantReason) MarshalJSON() ([]byte, error) { } func (g *GrantReason) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { return err } return nil } -func (o *GrantReason) GetAppEntitlementID() *string { - if o == nil { +func (g *GrantReason) GetAppEntitlementID() *string { + if g == nil { return nil } - return o.AppEntitlementID + return g.AppEntitlementID } -func (o *GrantReason) GetAppID() *string { - if o == nil { +func (g *GrantReason) GetAppID() *string { + if g == nil { return nil } - return o.AppID + return g.AppID } -func (o *GrantReason) GetAppUserID() *string { - if o == nil { +func (g *GrantReason) GetAppUserID() *string { + if g == nil { return nil } - return o.AppUserID + return g.AppUserID } -func (o *GrantReason) GetCreatedAt() *time.Time { - if o == nil { +func (g *GrantReason) GetCreatedAt() *time.Time { + if g == nil { return nil } - return o.CreatedAt + return g.CreatedAt } -func (o *GrantReason) GetDeletedAt() *time.Time { - if o == nil { +func (g *GrantReason) GetDeletedAt() *time.Time { + if g == nil { return nil } - return o.DeletedAt + return g.DeletedAt } -func (o *GrantReason) GetDerivedIDData() *string { - if o == nil { +func (g *GrantReason) GetDerivedIDData() *string { + if g == nil { return nil } - return o.DerivedIDData + return g.DerivedIDData } -func (o *GrantReason) GetDerivedIDType() *string { - if o == nil { +func (g *GrantReason) GetDerivedIDType() *string { + if g == nil { return nil } - return o.DerivedIDType + return g.DerivedIDType } -func (o *GrantReason) GetReasonExpiresAt() *time.Time { - if o == nil { +func (g *GrantReason) GetReasonExpiresAt() *time.Time { + if g == nil { return nil } - return o.ReasonExpiresAt + return g.ReasonExpiresAt } -func (o *GrantReason) GetReferenceStrength() *ReferenceStrength { - if o == nil { +func (g *GrantReason) GetReferenceStrength() *ReferenceStrength { + if g == nil { return nil } - return o.ReferenceStrength + return g.ReferenceStrength } -func (o *GrantReason) GetUpdatedAt() *time.Time { - if o == nil { +func (g *GrantReason) GetUpdatedAt() *time.Time { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantsaddedbetween.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantsaddedbetween.go new file mode 100644 index 00000000..69484000 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantsaddedbetween.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The GrantsAddedBetween message. +type GrantsAddedBetween struct { + EndDate *time.Time `json:"endDate,omitempty"` + StartDate *time.Time `json:"startDate,omitempty"` +} + +func (g GrantsAddedBetween) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GrantsAddedBetween) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + +func (g *GrantsAddedBetween) GetEndDate() *time.Time { + if g == nil { + return nil + } + return g.EndDate +} + +func (g *GrantsAddedBetween) GetStartDate() *time.Time { + if g == nil { + return nil + } + return g.StartDate +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantsbycriteriascope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantsbycriteriascope.go new file mode 100644 index 00000000..000c00ed --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/grantsbycriteriascope.go @@ -0,0 +1,120 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// SourceFilter - The sourceFilter field. +type SourceFilter string + +const ( + SourceFilterGrantSourceFilterUnspecified SourceFilter = "GRANT_SOURCE_FILTER_UNSPECIFIED" + SourceFilterGrantSourceFilterDirect SourceFilter = "GRANT_SOURCE_FILTER_DIRECT" + SourceFilterGrantSourceFilterInherited SourceFilter = "GRANT_SOURCE_FILTER_INHERITED" +) + +func (e SourceFilter) ToPointer() *SourceFilter { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *SourceFilter) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_SOURCE_FILTER_UNSPECIFIED", "GRANT_SOURCE_FILTER_DIRECT", "GRANT_SOURCE_FILTER_INHERITED": + return true + } + } + return false +} + +// TypeFilter - The typeFilter field. +type TypeFilter string + +const ( + TypeFilterGrantFilterTypeUnspecified TypeFilter = "GRANT_FILTER_TYPE_UNSPECIFIED" + TypeFilterGrantFilterTypePermanent TypeFilter = "GRANT_FILTER_TYPE_PERMANENT" + TypeFilterGrantFilterTypeTemporary TypeFilter = "GRANT_FILTER_TYPE_TEMPORARY" +) + +func (e TypeFilter) ToPointer() *TypeFilter { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TypeFilter) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_FILTER_TYPE_UNSPECIFIED", "GRANT_FILTER_TYPE_PERMANENT", "GRANT_FILTER_TYPE_TEMPORARY": + return true + } + } + return false +} + +// The GrantsByCriteriaScope message. +// +// This message contains a oneof named criteria_filter. Only a single field of the following list may be set at a time: +// - daysSinceAdded +// - daysSinceReviewed +// - grantsAddedBetween +type GrantsByCriteriaScope struct { + // The GrantAccessProfileFilter message. + GrantAccessProfileFilter *GrantAccessProfileFilter `json:"accessProfileFilter,omitempty"` + // The GrantsAddedBetween message. + GrantsAddedBetween *GrantsAddedBetween `json:"grantsAddedBetween,omitempty"` + DaysSinceAdded *string `json:"daysSinceAdded,omitempty"` + DaysSinceLastUsed *string `json:"daysSinceLastUsed,omitempty"` + DaysSinceReviewed *string `json:"daysSinceReviewed,omitempty"` + // The sourceFilter field. + SourceFilter *SourceFilter `json:"sourceFilter,omitempty"` + // The typeFilter field. + TypeFilter *TypeFilter `json:"typeFilter,omitempty"` +} + +func (g *GrantsByCriteriaScope) GetGrantAccessProfileFilter() *GrantAccessProfileFilter { + if g == nil { + return nil + } + return g.GrantAccessProfileFilter +} + +func (g *GrantsByCriteriaScope) GetGrantsAddedBetween() *GrantsAddedBetween { + if g == nil { + return nil + } + return g.GrantsAddedBetween +} + +func (g *GrantsByCriteriaScope) GetDaysSinceAdded() *string { + if g == nil { + return nil + } + return g.DaysSinceAdded +} + +func (g *GrantsByCriteriaScope) GetDaysSinceLastUsed() *string { + if g == nil { + return nil + } + return g.DaysSinceLastUsed +} + +func (g *GrantsByCriteriaScope) GetDaysSinceReviewed() *string { + if g == nil { + return nil + } + return g.DaysSinceReviewed +} + +func (g *GrantsByCriteriaScope) GetSourceFilter() *SourceFilter { + if g == nil { + return nil + } + return g.SourceFilter +} + +func (g *GrantsByCriteriaScope) GetTypeFilter() *TypeFilter { + if g == nil { + return nil + } + return g.TypeFilter +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/granttriggerfilter.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/granttriggerfilter.go index ad36a633..d4ecef85 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/granttriggerfilter.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/granttriggerfilter.go @@ -3,32 +3,74 @@ package shared // The GrantTriggerFilter message. +// +// This message contains a oneof named entitlement_inclusion. Only a single field of the following list may be set at a time: +// - inclusionList +// - inclusionAll +// - inclusionCriteria +// - inclusionListCel type GrantTriggerFilter struct { // The AccountFilter message. AccountFilter *AccountFilter `json:"accountFilter,omitempty"` // The EntitlementFilter message. EntitlementFilter *EntitlementFilter `json:"entitlementFilter,omitempty"` + // The EntitlementInclusionAll message. + EntitlementInclusionAll *EntitlementInclusionAll `json:"inclusionAll,omitempty"` + // The EntitlementInclusionCriteria message. + EntitlementInclusionCriteria *EntitlementInclusionCriteria `json:"inclusionCriteria,omitempty"` + // The EntitlementInclusionList message. + EntitlementInclusionList *EntitlementInclusionList `json:"inclusionList,omitempty"` + // The EntitlementInclusionListCel message. + EntitlementInclusionListCel *EntitlementInclusionListCel `json:"inclusionListCel,omitempty"` // The GrantFilter message. GrantFilter *GrantFilter `json:"grantFilter,omitempty"` } -func (o *GrantTriggerFilter) GetAccountFilter() *AccountFilter { - if o == nil { +func (g *GrantTriggerFilter) GetAccountFilter() *AccountFilter { + if g == nil { return nil } - return o.AccountFilter + return g.AccountFilter } -func (o *GrantTriggerFilter) GetEntitlementFilter() *EntitlementFilter { - if o == nil { +func (g *GrantTriggerFilter) GetEntitlementFilter() *EntitlementFilter { + if g == nil { return nil } - return o.EntitlementFilter + return g.EntitlementFilter } -func (o *GrantTriggerFilter) GetGrantFilter() *GrantFilter { - if o == nil { +func (g *GrantTriggerFilter) GetEntitlementInclusionAll() *EntitlementInclusionAll { + if g == nil { return nil } - return o.GrantFilter + return g.EntitlementInclusionAll +} + +func (g *GrantTriggerFilter) GetEntitlementInclusionCriteria() *EntitlementInclusionCriteria { + if g == nil { + return nil + } + return g.EntitlementInclusionCriteria +} + +func (g *GrantTriggerFilter) GetEntitlementInclusionList() *EntitlementInclusionList { + if g == nil { + return nil + } + return g.EntitlementInclusionList +} + +func (g *GrantTriggerFilter) GetEntitlementInclusionListCel() *EntitlementInclusionListCel { + if g == nil { + return nil + } + return g.EntitlementInclusionListCel +} + +func (g *GrantTriggerFilter) GetGrantFilter() *GrantFilter { + if g == nil { + return nil + } + return g.GrantFilter } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/groupauthzvault.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/groupauthzvault.go new file mode 100644 index 00000000..31fb3e88 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/groupauthzvault.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The GroupAuthzVault message. +type GroupAuthzVault struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/importfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/importfield.go new file mode 100644 index 00000000..cb574af4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/importfield.go @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ImportField message. +type ImportField struct { + // StringRules describe the constraints applied to `string` values + // + // This message contains a oneof named well_known. Only a single field of the following list may be set at a time: + // - email + // - hostname + // - ip + // - ipv4 + // - ipv6 + // - uri + // - uriRef + // - address + // - uuid + // - wellKnownRegex + // + StringRules *StringRules `json:"valueValidator,omitempty"` + // The allowedExtensions field. + AllowedExtensions []string `json:"allowedExtensions,omitempty"` + // The secret field. + Secret *bool `json:"secret,omitempty"` +} + +func (i *ImportField) GetStringRules() *StringRules { + if i == nil { + return nil + } + return i.StringRules +} + +func (i *ImportField) GetAllowedExtensions() []string { + if i == nil { + return nil + } + return i.AllowedExtensions +} + +func (i *ImportField) GetSecret() *bool { + if i == nil { + return nil + } + return i.Secret +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/includeduserattributevalue.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/includeduserattributevalue.go new file mode 100644 index 00000000..0b188845 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/includeduserattributevalue.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The IncludedUserAttributeValue message. +type IncludedUserAttributeValue struct { + // The value field. + Value *string `json:"value,omitempty"` +} + +func (i *IncludedUserAttributeValue) GetValue() *string { + if i == nil { + return nil + } + return i.Value +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/includeduserattributevalues.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/includeduserattributevalues.go new file mode 100644 index 00000000..06b266b4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/includeduserattributevalues.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The IncludedUserAttributeValues message. +type IncludedUserAttributeValues struct { + // The values field. + Values []IncludedUserAttributeValue `json:"values,omitempty"` +} + +func (i *IncludedUserAttributeValues) GetValues() []IncludedUserAttributeValue { + if i == nil { + return nil + } + return i.Values +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int32rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int32rules.go index b7fbb1cf..987d6050 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int32rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int32rules.go @@ -31,58 +31,58 @@ type Int32Rules struct { NotIn []int `json:"notIn,omitempty"` } -func (o *Int32Rules) GetConst() *int { - if o == nil { +func (i *Int32Rules) GetConst() *int { + if i == nil { return nil } - return o.Const + return i.Const } -func (o *Int32Rules) GetGt() *int { - if o == nil { +func (i *Int32Rules) GetGt() *int { + if i == nil { return nil } - return o.Gt + return i.Gt } -func (o *Int32Rules) GetGte() *int { - if o == nil { +func (i *Int32Rules) GetGte() *int { + if i == nil { return nil } - return o.Gte + return i.Gte } -func (o *Int32Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (i *Int32Rules) GetIgnoreEmpty() *bool { + if i == nil { return nil } - return o.IgnoreEmpty + return i.IgnoreEmpty } -func (o *Int32Rules) GetIn() []int { - if o == nil { +func (i *Int32Rules) GetIn() []int { + if i == nil { return nil } - return o.In + return i.In } -func (o *Int32Rules) GetLt() *int { - if o == nil { +func (i *Int32Rules) GetLt() *int { + if i == nil { return nil } - return o.Lt + return i.Lt } -func (o *Int32Rules) GetLte() *int { - if o == nil { +func (i *Int32Rules) GetLte() *int { + if i == nil { return nil } - return o.Lte + return i.Lte } -func (o *Int32Rules) GetNotIn() []int { - if o == nil { +func (i *Int32Rules) GetNotIn() []int { + if i == nil { return nil } - return o.NotIn + return i.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int64field.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int64field.go index ac9b524b..5411d2a2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int64field.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int64field.go @@ -25,30 +25,30 @@ type Int64Field struct { Placeholder *string `json:"placeholder,omitempty"` } -func (o *Int64Field) GetInt64Rules() *Int64Rules { - if o == nil { +func (i *Int64Field) GetInt64Rules() *Int64Rules { + if i == nil { return nil } - return o.Int64Rules + return i.Int64Rules } -func (o *Int64Field) GetNumberField() *NumberField { - if o == nil { +func (i *Int64Field) GetNumberField() *NumberField { + if i == nil { return nil } - return o.NumberField + return i.NumberField } -func (o *Int64Field) GetDefaultValue() *int64 { - if o == nil { +func (i *Int64Field) GetDefaultValue() *int64 { + if i == nil { return nil } - return o.DefaultValue + return i.DefaultValue } -func (o *Int64Field) GetPlaceholder() *string { - if o == nil { +func (i *Int64Field) GetPlaceholder() *string { + if i == nil { return nil } - return o.Placeholder + return i.Placeholder } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int64rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int64rules.go index 90bc1f77..ef63ada8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int64rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/int64rules.go @@ -31,58 +31,58 @@ type Int64Rules struct { NotIn []int64 `integer:"string" json:"notIn,omitempty"` } -func (o *Int64Rules) GetConst() *int64 { - if o == nil { +func (i *Int64Rules) GetConst() *int64 { + if i == nil { return nil } - return o.Const + return i.Const } -func (o *Int64Rules) GetGt() *int64 { - if o == nil { +func (i *Int64Rules) GetGt() *int64 { + if i == nil { return nil } - return o.Gt + return i.Gt } -func (o *Int64Rules) GetGte() *int64 { - if o == nil { +func (i *Int64Rules) GetGte() *int64 { + if i == nil { return nil } - return o.Gte + return i.Gte } -func (o *Int64Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (i *Int64Rules) GetIgnoreEmpty() *bool { + if i == nil { return nil } - return o.IgnoreEmpty + return i.IgnoreEmpty } -func (o *Int64Rules) GetIn() []int64 { - if o == nil { +func (i *Int64Rules) GetIn() []int64 { + if i == nil { return nil } - return o.In + return i.In } -func (o *Int64Rules) GetLt() *int64 { - if o == nil { +func (i *Int64Rules) GetLt() *int64 { + if i == nil { return nil } - return o.Lt + return i.Lt } -func (o *Int64Rules) GetLte() *int64 { - if o == nil { +func (i *Int64Rules) GetLte() *int64 { + if i == nil { return nil } - return o.Lte + return i.Lte } -func (o *Int64Rules) GetNotIn() []int64 { - if o == nil { +func (i *Int64Rules) GetNotIn() []int64 { + if i == nil { return nil } - return o.NotIn + return i.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/introspectresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/introspectresponse.go index c1331cfc..8ba29d76 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/introspectresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/introspectresponse.go @@ -16,37 +16,37 @@ type IntrospectResponse struct { UserID *string `json:"userId,omitempty"` } -func (o *IntrospectResponse) GetFeatures() []string { - if o == nil { +func (i *IntrospectResponse) GetFeatures() []string { + if i == nil { return nil } - return o.Features + return i.Features } -func (o *IntrospectResponse) GetPermissions() []string { - if o == nil { +func (i *IntrospectResponse) GetPermissions() []string { + if i == nil { return nil } - return o.Permissions + return i.Permissions } -func (o *IntrospectResponse) GetPrincipleID() *string { - if o == nil { +func (i *IntrospectResponse) GetPrincipleID() *string { + if i == nil { return nil } - return o.PrincipleID + return i.PrincipleID } -func (o *IntrospectResponse) GetRoles() []string { - if o == nil { +func (i *IntrospectResponse) GetRoles() []string { + if i == nil { return nil } - return o.Roles + return i.Roles } -func (o *IntrospectResponse) GetUserID() *string { - if o == nil { +func (i *IntrospectResponse) GetUserID() *string { + if i == nil { return nil } - return o.UserID + return i.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/keyvaluefield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/keyvaluefield.go new file mode 100644 index 00000000..1aef26f2 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/keyvaluefield.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The KeyValueField message. +type KeyValueField struct { + // The secret field. + Secret *bool `json:"secret,omitempty"` +} + +func (k *KeyValueField) GetSecret() *bool { + if k == nil { + return nil + } + return k.Secret +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementowneridsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementowneridsresponse.go new file mode 100644 index 00000000..7d9628f1 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementowneridsresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// ListAppEntitlementOwnerIDsResponse - The response message for listing app entitlement owners IDs. +type ListAppEntitlementOwnerIDsResponse struct { + // The list of owner IDs for the app entitlement. + UserIds []string `json:"userIds,omitempty"` +} + +func (l *ListAppEntitlementOwnerIDsResponse) GetUserIds() []string { + if l == nil { + return nil + } + return l.UserIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementownersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementownersresponse.go index dcfd2c57..ee993d88 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementownersresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementownersresponse.go @@ -12,16 +12,16 @@ type ListAppEntitlementOwnersResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAppEntitlementOwnersResponse) GetList() []User { - if o == nil { +func (l *ListAppEntitlementOwnersResponse) GetList() []User { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAppEntitlementOwnersResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAppEntitlementOwnersResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementsresponse.go index 358e5a93..9caafef8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementsresponse.go @@ -18,24 +18,24 @@ func (l ListAppEntitlementsResponseExpanded) MarshalJSON() ([]byte, error) { } func (l *ListAppEntitlementsResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { return err } return nil } -func (o *ListAppEntitlementsResponseExpanded) GetAtType() *string { - if o == nil { +func (l *ListAppEntitlementsResponseExpanded) GetAtType() *string { + if l == nil { return nil } - return o.AtType + return l.AtType } -func (o *ListAppEntitlementsResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (l *ListAppEntitlementsResponseExpanded) GetAdditionalProperties() map[string]any { + if l == nil { return nil } - return o.AdditionalProperties + return l.AdditionalProperties } // The ListAppEntitlementsResponse message contains a list of results and a nextPageToken if applicable. @@ -48,23 +48,23 @@ type ListAppEntitlementsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAppEntitlementsResponse) GetExpanded() []ListAppEntitlementsResponseExpanded { - if o == nil { +func (l *ListAppEntitlementsResponse) GetExpanded() []ListAppEntitlementsResponseExpanded { + if l == nil { return nil } - return o.Expanded + return l.Expanded } -func (o *ListAppEntitlementsResponse) GetList() []AppEntitlementView { - if o == nil { +func (l *ListAppEntitlementsResponse) GetList() []AppEntitlementView { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAppEntitlementsResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAppEntitlementsResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementusersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementusersresponse.go index 625512a4..d857f4eb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementusersresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappentitlementusersresponse.go @@ -18,24 +18,24 @@ func (l ListAppEntitlementUsersResponseExpanded) MarshalJSON() ([]byte, error) { } func (l *ListAppEntitlementUsersResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { return err } return nil } -func (o *ListAppEntitlementUsersResponseExpanded) GetAtType() *string { - if o == nil { +func (l *ListAppEntitlementUsersResponseExpanded) GetAtType() *string { + if l == nil { return nil } - return o.AtType + return l.AtType } -func (o *ListAppEntitlementUsersResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (l *ListAppEntitlementUsersResponseExpanded) GetAdditionalProperties() map[string]any { + if l == nil { return nil } - return o.AdditionalProperties + return l.AdditionalProperties } // The ListAppEntitlementUsersResponse message contains a list of results and a nextPageToken if applicable. @@ -48,23 +48,23 @@ type ListAppEntitlementUsersResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAppEntitlementUsersResponse) GetExpanded() []ListAppEntitlementUsersResponseExpanded { - if o == nil { +func (l *ListAppEntitlementUsersResponse) GetExpanded() []ListAppEntitlementUsersResponseExpanded { + if l == nil { return nil } - return o.Expanded + return l.Expanded } -func (o *ListAppEntitlementUsersResponse) GetList() []AppEntitlementUserView { - if o == nil { +func (l *ListAppEntitlementUsersResponse) GetList() []AppEntitlementUserView { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAppEntitlementUsersResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAppEntitlementUsersResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappowneridsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappowneridsresponse.go new file mode 100644 index 00000000..ec455779 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappowneridsresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// ListAppOwnerIDsResponse - The response message for listing app owners IDs. +type ListAppOwnerIDsResponse struct { + // The list of owner IDs for the app. + UserIds []string `json:"userIds,omitempty"` +} + +func (l *ListAppOwnerIDsResponse) GetUserIds() []string { + if l == nil { + return nil + } + return l.UserIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappownersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappownersresponse.go index 70148a8f..fe0b99e4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappownersresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappownersresponse.go @@ -10,16 +10,16 @@ type ListAppOwnersResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAppOwnersResponse) GetList() []User { - if o == nil { +func (l *ListAppOwnersResponse) GetList() []User { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAppOwnersResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAppOwnersResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappresourceowneridsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappresourceowneridsresponse.go new file mode 100644 index 00000000..711ef53a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappresourceowneridsresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// ListAppResourceOwnerIDsResponse - The response message for listing app resource owners IDs. +type ListAppResourceOwnerIDsResponse struct { + // The list of owner IDs for the app resource. + UserIds []string `json:"userIds,omitempty"` +} + +func (l *ListAppResourceOwnerIDsResponse) GetUserIds() []string { + if l == nil { + return nil + } + return l.UserIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappresourceownersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappresourceownersresponse.go index 7a81f0ad..d7189034 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappresourceownersresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappresourceownersresponse.go @@ -12,16 +12,16 @@ type ListAppResourceOwnersResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAppResourceOwnersResponse) GetList() []User { - if o == nil { +func (l *ListAppResourceOwnersResponse) GetList() []User { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAppResourceOwnersResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAppResourceOwnersResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappsresponse.go index 2db0d96e..b32c8493 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappsresponse.go @@ -12,16 +12,16 @@ type ListAppsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAppsResponse) GetList() []App { - if o == nil { +func (l *ListAppsResponse) GetList() []App { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAppsResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAppsResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappusersforidentitywithgrantresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappusersforidentitywithgrantresponse.go index fa576673..72b8171f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappusersforidentitywithgrantresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listappusersforidentitywithgrantresponse.go @@ -9,9 +9,9 @@ type ListAppUsersForIdentityWithGrantResponse struct { Bindings []AppEntitlementUserBinding `json:"bindings,omitempty"` } -func (o *ListAppUsersForIdentityWithGrantResponse) GetBindings() []AppEntitlementUserBinding { - if o == nil { +func (l *ListAppUsersForIdentityWithGrantResponse) GetBindings() []AppEntitlementUserBinding { + if l == nil { return nil } - return o.Bindings + return l.Bindings } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listattributetypesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listattributetypesresponse.go index b25e8bd8..360bb61d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listattributetypesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listattributetypesresponse.go @@ -12,16 +12,16 @@ type ListAttributeTypesResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAttributeTypesResponse) GetList() []AttributeType { - if o == nil { +func (l *ListAttributeTypesResponse) GetList() []AttributeType { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAttributeTypesResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAttributeTypesResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listattributevaluesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listattributevaluesresponse.go index 9f360a35..97981be9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listattributevaluesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listattributevaluesresponse.go @@ -12,16 +12,16 @@ type ListAttributeValuesResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAttributeValuesResponse) GetList() []AttributeValue { - if o == nil { +func (l *ListAttributeValuesResponse) GetList() []AttributeValue { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAttributeValuesResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAttributeValuesResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationexclusionsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationexclusionsresponse.go index 473b40a4..405512f1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationexclusionsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationexclusionsresponse.go @@ -10,16 +10,16 @@ type ListAutomationExclusionsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAutomationExclusionsResponse) GetList() []UserWithAppEntitlementUserBindingView { - if o == nil { +func (l *ListAutomationExclusionsResponse) GetList() []UserWithAppEntitlementUserBindingView { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAutomationExclusionsResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAutomationExclusionsResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationexecutionsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationexecutionsresponse.go index ec7557b4..0fac5789 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationexecutionsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationexecutionsresponse.go @@ -10,16 +10,16 @@ type ListAutomationExecutionsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAutomationExecutionsResponse) GetAutomationExecutions() []AutomationExecution { - if o == nil { +func (l *ListAutomationExecutionsResponse) GetAutomationExecutions() []AutomationExecution { + if l == nil { return nil } - return o.AutomationExecutions + return l.AutomationExecutions } -func (o *ListAutomationExecutionsResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAutomationExecutionsResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationsresponse.go index 8d2a5e4e..eb09f41c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listautomationsresponse.go @@ -10,16 +10,16 @@ type ListAutomationsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListAutomationsResponse) GetList() []Automation { - if o == nil { +func (l *ListAutomationsResponse) GetList() []Automation { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListAutomationsResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListAutomationsResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listcomplianceframeworksresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listcomplianceframeworksresponse.go new file mode 100644 index 00000000..beeb4f4c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listcomplianceframeworksresponse.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ListComplianceFrameworksResponse message. +type ListComplianceFrameworksResponse struct { + // The list field. + List []AttributeValue `json:"list,omitempty"` + // The nextPageToken field. + NextPageToken *string `json:"nextPageToken,omitempty"` +} + +func (l *ListComplianceFrameworksResponse) GetList() []AttributeValue { + if l == nil { + return nil + } + return l.List +} + +func (l *ListComplianceFrameworksResponse) GetNextPageToken() *string { + if l == nil { + return nil + } + return l.NextPageToken +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listorgdomainsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listorgdomainsresponse.go index 6f7e138e..2f464db0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listorgdomainsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listorgdomainsresponse.go @@ -10,16 +10,16 @@ type ListOrgDomainsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListOrgDomainsResponse) GetList() []OrgDomain { - if o == nil { +func (l *ListOrgDomainsResponse) GetList() []OrgDomain { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListOrgDomainsResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListOrgDomainsResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listpolicyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listpolicyresponse.go index a6710a8b..1d1b7294 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listpolicyresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listpolicyresponse.go @@ -10,16 +10,16 @@ type ListPolicyResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListPolicyResponse) GetList() []Policy { - if o == nil { +func (l *ListPolicyResponse) GetList() []Policy { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListPolicyResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListPolicyResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listrisklevelsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listrisklevelsresponse.go new file mode 100644 index 00000000..baa2ea32 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listrisklevelsresponse.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ListRiskLevelsResponse message. +type ListRiskLevelsResponse struct { + // The list field. + List []AttributeValue `json:"list,omitempty"` + // The nextPageToken field. + NextPageToken *string `json:"nextPageToken,omitempty"` +} + +func (l *ListRiskLevelsResponse) GetList() []AttributeValue { + if l == nil { + return nil + } + return l.List +} + +func (l *ListRiskLevelsResponse) GetNextPageToken() *string { + if l == nil { + return nil + } + return l.NextPageToken +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listrolesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listrolesresponse.go index 91b7c7f4..673fb0f7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listrolesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/listrolesresponse.go @@ -12,16 +12,16 @@ type ListRolesResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListRolesResponse) GetList() []Role { - if o == nil { +func (l *ListRolesResponse) GetList() []Role { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListRolesResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListRolesResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/liststepupprovidersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/liststepupprovidersresponse.go index 2225651c..f839f5e0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/liststepupprovidersresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/liststepupprovidersresponse.go @@ -10,16 +10,16 @@ type ListStepUpProvidersResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *ListStepUpProvidersResponse) GetList() []StepUpProvider { - if o == nil { +func (l *ListStepUpProvidersResponse) GetList() []StepUpProvider { + if l == nil { return nil } - return o.List + return l.List } -func (o *ListStepUpProvidersResponse) GetNextPageToken() *string { - if o == nil { +func (l *ListStepUpProvidersResponse) GetNextPageToken() *string { + if l == nil { return nil } - return o.NextPageToken + return l.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/magicvault.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/magicvault.go new file mode 100644 index 00000000..1258fcd4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/magicvault.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The MagicVault message. +type MagicVault struct { + // The allowUnauthedViews field. + AllowUnauthedViews *bool `json:"allowUnauthedViews,omitempty"` + // The allowedViews field. + AllowedViews *int64 `json:"allowedViews,omitempty"` +} + +func (m *MagicVault) GetAllowUnauthedViews() *bool { + if m == nil { + return nil + } + return m.AllowUnauthedViews +} + +func (m *MagicVault) GetAllowedViews() *int64 { + if m == nil { + return nil + } + return m.AllowedViews +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/managerapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/managerapproval.go index 4404ad57..32927115 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/managerapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/managerapproval.go @@ -10,34 +10,61 @@ type ManagerApproval struct { AssignedUserIds []string `json:"assignedUserIds,omitempty"` // Configuration to allow a fallback if no manager is found. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and no manager is found. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if fallback is enabled and no manager is found. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` } -func (o *ManagerApproval) GetAllowSelfApproval() *bool { - if o == nil { +func (m *ManagerApproval) GetAllowSelfApproval() *bool { + if m == nil { return nil } - return o.AllowSelfApproval + return m.AllowSelfApproval } -func (o *ManagerApproval) GetAssignedUserIds() []string { - if o == nil { +func (m *ManagerApproval) GetAssignedUserIds() []string { + if m == nil { return nil } - return o.AssignedUserIds + return m.AssignedUserIds } -func (o *ManagerApproval) GetFallback() *bool { - if o == nil { +func (m *ManagerApproval) GetFallback() *bool { + if m == nil { return nil } - return o.Fallback + return m.Fallback } -func (o *ManagerApproval) GetFallbackUserIds() []string { - if o == nil { +func (m *ManagerApproval) GetFallbackGroupIds() []AppEntitlementReference { + if m == nil { return nil } - return o.FallbackUserIds + return m.FallbackGroupIds +} + +func (m *ManagerApproval) GetFallbackUserIds() []string { + if m == nil { + return nil + } + return m.FallbackUserIds +} + +func (m *ManagerApproval) GetIsGroupFallbackEnabled() *bool { + if m == nil { + return nil + } + return m.IsGroupFallbackEnabled +} + +func (m *ManagerApproval) GetRequireDistinctApprovers() *bool { + if m == nil { + return nil + } + return m.RequireDistinctApprovers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/managerapprovalinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/managerapprovalinput.go index 968c1507..ab2c5e81 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/managerapprovalinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/managerapprovalinput.go @@ -8,27 +8,54 @@ type ManagerApprovalInput struct { AllowSelfApproval *bool `json:"allowSelfApproval,omitempty"` // Configuration to allow a fallback if no manager is found. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and no manager is found. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if fallback is enabled and no manager is found. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` } -func (o *ManagerApprovalInput) GetAllowSelfApproval() *bool { - if o == nil { +func (m *ManagerApprovalInput) GetAllowSelfApproval() *bool { + if m == nil { return nil } - return o.AllowSelfApproval + return m.AllowSelfApproval } -func (o *ManagerApprovalInput) GetFallback() *bool { - if o == nil { +func (m *ManagerApprovalInput) GetFallback() *bool { + if m == nil { return nil } - return o.Fallback + return m.Fallback } -func (o *ManagerApprovalInput) GetFallbackUserIds() []string { - if o == nil { +func (m *ManagerApprovalInput) GetFallbackGroupIds() []AppEntitlementReference { + if m == nil { return nil } - return o.FallbackUserIds + return m.FallbackGroupIds +} + +func (m *ManagerApprovalInput) GetFallbackUserIds() []string { + if m == nil { + return nil + } + return m.FallbackUserIds +} + +func (m *ManagerApprovalInput) GetIsGroupFallbackEnabled() *bool { + if m == nil { + return nil + } + return m.IsGroupFallbackEnabled +} + +func (m *ManagerApprovalInput) GetRequireDistinctApprovers() *bool { + if m == nil { + return nil + } + return m.RequireDistinctApprovers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/manuallymanagedusersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/manuallymanagedusersresponse.go index 47bcfa91..580427b0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/manuallymanagedusersresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/manuallymanagedusersresponse.go @@ -8,9 +8,9 @@ type ManuallyManagedUsersResponse struct { FailedUsersErrorMap map[string]string `json:"failedUsersErrorMap,omitempty"` } -func (o *ManuallyManagedUsersResponse) GetFailedUsersErrorMap() map[string]string { - if o == nil { +func (m *ManuallyManagedUsersResponse) GetFailedUsersErrorMap() map[string]string { + if m == nil { return nil } - return o.FailedUsersErrorMap + return m.FailedUsersErrorMap } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/manualprovision.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/manualprovision.go index f614b907..c4eab123 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/manualprovision.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/manualprovision.go @@ -10,16 +10,16 @@ type ManualProvision struct { UserIds []string `json:"userIds,omitempty"` } -func (o *ManualProvision) GetInstructions() *string { - if o == nil { +func (m *ManualProvision) GetInstructions() *string { + if m == nil { return nil } - return o.Instructions + return m.Instructions } -func (o *ManualProvision) GetUserIds() []string { - if o == nil { +func (m *ManualProvision) GetUserIds() []string { + if m == nil { return nil } - return o.UserIds + return m.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/maprules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/maprules.go index 06d24c56..d4bd2736 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/maprules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/maprules.go @@ -72,44 +72,44 @@ type MapRules struct { NoSparse *bool `json:"noSparse,omitempty"` } -func (o *MapRules) GetFieldRules() *FieldRules { - if o == nil { +func (m *MapRules) GetFieldRules() *FieldRules { + if m == nil { return nil } - return o.FieldRules + return m.FieldRules } -func (o *MapRules) GetFieldRules1() *FieldRules { - if o == nil { +func (m *MapRules) GetFieldRules1() *FieldRules { + if m == nil { return nil } - return o.FieldRules1 + return m.FieldRules1 } -func (o *MapRules) GetIgnoreEmpty() *bool { - if o == nil { +func (m *MapRules) GetIgnoreEmpty() *bool { + if m == nil { return nil } - return o.IgnoreEmpty + return m.IgnoreEmpty } -func (o *MapRules) GetMaxPairs() *string { - if o == nil { +func (m *MapRules) GetMaxPairs() *string { + if m == nil { return nil } - return o.MaxPairs + return m.MaxPairs } -func (o *MapRules) GetMinPairs() *string { - if o == nil { +func (m *MapRules) GetMinPairs() *string { + if m == nil { return nil } - return o.MinPairs + return m.MinPairs } -func (o *MapRules) GetNoSparse() *bool { - if o == nil { +func (m *MapRules) GetNoSparse() *bool { + if m == nil { return nil } - return o.NoSparse + return m.NoSparse } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/messagerules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/messagerules.go index 73a63a71..1150f72c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/messagerules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/messagerules.go @@ -13,16 +13,16 @@ type MessageRules struct { Skip *bool `json:"skip,omitempty"` } -func (o *MessageRules) GetRequired() *bool { - if o == nil { +func (m *MessageRules) GetRequired() *bool { + if m == nil { return nil } - return o.Required + return m.Required } -func (o *MessageRules) GetSkip() *bool { - if o == nil { +func (m *MessageRules) GetSkip() *bool { + if m == nil { return nil } - return o.Skip + return m.Skip } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multiappentitlement.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multiappentitlement.go new file mode 100644 index 00000000..6bc81e13 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multiappentitlement.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The MultiAppEntitlement message. +type MultiAppEntitlement struct { + // The appId field. + AppID *string `json:"appId,omitempty"` + // The entitlementIds field. + EntitlementIds []string `json:"entitlementIds,omitempty"` +} + +func (m *MultiAppEntitlement) GetAppID() *string { + if m == nil { + return nil + } + return m.AppID +} + +func (m *MultiAppEntitlement) GetEntitlementIds() []string { + if m == nil { + return nil + } + return m.EntitlementIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multiappsetup.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multiappsetup.go new file mode 100644 index 00000000..c9350315 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multiappsetup.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The MultiAppSetup message. +type MultiAppSetup struct { + // The appEntitlementDetails field. + AppEntitlementDetails map[string]EntitlementToDetails `json:"appEntitlementDetails,omitempty"` + // The appEntitlements field. + AppEntitlements map[string]MultiAppEntitlement `json:"appEntitlements,omitempty"` +} + +func (m *MultiAppSetup) GetAppEntitlementDetails() map[string]EntitlementToDetails { + if m == nil { + return nil + } + return m.AppEntitlementDetails +} + +func (m *MultiAppSetup) GetAppEntitlements() map[string]MultiAppEntitlement { + if m == nil { + return nil + } + return m.AppEntitlements +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multistep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multistep.go index e5014e45..05591ccf 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multistep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/multistep.go @@ -8,9 +8,9 @@ type MultiStep struct { ProvisionSteps []ProvisionPolicy `json:"provisionSteps,omitempty"` } -func (o *MultiStep) GetProvisionSteps() []ProvisionPolicy { - if o == nil { +func (m *MultiStep) GetProvisionSteps() []ProvisionPolicy { + if m == nil { return nil } - return o.ProvisionSteps + return m.ProvisionSteps } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/notificationconfig.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/notificationconfig.go index b7fca310..898bda0e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/notificationconfig.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/notificationconfig.go @@ -4,22 +4,22 @@ package shared // The NotificationConfig message. type NotificationConfig struct { - // The EmailNotifications message. - EmailNotifications *EmailNotifications `json:"emailNotifications,omitempty"` - // The SlackNotifications message. - SlackNotifications *SlackNotifications `json:"slackNotifications,omitempty"` + // The sendClose field. + SendClose *bool `json:"sendClose,omitempty"` + // The sendReminders field. + SendReminders *bool `json:"sendReminders,omitempty"` } -func (o *NotificationConfig) GetEmailNotifications() *EmailNotifications { - if o == nil { +func (n *NotificationConfig) GetSendClose() *bool { + if n == nil { return nil } - return o.EmailNotifications + return n.SendClose } -func (o *NotificationConfig) GetSlackNotifications() *SlackNotifications { - if o == nil { +func (n *NotificationConfig) GetSendReminders() *bool { + if n == nil { return nil } - return o.SlackNotifications + return n.SendReminders } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/notificationconfig1.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/notificationconfig1.go new file mode 100644 index 00000000..9f358698 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/notificationconfig1.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// NotificationConfig1 - The NotificationConfig message. +type NotificationConfig1 struct { + // The EmailNotifications message. + EmailNotifications *EmailNotifications `json:"emailNotifications,omitempty"` + // The SlackNotifications message. + SlackNotifications *SlackNotifications `json:"slackNotifications,omitempty"` +} + +func (n *NotificationConfig1) GetEmailNotifications() *EmailNotifications { + if n == nil { + return nil + } + return n.EmailNotifications +} + +func (n *NotificationConfig1) GetSlackNotifications() *SlackNotifications { + if n == nil { + return nil + } + return n.SlackNotifications +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/numberfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/numberfield.go index 7b16615f..5521fd98 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/numberfield.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/numberfield.go @@ -12,23 +12,23 @@ type NumberField struct { Step *int64 `integer:"string" json:"step,omitempty"` } -func (o *NumberField) GetMaxValue() *int64 { - if o == nil { +func (n *NumberField) GetMaxValue() *int64 { + if n == nil { return nil } - return o.MaxValue + return n.MaxValue } -func (o *NumberField) GetMinValue() *int64 { - if o == nil { +func (n *NumberField) GetMinValue() *int64 { + if n == nil { return nil } - return o.MinValue + return n.MinValue } -func (o *NumberField) GetStep() *int64 { - if o == nil { +func (n *NumberField) GetStep() *int64 { + if n == nil { return nil } - return o.Step + return n.Step } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2authorizedas.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2authorizedas.go index 465a30c3..6e3d3e76 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2authorizedas.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2authorizedas.go @@ -19,7 +19,7 @@ func (o OAuth2AuthorizedAs) MarshalJSON() ([]byte, error) { } func (o *OAuth2AuthorizedAs) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &o, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &o, "", false, nil); err != nil { return err } return nil diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2field.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2field.go new file mode 100644 index 00000000..5d54e9a2 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2field.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The OAuth2Field message. +type OAuth2Field struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2field1.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2field1.go new file mode 100644 index 00000000..5dff2163 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2field1.go @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// Oauth2Field1 - The Oauth2Field message. +// +// This message contains a oneof named view. Only a single field of the following list may be set at a time: +// - oauth2FieldView +type Oauth2Field1 struct { + // The Oauth2FieldView message. + Oauth2FieldView *Oauth2FieldView `json:"oauth2FieldView,omitempty"` +} + +func (o *Oauth2Field1) GetOauth2FieldView() *Oauth2FieldView { + if o == nil { + return nil + } + return o.Oauth2FieldView +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2fieldview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2fieldview.go new file mode 100644 index 00000000..68193d5c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/oauth2fieldview.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The Oauth2FieldView message. +type Oauth2FieldView struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/optionsfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/optionsfield.go new file mode 100644 index 00000000..747f7050 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/optionsfield.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The OptionsField message. +type OptionsField struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/orgdomain.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/orgdomain.go index 4617c970..3241c47d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/orgdomain.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/orgdomain.go @@ -23,7 +23,7 @@ func (o OrgDomain) MarshalJSON() ([]byte, error) { } func (o *OrgDomain) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &o, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &o, "", false, nil); err != nil { return err } return nil diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadpolicyapprovalstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadpolicyapprovalstep.go index 8e78bf4b..65bbd098 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadpolicyapprovalstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadpolicyapprovalstep.go @@ -18,24 +18,24 @@ func (p PayloadPolicyApprovalStepExpanded) MarshalJSON() ([]byte, error) { } func (p *PayloadPolicyApprovalStepExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil } -func (o *PayloadPolicyApprovalStepExpanded) GetAtType() *string { - if o == nil { +func (p *PayloadPolicyApprovalStepExpanded) GetAtType() *string { + if p == nil { return nil } - return o.AtType + return p.AtType } -func (o *PayloadPolicyApprovalStepExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (p *PayloadPolicyApprovalStepExpanded) GetAdditionalProperties() map[string]any { + if p == nil { return nil } - return o.AdditionalProperties + return p.AdditionalProperties } // The PayloadPolicyApprovalStep message. @@ -46,16 +46,16 @@ type PayloadPolicyApprovalStep struct { Expanded []PayloadPolicyApprovalStepExpanded `json:"expanded,omitempty"` } -func (o *PayloadPolicyApprovalStep) GetTaskView() *TaskView { - if o == nil { +func (p *PayloadPolicyApprovalStep) GetTaskView() *TaskView { + if p == nil { return nil } - return o.TaskView + return p.TaskView } -func (o *PayloadPolicyApprovalStep) GetExpanded() []PayloadPolicyApprovalStepExpanded { - if o == nil { +func (p *PayloadPolicyApprovalStep) GetExpanded() []PayloadPolicyApprovalStepExpanded { + if p == nil { return nil } - return o.Expanded + return p.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadpolicypostaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadpolicypostaction.go index 059d4dd0..7912f2d4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadpolicypostaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadpolicypostaction.go @@ -18,24 +18,24 @@ func (p PayloadPolicyPostActionExpanded) MarshalJSON() ([]byte, error) { } func (p *PayloadPolicyPostActionExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil } -func (o *PayloadPolicyPostActionExpanded) GetAtType() *string { - if o == nil { +func (p *PayloadPolicyPostActionExpanded) GetAtType() *string { + if p == nil { return nil } - return o.AtType + return p.AtType } -func (o *PayloadPolicyPostActionExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (p *PayloadPolicyPostActionExpanded) GetAdditionalProperties() map[string]any { + if p == nil { return nil } - return o.AdditionalProperties + return p.AdditionalProperties } // The PayloadPolicyPostAction message. @@ -46,16 +46,16 @@ type PayloadPolicyPostAction struct { Expanded []PayloadPolicyPostActionExpanded `json:"expanded,omitempty"` } -func (o *PayloadPolicyPostAction) GetTaskView() *TaskView { - if o == nil { +func (p *PayloadPolicyPostAction) GetTaskView() *TaskView { + if p == nil { return nil } - return o.TaskView + return p.TaskView } -func (o *PayloadPolicyPostAction) GetExpanded() []PayloadPolicyPostActionExpanded { - if o == nil { +func (p *PayloadPolicyPostAction) GetExpanded() []PayloadPolicyPostActionExpanded { + if p == nil { return nil } - return o.Expanded + return p.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadprovisionstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadprovisionstep.go index 329a8cea..91b1c46a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadprovisionstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadprovisionstep.go @@ -18,24 +18,24 @@ func (p PayloadProvisionStepExpanded) MarshalJSON() ([]byte, error) { } func (p *PayloadProvisionStepExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil } -func (o *PayloadProvisionStepExpanded) GetAtType() *string { - if o == nil { +func (p *PayloadProvisionStepExpanded) GetAtType() *string { + if p == nil { return nil } - return o.AtType + return p.AtType } -func (o *PayloadProvisionStepExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (p *PayloadProvisionStepExpanded) GetAdditionalProperties() map[string]any { + if p == nil { return nil } - return o.AdditionalProperties + return p.AdditionalProperties } // The PayloadProvisionStep message. @@ -46,16 +46,16 @@ type PayloadProvisionStep struct { Expanded []PayloadProvisionStepExpanded `json:"expanded,omitempty"` } -func (o *PayloadProvisionStep) GetTaskView() *TaskView { - if o == nil { +func (p *PayloadProvisionStep) GetTaskView() *TaskView { + if p == nil { return nil } - return o.TaskView + return p.TaskView } -func (o *PayloadProvisionStep) GetExpanded() []PayloadProvisionStepExpanded { - if o == nil { +func (p *PayloadProvisionStep) GetExpanded() []PayloadProvisionStepExpanded { + if p == nil { return nil } - return o.Expanded + return p.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadworkflowstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadworkflowstep.go index 038e2118..496af4b5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadworkflowstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/payloadworkflowstep.go @@ -13,30 +13,30 @@ type PayloadWorkflowStep struct { WorkflowID *string `json:"workflowId,omitempty"` } -func (o *PayloadWorkflowStep) GetContext() map[string]any { - if o == nil { +func (p *PayloadWorkflowStep) GetContext() map[string]any { + if p == nil { return nil } - return o.Context + return p.Context } -func (o *PayloadWorkflowStep) GetWorkflowExecutionID() *int64 { - if o == nil { +func (p *PayloadWorkflowStep) GetWorkflowExecutionID() *int64 { + if p == nil { return nil } - return o.WorkflowExecutionID + return p.WorkflowExecutionID } -func (o *PayloadWorkflowStep) GetWorkflowExecutionStepID() *string { - if o == nil { +func (p *PayloadWorkflowStep) GetWorkflowExecutionStepID() *string { + if p == nil { return nil } - return o.WorkflowExecutionStepID + return p.WorkflowExecutionStepID } -func (o *PayloadWorkflowStep) GetWorkflowID() *string { - if o == nil { +func (p *PayloadWorkflowStep) GetWorkflowID() *string { + if p == nil { return nil } - return o.WorkflowID + return p.WorkflowID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclient.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclient.go index 18dfef1e..1787ceb9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclient.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclient.go @@ -36,85 +36,85 @@ func (p PersonalClient) MarshalJSON() ([]byte, error) { } func (p *PersonalClient) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil } -func (o *PersonalClient) GetAllowSourceCidr() []string { - if o == nil { +func (p *PersonalClient) GetAllowSourceCidr() []string { + if p == nil { return nil } - return o.AllowSourceCidr + return p.AllowSourceCidr } -func (o *PersonalClient) GetClientID() *string { - if o == nil { +func (p *PersonalClient) GetClientID() *string { + if p == nil { return nil } - return o.ClientID + return p.ClientID } -func (o *PersonalClient) GetCreatedAt() *time.Time { - if o == nil { +func (p *PersonalClient) GetCreatedAt() *time.Time { + if p == nil { return nil } - return o.CreatedAt + return p.CreatedAt } -func (o *PersonalClient) GetDeletedAt() *time.Time { - if o == nil { +func (p *PersonalClient) GetDeletedAt() *time.Time { + if p == nil { return nil } - return o.DeletedAt + return p.DeletedAt } -func (o *PersonalClient) GetDisplayName() *string { - if o == nil { +func (p *PersonalClient) GetDisplayName() *string { + if p == nil { return nil } - return o.DisplayName + return p.DisplayName } -func (o *PersonalClient) GetExpiresTime() *time.Time { - if o == nil { +func (p *PersonalClient) GetExpiresTime() *time.Time { + if p == nil { return nil } - return o.ExpiresTime + return p.ExpiresTime } -func (o *PersonalClient) GetID() *string { - if o == nil { +func (p *PersonalClient) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PersonalClient) GetLastUsedAt() *time.Time { - if o == nil { +func (p *PersonalClient) GetLastUsedAt() *time.Time { + if p == nil { return nil } - return o.LastUsedAt + return p.LastUsedAt } -func (o *PersonalClient) GetScopedRoles() []string { - if o == nil { +func (p *PersonalClient) GetScopedRoles() []string { + if p == nil { return nil } - return o.ScopedRoles + return p.ScopedRoles } -func (o *PersonalClient) GetUpdatedAt() *time.Time { - if o == nil { +func (p *PersonalClient) GetUpdatedAt() *time.Time { + if p == nil { return nil } - return o.UpdatedAt + return p.UpdatedAt } -func (o *PersonalClient) GetUserID() *string { - if o == nil { +func (p *PersonalClient) GetUserID() *string { + if p == nil { return nil } - return o.UserID + return p.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientinput.go index 5a912724..ede7b83f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientinput.go @@ -26,36 +26,36 @@ func (p PersonalClientInput) MarshalJSON() ([]byte, error) { } func (p *PersonalClientInput) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil } -func (o *PersonalClientInput) GetAllowSourceCidr() []string { - if o == nil { +func (p *PersonalClientInput) GetAllowSourceCidr() []string { + if p == nil { return nil } - return o.AllowSourceCidr + return p.AllowSourceCidr } -func (o *PersonalClientInput) GetDisplayName() *string { - if o == nil { +func (p *PersonalClientInput) GetDisplayName() *string { + if p == nil { return nil } - return o.DisplayName + return p.DisplayName } -func (o *PersonalClientInput) GetExpiresTime() *time.Time { - if o == nil { +func (p *PersonalClientInput) GetExpiresTime() *time.Time { + if p == nil { return nil } - return o.ExpiresTime + return p.ExpiresTime } -func (o *PersonalClientInput) GetScopedRoles() []string { - if o == nil { +func (p *PersonalClientInput) GetScopedRoles() []string { + if p == nil { return nil } - return o.ScopedRoles + return p.ScopedRoles } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientsearchservicesearchrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientsearchservicesearchrequest.go index 6809aeae..e8533532 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientsearchservicesearchrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientsearchservicesearchrequest.go @@ -14,30 +14,30 @@ type PersonalClientSearchServiceSearchRequest struct { Users []UserRef `json:"users,omitempty"` } -func (o *PersonalClientSearchServiceSearchRequest) GetPageSize() *int { - if o == nil { +func (p *PersonalClientSearchServiceSearchRequest) GetPageSize() *int { + if p == nil { return nil } - return o.PageSize + return p.PageSize } -func (o *PersonalClientSearchServiceSearchRequest) GetPageToken() *string { - if o == nil { +func (p *PersonalClientSearchServiceSearchRequest) GetPageToken() *string { + if p == nil { return nil } - return o.PageToken + return p.PageToken } -func (o *PersonalClientSearchServiceSearchRequest) GetQuery() *string { - if o == nil { +func (p *PersonalClientSearchServiceSearchRequest) GetQuery() *string { + if p == nil { return nil } - return o.Query + return p.Query } -func (o *PersonalClientSearchServiceSearchRequest) GetUsers() []UserRef { - if o == nil { +func (p *PersonalClientSearchServiceSearchRequest) GetUsers() []UserRef { + if p == nil { return nil } - return o.Users + return p.Users } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientsearchservicesearchresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientsearchservicesearchresponse.go index 950a6db3..6dc20f6d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientsearchservicesearchresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientsearchservicesearchresponse.go @@ -10,16 +10,16 @@ type PersonalClientSearchServiceSearchResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *PersonalClientSearchServiceSearchResponse) GetList() []PersonalClient { - if o == nil { +func (p *PersonalClientSearchServiceSearchResponse) GetList() []PersonalClient { + if p == nil { return nil } - return o.List + return p.List } -func (o *PersonalClientSearchServiceSearchResponse) GetNextPageToken() *string { - if o == nil { +func (p *PersonalClientSearchServiceSearchResponse) GetNextPageToken() *string { + if p == nil { return nil } - return o.NextPageToken + return p.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicecreaterequest.go index ca94072e..0a07a084 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicecreaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicecreaterequest.go @@ -13,30 +13,30 @@ type PersonalClientServiceCreateRequest struct { ScopedRoles []string `json:"scopedRoles,omitempty"` } -func (o *PersonalClientServiceCreateRequest) GetAllowSourceCidr() []string { - if o == nil { +func (p *PersonalClientServiceCreateRequest) GetAllowSourceCidr() []string { + if p == nil { return nil } - return o.AllowSourceCidr + return p.AllowSourceCidr } -func (o *PersonalClientServiceCreateRequest) GetDisplayName() *string { - if o == nil { +func (p *PersonalClientServiceCreateRequest) GetDisplayName() *string { + if p == nil { return nil } - return o.DisplayName + return p.DisplayName } -func (o *PersonalClientServiceCreateRequest) GetExpires() *string { - if o == nil { +func (p *PersonalClientServiceCreateRequest) GetExpires() *string { + if p == nil { return nil } - return o.Expires + return p.Expires } -func (o *PersonalClientServiceCreateRequest) GetScopedRoles() []string { - if o == nil { +func (p *PersonalClientServiceCreateRequest) GetScopedRoles() []string { + if p == nil { return nil } - return o.ScopedRoles + return p.ScopedRoles } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicecreateresponse.go index 427084cf..bbb77d59 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicecreateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicecreateresponse.go @@ -10,16 +10,16 @@ type PersonalClientServiceCreateResponse struct { ClientSecret *string `json:"clientSecret,omitempty"` } -func (o *PersonalClientServiceCreateResponse) GetPersonalClient() *PersonalClient { - if o == nil { +func (p *PersonalClientServiceCreateResponse) GetPersonalClient() *PersonalClient { + if p == nil { return nil } - return o.PersonalClient + return p.PersonalClient } -func (o *PersonalClientServiceCreateResponse) GetClientSecret() *string { - if o == nil { +func (p *PersonalClientServiceCreateResponse) GetClientSecret() *string { + if p == nil { return nil } - return o.ClientSecret + return p.ClientSecret } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicegetresponse.go index 769a7943..4bd7d114 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicegetresponse.go @@ -8,9 +8,9 @@ type PersonalClientServiceGetResponse struct { PersonalClient *PersonalClient `json:"client,omitempty"` } -func (o *PersonalClientServiceGetResponse) GetPersonalClient() *PersonalClient { - if o == nil { +func (p *PersonalClientServiceGetResponse) GetPersonalClient() *PersonalClient { + if p == nil { return nil } - return o.PersonalClient + return p.PersonalClient } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicelistresponse.go index d8be0d12..283a490b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientservicelistresponse.go @@ -10,16 +10,16 @@ type PersonalClientServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *PersonalClientServiceListResponse) GetList() []PersonalClient { - if o == nil { +func (p *PersonalClientServiceListResponse) GetList() []PersonalClient { + if p == nil { return nil } - return o.List + return p.List } -func (o *PersonalClientServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (p *PersonalClientServiceListResponse) GetNextPageToken() *string { + if p == nil { return nil } - return o.NextPageToken + return p.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientserviceupdaterequest.go index 92663c6a..cbdec491 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientserviceupdaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientserviceupdaterequest.go @@ -9,16 +9,16 @@ type PersonalClientServiceUpdateRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *PersonalClientServiceUpdateRequest) GetPersonalClient() *PersonalClientInput { - if o == nil { +func (p *PersonalClientServiceUpdateRequest) GetPersonalClient() *PersonalClientInput { + if p == nil { return nil } - return o.PersonalClient + return p.PersonalClient } -func (o *PersonalClientServiceUpdateRequest) GetUpdateMask() *string { - if o == nil { +func (p *PersonalClientServiceUpdateRequest) GetUpdateMask() *string { + if p == nil { return nil } - return o.UpdateMask + return p.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientserviceupdateresponse.go index 4e8ef555..c876d607 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientserviceupdateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/personalclientserviceupdateresponse.go @@ -8,9 +8,9 @@ type PersonalClientServiceUpdateResponse struct { PersonalClient *PersonalClient `json:"client,omitempty"` } -func (o *PersonalClientServiceUpdateResponse) GetPersonalClient() *PersonalClient { - if o == nil { +func (p *PersonalClientServiceUpdateResponse) GetPersonalClient() *PersonalClient { + if p == nil { return nil } - return o.PersonalClient + return p.PersonalClient } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/pickerfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/pickerfield.go new file mode 100644 index 00000000..7a6b0ea2 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/pickerfield.go @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The PickerField message. +// +// This message contains a oneof named type. Only a single field of the following list may be set at a time: +// - appUserPicker +// - resourcePicker +type PickerField struct { + // The AppResourceFilter message. + AppResourceFilter *AppResourceFilter `json:"resourcePicker,omitempty"` + // The AppUserFilter message. + AppUserFilter *AppUserFilter `json:"appUserPicker,omitempty"` +} + +func (p *PickerField) GetAppResourceFilter() *AppResourceFilter { + if p == nil { + return nil + } + return p.AppResourceFilter +} + +func (p *PickerField) GetAppUserFilter() *AppUserFilter { + if p == nil { + return nil + } + return p.AppUserFilter +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policy.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policy.go index 4b8946d8..08e902ee 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policy.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policy.go @@ -23,6 +23,17 @@ func (e PolicyPolicyType) ToPointer() *PolicyPolicyType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PolicyPolicyType) IsExact() bool { + if e != nil { + switch *e { + case "POLICY_TYPE_UNSPECIFIED", "POLICY_TYPE_GRANT", "POLICY_TYPE_REVOKE", "POLICY_TYPE_CERTIFY", "POLICY_TYPE_ACCESS_REQUEST", "POLICY_TYPE_PROVISION": + return true + } + } + return false +} + // Policy - A policy describes the behavior of the ConductorOne system when processing a task. You can describe the type, approvers, fallback behavior, and escalation processes. type Policy struct { CreatedAt *time.Time `json:"createdAt,omitempty"` @@ -55,94 +66,94 @@ func (p Policy) MarshalJSON() ([]byte, error) { } func (p *Policy) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil } -func (o *Policy) GetCreatedAt() *time.Time { - if o == nil { +func (p *Policy) GetCreatedAt() *time.Time { + if p == nil { return nil } - return o.CreatedAt + return p.CreatedAt } -func (o *Policy) GetDeletedAt() *time.Time { - if o == nil { +func (p *Policy) GetDeletedAt() *time.Time { + if p == nil { return nil } - return o.DeletedAt + return p.DeletedAt } -func (o *Policy) GetDescription() *string { - if o == nil { +func (p *Policy) GetDescription() *string { + if p == nil { return nil } - return o.Description + return p.Description } -func (o *Policy) GetDisplayName() *string { - if o == nil { +func (p *Policy) GetDisplayName() *string { + if p == nil { return nil } - return o.DisplayName + return p.DisplayName } -func (o *Policy) GetID() *string { - if o == nil { +func (p *Policy) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *Policy) GetPolicySteps() map[string]PolicySteps { - if o == nil { +func (p *Policy) GetPolicySteps() map[string]PolicySteps { + if p == nil { return nil } - return o.PolicySteps + return p.PolicySteps } -func (o *Policy) GetPolicyType() *PolicyPolicyType { - if o == nil { +func (p *Policy) GetPolicyType() *PolicyPolicyType { + if p == nil { return nil } - return o.PolicyType + return p.PolicyType } -func (o *Policy) GetPostActions() []PolicyPostActions { - if o == nil { +func (p *Policy) GetPostActions() []PolicyPostActions { + if p == nil { return nil } - return o.PostActions + return p.PostActions } -func (o *Policy) GetReassignTasksToDelegates() *bool { - if o == nil { +func (p *Policy) GetReassignTasksToDelegates() *bool { + if p == nil { return nil } - return o.ReassignTasksToDelegates + return p.ReassignTasksToDelegates } -func (o *Policy) GetRules() []Rule { - if o == nil { +func (p *Policy) GetRules() []Rule { + if p == nil { return nil } - return o.Rules + return p.Rules } -func (o *Policy) GetSystemBuiltin() *bool { - if o == nil { +func (p *Policy) GetSystemBuiltin() *bool { + if p == nil { return nil } - return o.SystemBuiltin + return p.SystemBuiltin } -func (o *Policy) GetUpdatedAt() *time.Time { - if o == nil { +func (p *Policy) GetUpdatedAt() *time.Time { + if p == nil { return nil } - return o.UpdatedAt + return p.UpdatedAt } // PolicyInput - A policy describes the behavior of the ConductorOne system when processing a task. You can describe the type, approvers, fallback behavior, and escalation processes. @@ -165,51 +176,51 @@ type PolicyInput struct { Rules []Rule `json:"rules,omitempty"` } -func (o *PolicyInput) GetDescription() *string { - if o == nil { +func (p *PolicyInput) GetDescription() *string { + if p == nil { return nil } - return o.Description + return p.Description } -func (o *PolicyInput) GetDisplayName() *string { - if o == nil { +func (p *PolicyInput) GetDisplayName() *string { + if p == nil { return nil } - return o.DisplayName + return p.DisplayName } -func (o *PolicyInput) GetPolicySteps() map[string]PolicyStepsInput { - if o == nil { +func (p *PolicyInput) GetPolicySteps() map[string]PolicyStepsInput { + if p == nil { return nil } - return o.PolicySteps + return p.PolicySteps } -func (o *PolicyInput) GetPolicyType() *PolicyPolicyType { - if o == nil { +func (p *PolicyInput) GetPolicyType() *PolicyPolicyType { + if p == nil { return nil } - return o.PolicyType + return p.PolicyType } -func (o *PolicyInput) GetPostActions() []PolicyPostActions { - if o == nil { +func (p *PolicyInput) GetPostActions() []PolicyPostActions { + if p == nil { return nil } - return o.PostActions + return p.PostActions } -func (o *PolicyInput) GetReassignTasksToDelegates() *bool { - if o == nil { +func (p *PolicyInput) GetReassignTasksToDelegates() *bool { + if p == nil { return nil } - return o.ReassignTasksToDelegates + return p.ReassignTasksToDelegates } -func (o *PolicyInput) GetRules() []Rule { - if o == nil { +func (p *PolicyInput) GetRules() []Rule { + if p == nil { return nil } - return o.Rules + return p.Rules } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policyinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policyinstance.go index 40efc689..6e7bf5d9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policyinstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policyinstance.go @@ -15,6 +15,7 @@ type PolicyInstance struct { // - reject // - wait // - form + // - action // PolicyStepInstance *PolicyStepInstance `json:"current,omitempty"` // An array of steps that were previously processed by the ticket with their outcomes set, in order. @@ -23,30 +24,30 @@ type PolicyInstance struct { Next []PolicyStep `json:"next,omitempty"` } -func (o *PolicyInstance) GetPolicy() *Policy { - if o == nil { +func (p *PolicyInstance) GetPolicy() *Policy { + if p == nil { return nil } - return o.Policy + return p.Policy } -func (o *PolicyInstance) GetPolicyStepInstance() *PolicyStepInstance { - if o == nil { +func (p *PolicyInstance) GetPolicyStepInstance() *PolicyStepInstance { + if p == nil { return nil } - return o.PolicyStepInstance + return p.PolicyStepInstance } -func (o *PolicyInstance) GetHistory() []PolicyStepInstance { - if o == nil { +func (p *PolicyInstance) GetHistory() []PolicyStepInstance { + if p == nil { return nil } - return o.History + return p.History } -func (o *PolicyInstance) GetNext() []PolicyStep { - if o == nil { +func (p *PolicyInstance) GetNext() []PolicyStep { + if p == nil { return nil } - return o.Next + return p.Next } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policypostactions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policypostactions.go index 41e2a8b9..69ceed20 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policypostactions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policypostactions.go @@ -14,9 +14,9 @@ type PolicyPostActions struct { CertifyRemediateImmediately *bool `json:"certifyRemediateImmediately,omitempty"` } -func (o *PolicyPostActions) GetCertifyRemediateImmediately() *bool { - if o == nil { +func (p *PolicyPostActions) GetCertifyRemediateImmediately() *bool { + if p == nil { return nil } - return o.CertifyRemediateImmediately + return p.CertifyRemediateImmediately } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policyref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policyref.go index fc725fde..0616af07 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policyref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policyref.go @@ -8,9 +8,9 @@ type PolicyRef struct { ID *string `json:"id,omitempty"` } -func (o *PolicyRef) GetID() *string { - if o == nil { +func (p *PolicyRef) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystep.go index 12cb443e..f6e4633a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystep.go @@ -11,9 +11,16 @@ package shared // - reject // - wait // - form +// - action type PolicyStep struct { // This policy step indicates that a ticket should have an approved outcome. This is a terminal approval state and is used to explicitly define the end of approval steps. Accept *Accept `json:"accept,omitempty"` + // The Action message. + // + // This message contains a oneof named target. Only a single field of the following list may be set at a time: + // - automation + // + Action *Action `json:"action,omitempty"` // The Approval message. // // This message contains a oneof named typ. Only a single field of the following list may be set at a time: @@ -39,48 +46,57 @@ type PolicyStep struct { // // This message contains a oneof named until. Only a single field of the following list may be set at a time: // - condition + // - duration + // - untilTime // Wait *Wait `json:"wait,omitempty"` } -func (o *PolicyStep) GetAccept() *Accept { - if o == nil { +func (p *PolicyStep) GetAccept() *Accept { + if p == nil { + return nil + } + return p.Accept +} + +func (p *PolicyStep) GetAction() *Action { + if p == nil { return nil } - return o.Accept + return p.Action } -func (o *PolicyStep) GetApproval() *Approval { - if o == nil { +func (p *PolicyStep) GetApproval() *Approval { + if p == nil { return nil } - return o.Approval + return p.Approval } -func (o *PolicyStep) GetForm() *Form { - if o == nil { +func (p *PolicyStep) GetForm() *Form { + if p == nil { return nil } - return o.Form + return p.Form } -func (o *PolicyStep) GetProvision() *Provision { - if o == nil { +func (p *PolicyStep) GetProvision() *Provision { + if p == nil { return nil } - return o.Provision + return p.Provision } -func (o *PolicyStep) GetReject() *Reject { - if o == nil { +func (p *PolicyStep) GetReject() *Reject { + if p == nil { return nil } - return o.Reject + return p.Reject } -func (o *PolicyStep) GetWait() *Wait { - if o == nil { +func (p *PolicyStep) GetWait() *Wait { + if p == nil { return nil } - return o.Wait + return p.Wait } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepinput.go index 80968167..a7e80bb9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepinput.go @@ -11,9 +11,16 @@ package shared // - reject // - wait // - form +// - action type PolicyStepInput struct { // This policy step indicates that a ticket should have an approved outcome. This is a terminal approval state and is used to explicitly define the end of approval steps. Accept *Accept `json:"accept,omitempty"` + // The Action message. + // + // This message contains a oneof named target. Only a single field of the following list may be set at a time: + // - automation + // + Action *Action `json:"action,omitempty"` // The Approval message. // // This message contains a oneof named typ. Only a single field of the following list may be set at a time: @@ -39,48 +46,57 @@ type PolicyStepInput struct { // // This message contains a oneof named until. Only a single field of the following list may be set at a time: // - condition + // - duration + // - untilTime // Wait *Wait `json:"wait,omitempty"` } -func (o *PolicyStepInput) GetAccept() *Accept { - if o == nil { +func (p *PolicyStepInput) GetAccept() *Accept { + if p == nil { + return nil + } + return p.Accept +} + +func (p *PolicyStepInput) GetAction() *Action { + if p == nil { return nil } - return o.Accept + return p.Action } -func (o *PolicyStepInput) GetApproval() *ApprovalInput { - if o == nil { +func (p *PolicyStepInput) GetApproval() *ApprovalInput { + if p == nil { return nil } - return o.Approval + return p.Approval } -func (o *PolicyStepInput) GetForm() *FormInput1 { - if o == nil { +func (p *PolicyStepInput) GetForm() *FormInput1 { + if p == nil { return nil } - return o.Form + return p.Form } -func (o *PolicyStepInput) GetProvision() *Provision { - if o == nil { +func (p *PolicyStepInput) GetProvision() *Provision { + if p == nil { return nil } - return o.Provision + return p.Provision } -func (o *PolicyStepInput) GetReject() *Reject { - if o == nil { +func (p *PolicyStepInput) GetReject() *Reject { + if p == nil { return nil } - return o.Reject + return p.Reject } -func (o *PolicyStepInput) GetWait() *Wait { - if o == nil { +func (p *PolicyStepInput) GetWait() *Wait { + if p == nil { return nil } - return o.Wait + return p.Wait } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepinstance.go index 3411e025..d8bf4e45 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepinstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepinstance.go @@ -15,6 +15,17 @@ func (e PolicyStepInstanceState) ToPointer() *PolicyStepInstanceState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PolicyStepInstanceState) IsExact() bool { + if e != nil { + switch *e { + case "POLICY_STEP_STATE_UNSPECIFIED", "POLICY_STEP_STATE_ACTIVE", "POLICY_STEP_STATE_DONE": + return true + } + } + return false +} + // PolicyStepInstance - The policy step instance includes a reference to an instance of a policy step that tracks state and has a unique ID. // // This message contains a oneof named instance. Only a single field of the following list may be set at a time: @@ -24,10 +35,24 @@ func (e PolicyStepInstanceState) ToPointer() *PolicyStepInstanceState { // - reject // - wait // - form +// - action type PolicyStepInstance struct { // This policy step indicates that a ticket should have an approved outcome. This is a terminal approval state and is used to explicitly define the end of approval steps. // The instance is just a marker for it being copied into an active policy. AcceptInstance *AcceptInstance `json:"accept,omitempty"` + // The ActionInstance message. + // + // This message contains a oneof named target_instance. Only a single field of the following list may be set at a time: + // - automation + // + // + // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: + // - success + // - denied + // - error + // - cancelled + // + ActionInstance *ActionInstance `json:"action,omitempty"` // The approval instance object describes the way a policy step should be approved as well as its outcomes and state. // // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: @@ -65,6 +90,7 @@ type PolicyStepInstance struct { // // This message contains a oneof named until. Only a single field of the following list may be set at a time: // - condition + // - untilTime // // // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: @@ -81,65 +107,72 @@ type PolicyStepInstance struct { State *PolicyStepInstanceState `json:"state,omitempty"` } -func (o *PolicyStepInstance) GetAcceptInstance() *AcceptInstance { - if o == nil { +func (p *PolicyStepInstance) GetAcceptInstance() *AcceptInstance { + if p == nil { + return nil + } + return p.AcceptInstance +} + +func (p *PolicyStepInstance) GetActionInstance() *ActionInstance { + if p == nil { return nil } - return o.AcceptInstance + return p.ActionInstance } -func (o *PolicyStepInstance) GetApprovalInstance() *ApprovalInstance { - if o == nil { +func (p *PolicyStepInstance) GetApprovalInstance() *ApprovalInstance { + if p == nil { return nil } - return o.ApprovalInstance + return p.ApprovalInstance } -func (o *PolicyStepInstance) GetFormInstance() *FormInstance { - if o == nil { +func (p *PolicyStepInstance) GetFormInstance() *FormInstance { + if p == nil { return nil } - return o.FormInstance + return p.FormInstance } -func (o *PolicyStepInstance) GetProvisionInstance() *ProvisionInstance { - if o == nil { +func (p *PolicyStepInstance) GetProvisionInstance() *ProvisionInstance { + if p == nil { return nil } - return o.ProvisionInstance + return p.ProvisionInstance } -func (o *PolicyStepInstance) GetRejectInstance() *RejectInstance { - if o == nil { +func (p *PolicyStepInstance) GetRejectInstance() *RejectInstance { + if p == nil { return nil } - return o.RejectInstance + return p.RejectInstance } -func (o *PolicyStepInstance) GetWaitInstance() *WaitInstance { - if o == nil { +func (p *PolicyStepInstance) GetWaitInstance() *WaitInstance { + if p == nil { return nil } - return o.WaitInstance + return p.WaitInstance } -func (o *PolicyStepInstance) GetID() *string { - if o == nil { +func (p *PolicyStepInstance) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PolicyStepInstance) GetPolicyGenerationID() *string { - if o == nil { +func (p *PolicyStepInstance) GetPolicyGenerationID() *string { + if p == nil { return nil } - return o.PolicyGenerationID + return p.PolicyGenerationID } -func (o *PolicyStepInstance) GetState() *PolicyStepInstanceState { - if o == nil { +func (p *PolicyStepInstance) GetState() *PolicyStepInstanceState { + if p == nil { return nil } - return o.State + return p.State } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policysteps.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policysteps.go index 4dc7c582..05441963 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policysteps.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policysteps.go @@ -8,9 +8,9 @@ type PolicySteps struct { Steps []PolicyStep `json:"steps,omitempty"` } -func (o *PolicySteps) GetSteps() []PolicyStep { - if o == nil { +func (p *PolicySteps) GetSteps() []PolicyStep { + if p == nil { return nil } - return o.Steps + return p.Steps } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepsinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepsinput.go index 7e6022d6..75303a65 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepsinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/policystepsinput.go @@ -8,9 +8,9 @@ type PolicyStepsInput struct { Steps []PolicyStepInput `json:"steps,omitempty"` } -func (o *PolicyStepsInput) GetSteps() []PolicyStepInput { - if o == nil { +func (p *PolicyStepsInput) GetSteps() []PolicyStepInput { + if p == nil { return nil } - return o.Steps + return p.Steps } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/profiletype.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/profiletype.go new file mode 100644 index 00000000..79efc481 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/profiletype.go @@ -0,0 +1,79 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// ProfileType represents a type of profile in the system +type ProfileType struct { + // The description field. + Description *string `json:"description,omitempty"` + // Whether to display this profile type to users in profile page. Defaults to false if not set + DisplayToUser *bool `json:"displayToUser,omitempty"` + // The iconUrl field. + IconURL *string `json:"iconUrl,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` + // The name field. + Name *string `json:"name,omitempty"` + // The priority field. + Priority *int64 `json:"priority,omitempty"` + // icon sizes + Sizes []int `json:"sizes,omitempty"` + // Add this field to allow users to reference profile type in cel expressions + Slug *string `json:"slug,omitempty"` +} + +func (p *ProfileType) GetDescription() *string { + if p == nil { + return nil + } + return p.Description +} + +func (p *ProfileType) GetDisplayToUser() *bool { + if p == nil { + return nil + } + return p.DisplayToUser +} + +func (p *ProfileType) GetIconURL() *string { + if p == nil { + return nil + } + return p.IconURL +} + +func (p *ProfileType) GetID() *string { + if p == nil { + return nil + } + return p.ID +} + +func (p *ProfileType) GetName() *string { + if p == nil { + return nil + } + return p.Name +} + +func (p *ProfileType) GetPriority() *int64 { + if p == nil { + return nil + } + return p.Priority +} + +func (p *ProfileType) GetSizes() []int { + if p == nil { + return nil + } + return p.Sizes +} + +func (p *ProfileType) GetSlug() *string { + if p == nil { + return nil + } + return p.Slug +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provision.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provision.go index f74844ae..297aaef6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provision.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provision.go @@ -14,6 +14,7 @@ type Provision struct { // - multiStep // - externalTicket // - unconfigured + // - action // ProvisionPolicy *ProvisionPolicyInput `json:"provisionPolicy,omitempty"` // ProvisionTarget indicates the specific app, app entitlement, and if known, the app user and grant duration of this provision step @@ -22,23 +23,23 @@ type Provision struct { Assigned *bool `json:"assigned,omitempty"` } -func (o *Provision) GetProvisionPolicy() *ProvisionPolicyInput { - if o == nil { +func (p *Provision) GetProvisionPolicy() *ProvisionPolicyInput { + if p == nil { return nil } - return o.ProvisionPolicy + return p.ProvisionPolicy } -func (o *Provision) GetProvisionTarget() *ProvisionTarget { - if o == nil { +func (p *Provision) GetProvisionTarget() *ProvisionTarget { + if p == nil { return nil } - return o.ProvisionTarget + return p.ProvisionTarget } -func (o *Provision) GetAssigned() *bool { - if o == nil { +func (p *Provision) GetAssigned() *bool { + if p == nil { return nil } - return o.Assigned + return p.Assigned } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisioninstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisioninstance.go index 2a43c396..fcd9e658 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisioninstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisioninstance.go @@ -15,6 +15,8 @@ const ( ProvisionInstanceStateProvisionInstanceStateWebhookWaiting ProvisionInstanceState = "PROVISION_INSTANCE_STATE_WEBHOOK_WAITING" ProvisionInstanceStateProvisionInstanceStateExternalTicket ProvisionInstanceState = "PROVISION_INSTANCE_STATE_EXTERNAL_TICKET" ProvisionInstanceStateProvisionInstanceStateExternalTicketWaiting ProvisionInstanceState = "PROVISION_INSTANCE_STATE_EXTERNAL_TICKET_WAITING" + ProvisionInstanceStateProvisionInstanceStateAccountLifecycleActions ProvisionInstanceState = "PROVISION_INSTANCE_STATE_ACCOUNT_LIFECYCLE_ACTIONS" + ProvisionInstanceStateProvisionInstanceStateAccountLifecycleActionsWaiting ProvisionInstanceState = "PROVISION_INSTANCE_STATE_ACCOUNT_LIFECYCLE_ACTIONS_WAITING" ProvisionInstanceStateProvisionInstanceStateDone ProvisionInstanceState = "PROVISION_INSTANCE_STATE_DONE" ) @@ -22,6 +24,17 @@ func (e ProvisionInstanceState) ToPointer() *ProvisionInstanceState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ProvisionInstanceState) IsExact() bool { + if e != nil { + switch *e { + case "PROVISION_INSTANCE_STATE_UNSPECIFIED", "PROVISION_INSTANCE_STATE_INIT", "PROVISION_INSTANCE_STATE_CREATE_CONNECTOR_ACTIONS_FOR_TARGET", "PROVISION_INSTANCE_STATE_SENDING_NOTIFICATIONS", "PROVISION_INSTANCE_STATE_WAITING", "PROVISION_INSTANCE_STATE_WEBHOOK", "PROVISION_INSTANCE_STATE_WEBHOOK_WAITING", "PROVISION_INSTANCE_STATE_EXTERNAL_TICKET", "PROVISION_INSTANCE_STATE_EXTERNAL_TICKET_WAITING", "PROVISION_INSTANCE_STATE_ACCOUNT_LIFECYCLE_ACTIONS", "PROVISION_INSTANCE_STATE_ACCOUNT_LIFECYCLE_ACTIONS_WAITING", "PROVISION_INSTANCE_STATE_DONE": + return true + } + } + return false +} + // ProvisionInstance - A provision instance describes the specific configuration of an executing provision policy step including actions taken and notification id. // // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: @@ -43,6 +56,8 @@ type ProvisionInstance struct { ReassignedByErrorAction *ReassignedByErrorAction `json:"reassignedByError,omitempty"` // The SkippedAction object describes the outcome of a policy step that has been skipped. SkippedAction *SkippedAction `json:"skipped,omitempty"` + // This indicates the account lifecycle action id for this step. + BatonActionInvocationID *string `json:"batonActionInvocationId,omitempty"` // This indicates the external ticket id for this step. ExternalTicketID *string `json:"externalTicketId,omitempty"` // This indicates the external ticket provisioner config id for this step. @@ -57,86 +72,93 @@ type ProvisionInstance struct { WebhookInstanceID *string `json:"webhookInstanceId,omitempty"` } -func (o *ProvisionInstance) GetCancelledAction() *CancelledAction { - if o == nil { +func (p *ProvisionInstance) GetCancelledAction() *CancelledAction { + if p == nil { + return nil + } + return p.CancelledAction +} + +func (p *ProvisionInstance) GetCompletedAction() *CompletedAction { + if p == nil { return nil } - return o.CancelledAction + return p.CompletedAction } -func (o *ProvisionInstance) GetCompletedAction() *CompletedAction { - if o == nil { +func (p *ProvisionInstance) GetErroredAction() *ErroredAction { + if p == nil { return nil } - return o.CompletedAction + return p.ErroredAction } -func (o *ProvisionInstance) GetErroredAction() *ErroredAction { - if o == nil { +func (p *ProvisionInstance) GetProvision() *Provision { + if p == nil { return nil } - return o.ErroredAction + return p.Provision } -func (o *ProvisionInstance) GetProvision() *Provision { - if o == nil { +func (p *ProvisionInstance) GetReassignedByErrorAction() *ReassignedByErrorAction { + if p == nil { return nil } - return o.Provision + return p.ReassignedByErrorAction } -func (o *ProvisionInstance) GetReassignedByErrorAction() *ReassignedByErrorAction { - if o == nil { +func (p *ProvisionInstance) GetSkippedAction() *SkippedAction { + if p == nil { return nil } - return o.ReassignedByErrorAction + return p.SkippedAction } -func (o *ProvisionInstance) GetSkippedAction() *SkippedAction { - if o == nil { +func (p *ProvisionInstance) GetBatonActionInvocationID() *string { + if p == nil { return nil } - return o.SkippedAction + return p.BatonActionInvocationID } -func (o *ProvisionInstance) GetExternalTicketID() *string { - if o == nil { +func (p *ProvisionInstance) GetExternalTicketID() *string { + if p == nil { return nil } - return o.ExternalTicketID + return p.ExternalTicketID } -func (o *ProvisionInstance) GetExternalTicketProvisionerConfigID() *string { - if o == nil { +func (p *ProvisionInstance) GetExternalTicketProvisionerConfigID() *string { + if p == nil { return nil } - return o.ExternalTicketProvisionerConfigID + return p.ExternalTicketProvisionerConfigID } -func (o *ProvisionInstance) GetNotificationID() *string { - if o == nil { +func (p *ProvisionInstance) GetNotificationID() *string { + if p == nil { return nil } - return o.NotificationID + return p.NotificationID } -func (o *ProvisionInstance) GetState() *ProvisionInstanceState { - if o == nil { +func (p *ProvisionInstance) GetState() *ProvisionInstanceState { + if p == nil { return nil } - return o.State + return p.State } -func (o *ProvisionInstance) GetWebhookID() *string { - if o == nil { +func (p *ProvisionInstance) GetWebhookID() *string { + if p == nil { return nil } - return o.WebhookID + return p.WebhookID } -func (o *ProvisionInstance) GetWebhookInstanceID() *string { - if o == nil { +func (p *ProvisionInstance) GetWebhookInstanceID() *string { + if p == nil { return nil } - return o.WebhookInstanceID + return p.WebhookInstanceID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisionpolicy.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisionpolicy.go index b3fcff19..0633b4ea 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisionpolicy.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisionpolicy.go @@ -12,7 +12,10 @@ package shared // - multiStep // - externalTicket // - unconfigured +// - action type ProvisionPolicy struct { + // This provision step indicates that account lifecycle action should be called to provision this entitlement. + ActionProvision *ActionProvision `json:"action,omitempty"` // Indicates that a connector should perform the provisioning. This object has no fields. // // This message contains a oneof named provision_type. Only a single field of the following list may be set at a time: @@ -35,51 +38,58 @@ type ProvisionPolicy struct { WebhookProvision *WebhookProvision `json:"webhook,omitempty"` } -func (o *ProvisionPolicy) GetConnectorProvision() *ConnectorProvision { - if o == nil { +func (p *ProvisionPolicy) GetActionProvision() *ActionProvision { + if p == nil { return nil } - return o.ConnectorProvision + return p.ActionProvision } -func (o *ProvisionPolicy) GetDelegatedProvision() *DelegatedProvision { - if o == nil { +func (p *ProvisionPolicy) GetConnectorProvision() *ConnectorProvision { + if p == nil { return nil } - return o.DelegatedProvision + return p.ConnectorProvision } -func (o *ProvisionPolicy) GetExternalTicketProvision() *ExternalTicketProvision { - if o == nil { +func (p *ProvisionPolicy) GetDelegatedProvision() *DelegatedProvision { + if p == nil { return nil } - return o.ExternalTicketProvision + return p.DelegatedProvision } -func (o *ProvisionPolicy) GetManualProvision() *ManualProvision { - if o == nil { +func (p *ProvisionPolicy) GetExternalTicketProvision() *ExternalTicketProvision { + if p == nil { return nil } - return o.ManualProvision + return p.ExternalTicketProvision } -func (o *ProvisionPolicy) GetMultiStep() *MultiStep { - if o == nil { +func (p *ProvisionPolicy) GetManualProvision() *ManualProvision { + if p == nil { return nil } - return o.MultiStep + return p.ManualProvision } -func (o *ProvisionPolicy) GetUnconfiguredProvision() *UnconfiguredProvision { - if o == nil { +func (p *ProvisionPolicy) GetMultiStep() *MultiStep { + if p == nil { return nil } - return o.UnconfiguredProvision + return p.MultiStep } -func (o *ProvisionPolicy) GetWebhookProvision() *WebhookProvision { - if o == nil { +func (p *ProvisionPolicy) GetUnconfiguredProvision() *UnconfiguredProvision { + if p == nil { return nil } - return o.WebhookProvision + return p.UnconfiguredProvision +} + +func (p *ProvisionPolicy) GetWebhookProvision() *WebhookProvision { + if p == nil { + return nil + } + return p.WebhookProvision } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisionpolicyinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisionpolicyinput.go index b5afc8be..edad48cd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisionpolicyinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisionpolicyinput.go @@ -12,7 +12,10 @@ package shared // - multiStep // - externalTicket // - unconfigured +// - action type ProvisionPolicyInput struct { + // This provision step indicates that account lifecycle action should be called to provision this entitlement. + ActionProvision *ActionProvision `json:"action,omitempty"` // Indicates that a connector should perform the provisioning. This object has no fields. // // This message contains a oneof named provision_type. Only a single field of the following list may be set at a time: @@ -35,51 +38,58 @@ type ProvisionPolicyInput struct { WebhookProvision *WebhookProvision `json:"webhook,omitempty"` } -func (o *ProvisionPolicyInput) GetConnectorProvision() *ConnectorProvision { - if o == nil { +func (p *ProvisionPolicyInput) GetActionProvision() *ActionProvision { + if p == nil { return nil } - return o.ConnectorProvision + return p.ActionProvision } -func (o *ProvisionPolicyInput) GetDelegatedProvision() *DelegatedProvision { - if o == nil { +func (p *ProvisionPolicyInput) GetConnectorProvision() *ConnectorProvision { + if p == nil { return nil } - return o.DelegatedProvision + return p.ConnectorProvision } -func (o *ProvisionPolicyInput) GetExternalTicketProvision() *ExternalTicketProvision { - if o == nil { +func (p *ProvisionPolicyInput) GetDelegatedProvision() *DelegatedProvision { + if p == nil { return nil } - return o.ExternalTicketProvision + return p.DelegatedProvision } -func (o *ProvisionPolicyInput) GetManualProvision() *ManualProvision { - if o == nil { +func (p *ProvisionPolicyInput) GetExternalTicketProvision() *ExternalTicketProvision { + if p == nil { return nil } - return o.ManualProvision + return p.ExternalTicketProvision } -func (o *ProvisionPolicyInput) GetMultiStep() *MultiStep { - if o == nil { +func (p *ProvisionPolicyInput) GetManualProvision() *ManualProvision { + if p == nil { return nil } - return o.MultiStep + return p.ManualProvision } -func (o *ProvisionPolicyInput) GetUnconfiguredProvision() *UnconfiguredProvision { - if o == nil { +func (p *ProvisionPolicyInput) GetMultiStep() *MultiStep { + if p == nil { return nil } - return o.UnconfiguredProvision + return p.MultiStep } -func (o *ProvisionPolicyInput) GetWebhookProvision() *WebhookProvision { - if o == nil { +func (p *ProvisionPolicyInput) GetUnconfiguredProvision() *UnconfiguredProvision { + if p == nil { return nil } - return o.WebhookProvision + return p.UnconfiguredProvision +} + +func (p *ProvisionPolicyInput) GetWebhookProvision() *WebhookProvision { + if p == nil { + return nil + } + return p.WebhookProvision } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisiontarget.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisiontarget.go index 73b51793..97c7f23d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisiontarget.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/provisiontarget.go @@ -13,30 +13,30 @@ type ProvisionTarget struct { GrantDuration *string `json:"grantDuration,omitempty"` } -func (o *ProvisionTarget) GetAppEntitlementID() *string { - if o == nil { +func (p *ProvisionTarget) GetAppEntitlementID() *string { + if p == nil { return nil } - return o.AppEntitlementID + return p.AppEntitlementID } -func (o *ProvisionTarget) GetAppID() *string { - if o == nil { +func (p *ProvisionTarget) GetAppID() *string { + if p == nil { return nil } - return o.AppID + return p.AppID } -func (o *ProvisionTarget) GetAppUserID() *string { - if o == nil { +func (p *ProvisionTarget) GetAppUserID() *string { + if p == nil { return nil } - return o.AppUserID + return p.AppUserID } -func (o *ProvisionTarget) GetGrantDuration() *string { - if o == nil { +func (p *ProvisionTarget) GetGrantDuration() *string { + if p == nil { return nil } - return o.GrantDuration + return p.GrantDuration } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/randomstringfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/randomstringfield.go new file mode 100644 index 00000000..06708a36 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/randomstringfield.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RandomStringField message. +type RandomStringField struct { + // The length field. + Length *int `json:"length,omitempty"` +} + +func (r *RandomStringField) GetLength() *int { + if r == nil { + return nil + } + return r.Length +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/readonlyfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/readonlyfield.go new file mode 100644 index 00000000..546765b5 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/readonlyfield.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ReadOnlyField message. +type ReadOnlyField struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignaction.go index 31846534..c292b984 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignaction.go @@ -28,37 +28,37 @@ type ReassignAction struct { UseSubjectUser *bool `json:"useSubjectUser,omitempty"` } -func (o *ReassignAction) GetUserRef() *UserRef { - if o == nil { +func (r *ReassignAction) GetUserRef() *UserRef { + if r == nil { return nil } - return o.UserRef + return r.UserRef } -func (o *ReassignAction) GetUserRef1() *UserRef { - if o == nil { +func (r *ReassignAction) GetUserRef1() *UserRef { + if r == nil { return nil } - return o.UserRef1 + return r.UserRef1 } -func (o *ReassignAction) GetAssigneeUserIDCel() *string { - if o == nil { +func (r *ReassignAction) GetAssigneeUserIDCel() *string { + if r == nil { return nil } - return o.AssigneeUserIDCel + return r.AssigneeUserIDCel } -func (o *ReassignAction) GetSubjectUserIDCel() *string { - if o == nil { +func (r *ReassignAction) GetSubjectUserIDCel() *string { + if r == nil { return nil } - return o.SubjectUserIDCel + return r.SubjectUserIDCel } -func (o *ReassignAction) GetUseSubjectUser() *bool { - if o == nil { +func (r *ReassignAction) GetUseSubjectUser() *bool { + if r == nil { return nil } - return o.UseSubjectUser + return r.UseSubjectUser } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignedaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignedaction.go index f7e174e1..6d7d5279 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignedaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignedaction.go @@ -21,29 +21,29 @@ func (r ReassignedAction) MarshalJSON() ([]byte, error) { } func (r *ReassignedAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *ReassignedAction) GetNewPolicyStepID() *string { - if o == nil { +func (r *ReassignedAction) GetNewPolicyStepID() *string { + if r == nil { return nil } - return o.NewPolicyStepID + return r.NewPolicyStepID } -func (o *ReassignedAction) GetReassignedAt() *time.Time { - if o == nil { +func (r *ReassignedAction) GetReassignedAt() *time.Time { + if r == nil { return nil } - return o.ReassignedAt + return r.ReassignedAt } -func (o *ReassignedAction) GetUserID() *string { - if o == nil { +func (r *ReassignedAction) GetUserID() *string { + if r == nil { return nil } - return o.UserID + return r.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignedbyerroraction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignedbyerroraction.go index 4502fc57..e12b275a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignedbyerroraction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassignedbyerroraction.go @@ -26,50 +26,50 @@ func (r ReassignedByErrorAction) MarshalJSON() ([]byte, error) { } func (r *ReassignedByErrorAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *ReassignedByErrorAction) GetDescription() *string { - if o == nil { +func (r *ReassignedByErrorAction) GetDescription() *string { + if r == nil { return nil } - return o.Description + return r.Description } -func (o *ReassignedByErrorAction) GetErrorCode() *string { - if o == nil { +func (r *ReassignedByErrorAction) GetErrorCode() *string { + if r == nil { return nil } - return o.ErrorCode + return r.ErrorCode } -func (o *ReassignedByErrorAction) GetErrorUserID() *string { - if o == nil { +func (r *ReassignedByErrorAction) GetErrorUserID() *string { + if r == nil { return nil } - return o.ErrorUserID + return r.ErrorUserID } -func (o *ReassignedByErrorAction) GetErroredAt() *time.Time { - if o == nil { +func (r *ReassignedByErrorAction) GetErroredAt() *time.Time { + if r == nil { return nil } - return o.ErroredAt + return r.ErroredAt } -func (o *ReassignedByErrorAction) GetNewPolicyStepID() *string { - if o == nil { +func (r *ReassignedByErrorAction) GetNewPolicyStepID() *string { + if r == nil { return nil } - return o.NewPolicyStepID + return r.NewPolicyStepID } -func (o *ReassignedByErrorAction) GetReassignedAt() *time.Time { - if o == nil { +func (r *ReassignedByErrorAction) GetReassignedAt() *time.Time { + if r == nil { return nil } - return o.ReassignedAt + return r.ReassignedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassigntoapprovers.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassigntoapprovers.go index cee5c974..d3c7ef5a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassigntoapprovers.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reassigntoapprovers.go @@ -8,9 +8,9 @@ type ReassignToApprovers struct { ApproverIds []string `json:"approverIds,omitempty"` } -func (o *ReassignToApprovers) GetApproverIds() []string { - if o == nil { +func (r *ReassignToApprovers) GetApproverIds() []string { + if r == nil { return nil } - return o.ApproverIds + return r.ApproverIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/recurrencerule.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/recurrencerule.go new file mode 100644 index 00000000..92e7874f --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/recurrencerule.go @@ -0,0 +1,99 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// Frequency - The frequency field. +type Frequency string + +const ( + FrequencyFrequencyUnspecified Frequency = "FREQUENCY_UNSPECIFIED" + FrequencyFrequencyNone Frequency = "FREQUENCY_NONE" + FrequencyFrequencyDaily Frequency = "FREQUENCY_DAILY" + FrequencyFrequencyWeekly Frequency = "FREQUENCY_WEEKLY" + FrequencyFrequencyMonthly Frequency = "FREQUENCY_MONTHLY" + FrequencyFrequencyYearly Frequency = "FREQUENCY_YEARLY" +) + +func (e Frequency) ToPointer() *Frequency { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Frequency) IsExact() bool { + if e != nil { + switch *e { + case "FREQUENCY_UNSPECIFIED", "FREQUENCY_NONE", "FREQUENCY_DAILY", "FREQUENCY_WEEKLY", "FREQUENCY_MONTHLY", "FREQUENCY_YEARLY": + return true + } + } + return false +} + +// The RecurrenceRule message. +// +// This message contains a oneof named end_condition. Only a single field of the following list may be set at a time: +// - endDate +// - occurrences +type RecurrenceRule struct { + EndDate *time.Time `json:"endDate,omitempty"` + // The frequency field. + Frequency *Frequency `json:"frequency,omitempty"` + // The interval field. + Interval *int `json:"interval,omitempty"` + // The occurrences field. + // This field is part of the `end_condition` oneof. + // See the documentation for `c1.api.accessreview.v1.RecurrenceRule` for more details. + Occurrences *int `json:"occurrences,omitempty"` + StartDate *time.Time `json:"startDate,omitempty"` +} + +func (r RecurrenceRule) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RecurrenceRule) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { + return err + } + return nil +} + +func (r *RecurrenceRule) GetEndDate() *time.Time { + if r == nil { + return nil + } + return r.EndDate +} + +func (r *RecurrenceRule) GetFrequency() *Frequency { + if r == nil { + return nil + } + return r.Frequency +} + +func (r *RecurrenceRule) GetInterval() *int { + if r == nil { + return nil + } + return r.Interval +} + +func (r *RecurrenceRule) GetOccurrences() *int { + if r == nil { + return nil + } + return r.Occurrences +} + +func (r *RecurrenceRule) GetStartDate() *time.Time { + if r == nil { + return nil + } + return r.StartDate +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reject.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reject.go index c862f2fa..a25dda29 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reject.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reject.go @@ -8,9 +8,9 @@ type Reject struct { RejectMessage *string `json:"rejectMessage,omitempty"` } -func (o *Reject) GetRejectMessage() *string { - if o == nil { +func (r *Reject) GetRejectMessage() *string { + if r == nil { return nil } - return o.RejectMessage + return r.RejectMessage } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rejectinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rejectinstance.go index 279ed47c..2f4e5ea2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rejectinstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rejectinstance.go @@ -10,9 +10,9 @@ type RejectInstance struct { RejectMessage *string `json:"rejectMessage,omitempty"` } -func (o *RejectInstance) GetRejectMessage() *string { - if o == nil { +func (r *RejectInstance) GetRejectMessage() *string { + if r == nil { return nil } - return o.RejectMessage + return r.RejectMessage } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeappresourceownerrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeappresourceownerrequest.go index 08704a57..07620b75 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeappresourceownerrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeappresourceownerrequest.go @@ -8,9 +8,9 @@ type RemoveAppResourceOwnerRequest struct { UserID *string `json:"userId,omitempty"` } -func (o *RemoveAppResourceOwnerRequest) GetUserID() *string { - if o == nil { +func (r *RemoveAppResourceOwnerRequest) GetUserID() *string { + if r == nil { return nil } - return o.UserID + return r.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeautomationexclusionrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeautomationexclusionrequest.go index 513bb30e..1e66bf76 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeautomationexclusionrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeautomationexclusionrequest.go @@ -8,9 +8,9 @@ type RemoveAutomationExclusionRequest struct { UserIds []string `json:"userIds,omitempty"` } -func (o *RemoveAutomationExclusionRequest) GetUserIds() []string { - if o == nil { +func (r *RemoveAutomationExclusionRequest) GetUserIds() []string { + if r == nil { return nil } - return o.UserIds + return r.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeentitlementmembershiprequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeentitlementmembershiprequest.go index dac41931..9f379c1a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeentitlementmembershiprequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeentitlementmembershiprequest.go @@ -8,9 +8,9 @@ type RemoveEntitlementMembershipRequest struct { AppUserID *string `json:"appUserId,omitempty"` } -func (o *RemoveEntitlementMembershipRequest) GetAppUserID() *string { - if o == nil { +func (r *RemoveEntitlementMembershipRequest) GetAppUserID() *string { + if r == nil { return nil } - return o.AppUserID + return r.AppUserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeentitlementmembershipresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeentitlementmembershipresponse.go index 8e8bcf8b..36f0a99b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeentitlementmembershipresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removeentitlementmembershipresponse.go @@ -9,9 +9,9 @@ type RemoveEntitlementMembershipResponse struct { RevokeTaskID *string `json:"revokeTaskId,omitempty"` } -func (o *RemoveEntitlementMembershipResponse) GetRevokeTaskID() *string { - if o == nil { +func (r *RemoveEntitlementMembershipResponse) GetRevokeTaskID() *string { + if r == nil { return nil } - return o.RevokeTaskID + return r.RevokeTaskID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removefromdelegation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removefromdelegation.go index 9c33b790..479f2d18 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removefromdelegation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removefromdelegation.go @@ -22,37 +22,37 @@ type RemoveFromDelegation struct { UserIDCel *string `json:"userIdCel,omitempty"` } -func (o *RemoveFromDelegation) GetUserRef() *UserRef { - if o == nil { +func (r *RemoveFromDelegation) GetUserRef() *UserRef { + if r == nil { return nil } - return o.UserRef + return r.UserRef } -func (o *RemoveFromDelegation) GetUserRef1() *UserRef { - if o == nil { +func (r *RemoveFromDelegation) GetUserRef1() *UserRef { + if r == nil { return nil } - return o.UserRef1 + return r.UserRef1 } -func (o *RemoveFromDelegation) GetReplacementUserIDCel() *string { - if o == nil { +func (r *RemoveFromDelegation) GetReplacementUserIDCel() *string { + if r == nil { return nil } - return o.ReplacementUserIDCel + return r.ReplacementUserIDCel } -func (o *RemoveFromDelegation) GetUseSubjectUser() *bool { - if o == nil { +func (r *RemoveFromDelegation) GetUseSubjectUser() *bool { + if r == nil { return nil } - return o.UseSubjectUser + return r.UseSubjectUser } -func (o *RemoveFromDelegation) GetUserIDCel() *string { - if o == nil { +func (r *RemoveFromDelegation) GetUserIDCel() *string { + if r == nil { return nil } - return o.UserIDCel + return r.UserIDCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removegrantdurationresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removegrantdurationresponse.go index 88b9e086..7e01e37f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removegrantdurationresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/removegrantdurationresponse.go @@ -8,9 +8,9 @@ type RemoveGrantDurationResponse struct { AppEntitlementUserBinding *AppEntitlementUserBinding `json:"binding,omitempty"` } -func (o *RemoveGrantDurationResponse) GetAppEntitlementUserBinding() *AppEntitlementUserBinding { - if o == nil { +func (r *RemoveGrantDurationResponse) GetAppEntitlementUserBinding() *AppEntitlementUserBinding { + if r == nil { return nil } - return o.AppEntitlementUserBinding + return r.AppEntitlementUserBinding } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/repeatedrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/repeatedrules.go index 68fe0133..77ffd868 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/repeatedrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/repeatedrules.go @@ -46,37 +46,37 @@ type RepeatedRules struct { Unique *bool `json:"unique,omitempty"` } -func (o *RepeatedRules) GetFieldRules() *FieldRules { - if o == nil { +func (r *RepeatedRules) GetFieldRules() *FieldRules { + if r == nil { return nil } - return o.FieldRules + return r.FieldRules } -func (o *RepeatedRules) GetIgnoreEmpty() *bool { - if o == nil { +func (r *RepeatedRules) GetIgnoreEmpty() *bool { + if r == nil { return nil } - return o.IgnoreEmpty + return r.IgnoreEmpty } -func (o *RepeatedRules) GetMaxItems() *string { - if o == nil { +func (r *RepeatedRules) GetMaxItems() *string { + if r == nil { return nil } - return o.MaxItems + return r.MaxItems } -func (o *RepeatedRules) GetMinItems() *string { - if o == nil { +func (r *RepeatedRules) GetMinItems() *string { + if r == nil { return nil } - return o.MinItems + return r.MinItems } -func (o *RepeatedRules) GetUnique() *bool { - if o == nil { +func (r *RepeatedRules) GetUnique() *bool { + if r == nil { return nil } - return o.Unique + return r.Unique } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/replacepolicy.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/replacepolicy.go index 5b171619..37911c01 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/replacepolicy.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/replacepolicy.go @@ -8,9 +8,9 @@ type ReplacePolicy struct { PolicyID *string `json:"policyId,omitempty"` } -func (o *ReplacePolicy) GetPolicyID() *string { - if o == nil { +func (r *ReplacePolicy) GetPolicyID() *string { + if r == nil { return nil } - return o.PolicyID + return r.PolicyID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestableentry.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestableentry.go new file mode 100644 index 00000000..1477f279 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestableentry.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// RequestableEntry - A requestable entry in a catalog +type RequestableEntry struct { + // The ID of the app that contains the entitlement + AppID *string `json:"appId,omitempty"` + // The ID of the access profile (catalog) + CatalogID *string `json:"catalogId,omitempty"` + // The ID of the entitlement + EntitlementID *string `json:"entitlementId,omitempty"` +} + +func (r *RequestableEntry) GetAppID() *string { + if r == nil { + return nil + } + return r.AppID +} + +func (r *RequestableEntry) GetCatalogID() *string { + if r == nil { + return nil + } + return r.CatalogID +} + +func (r *RequestableEntry) GetEntitlementID() *string { + if r == nil { + return nil + } + return r.EntitlementID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalog.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalog.go index 06239913..1cbf6927 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalog.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalog.go @@ -20,6 +20,17 @@ func (e EnrollmentBehavior) ToPointer() *EnrollmentBehavior { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *EnrollmentBehavior) IsExact() bool { + if e != nil { + switch *e { + case "REQUEST_CATALOG_ENROLLMENT_BEHAVIOR_UNSPECIFIED", "REQUEST_CATALOG_ENROLLMENT_BEHAVIOR_BYPASS_ENTITLEMENT_REQUEST_POLICY", "REQUEST_CATALOG_ENROLLMENT_BEHAVIOR_ENFORCE_ENTITLEMENT_REQUEST_POLICY": + return true + } + } + return false +} + // UnenrollmentBehavior - Defines how to handle the revocation of the entitlements in the catalog during unenrollment. type UnenrollmentBehavior string @@ -34,6 +45,17 @@ func (e UnenrollmentBehavior) ToPointer() *UnenrollmentBehavior { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *UnenrollmentBehavior) IsExact() bool { + if e != nil { + switch *e { + case "REQUEST_CATALOG_UNENROLLMENT_BEHAVIOR_UNSPECIFIED", "REQUEST_CATALOG_UNENROLLMENT_BEHAVIOR_LEAVE_ACCESS_AS_IS", "REQUEST_CATALOG_UNENROLLMENT_BEHAVIOR_REVOKE_ALL", "REQUEST_CATALOG_UNENROLLMENT_BEHAVIOR_REVOKE_UNJUSTIFIED": + return true + } + } + return false +} + // UnenrollmentEntitlementBehavior - Defines how to handle the revoke policies of the entitlements in the catalog during unenrollment. type UnenrollmentEntitlementBehavior string @@ -47,6 +69,17 @@ func (e UnenrollmentEntitlementBehavior) ToPointer() *UnenrollmentEntitlementBeh return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *UnenrollmentEntitlementBehavior) IsExact() bool { + if e != nil { + switch *e { + case "REQUEST_CATALOG_UNENROLLMENT_ENTITLEMENT_BEHAVIOR_UNSPECIFIED", "REQUEST_CATALOG_UNENROLLMENT_ENTITLEMENT_BEHAVIOR_BYPASS", "REQUEST_CATALOG_UNENROLLMENT_ENTITLEMENT_BEHAVIOR_ENFORCE": + return true + } + } + return false +} + // The RequestCatalog is used for managing which entitlements are requestable, and who can request them. type RequestCatalog struct { // An array of app entitlements that, if the user has, can view the contents of this catalog. @@ -81,108 +114,108 @@ func (r RequestCatalog) MarshalJSON() ([]byte, error) { } func (r *RequestCatalog) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RequestCatalog) GetAccessEntitlements() []AppEntitlement { - if o == nil { +func (r *RequestCatalog) GetAccessEntitlements() []AppEntitlement { + if r == nil { return nil } - return o.AccessEntitlements + return r.AccessEntitlements } -func (o *RequestCatalog) GetCreatedAt() *time.Time { - if o == nil { +func (r *RequestCatalog) GetCreatedAt() *time.Time { + if r == nil { return nil } - return o.CreatedAt + return r.CreatedAt } -func (o *RequestCatalog) GetCreatedByUserID() *string { - if o == nil { +func (r *RequestCatalog) GetCreatedByUserID() *string { + if r == nil { return nil } - return o.CreatedByUserID + return r.CreatedByUserID } -func (o *RequestCatalog) GetDeletedAt() *time.Time { - if o == nil { +func (r *RequestCatalog) GetDeletedAt() *time.Time { + if r == nil { return nil } - return o.DeletedAt + return r.DeletedAt } -func (o *RequestCatalog) GetDescription() *string { - if o == nil { +func (r *RequestCatalog) GetDescription() *string { + if r == nil { return nil } - return o.Description + return r.Description } -func (o *RequestCatalog) GetDisplayName() *string { - if o == nil { +func (r *RequestCatalog) GetDisplayName() *string { + if r == nil { return nil } - return o.DisplayName + return r.DisplayName } -func (o *RequestCatalog) GetEnrollmentBehavior() *EnrollmentBehavior { - if o == nil { +func (r *RequestCatalog) GetEnrollmentBehavior() *EnrollmentBehavior { + if r == nil { return nil } - return o.EnrollmentBehavior + return r.EnrollmentBehavior } -func (o *RequestCatalog) GetID() *string { - if o == nil { +func (r *RequestCatalog) GetID() *string { + if r == nil { return nil } - return o.ID + return r.ID } -func (o *RequestCatalog) GetPublished() *bool { - if o == nil { +func (r *RequestCatalog) GetPublished() *bool { + if r == nil { return nil } - return o.Published + return r.Published } -func (o *RequestCatalog) GetRequestBundle() *bool { - if o == nil { +func (r *RequestCatalog) GetRequestBundle() *bool { + if r == nil { return nil } - return o.RequestBundle + return r.RequestBundle } -func (o *RequestCatalog) GetUnenrollmentBehavior() *UnenrollmentBehavior { - if o == nil { +func (r *RequestCatalog) GetUnenrollmentBehavior() *UnenrollmentBehavior { + if r == nil { return nil } - return o.UnenrollmentBehavior + return r.UnenrollmentBehavior } -func (o *RequestCatalog) GetUnenrollmentEntitlementBehavior() *UnenrollmentEntitlementBehavior { - if o == nil { +func (r *RequestCatalog) GetUnenrollmentEntitlementBehavior() *UnenrollmentEntitlementBehavior { + if r == nil { return nil } - return o.UnenrollmentEntitlementBehavior + return r.UnenrollmentEntitlementBehavior } -func (o *RequestCatalog) GetUpdatedAt() *time.Time { - if o == nil { +func (r *RequestCatalog) GetUpdatedAt() *time.Time { + if r == nil { return nil } - return o.UpdatedAt + return r.UpdatedAt } -func (o *RequestCatalog) GetVisibleToEveryone() *bool { - if o == nil { +func (r *RequestCatalog) GetVisibleToEveryone() *bool { + if r == nil { return nil } - return o.VisibleToEveryone + return r.VisibleToEveryone } // RequestCatalogInput - The RequestCatalog is used for managing which entitlements are requestable, and who can request them. @@ -211,79 +244,79 @@ type RequestCatalogInput struct { VisibleToEveryone *bool `json:"visibleToEveryone,omitempty"` } -func (o *RequestCatalogInput) GetAccessEntitlements() []AppEntitlementInput { - if o == nil { +func (r *RequestCatalogInput) GetAccessEntitlements() []AppEntitlementInput { + if r == nil { return nil } - return o.AccessEntitlements + return r.AccessEntitlements } -func (o *RequestCatalogInput) GetCreatedByUserID() *string { - if o == nil { +func (r *RequestCatalogInput) GetCreatedByUserID() *string { + if r == nil { return nil } - return o.CreatedByUserID + return r.CreatedByUserID } -func (o *RequestCatalogInput) GetDescription() *string { - if o == nil { +func (r *RequestCatalogInput) GetDescription() *string { + if r == nil { return nil } - return o.Description + return r.Description } -func (o *RequestCatalogInput) GetDisplayName() *string { - if o == nil { +func (r *RequestCatalogInput) GetDisplayName() *string { + if r == nil { return nil } - return o.DisplayName + return r.DisplayName } -func (o *RequestCatalogInput) GetEnrollmentBehavior() *EnrollmentBehavior { - if o == nil { +func (r *RequestCatalogInput) GetEnrollmentBehavior() *EnrollmentBehavior { + if r == nil { return nil } - return o.EnrollmentBehavior + return r.EnrollmentBehavior } -func (o *RequestCatalogInput) GetID() *string { - if o == nil { +func (r *RequestCatalogInput) GetID() *string { + if r == nil { return nil } - return o.ID + return r.ID } -func (o *RequestCatalogInput) GetPublished() *bool { - if o == nil { +func (r *RequestCatalogInput) GetPublished() *bool { + if r == nil { return nil } - return o.Published + return r.Published } -func (o *RequestCatalogInput) GetRequestBundle() *bool { - if o == nil { +func (r *RequestCatalogInput) GetRequestBundle() *bool { + if r == nil { return nil } - return o.RequestBundle + return r.RequestBundle } -func (o *RequestCatalogInput) GetUnenrollmentBehavior() *UnenrollmentBehavior { - if o == nil { +func (r *RequestCatalogInput) GetUnenrollmentBehavior() *UnenrollmentBehavior { + if r == nil { return nil } - return o.UnenrollmentBehavior + return r.UnenrollmentBehavior } -func (o *RequestCatalogInput) GetUnenrollmentEntitlementBehavior() *UnenrollmentEntitlementBehavior { - if o == nil { +func (r *RequestCatalogInput) GetUnenrollmentEntitlementBehavior() *UnenrollmentEntitlementBehavior { + if r == nil { return nil } - return o.UnenrollmentEntitlementBehavior + return r.UnenrollmentEntitlementBehavior } -func (o *RequestCatalogInput) GetVisibleToEveryone() *bool { - if o == nil { +func (r *RequestCatalogInput) GetVisibleToEveryone() *bool { + if r == nil { return nil } - return o.VisibleToEveryone + return r.VisibleToEveryone } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogexpandmask.go index ee469404..cc3c1d9f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogexpandmask.go @@ -8,9 +8,9 @@ type RequestCatalogExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *RequestCatalogExpandMask) GetPaths() []string { - if o == nil { +func (r *RequestCatalogExpandMask) GetPaths() []string { + if r == nil { return nil } - return o.Paths + return r.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceaddaccessentitlementsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceaddaccessentitlementsrequest.go index 3a46b4c0..47a1f77a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceaddaccessentitlementsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceaddaccessentitlementsrequest.go @@ -10,9 +10,9 @@ type RequestCatalogManagementServiceAddAccessEntitlementsRequest struct { AccessEntitlements []AppEntitlementRef `json:"accessEntitlements"` } -func (o *RequestCatalogManagementServiceAddAccessEntitlementsRequest) GetAccessEntitlements() []AppEntitlementRef { - if o == nil { +func (r *RequestCatalogManagementServiceAddAccessEntitlementsRequest) GetAccessEntitlements() []AppEntitlementRef { + if r == nil { return nil } - return o.AccessEntitlements + return r.AccessEntitlements } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceaddappentitlementsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceaddappentitlementsrequest.go index 2e57891c..6fdfb109 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceaddappentitlementsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceaddappentitlementsrequest.go @@ -11,16 +11,16 @@ type RequestCatalogManagementServiceAddAppEntitlementsRequest struct { CreateRequests *bool `json:"createRequests,omitempty"` } -func (o *RequestCatalogManagementServiceAddAppEntitlementsRequest) GetAppEntitlements() []AppEntitlementRef { - if o == nil { +func (r *RequestCatalogManagementServiceAddAppEntitlementsRequest) GetAppEntitlements() []AppEntitlementRef { + if r == nil { return nil } - return o.AppEntitlements + return r.AppEntitlements } -func (o *RequestCatalogManagementServiceAddAppEntitlementsRequest) GetCreateRequests() *bool { - if o == nil { +func (r *RequestCatalogManagementServiceAddAppEntitlementsRequest) GetCreateRequests() *bool { + if r == nil { return nil } - return o.CreateRequests + return r.CreateRequests } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequest.go index b141855a..5f655097 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequest.go @@ -15,6 +15,17 @@ func (e RequestCatalogManagementServiceCreateRequestEnrollmentBehavior) ToPointe return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *RequestCatalogManagementServiceCreateRequestEnrollmentBehavior) IsExact() bool { + if e != nil { + switch *e { + case "REQUEST_CATALOG_ENROLLMENT_BEHAVIOR_UNSPECIFIED", "REQUEST_CATALOG_ENROLLMENT_BEHAVIOR_BYPASS_ENTITLEMENT_REQUEST_POLICY", "REQUEST_CATALOG_ENROLLMENT_BEHAVIOR_ENFORCE_ENTITLEMENT_REQUEST_POLICY": + return true + } + } + return false +} + // RequestCatalogManagementServiceCreateRequestUnenrollmentBehavior - Defines how to handle the revocation of the entitlements in the catalog during unenrollment. type RequestCatalogManagementServiceCreateRequestUnenrollmentBehavior string @@ -29,6 +40,17 @@ func (e RequestCatalogManagementServiceCreateRequestUnenrollmentBehavior) ToPoin return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *RequestCatalogManagementServiceCreateRequestUnenrollmentBehavior) IsExact() bool { + if e != nil { + switch *e { + case "REQUEST_CATALOG_UNENROLLMENT_BEHAVIOR_UNSPECIFIED", "REQUEST_CATALOG_UNENROLLMENT_BEHAVIOR_LEAVE_ACCESS_AS_IS", "REQUEST_CATALOG_UNENROLLMENT_BEHAVIOR_REVOKE_ALL", "REQUEST_CATALOG_UNENROLLMENT_BEHAVIOR_REVOKE_UNJUSTIFIED": + return true + } + } + return false +} + // RequestCatalogManagementServiceCreateRequestUnenrollmentEntitlementBehavior - Defines how to handle the revoke policies of the entitlements in the catalog during unenrollment. type RequestCatalogManagementServiceCreateRequestUnenrollmentEntitlementBehavior string @@ -42,6 +64,17 @@ func (e RequestCatalogManagementServiceCreateRequestUnenrollmentEntitlementBehav return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *RequestCatalogManagementServiceCreateRequestUnenrollmentEntitlementBehavior) IsExact() bool { + if e != nil { + switch *e { + case "REQUEST_CATALOG_UNENROLLMENT_ENTITLEMENT_BEHAVIOR_UNSPECIFIED", "REQUEST_CATALOG_UNENROLLMENT_ENTITLEMENT_BEHAVIOR_BYPASS", "REQUEST_CATALOG_UNENROLLMENT_ENTITLEMENT_BEHAVIOR_ENFORCE": + return true + } + } + return false +} + // RequestCatalogManagementServiceCreateRequest - Create a request catalog. type RequestCatalogManagementServiceCreateRequest struct { // The RequestCatalogExpandMask includes the paths in the catalog view to expand in the return value of this call. @@ -64,65 +97,65 @@ type RequestCatalogManagementServiceCreateRequest struct { VisibleToEveryone *bool `json:"visibleToEveryone,omitempty"` } -func (o *RequestCatalogManagementServiceCreateRequest) GetRequestCatalogExpandMask() *RequestCatalogExpandMask { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetRequestCatalogExpandMask() *RequestCatalogExpandMask { + if r == nil { return nil } - return o.RequestCatalogExpandMask + return r.RequestCatalogExpandMask } -func (o *RequestCatalogManagementServiceCreateRequest) GetDescription() *string { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetDescription() *string { + if r == nil { return nil } - return o.Description + return r.Description } -func (o *RequestCatalogManagementServiceCreateRequest) GetDisplayName() string { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetDisplayName() string { + if r == nil { return "" } - return o.DisplayName + return r.DisplayName } -func (o *RequestCatalogManagementServiceCreateRequest) GetEnrollmentBehavior() *RequestCatalogManagementServiceCreateRequestEnrollmentBehavior { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetEnrollmentBehavior() *RequestCatalogManagementServiceCreateRequestEnrollmentBehavior { + if r == nil { return nil } - return o.EnrollmentBehavior + return r.EnrollmentBehavior } -func (o *RequestCatalogManagementServiceCreateRequest) GetPublished() *bool { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetPublished() *bool { + if r == nil { return nil } - return o.Published + return r.Published } -func (o *RequestCatalogManagementServiceCreateRequest) GetRequestBundle() *bool { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetRequestBundle() *bool { + if r == nil { return nil } - return o.RequestBundle + return r.RequestBundle } -func (o *RequestCatalogManagementServiceCreateRequest) GetUnenrollmentBehavior() *RequestCatalogManagementServiceCreateRequestUnenrollmentBehavior { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetUnenrollmentBehavior() *RequestCatalogManagementServiceCreateRequestUnenrollmentBehavior { + if r == nil { return nil } - return o.UnenrollmentBehavior + return r.UnenrollmentBehavior } -func (o *RequestCatalogManagementServiceCreateRequest) GetUnenrollmentEntitlementBehavior() *RequestCatalogManagementServiceCreateRequestUnenrollmentEntitlementBehavior { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetUnenrollmentEntitlementBehavior() *RequestCatalogManagementServiceCreateRequestUnenrollmentEntitlementBehavior { + if r == nil { return nil } - return o.UnenrollmentEntitlementBehavior + return r.UnenrollmentEntitlementBehavior } -func (o *RequestCatalogManagementServiceCreateRequest) GetVisibleToEveryone() *bool { - if o == nil { +func (r *RequestCatalogManagementServiceCreateRequest) GetVisibleToEveryone() *bool { + if r == nil { return nil } - return o.VisibleToEveryone + return r.VisibleToEveryone } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequestableentryrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequestableentryrequest.go new file mode 100644 index 00000000..9669f23a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequestableentryrequest.go @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// RequestCatalogManagementServiceCreateRequestableEntryRequest - Create a single requestable entry +type RequestCatalogManagementServiceCreateRequestableEntryRequest struct { + // Whether or not to create requests for newly added entitlement for users in the catalog. + // By default, this is false and no requests are created. + CreateRequests *bool `json:"createRequests,omitempty"` +} + +func (r *RequestCatalogManagementServiceCreateRequestableEntryRequest) GetCreateRequests() *bool { + if r == nil { + return nil + } + return r.CreateRequests +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequestableentryresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequestableentryresponse.go new file mode 100644 index 00000000..ac53991b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicecreaterequestableentryresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// RequestCatalogManagementServiceCreateRequestableEntryResponse - Response containing the created requestable entry +type RequestCatalogManagementServiceCreateRequestableEntryResponse struct { + // A requestable entry in a catalog + RequestableEntry *RequestableEntry `json:"requestableEntry,omitempty"` +} + +func (r *RequestCatalogManagementServiceCreateRequestableEntryResponse) GetRequestableEntry() *RequestableEntry { + if r == nil { + return nil + } + return r.RequestableEntry +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicedeleterequestableentryrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicedeleterequestableentryrequest.go new file mode 100644 index 00000000..310e663d --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicedeleterequestableentryrequest.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// RequestCatalogManagementServiceDeleteRequestableEntryRequest - Delete a single requestable entry +type RequestCatalogManagementServiceDeleteRequestableEntryRequest struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicedeleterequestableentryresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicedeleterequestableentryresponse.go new file mode 100644 index 00000000..30df06a2 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicedeleterequestableentryresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// RequestCatalogManagementServiceDeleteRequestableEntryResponse - Empty response for delete operation +type RequestCatalogManagementServiceDeleteRequestableEntryResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicegetrequestableentryresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicegetrequestableentryresponse.go new file mode 100644 index 00000000..0e7565e5 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicegetrequestableentryresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// RequestCatalogManagementServiceGetRequestableEntryResponse - Response containing the requested entry +type RequestCatalogManagementServiceGetRequestableEntryResponse struct { + // A requestable entry in a catalog + RequestableEntry *RequestableEntry `json:"requestableEntry,omitempty"` +} + +func (r *RequestCatalogManagementServiceGetRequestableEntryResponse) GetRequestableEntry() *RequestableEntry { + if r == nil { + return nil + } + return r.RequestableEntry +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicegetresponse.go index f5980b24..d1b3ea0b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicegetresponse.go @@ -18,24 +18,24 @@ func (r RequestCatalogManagementServiceGetResponseExpanded) MarshalJSON() ([]byt } func (r *RequestCatalogManagementServiceGetResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RequestCatalogManagementServiceGetResponseExpanded) GetAtType() *string { - if o == nil { +func (r *RequestCatalogManagementServiceGetResponseExpanded) GetAtType() *string { + if r == nil { return nil } - return o.AtType + return r.AtType } -func (o *RequestCatalogManagementServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (r *RequestCatalogManagementServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { + if r == nil { return nil } - return o.AdditionalProperties + return r.AdditionalProperties } // RequestCatalogManagementServiceGetResponse - The request catalog management service get response returns a request catalog view with the expanded items in the expanded array indicated by the expand mask in the request. @@ -46,16 +46,16 @@ type RequestCatalogManagementServiceGetResponse struct { Expanded []RequestCatalogManagementServiceGetResponseExpanded `json:"expanded,omitempty"` } -func (o *RequestCatalogManagementServiceGetResponse) GetRequestCatalogView() *RequestCatalogView { - if o == nil { +func (r *RequestCatalogManagementServiceGetResponse) GetRequestCatalogView() *RequestCatalogView { + if r == nil { return nil } - return o.RequestCatalogView + return r.RequestCatalogView } -func (o *RequestCatalogManagementServiceGetResponse) GetExpanded() []RequestCatalogManagementServiceGetResponseExpanded { - if o == nil { +func (r *RequestCatalogManagementServiceGetResponse) GetExpanded() []RequestCatalogManagementServiceGetResponseExpanded { + if r == nil { return nil } - return o.Expanded + return r.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistallentitlementidspercatalogresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistallentitlementidspercatalogresponse.go index df39e176..ed246c30 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistallentitlementidspercatalogresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistallentitlementidspercatalogresponse.go @@ -8,9 +8,9 @@ type RequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse stru Refs []AppEntitlementRef `json:"refs,omitempty"` } -func (o *RequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse) GetRefs() []AppEntitlementRef { - if o == nil { +func (r *RequestCatalogManagementServiceListAllEntitlementIdsPerCatalogResponse) GetRefs() []AppEntitlementRef { + if r == nil { return nil } - return o.Refs + return r.Refs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistentitlementsforaccessresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistentitlementsforaccessresponse.go index 37052e19..955677e9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistentitlementsforaccessresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistentitlementsforaccessresponse.go @@ -18,24 +18,24 @@ func (r RequestCatalogManagementServiceListEntitlementsForAccessResponseExpanded } func (r *RequestCatalogManagementServiceListEntitlementsForAccessResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RequestCatalogManagementServiceListEntitlementsForAccessResponseExpanded) GetAtType() *string { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsForAccessResponseExpanded) GetAtType() *string { + if r == nil { return nil } - return o.AtType + return r.AtType } -func (o *RequestCatalogManagementServiceListEntitlementsForAccessResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsForAccessResponseExpanded) GetAdditionalProperties() map[string]any { + if r == nil { return nil } - return o.AdditionalProperties + return r.AdditionalProperties } // The RequestCatalogManagementServiceListEntitlementsForAccessResponse message contains a list of results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type RequestCatalogManagementServiceListEntitlementsForAccessResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetExpanded() []RequestCatalogManagementServiceListEntitlementsForAccessResponseExpanded { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetExpanded() []RequestCatalogManagementServiceListEntitlementsForAccessResponseExpanded { + if r == nil { return nil } - return o.Expanded + return r.Expanded } -func (o *RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetList() []AppEntitlementView { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetList() []AppEntitlementView { + if r == nil { return nil } - return o.List + return r.List } -func (o *RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetNextPageToken() *string { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsForAccessResponse) GetNextPageToken() *string { + if r == nil { return nil } - return o.NextPageToken + return r.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistentitlementspercatalogresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistentitlementspercatalogresponse.go index f89d1bc9..fd073587 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistentitlementspercatalogresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistentitlementspercatalogresponse.go @@ -18,24 +18,24 @@ func (r RequestCatalogManagementServiceListEntitlementsPerCatalogResponseExpande } func (r *RequestCatalogManagementServiceListEntitlementsPerCatalogResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RequestCatalogManagementServiceListEntitlementsPerCatalogResponseExpanded) GetAtType() *string { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsPerCatalogResponseExpanded) GetAtType() *string { + if r == nil { return nil } - return o.AtType + return r.AtType } -func (o *RequestCatalogManagementServiceListEntitlementsPerCatalogResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsPerCatalogResponseExpanded) GetAdditionalProperties() map[string]any { + if r == nil { return nil } - return o.AdditionalProperties + return r.AdditionalProperties } // The RequestCatalogManagementServiceListEntitlementsPerCatalogResponse message contains a list of results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type RequestCatalogManagementServiceListEntitlementsPerCatalogResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetExpanded() []RequestCatalogManagementServiceListEntitlementsPerCatalogResponseExpanded { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetExpanded() []RequestCatalogManagementServiceListEntitlementsPerCatalogResponseExpanded { + if r == nil { return nil } - return o.Expanded + return r.Expanded } -func (o *RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetList() []AppEntitlementView { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetList() []AppEntitlementView { + if r == nil { return nil } - return o.List + return r.List } -func (o *RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetNextPageToken() *string { - if o == nil { +func (r *RequestCatalogManagementServiceListEntitlementsPerCatalogResponse) GetNextPageToken() *string { + if r == nil { return nil } - return o.NextPageToken + return r.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistresponse.go index 157de696..e115be78 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementservicelistresponse.go @@ -18,24 +18,24 @@ func (r RequestCatalogManagementServiceListResponseExpanded) MarshalJSON() ([]by } func (r *RequestCatalogManagementServiceListResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RequestCatalogManagementServiceListResponseExpanded) GetAtType() *string { - if o == nil { +func (r *RequestCatalogManagementServiceListResponseExpanded) GetAtType() *string { + if r == nil { return nil } - return o.AtType + return r.AtType } -func (o *RequestCatalogManagementServiceListResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (r *RequestCatalogManagementServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if r == nil { return nil } - return o.AdditionalProperties + return r.AdditionalProperties } // The RequestCatalogManagementServiceListResponse message. @@ -50,23 +50,23 @@ type RequestCatalogManagementServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *RequestCatalogManagementServiceListResponse) GetExpanded() []RequestCatalogManagementServiceListResponseExpanded { - if o == nil { +func (r *RequestCatalogManagementServiceListResponse) GetExpanded() []RequestCatalogManagementServiceListResponseExpanded { + if r == nil { return nil } - return o.Expanded + return r.Expanded } -func (o *RequestCatalogManagementServiceListResponse) GetList() []RequestCatalogView { - if o == nil { +func (r *RequestCatalogManagementServiceListResponse) GetList() []RequestCatalogView { + if r == nil { return nil } - return o.List + return r.List } -func (o *RequestCatalogManagementServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (r *RequestCatalogManagementServiceListResponse) GetNextPageToken() *string { + if r == nil { return nil } - return o.NextPageToken + return r.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceremoveaccessentitlementsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceremoveaccessentitlementsrequest.go index f2cb7ab4..121a0a24 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceremoveaccessentitlementsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceremoveaccessentitlementsrequest.go @@ -10,9 +10,9 @@ type RequestCatalogManagementServiceRemoveAccessEntitlementsRequest struct { AccessEntitlements []AppEntitlementRef `json:"accessEntitlements,omitempty"` } -func (o *RequestCatalogManagementServiceRemoveAccessEntitlementsRequest) GetAccessEntitlements() []AppEntitlementRef { - if o == nil { +func (r *RequestCatalogManagementServiceRemoveAccessEntitlementsRequest) GetAccessEntitlements() []AppEntitlementRef { + if r == nil { return nil } - return o.AccessEntitlements + return r.AccessEntitlements } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceremoveappentitlementsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceremoveappentitlementsrequest.go index 62a32576..4aa72404 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceremoveappentitlementsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceremoveappentitlementsrequest.go @@ -8,9 +8,9 @@ type RequestCatalogManagementServiceRemoveAppEntitlementsRequest struct { AppEntitlements []AppEntitlementRef `json:"appEntitlements,omitempty"` } -func (o *RequestCatalogManagementServiceRemoveAppEntitlementsRequest) GetAppEntitlements() []AppEntitlementRef { - if o == nil { +func (r *RequestCatalogManagementServiceRemoveAppEntitlementsRequest) GetAppEntitlements() []AppEntitlementRef { + if r == nil { return nil } - return o.AppEntitlements + return r.AppEntitlements } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceupdateappentitlementsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceupdateappentitlementsrequest.go index 3c54932b..49615682 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceupdateappentitlementsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceupdateappentitlementsrequest.go @@ -8,9 +8,9 @@ type RequestCatalogManagementServiceUpdateAppEntitlementsRequest struct { AppEntitlements []AppEntitlementRef `json:"appEntitlements"` } -func (o *RequestCatalogManagementServiceUpdateAppEntitlementsRequest) GetAppEntitlements() []AppEntitlementRef { - if o == nil { +func (r *RequestCatalogManagementServiceUpdateAppEntitlementsRequest) GetAppEntitlements() []AppEntitlementRef { + if r == nil { return nil } - return o.AppEntitlements + return r.AppEntitlements } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceupdaterequest.go index 72b7ebbf..faed0495 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceupdaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogmanagementserviceupdaterequest.go @@ -11,23 +11,23 @@ type RequestCatalogManagementServiceUpdateRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *RequestCatalogManagementServiceUpdateRequest) GetRequestCatalog() *RequestCatalogInput { - if o == nil { +func (r *RequestCatalogManagementServiceUpdateRequest) GetRequestCatalog() *RequestCatalogInput { + if r == nil { return nil } - return o.RequestCatalog + return r.RequestCatalog } -func (o *RequestCatalogManagementServiceUpdateRequest) GetRequestCatalogExpandMask() *RequestCatalogExpandMask { - if o == nil { +func (r *RequestCatalogManagementServiceUpdateRequest) GetRequestCatalogExpandMask() *RequestCatalogExpandMask { + if r == nil { return nil } - return o.RequestCatalogExpandMask + return r.RequestCatalogExpandMask } -func (o *RequestCatalogManagementServiceUpdateRequest) GetUpdateMask() *string { - if o == nil { +func (r *RequestCatalogManagementServiceUpdateRequest) GetUpdateMask() *string { + if r == nil { return nil } - return o.UpdateMask + return r.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogsearchservicesearchentitlementsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogsearchservicesearchentitlementsrequest.go index eeec4525..204aa6c0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogsearchservicesearchentitlementsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogsearchservicesearchentitlementsrequest.go @@ -16,6 +16,17 @@ func (e GrantedStatus) ToPointer() *GrantedStatus { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *GrantedStatus) IsExact() bool { + if e != nil { + switch *e { + case "UNSPECIFIED", "ALL", "GRANTED", "NOT_GRANTED": + return true + } + } + return false +} + // The RequestCatalogSearchServiceSearchEntitlementsRequest searches entitlements, but only ones that are available to you through the open catalogs. type RequestCatalogSearchServiceSearchEntitlementsRequest struct { // The app entitlement expand mask allows the user to get additional information when getting responses containing app entitlement views. @@ -36,58 +47,58 @@ type RequestCatalogSearchServiceSearchEntitlementsRequest struct { Query *string `json:"query,omitempty"` } -func (o *RequestCatalogSearchServiceSearchEntitlementsRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { + if r == nil { return nil } - return o.AppEntitlementExpandMask + return r.AppEntitlementExpandMask } -func (o *RequestCatalogSearchServiceSearchEntitlementsRequest) GetAppDisplayName() *string { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsRequest) GetAppDisplayName() *string { + if r == nil { return nil } - return o.AppDisplayName + return r.AppDisplayName } -func (o *RequestCatalogSearchServiceSearchEntitlementsRequest) GetEntitlementAlias() *string { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsRequest) GetEntitlementAlias() *string { + if r == nil { return nil } - return o.EntitlementAlias + return r.EntitlementAlias } -func (o *RequestCatalogSearchServiceSearchEntitlementsRequest) GetGrantedStatus() *GrantedStatus { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsRequest) GetGrantedStatus() *GrantedStatus { + if r == nil { return nil } - return o.GrantedStatus + return r.GrantedStatus } -func (o *RequestCatalogSearchServiceSearchEntitlementsRequest) GetIncludeDeleted() *bool { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsRequest) GetIncludeDeleted() *bool { + if r == nil { return nil } - return o.IncludeDeleted + return r.IncludeDeleted } -func (o *RequestCatalogSearchServiceSearchEntitlementsRequest) GetPageSize() *int { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsRequest) GetPageSize() *int { + if r == nil { return nil } - return o.PageSize + return r.PageSize } -func (o *RequestCatalogSearchServiceSearchEntitlementsRequest) GetPageToken() *string { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsRequest) GetPageToken() *string { + if r == nil { return nil } - return o.PageToken + return r.PageToken } -func (o *RequestCatalogSearchServiceSearchEntitlementsRequest) GetQuery() *string { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsRequest) GetQuery() *string { + if r == nil { return nil } - return o.Query + return r.Query } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogsearchservicesearchentitlementsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogsearchservicesearchentitlementsresponse.go index 2ca35bb2..c4704c21 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogsearchservicesearchentitlementsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogsearchservicesearchentitlementsresponse.go @@ -18,24 +18,24 @@ func (r RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) MarshalJS } func (r *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) GetAtType() *string { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) GetAtType() *string { + if r == nil { return nil } - return o.AtType + return r.AtType } -func (o *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) GetAdditionalProperties() map[string]any { + if r == nil { return nil } - return o.AdditionalProperties + return r.AdditionalProperties } // The RequestCatalogSearchServiceSearchEntitlementsResponse message contains a list of results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type RequestCatalogSearchServiceSearchEntitlementsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *RequestCatalogSearchServiceSearchEntitlementsResponse) GetExpanded() []RequestCatalogSearchServiceSearchEntitlementsResponseExpanded { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsResponse) GetExpanded() []RequestCatalogSearchServiceSearchEntitlementsResponseExpanded { + if r == nil { return nil } - return o.Expanded + return r.Expanded } -func (o *RequestCatalogSearchServiceSearchEntitlementsResponse) GetList() []AppEntitlementWithUserBindings { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsResponse) GetList() []AppEntitlementWithUserBindings { + if r == nil { return nil } - return o.List + return r.List } -func (o *RequestCatalogSearchServiceSearchEntitlementsResponse) GetNextPageToken() *string { - if o == nil { +func (r *RequestCatalogSearchServiceSearchEntitlementsResponse) GetNextPageToken() *string { + if r == nil { return nil } - return o.NextPageToken + return r.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogview.go index 98670bad..364cfe44 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestcatalogview.go @@ -14,30 +14,30 @@ type RequestCatalogView struct { MemberCount *int64 `integer:"string" json:"memberCount,omitempty"` } -func (o *RequestCatalogView) GetRequestCatalog() *RequestCatalog { - if o == nil { +func (r *RequestCatalogView) GetRequestCatalog() *RequestCatalog { + if r == nil { return nil } - return o.RequestCatalog + return r.RequestCatalog } -func (o *RequestCatalogView) GetAccessEntitlementsPath() *string { - if o == nil { +func (r *RequestCatalogView) GetAccessEntitlementsPath() *string { + if r == nil { return nil } - return o.AccessEntitlementsPath + return r.AccessEntitlementsPath } -func (o *RequestCatalogView) GetCreatedByUserPath() *string { - if o == nil { +func (r *RequestCatalogView) GetCreatedByUserPath() *string { + if r == nil { return nil } - return o.CreatedByUserPath + return r.CreatedByUserPath } -func (o *RequestCatalogView) GetMemberCount() *int64 { - if o == nil { +func (r *RequestCatalogView) GetMemberCount() *int64 { + if r == nil { return nil } - return o.MemberCount + return r.MemberCount } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschema.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschema.go new file mode 100644 index 00000000..70d1b9dd --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschema.go @@ -0,0 +1,98 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// JustificationVisibility - The justificationVisibility field. +type JustificationVisibility string + +const ( + JustificationVisibilityJustificationVisibilityUnspecified JustificationVisibility = "JUSTIFICATION_VISIBILITY_UNSPECIFIED" + JustificationVisibilityJustificationVisibilityShow JustificationVisibility = "JUSTIFICATION_VISIBILITY_SHOW" + JustificationVisibilityJustificationVisibilityHide JustificationVisibility = "JUSTIFICATION_VISIBILITY_HIDE" +) + +func (e JustificationVisibility) ToPointer() *JustificationVisibility { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *JustificationVisibility) IsExact() bool { + if e != nil { + switch *e { + case "JUSTIFICATION_VISIBILITY_UNSPECIFIED", "JUSTIFICATION_VISIBILITY_SHOW", "JUSTIFICATION_VISIBILITY_HIDE": + return true + } + } + return false +} + +// The RequestSchema message. +type RequestSchema struct { + // A form is a collection of fields to be filled out by a user + Form *FormInput `json:"form,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` + // The justificationVisibility field. + JustificationVisibility *JustificationVisibility `json:"justificationVisibility,omitempty"` + ModifiedAt *time.Time `json:"modifiedAt,omitempty"` +} + +func (r RequestSchema) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RequestSchema) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { + return err + } + return nil +} + +func (r *RequestSchema) GetForm() *FormInput { + if r == nil { + return nil + } + return r.Form +} + +func (r *RequestSchema) GetCreatedAt() *time.Time { + if r == nil { + return nil + } + return r.CreatedAt +} + +func (r *RequestSchema) GetDeletedAt() *time.Time { + if r == nil { + return nil + } + return r.DeletedAt +} + +func (r *RequestSchema) GetID() *string { + if r == nil { + return nil + } + return r.ID +} + +func (r *RequestSchema) GetJustificationVisibility() *JustificationVisibility { + if r == nil { + return nil + } + return r.JustificationVisibility +} + +func (r *RequestSchema) GetModifiedAt() *time.Time { + if r == nil { + return nil + } + return r.ModifiedAt +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateentitlementbindingrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateentitlementbindingrequest.go new file mode 100644 index 00000000..591f5fd4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateentitlementbindingrequest.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceCreateEntitlementBindingRequest message. +type RequestSchemaServiceCreateEntitlementBindingRequest struct { + // The AppEntitlementRef message. + AppEntitlementRef *AppEntitlementRef `json:"entitlementRef,omitempty"` + // The requestSchemaId field. + RequestSchemaID *string `json:"requestSchemaId,omitempty"` +} + +func (r *RequestSchemaServiceCreateEntitlementBindingRequest) GetAppEntitlementRef() *AppEntitlementRef { + if r == nil { + return nil + } + return r.AppEntitlementRef +} + +func (r *RequestSchemaServiceCreateEntitlementBindingRequest) GetRequestSchemaID() *string { + if r == nil { + return nil + } + return r.RequestSchemaID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateentitlementbindingresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateentitlementbindingresponse.go new file mode 100644 index 00000000..e6f312eb --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateentitlementbindingresponse.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceCreateEntitlementBindingResponse message. +type RequestSchemaServiceCreateEntitlementBindingResponse struct { + // The AppEntitlementRef message. + AppEntitlementRef *AppEntitlementRef `json:"entitlementRef,omitempty"` + // The requestSchemaId field. + RequestSchemaID *string `json:"requestSchemaId,omitempty"` +} + +func (r *RequestSchemaServiceCreateEntitlementBindingResponse) GetAppEntitlementRef() *AppEntitlementRef { + if r == nil { + return nil + } + return r.AppEntitlementRef +} + +func (r *RequestSchemaServiceCreateEntitlementBindingResponse) GetRequestSchemaID() *string { + if r == nil { + return nil + } + return r.RequestSchemaID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreaterequest.go new file mode 100644 index 00000000..f40549ee --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreaterequest.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceCreateRequest message. +type RequestSchemaServiceCreateRequest struct { + // The description field. + Description *string `json:"description,omitempty"` + // The fields field. + Fields []FieldInput `json:"fields,omitempty"` + // The name field. + Name *string `json:"name,omitempty"` +} + +func (r *RequestSchemaServiceCreateRequest) GetDescription() *string { + if r == nil { + return nil + } + return r.Description +} + +func (r *RequestSchemaServiceCreateRequest) GetFields() []FieldInput { + if r == nil { + return nil + } + return r.Fields +} + +func (r *RequestSchemaServiceCreateRequest) GetName() *string { + if r == nil { + return nil + } + return r.Name +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateresponse.go new file mode 100644 index 00000000..e31a3360 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicecreateresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceCreateResponse message. +type RequestSchemaServiceCreateResponse struct { + // The RequestSchema message. + RequestSchema *RequestSchema `json:"requestSchema,omitempty"` +} + +func (r *RequestSchemaServiceCreateResponse) GetRequestSchema() *RequestSchema { + if r == nil { + return nil + } + return r.RequestSchema +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicedeleterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicedeleterequest.go new file mode 100644 index 00000000..ceb80d88 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicedeleterequest.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceDeleteRequest message. +type RequestSchemaServiceDeleteRequest struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicedeleteresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicedeleteresponse.go new file mode 100644 index 00000000..e2a1f8cc --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicedeleteresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceDeleteResponse message. +type RequestSchemaServiceDeleteResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicefindbindingforappentitlementrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicefindbindingforappentitlementrequest.go new file mode 100644 index 00000000..05e9e4f9 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicefindbindingforappentitlementrequest.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceFindBindingForAppEntitlementRequest message. +type RequestSchemaServiceFindBindingForAppEntitlementRequest struct { + // The AppEntitlementRef message. + AppEntitlementRef *AppEntitlementRef `json:"entitlementRef,omitempty"` +} + +func (r *RequestSchemaServiceFindBindingForAppEntitlementRequest) GetAppEntitlementRef() *AppEntitlementRef { + if r == nil { + return nil + } + return r.AppEntitlementRef +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicefindbindingforappentitlementresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicefindbindingforappentitlementresponse.go new file mode 100644 index 00000000..7b85eb2b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicefindbindingforappentitlementresponse.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceFindBindingForAppEntitlementResponse message. +type RequestSchemaServiceFindBindingForAppEntitlementResponse struct { + // The AppEntitlementRef message. + AppEntitlementRef *AppEntitlementRef `json:"entitlementRef,omitempty"` + // The requestSchemaId field. + RequestSchemaID *string `json:"requestSchemaId,omitempty"` +} + +func (r *RequestSchemaServiceFindBindingForAppEntitlementResponse) GetAppEntitlementRef() *AppEntitlementRef { + if r == nil { + return nil + } + return r.AppEntitlementRef +} + +func (r *RequestSchemaServiceFindBindingForAppEntitlementResponse) GetRequestSchemaID() *string { + if r == nil { + return nil + } + return r.RequestSchemaID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicegetresponse.go new file mode 100644 index 00000000..00e7f4c4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaservicegetresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceGetResponse message. +type RequestSchemaServiceGetResponse struct { + // The RequestSchema message. + RequestSchema *RequestSchema `json:"requestSchema,omitempty"` +} + +func (r *RequestSchemaServiceGetResponse) GetRequestSchema() *RequestSchema { + if r == nil { + return nil + } + return r.RequestSchema +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceremoveentitlementbindingrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceremoveentitlementbindingrequest.go new file mode 100644 index 00000000..e338a61f --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceremoveentitlementbindingrequest.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceRemoveEntitlementBindingRequest message. +type RequestSchemaServiceRemoveEntitlementBindingRequest struct { + // The AppEntitlementRef message. + AppEntitlementRef *AppEntitlementRef `json:"entitlementRef,omitempty"` + // The requestSchemaId field. + RequestSchemaID *string `json:"requestSchemaId,omitempty"` +} + +func (r *RequestSchemaServiceRemoveEntitlementBindingRequest) GetAppEntitlementRef() *AppEntitlementRef { + if r == nil { + return nil + } + return r.AppEntitlementRef +} + +func (r *RequestSchemaServiceRemoveEntitlementBindingRequest) GetRequestSchemaID() *string { + if r == nil { + return nil + } + return r.RequestSchemaID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceremoveentitlementbindingresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceremoveentitlementbindingresponse.go new file mode 100644 index 00000000..d64ef213 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceremoveentitlementbindingresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceRemoveEntitlementBindingResponse message. +type RequestSchemaServiceRemoveEntitlementBindingResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceupdaterequest.go new file mode 100644 index 00000000..d5e86b8b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceupdaterequest.go @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceUpdateRequest message. +type RequestSchemaServiceUpdateRequest struct { + // The RequestSchema message. + RequestSchema *RequestSchema `json:"requestSchema,omitempty"` + UpdateMask *string `json:"updateMask,omitempty"` +} + +func (r *RequestSchemaServiceUpdateRequest) GetRequestSchema() *RequestSchema { + if r == nil { + return nil + } + return r.RequestSchema +} + +func (r *RequestSchemaServiceUpdateRequest) GetUpdateMask() *string { + if r == nil { + return nil + } + return r.UpdateMask +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceupdateresponse.go new file mode 100644 index 00000000..ec43d7ac --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/requestschemaserviceupdateresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RequestSchemaServiceUpdateResponse message. +type RequestSchemaServiceUpdateResponse struct { + // The RequestSchema message. + RequestSchema *RequestSchema `json:"requestSchema,omitempty"` +} + +func (r *RequestSchemaServiceUpdateResponse) GetRequestSchema() *RequestSchema { + if r == nil { + return nil + } + return r.RequestSchema +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/resourceownerapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/resourceownerapproval.go index 53ae783a..c597bc65 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/resourceownerapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/resourceownerapproval.go @@ -8,27 +8,54 @@ type ResourceOwnerApproval struct { AllowSelfApproval *bool `json:"allowSelfApproval,omitempty"` // Configuration to allow a fallback if the resource owner cannot be identified. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and the resource owner cannot be identified. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if fallback is enabled and the resource owner cannot be identified. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` } -func (o *ResourceOwnerApproval) GetAllowSelfApproval() *bool { - if o == nil { +func (r *ResourceOwnerApproval) GetAllowSelfApproval() *bool { + if r == nil { return nil } - return o.AllowSelfApproval + return r.AllowSelfApproval } -func (o *ResourceOwnerApproval) GetFallback() *bool { - if o == nil { +func (r *ResourceOwnerApproval) GetFallback() *bool { + if r == nil { return nil } - return o.Fallback + return r.Fallback } -func (o *ResourceOwnerApproval) GetFallbackUserIds() []string { - if o == nil { +func (r *ResourceOwnerApproval) GetFallbackGroupIds() []AppEntitlementReference { + if r == nil { return nil } - return o.FallbackUserIds + return r.FallbackGroupIds +} + +func (r *ResourceOwnerApproval) GetFallbackUserIds() []string { + if r == nil { + return nil + } + return r.FallbackUserIds +} + +func (r *ResourceOwnerApproval) GetIsGroupFallbackEnabled() *bool { + if r == nil { + return nil + } + return r.IsGroupFallbackEnabled +} + +func (r *ResourceOwnerApproval) GetRequireDistinctApprovers() *bool { + if r == nil { + return nil + } + return r.RequireDistinctApprovers } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/resourcetypeselectionscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/resourcetypeselectionscope.go new file mode 100644 index 00000000..7a9b7640 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/resourcetypeselectionscope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ResourceTypeSelectionScope message. +type ResourceTypeSelectionScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalreplacepolicy.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalreplacepolicy.go index 637ea8c0..d949f854 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalreplacepolicy.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalreplacepolicy.go @@ -10,16 +10,16 @@ type ResponsePolicyApprovalReplacePolicy struct { PolicySteps []PolicyStep `json:"policySteps,omitempty"` } -func (o *ResponsePolicyApprovalReplacePolicy) GetComment() *string { - if o == nil { +func (r *ResponsePolicyApprovalReplacePolicy) GetComment() *string { + if r == nil { return nil } - return o.Comment + return r.Comment } -func (o *ResponsePolicyApprovalReplacePolicy) GetPolicySteps() []PolicyStep { - if o == nil { +func (r *ResponsePolicyApprovalReplacePolicy) GetPolicySteps() []PolicyStep { + if r == nil { return nil } - return o.PolicySteps + return r.PolicySteps } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstep.go index 9f38676f..162ae09e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstep.go @@ -23,37 +23,37 @@ type ResponsePolicyApprovalStep struct { Version *string `json:"version,omitempty"` } -func (o *ResponsePolicyApprovalStep) GetResponsePolicyApprovalReplacePolicy() *ResponsePolicyApprovalReplacePolicy { - if o == nil { +func (r *ResponsePolicyApprovalStep) GetResponsePolicyApprovalReplacePolicy() *ResponsePolicyApprovalReplacePolicy { + if r == nil { return nil } - return o.ResponsePolicyApprovalReplacePolicy + return r.ResponsePolicyApprovalReplacePolicy } -func (o *ResponsePolicyApprovalStep) GetResponsePolicyApprovalStepApprove() *ResponsePolicyApprovalStepApprove { - if o == nil { +func (r *ResponsePolicyApprovalStep) GetResponsePolicyApprovalStepApprove() *ResponsePolicyApprovalStepApprove { + if r == nil { return nil } - return o.ResponsePolicyApprovalStepApprove + return r.ResponsePolicyApprovalStepApprove } -func (o *ResponsePolicyApprovalStep) GetResponsePolicyApprovalStepDeny() *ResponsePolicyApprovalStepDeny { - if o == nil { +func (r *ResponsePolicyApprovalStep) GetResponsePolicyApprovalStepDeny() *ResponsePolicyApprovalStepDeny { + if r == nil { return nil } - return o.ResponsePolicyApprovalStepDeny + return r.ResponsePolicyApprovalStepDeny } -func (o *ResponsePolicyApprovalStep) GetResponsePolicyApprovalStepReassign() *ResponsePolicyApprovalStepReassign { - if o == nil { +func (r *ResponsePolicyApprovalStep) GetResponsePolicyApprovalStepReassign() *ResponsePolicyApprovalStepReassign { + if r == nil { return nil } - return o.ResponsePolicyApprovalStepReassign + return r.ResponsePolicyApprovalStepReassign } -func (o *ResponsePolicyApprovalStep) GetVersion() *string { - if o == nil { +func (r *ResponsePolicyApprovalStep) GetVersion() *string { + if r == nil { return nil } - return o.Version + return r.Version } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepapprove.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepapprove.go index cbc832dd..269d65b2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepapprove.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepapprove.go @@ -8,9 +8,9 @@ type ResponsePolicyApprovalStepApprove struct { Comment *string `json:"comment,omitempty"` } -func (o *ResponsePolicyApprovalStepApprove) GetComment() *string { - if o == nil { +func (r *ResponsePolicyApprovalStepApprove) GetComment() *string { + if r == nil { return nil } - return o.Comment + return r.Comment } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepdeny.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepdeny.go index d7e67f2f..988ad915 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepdeny.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepdeny.go @@ -8,9 +8,9 @@ type ResponsePolicyApprovalStepDeny struct { Comment *string `json:"comment,omitempty"` } -func (o *ResponsePolicyApprovalStepDeny) GetComment() *string { - if o == nil { +func (r *ResponsePolicyApprovalStepDeny) GetComment() *string { + if r == nil { return nil } - return o.Comment + return r.Comment } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepreassign.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepreassign.go index e97b6d16..9b188430 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepreassign.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicyapprovalstepreassign.go @@ -10,16 +10,16 @@ type ResponsePolicyApprovalStepReassign struct { NewStepUserIds []string `json:"newStepUserIds,omitempty"` } -func (o *ResponsePolicyApprovalStepReassign) GetComment() *string { - if o == nil { +func (r *ResponsePolicyApprovalStepReassign) GetComment() *string { + if r == nil { return nil } - return o.Comment + return r.Comment } -func (o *ResponsePolicyApprovalStepReassign) GetNewStepUserIds() []string { - if o == nil { +func (r *ResponsePolicyApprovalStepReassign) GetNewStepUserIds() []string { + if r == nil { return nil } - return o.NewStepUserIds + return r.NewStepUserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicypostaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicypostaction.go index 103b4cdd..12759f61 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicypostaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsepolicypostaction.go @@ -9,9 +9,9 @@ type ResponsePolicyPostAction struct { Version *string `json:"version,omitempty"` } -func (o *ResponsePolicyPostAction) GetVersion() *string { - if o == nil { +func (r *ResponsePolicyPostAction) GetVersion() *string { + if r == nil { return nil } - return o.Version + return r.Version } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionstep.go index 5cec8e7b..337edacf 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionstep.go @@ -17,23 +17,23 @@ type ResponseProvisionStep struct { Version *string `json:"version,omitempty"` } -func (o *ResponseProvisionStep) GetResponseProvisionStepComplete() *ResponseProvisionStepComplete { - if o == nil { +func (r *ResponseProvisionStep) GetResponseProvisionStepComplete() *ResponseProvisionStepComplete { + if r == nil { return nil } - return o.ResponseProvisionStepComplete + return r.ResponseProvisionStepComplete } -func (o *ResponseProvisionStep) GetResponseProvisionStepErrored() *ResponseProvisionStepErrored { - if o == nil { +func (r *ResponseProvisionStep) GetResponseProvisionStepErrored() *ResponseProvisionStepErrored { + if r == nil { return nil } - return o.ResponseProvisionStepErrored + return r.ResponseProvisionStepErrored } -func (o *ResponseProvisionStep) GetVersion() *string { - if o == nil { +func (r *ResponseProvisionStep) GetVersion() *string { + if r == nil { return nil } - return o.Version + return r.Version } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionstepcomplete.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionstepcomplete.go index b97dabb6..68913d03 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionstepcomplete.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionstepcomplete.go @@ -8,9 +8,9 @@ type ResponseProvisionStepComplete struct { Comment *string `json:"comment,omitempty"` } -func (o *ResponseProvisionStepComplete) GetComment() *string { - if o == nil { +func (r *ResponseProvisionStepComplete) GetComment() *string { + if r == nil { return nil } - return o.Comment + return r.Comment } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionsteperrored.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionsteperrored.go index abadcf84..bf29c2e4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionsteperrored.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseprovisionsteperrored.go @@ -8,9 +8,9 @@ type ResponseProvisionStepErrored struct { Comment *string `json:"comment,omitempty"` } -func (o *ResponseProvisionStepErrored) GetComment() *string { - if o == nil { +func (r *ResponseProvisionStepErrored) GetComment() *string { + if r == nil { return nil } - return o.Comment + return r.Comment } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsetest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsetest.go index e5f60597..2137d859 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsetest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responsetest.go @@ -9,9 +9,9 @@ type ResponseTest struct { Version *string `json:"version,omitempty"` } -func (o *ResponseTest) GetVersion() *string { - if o == nil { +func (r *ResponseTest) GetVersion() *string { + if r == nil { return nil } - return o.Version + return r.Version } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseworkflowstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseworkflowstep.go index d214d379..ec5896f3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseworkflowstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/responseworkflowstep.go @@ -10,16 +10,16 @@ type ResponseWorkflowStep struct { Version *string `json:"version,omitempty"` } -func (o *ResponseWorkflowStep) GetContext() map[string]any { - if o == nil { +func (r *ResponseWorkflowStep) GetContext() map[string]any { + if r == nil { return nil } - return o.Context + return r.Context } -func (o *ResponseWorkflowStep) GetVersion() *string { - if o == nil { +func (r *ResponseWorkflowStep) GetVersion() *string { + if r == nil { return nil } - return o.Version + return r.Version } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/restartaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/restartaction.go index 7d3e1170..029beade 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/restartaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/restartaction.go @@ -21,29 +21,29 @@ func (r RestartAction) MarshalJSON() ([]byte, error) { } func (r *RestartAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RestartAction) GetOldPolicyStepID() *string { - if o == nil { +func (r *RestartAction) GetOldPolicyStepID() *string { + if r == nil { return nil } - return o.OldPolicyStepID + return r.OldPolicyStepID } -func (o *RestartAction) GetRestartedAt() *time.Time { - if o == nil { +func (r *RestartAction) GetRestartedAt() *time.Time { + if r == nil { return nil } - return o.RestartedAt + return r.RestartedAt } -func (o *RestartAction) GetUserID() *string { - if o == nil { +func (r *RestartAction) GetUserID() *string { + if r == nil { return nil } - return o.UserID + return r.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reviewsignatureconfig.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reviewsignatureconfig.go new file mode 100644 index 00000000..714ebfc7 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/reviewsignatureconfig.go @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// ReviewSignatureConfig - Signature configuration for access review submissions +type ReviewSignatureConfig struct { + // The meaningOfSignature field. + MeaningOfSignature *string `json:"meaningOfSignature,omitempty"` + // The requireSignature field. + RequireSignature *bool `json:"requireSignature,omitempty"` + // The stepUpProviderId field. + StepUpProviderID *string `json:"stepUpProviderId,omitempty"` + // The tspUrl field. + TspURL *string `json:"tspUrl,omitempty"` +} + +func (r *ReviewSignatureConfig) GetMeaningOfSignature() *string { + if r == nil { + return nil + } + return r.MeaningOfSignature +} + +func (r *ReviewSignatureConfig) GetRequireSignature() *bool { + if r == nil { + return nil + } + return r.RequireSignature +} + +func (r *ReviewSignatureConfig) GetStepUpProviderID() *string { + if r == nil { + return nil + } + return r.StepUpProviderID +} + +func (r *ReviewSignatureConfig) GetTspURL() *string { + if r == nil { + return nil + } + return r.TspURL +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/role.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/role.go index 1224210f..03c156de 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/role.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/role.go @@ -33,78 +33,78 @@ func (r Role) MarshalJSON() ([]byte, error) { } func (r *Role) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *Role) GetCreatedAt() *time.Time { - if o == nil { +func (r *Role) GetCreatedAt() *time.Time { + if r == nil { return nil } - return o.CreatedAt + return r.CreatedAt } -func (o *Role) GetDeletedAt() *time.Time { - if o == nil { +func (r *Role) GetDeletedAt() *time.Time { + if r == nil { return nil } - return o.DeletedAt + return r.DeletedAt } -func (o *Role) GetDisplayName() *string { - if o == nil { +func (r *Role) GetDisplayName() *string { + if r == nil { return nil } - return o.DisplayName + return r.DisplayName } -func (o *Role) GetID() *string { - if o == nil { +func (r *Role) GetID() *string { + if r == nil { return nil } - return o.ID + return r.ID } -func (o *Role) GetName() *string { - if o == nil { +func (r *Role) GetName() *string { + if r == nil { return nil } - return o.Name + return r.Name } -func (o *Role) GetPermissions() []string { - if o == nil { +func (r *Role) GetPermissions() []string { + if r == nil { return nil } - return o.Permissions + return r.Permissions } -func (o *Role) GetServiceRoles() []string { - if o == nil { +func (r *Role) GetServiceRoles() []string { + if r == nil { return nil } - return o.ServiceRoles + return r.ServiceRoles } -func (o *Role) GetSystemAPIOnly() *bool { - if o == nil { +func (r *Role) GetSystemAPIOnly() *bool { + if r == nil { return nil } - return o.SystemAPIOnly + return r.SystemAPIOnly } -func (o *Role) GetSystemBuiltin() *bool { - if o == nil { +func (r *Role) GetSystemBuiltin() *bool { + if r == nil { return nil } - return o.SystemBuiltin + return r.SystemBuiltin } -func (o *Role) GetUpdatedAt() *time.Time { - if o == nil { +func (r *Role) GetUpdatedAt() *time.Time { + if r == nil { return nil } - return o.UpdatedAt + return r.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/roleinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/roleinput.go index dce11fa6..35f6310c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/roleinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/roleinput.go @@ -12,23 +12,23 @@ type RoleInput struct { ServiceRoles []string `json:"serviceRoles,omitempty"` } -func (o *RoleInput) GetDisplayName() *string { - if o == nil { +func (r *RoleInput) GetDisplayName() *string { + if r == nil { return nil } - return o.DisplayName + return r.DisplayName } -func (o *RoleInput) GetPermissions() []string { - if o == nil { +func (r *RoleInput) GetPermissions() []string { + if r == nil { return nil } - return o.Permissions + return r.Permissions } -func (o *RoleInput) GetServiceRoles() []string { - if o == nil { +func (r *RoleInput) GetServiceRoles() []string { + if r == nil { return nil } - return o.ServiceRoles + return r.ServiceRoles } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rotatablesecretfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rotatablesecretfield.go new file mode 100644 index 00000000..bac12006 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rotatablesecretfield.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The RotatableSecretField message. +type RotatableSecretField struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rule.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rule.go index 8c371e43..26644efa 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rule.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rule.go @@ -10,16 +10,16 @@ type Rule struct { PolicyKey *string `json:"policyKey,omitempty"` } -func (o *Rule) GetCondition() *string { - if o == nil { +func (r *Rule) GetCondition() *string { + if r == nil { return nil } - return o.Condition + return r.Condition } -func (o *Rule) GetPolicyKey() *string { - if o == nil { +func (r *Rule) GetPolicyKey() *string { + if r == nil { return nil } - return o.PolicyKey + return r.PolicyKey } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/runautomation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/runautomation.go index be394dc2..24c1285b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/runautomation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/runautomation.go @@ -18,23 +18,23 @@ type RunAutomation struct { AutomationTemplateIDCel *string `json:"automationTemplateIdCel,omitempty"` } -func (o *RunAutomation) GetAutomationContext() *AutomationContext { - if o == nil { +func (r *RunAutomation) GetAutomationContext() *AutomationContext { + if r == nil { return nil } - return o.AutomationContext + return r.AutomationContext } -func (o *RunAutomation) GetAutomationTemplateRef() *AutomationTemplateRef { - if o == nil { +func (r *RunAutomation) GetAutomationTemplateRef() *AutomationTemplateRef { + if r == nil { return nil } - return o.AutomationTemplateRef + return r.AutomationTemplateRef } -func (o *RunAutomation) GetAutomationTemplateIDCel() *string { - if o == nil { +func (r *RunAutomation) GetAutomationTemplateIDCel() *string { + if r == nil { return nil } - return o.AutomationTemplateIDCel + return r.AutomationTemplateIDCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rundelayed.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rundelayed.go index 90ed8f16..a9e29736 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rundelayed.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/rundelayed.go @@ -8,9 +8,9 @@ type RunDelayed struct { ColdStartDelayDays int64 `json:"coldStartDelayDays"` } -func (o *RunDelayed) GetColdStartDelayDays() int64 { - if o == nil { +func (r *RunDelayed) GetColdStartDelayDays() int64 { + if r == nil { return 0 } - return o.ColdStartDelayDays + return r.ColdStartDelayDays } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/savetovault.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/savetovault.go index 72e0332b..cd993ecb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/savetovault.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/savetovault.go @@ -8,9 +8,9 @@ type SaveToVault struct { VaultIds []string `json:"vaultIds,omitempty"` } -func (o *SaveToVault) GetVaultIds() []string { - if o == nil { +func (s *SaveToVault) GetVaultIds() []string { + if s == nil { return nil } - return o.VaultIds + return s.VaultIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/scheduletrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/scheduletrigger.go index a59271aa..1c523420 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/scheduletrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/scheduletrigger.go @@ -11,11 +11,17 @@ import ( type ScheduleTrigger struct { // The advanced field. Advanced *bool `json:"advanced,omitempty"` + // The condition field. + Condition *string `json:"condition,omitempty"` // The cronSpec field. CronSpec *string `json:"cronSpec,omitempty"` // The skipIfTrueCel field. + // + // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. SkipIfTrueCel *string `json:"skipIfTrueCel,omitempty"` Start *time.Time `json:"start,omitempty"` + // The timezone field. + Timezone *string `json:"timezone,omitempty"` } func (s ScheduleTrigger) MarshalJSON() ([]byte, error) { @@ -23,36 +29,50 @@ func (s ScheduleTrigger) MarshalJSON() ([]byte, error) { } func (s *ScheduleTrigger) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *ScheduleTrigger) GetAdvanced() *bool { - if o == nil { +func (s *ScheduleTrigger) GetAdvanced() *bool { + if s == nil { return nil } - return o.Advanced + return s.Advanced } -func (o *ScheduleTrigger) GetCronSpec() *string { - if o == nil { +func (s *ScheduleTrigger) GetCondition() *string { + if s == nil { return nil } - return o.CronSpec + return s.Condition } -func (o *ScheduleTrigger) GetSkipIfTrueCel() *string { - if o == nil { +func (s *ScheduleTrigger) GetCronSpec() *string { + if s == nil { return nil } - return o.SkipIfTrueCel + return s.CronSpec } -func (o *ScheduleTrigger) GetStart() *time.Time { - if o == nil { +func (s *ScheduleTrigger) GetSkipIfTrueCel() *string { + if s == nil { return nil } - return o.Start + return s.SkipIfTrueCel +} + +func (s *ScheduleTrigger) GetStart() *time.Time { + if s == nil { + return nil + } + return s.Start +} + +func (s *ScheduleTrigger) GetTimezone() *string { + if s == nil { + return nil + } + return s.Timezone } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/scheduletriggerappuser.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/scheduletriggerappuser.go new file mode 100644 index 00000000..0dae15f8 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/scheduletriggerappuser.go @@ -0,0 +1,67 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The ScheduleTriggerAppUser message. +type ScheduleTriggerAppUser struct { + // The appId field. + AppID *string `json:"appId,omitempty"` + // The condition field. + Condition *string `json:"condition,omitempty"` + // The cronSpec field. + CronSpec *string `json:"cronSpec,omitempty"` + Start *time.Time `json:"start,omitempty"` + // The timezone field. + Timezone *string `json:"timezone,omitempty"` +} + +func (s ScheduleTriggerAppUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *ScheduleTriggerAppUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { + return err + } + return nil +} + +func (s *ScheduleTriggerAppUser) GetAppID() *string { + if s == nil { + return nil + } + return s.AppID +} + +func (s *ScheduleTriggerAppUser) GetCondition() *string { + if s == nil { + return nil + } + return s.Condition +} + +func (s *ScheduleTriggerAppUser) GetCronSpec() *string { + if s == nil { + return nil + } + return s.CronSpec +} + +func (s *ScheduleTriggerAppUser) GetStart() *time.Time { + if s == nil { + return nil + } + return s.Start +} + +func (s *ScheduleTriggerAppUser) GetTimezone() *string { + if s == nil { + return nil + } + return s.Timezone +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappentitlementswithexpiredresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappentitlementswithexpiredresponse.go index cd5272d1..5f4c6f95 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappentitlementswithexpiredresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappentitlementswithexpiredresponse.go @@ -10,16 +10,16 @@ type SearchAppEntitlementsWithExpiredResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchAppEntitlementsWithExpiredResponse) GetList() []AppEntitlementWithExpired { - if o == nil { +func (s *SearchAppEntitlementsWithExpiredResponse) GetList() []AppEntitlementWithExpired { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchAppEntitlementsWithExpiredResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchAppEntitlementsWithExpiredResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcesrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcesrequest.go index ebbfdc09..91a2cabe 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcesrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcesrequest.go @@ -14,6 +14,8 @@ type SearchAppResourcesRequest struct { ExcludeResourceIds []string `json:"excludeResourceIds,omitempty"` // The excludeResourceTypeTraitIds field. ExcludeResourceTypeTraitIds []string `json:"excludeResourceTypeTraitIds,omitempty"` + // The ownerUserIds field. + OwnerUserIds []string `json:"ownerUserIds,omitempty"` // The pageSize field. PageSize *int `json:"pageSize,omitempty"` // The pageToken field. @@ -30,86 +32,93 @@ type SearchAppResourcesRequest struct { ResourceTypeTraitIds []string `json:"resourceTypeTraitIds,omitempty"` } -func (o *SearchAppResourcesRequest) GetAppID() *string { - if o == nil { +func (s *SearchAppResourcesRequest) GetAppID() *string { + if s == nil { return nil } - return o.AppID + return s.AppID } -func (o *SearchAppResourcesRequest) GetAppUserIds() []string { - if o == nil { +func (s *SearchAppResourcesRequest) GetAppUserIds() []string { + if s == nil { return nil } - return o.AppUserIds + return s.AppUserIds } -func (o *SearchAppResourcesRequest) GetExcludeDeletedResourceBindings() *bool { - if o == nil { +func (s *SearchAppResourcesRequest) GetExcludeDeletedResourceBindings() *bool { + if s == nil { return nil } - return o.ExcludeDeletedResourceBindings + return s.ExcludeDeletedResourceBindings } -func (o *SearchAppResourcesRequest) GetExcludeResourceIds() []string { - if o == nil { +func (s *SearchAppResourcesRequest) GetExcludeResourceIds() []string { + if s == nil { return nil } - return o.ExcludeResourceIds + return s.ExcludeResourceIds } -func (o *SearchAppResourcesRequest) GetExcludeResourceTypeTraitIds() []string { - if o == nil { +func (s *SearchAppResourcesRequest) GetExcludeResourceTypeTraitIds() []string { + if s == nil { return nil } - return o.ExcludeResourceTypeTraitIds + return s.ExcludeResourceTypeTraitIds } -func (o *SearchAppResourcesRequest) GetPageSize() *int { - if o == nil { +func (s *SearchAppResourcesRequest) GetOwnerUserIds() []string { + if s == nil { return nil } - return o.PageSize + return s.OwnerUserIds } -func (o *SearchAppResourcesRequest) GetPageToken() *string { - if o == nil { +func (s *SearchAppResourcesRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageToken + return s.PageSize } -func (o *SearchAppResourcesRequest) GetQuery() *string { - if o == nil { +func (s *SearchAppResourcesRequest) GetPageToken() *string { + if s == nil { return nil } - return o.Query + return s.PageToken } -func (o *SearchAppResourcesRequest) GetRefs() []AppResourceRef { - if o == nil { +func (s *SearchAppResourcesRequest) GetQuery() *string { + if s == nil { return nil } - return o.Refs + return s.Query } -func (o *SearchAppResourcesRequest) GetResourceIds() []string { - if o == nil { +func (s *SearchAppResourcesRequest) GetRefs() []AppResourceRef { + if s == nil { return nil } - return o.ResourceIds + return s.Refs } -func (o *SearchAppResourcesRequest) GetResourceTypeIds() []string { - if o == nil { +func (s *SearchAppResourcesRequest) GetResourceIds() []string { + if s == nil { return nil } - return o.ResourceTypeIds + return s.ResourceIds } -func (o *SearchAppResourcesRequest) GetResourceTypeTraitIds() []string { - if o == nil { +func (s *SearchAppResourcesRequest) GetResourceTypeIds() []string { + if s == nil { return nil } - return o.ResourceTypeTraitIds + return s.ResourceTypeIds +} + +func (s *SearchAppResourcesRequest) GetResourceTypeTraitIds() []string { + if s == nil { + return nil + } + return s.ResourceTypeTraitIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcesresponse.go index bfb0af7e..69936b53 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcesresponse.go @@ -18,24 +18,24 @@ func (s SearchAppResourcesResponseExpanded) MarshalJSON() ([]byte, error) { } func (s *SearchAppResourcesResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SearchAppResourcesResponseExpanded) GetAtType() *string { - if o == nil { +func (s *SearchAppResourcesResponseExpanded) GetAtType() *string { + if s == nil { return nil } - return o.AtType + return s.AtType } -func (o *SearchAppResourcesResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (s *SearchAppResourcesResponseExpanded) GetAdditionalProperties() map[string]any { + if s == nil { return nil } - return o.AdditionalProperties + return s.AdditionalProperties } // The SearchAppResourcesResponse message. @@ -48,23 +48,23 @@ type SearchAppResourcesResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchAppResourcesResponse) GetExpanded() []SearchAppResourcesResponseExpanded { - if o == nil { +func (s *SearchAppResourcesResponse) GetExpanded() []SearchAppResourcesResponseExpanded { + if s == nil { return nil } - return o.Expanded + return s.Expanded } -func (o *SearchAppResourcesResponse) GetList() []AppResourceView { - if o == nil { +func (s *SearchAppResourcesResponse) GetList() []AppResourceView { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchAppResourcesResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchAppResourcesResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcetypesrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcetypesrequest.go index ec415a9e..1b42f727 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcetypesrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcetypesrequest.go @@ -26,72 +26,72 @@ type SearchAppResourceTypesRequest struct { ResourceTypeTraitIds []string `json:"resourceTypeTraitIds,omitempty"` } -func (o *SearchAppResourceTypesRequest) GetAppIds() []string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetAppIds() []string { + if s == nil { return nil } - return o.AppIds + return s.AppIds } -func (o *SearchAppResourceTypesRequest) GetAppUserIds() []string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetAppUserIds() []string { + if s == nil { return nil } - return o.AppUserIds + return s.AppUserIds } -func (o *SearchAppResourceTypesRequest) GetDisplayName() *string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetDisplayName() *string { + if s == nil { return nil } - return o.DisplayName + return s.DisplayName } -func (o *SearchAppResourceTypesRequest) GetExcludeResourceTypeIds() []string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetExcludeResourceTypeIds() []string { + if s == nil { return nil } - return o.ExcludeResourceTypeIds + return s.ExcludeResourceTypeIds } -func (o *SearchAppResourceTypesRequest) GetExcludeResourceTypeTraitIds() []string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetExcludeResourceTypeTraitIds() []string { + if s == nil { return nil } - return o.ExcludeResourceTypeTraitIds + return s.ExcludeResourceTypeTraitIds } -func (o *SearchAppResourceTypesRequest) GetPageSize() *int { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchAppResourceTypesRequest) GetPageToken() *string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchAppResourceTypesRequest) GetQuery() *string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetQuery() *string { + if s == nil { return nil } - return o.Query + return s.Query } -func (o *SearchAppResourceTypesRequest) GetResourceTypeIds() []string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetResourceTypeIds() []string { + if s == nil { return nil } - return o.ResourceTypeIds + return s.ResourceTypeIds } -func (o *SearchAppResourceTypesRequest) GetResourceTypeTraitIds() []string { - if o == nil { +func (s *SearchAppResourceTypesRequest) GetResourceTypeTraitIds() []string { + if s == nil { return nil } - return o.ResourceTypeTraitIds + return s.ResourceTypeTraitIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcetypesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcetypesresponse.go index 9c95363b..4c6cbce6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcetypesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappresourcetypesresponse.go @@ -12,16 +12,16 @@ type SearchAppResourceTypesResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchAppResourceTypesResponse) GetList() []AppResourceType { - if o == nil { +func (s *SearchAppResourceTypesResponse) GetList() []AppResourceType { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchAppResourceTypesResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchAppResourceTypesResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappsrequest.go index 442baa9f..886cde15 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappsrequest.go @@ -22,58 +22,58 @@ type SearchAppsRequest struct { Query *string `json:"query,omitempty"` } -func (o *SearchAppsRequest) GetAppIds() []string { - if o == nil { +func (s *SearchAppsRequest) GetAppIds() []string { + if s == nil { return nil } - return o.AppIds + return s.AppIds } -func (o *SearchAppsRequest) GetDisplayName() *string { - if o == nil { +func (s *SearchAppsRequest) GetDisplayName() *string { + if s == nil { return nil } - return o.DisplayName + return s.DisplayName } -func (o *SearchAppsRequest) GetExcludeAppIds() []string { - if o == nil { +func (s *SearchAppsRequest) GetExcludeAppIds() []string { + if s == nil { return nil } - return o.ExcludeAppIds + return s.ExcludeAppIds } -func (o *SearchAppsRequest) GetOnlyDirectories() *bool { - if o == nil { +func (s *SearchAppsRequest) GetOnlyDirectories() *bool { + if s == nil { return nil } - return o.OnlyDirectories + return s.OnlyDirectories } -func (o *SearchAppsRequest) GetPageSize() *int { - if o == nil { +func (s *SearchAppsRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchAppsRequest) GetPageToken() *string { - if o == nil { +func (s *SearchAppsRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchAppsRequest) GetPolicyRefs() []PolicyRef { - if o == nil { +func (s *SearchAppsRequest) GetPolicyRefs() []PolicyRef { + if s == nil { return nil } - return o.PolicyRefs + return s.PolicyRefs } -func (o *SearchAppsRequest) GetQuery() *string { - if o == nil { +func (s *SearchAppsRequest) GetQuery() *string { + if s == nil { return nil } - return o.Query + return s.Query } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappsresponse.go index 0ab960c3..e56aeb5d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchappsresponse.go @@ -12,16 +12,16 @@ type SearchAppsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchAppsResponse) GetList() []App { - if o == nil { +func (s *SearchAppsResponse) GetList() []App { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchAppsResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchAppsResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchattributevaluesrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchattributevaluesrequest.go index 519f5774..641362fe 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchattributevaluesrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchattributevaluesrequest.go @@ -20,51 +20,51 @@ type SearchAttributeValuesRequest struct { Value *string `json:"value,omitempty"` } -func (o *SearchAttributeValuesRequest) GetAttributeTypeIds() []string { - if o == nil { +func (s *SearchAttributeValuesRequest) GetAttributeTypeIds() []string { + if s == nil { return nil } - return o.AttributeTypeIds + return s.AttributeTypeIds } -func (o *SearchAttributeValuesRequest) GetExcludeIds() []string { - if o == nil { +func (s *SearchAttributeValuesRequest) GetExcludeIds() []string { + if s == nil { return nil } - return o.ExcludeIds + return s.ExcludeIds } -func (o *SearchAttributeValuesRequest) GetIds() []string { - if o == nil { +func (s *SearchAttributeValuesRequest) GetIds() []string { + if s == nil { return nil } - return o.Ids + return s.Ids } -func (o *SearchAttributeValuesRequest) GetPageSize() *int { - if o == nil { +func (s *SearchAttributeValuesRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchAttributeValuesRequest) GetPageToken() *string { - if o == nil { +func (s *SearchAttributeValuesRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchAttributeValuesRequest) GetQuery() *string { - if o == nil { +func (s *SearchAttributeValuesRequest) GetQuery() *string { + if s == nil { return nil } - return o.Query + return s.Query } -func (o *SearchAttributeValuesRequest) GetValue() *string { - if o == nil { +func (s *SearchAttributeValuesRequest) GetValue() *string { + if s == nil { return nil } - return o.Value + return s.Value } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchattributevaluesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchattributevaluesresponse.go index d0deb667..92db7709 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchattributevaluesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchattributevaluesresponse.go @@ -12,16 +12,16 @@ type SearchAttributeValuesResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchAttributeValuesResponse) GetList() []AttributeValue { - if o == nil { +func (s *SearchAttributeValuesResponse) GetList() []AttributeValue { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchAttributeValuesResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchAttributeValuesResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationexecutionsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationexecutionsrequest.go index 853e8afd..92f44897 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationexecutionsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationexecutionsrequest.go @@ -21,6 +21,17 @@ func (e ExecutionStepStates) ToPointer() *ExecutionStepStates { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ExecutionStepStates) IsExact() bool { + if e != nil { + switch *e { + case "AUTOMATION_EXECUTION_STATE_UNSPECIFIED", "AUTOMATION_EXECUTION_STATE_PENDING", "AUTOMATION_EXECUTION_STATE_CREATING", "AUTOMATION_EXECUTION_STATE_GET_STEP", "AUTOMATION_EXECUTION_STATE_PROCESS_STEP", "AUTOMATION_EXECUTION_STATE_COMPLETE_STEP", "AUTOMATION_EXECUTION_STATE_DONE", "AUTOMATION_EXECUTION_STATE_ERROR", "AUTOMATION_EXECUTION_STATE_TERMINATE", "AUTOMATION_EXECUTION_STATE_WAITING": + return true + } + } + return false +} + // The SearchAutomationExecutionsRequest message. type SearchAutomationExecutionsRequest struct { // The AutomationExecutionExpandMask message. @@ -41,58 +52,58 @@ type SearchAutomationExecutionsRequest struct { Refs []AutomationExecutionRef `json:"refs,omitempty"` } -func (o *SearchAutomationExecutionsRequest) GetAutomationExecutionExpandMask() *AutomationExecutionExpandMask { - if o == nil { +func (s *SearchAutomationExecutionsRequest) GetAutomationExecutionExpandMask() *AutomationExecutionExpandMask { + if s == nil { return nil } - return o.AutomationExecutionExpandMask + return s.AutomationExecutionExpandMask } -func (o *SearchAutomationExecutionsRequest) GetAutomationTemplateID() *string { - if o == nil { +func (s *SearchAutomationExecutionsRequest) GetAutomationTemplateID() *string { + if s == nil { return nil } - return o.AutomationTemplateID + return s.AutomationTemplateID } -func (o *SearchAutomationExecutionsRequest) GetExecutionID() *int64 { - if o == nil { +func (s *SearchAutomationExecutionsRequest) GetExecutionID() *int64 { + if s == nil { return nil } - return o.ExecutionID + return s.ExecutionID } -func (o *SearchAutomationExecutionsRequest) GetExecutionStepStates() []ExecutionStepStates { - if o == nil { +func (s *SearchAutomationExecutionsRequest) GetExecutionStepStates() []ExecutionStepStates { + if s == nil { return nil } - return o.ExecutionStepStates + return s.ExecutionStepStates } -func (o *SearchAutomationExecutionsRequest) GetPageSize() *int { - if o == nil { +func (s *SearchAutomationExecutionsRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchAutomationExecutionsRequest) GetPageToken() *string { - if o == nil { +func (s *SearchAutomationExecutionsRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchAutomationExecutionsRequest) GetQuery() *string { - if o == nil { +func (s *SearchAutomationExecutionsRequest) GetQuery() *string { + if s == nil { return nil } - return o.Query + return s.Query } -func (o *SearchAutomationExecutionsRequest) GetRefs() []AutomationExecutionRef { - if o == nil { +func (s *SearchAutomationExecutionsRequest) GetRefs() []AutomationExecutionRef { + if s == nil { return nil } - return o.Refs + return s.Refs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationexecutionsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationexecutionsresponse.go index 5b41cbce..7edd037e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationexecutionsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationexecutionsresponse.go @@ -18,24 +18,24 @@ func (s SearchAutomationExecutionsResponseExpanded) MarshalJSON() ([]byte, error } func (s *SearchAutomationExecutionsResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SearchAutomationExecutionsResponseExpanded) GetAtType() *string { - if o == nil { +func (s *SearchAutomationExecutionsResponseExpanded) GetAtType() *string { + if s == nil { return nil } - return o.AtType + return s.AtType } -func (o *SearchAutomationExecutionsResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (s *SearchAutomationExecutionsResponseExpanded) GetAdditionalProperties() map[string]any { + if s == nil { return nil } - return o.AdditionalProperties + return s.AdditionalProperties } // The SearchAutomationExecutionsResponse message. @@ -48,23 +48,23 @@ type SearchAutomationExecutionsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchAutomationExecutionsResponse) GetExpanded() []SearchAutomationExecutionsResponseExpanded { - if o == nil { +func (s *SearchAutomationExecutionsResponse) GetExpanded() []SearchAutomationExecutionsResponseExpanded { + if s == nil { return nil } - return o.Expanded + return s.Expanded } -func (o *SearchAutomationExecutionsResponse) GetList() []AutomationExecutionView { - if o == nil { +func (s *SearchAutomationExecutionsResponse) GetList() []AutomationExecutionView { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchAutomationExecutionsResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchAutomationExecutionsResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationsrequest.go index 94c9c780..5236675f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationsrequest.go @@ -16,12 +16,25 @@ const ( TriggerTypesTriggerTypeWebhook TriggerTypes = "TRIGGER_TYPE_WEBHOOK" TriggerTypesTriggerTypeSchedule TriggerTypes = "TRIGGER_TYPE_SCHEDULE" TriggerTypesTriggerTypeForm TriggerTypes = "TRIGGER_TYPE_FORM" + TriggerTypesTriggerTypeScheduleAppUser TriggerTypes = "TRIGGER_TYPE_SCHEDULE_APP_USER" + TriggerTypesTriggerTypeAccessConflict TriggerTypes = "TRIGGER_TYPE_ACCESS_CONFLICT" ) func (e TriggerTypes) ToPointer() *TriggerTypes { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TriggerTypes) IsExact() bool { + if e != nil { + switch *e { + case "TRIGGER_TYPE_UNSPECIFIED", "TRIGGER_TYPE_USER_PROFILE_CHANGE", "TRIGGER_TYPE_APP_USER_CREATE", "TRIGGER_TYPE_APP_USER_UPDATE", "TRIGGER_TYPE_UNUSED_ACCESS", "TRIGGER_TYPE_USER_CREATED", "TRIGGER_TYPE_GRANT_FOUND", "TRIGGER_TYPE_GRANT_DELETED", "TRIGGER_TYPE_WEBHOOK", "TRIGGER_TYPE_SCHEDULE", "TRIGGER_TYPE_FORM", "TRIGGER_TYPE_SCHEDULE_APP_USER", "TRIGGER_TYPE_ACCESS_CONFLICT": + return true + } + } + return false +} + // The SearchAutomationsRequest message. type SearchAutomationsRequest struct { // The appId field. @@ -38,44 +51,44 @@ type SearchAutomationsRequest struct { TriggerTypes []TriggerTypes `json:"triggerTypes,omitempty"` } -func (o *SearchAutomationsRequest) GetAppID() *string { - if o == nil { +func (s *SearchAutomationsRequest) GetAppID() *string { + if s == nil { return nil } - return o.AppID + return s.AppID } -func (o *SearchAutomationsRequest) GetPageSize() *int { - if o == nil { +func (s *SearchAutomationsRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchAutomationsRequest) GetPageToken() *string { - if o == nil { +func (s *SearchAutomationsRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchAutomationsRequest) GetQuery() *string { - if o == nil { +func (s *SearchAutomationsRequest) GetQuery() *string { + if s == nil { return nil } - return o.Query + return s.Query } -func (o *SearchAutomationsRequest) GetRefs() []*AutomationTemplateRef { - if o == nil { +func (s *SearchAutomationsRequest) GetRefs() []*AutomationTemplateRef { + if s == nil { return nil } - return o.Refs + return s.Refs } -func (o *SearchAutomationsRequest) GetTriggerTypes() []TriggerTypes { - if o == nil { +func (s *SearchAutomationsRequest) GetTriggerTypes() []TriggerTypes { + if s == nil { return nil } - return o.TriggerTypes + return s.TriggerTypes } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationsresponse.go index fcb9b503..411c0ec4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationsresponse.go @@ -10,16 +10,16 @@ type SearchAutomationsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchAutomationsResponse) GetList() []Automation { - if o == nil { +func (s *SearchAutomationsResponse) GetList() []Automation { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchAutomationsResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchAutomationsResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationtemplateversionsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationtemplateversionsrequest.go index 6c4a13ea..ec07e6fc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationtemplateversionsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationtemplateversionsrequest.go @@ -12,23 +12,23 @@ type SearchAutomationTemplateVersionsRequest struct { PageToken *string `json:"pageToken,omitempty"` } -func (o *SearchAutomationTemplateVersionsRequest) GetAutomationTemplateID() *string { - if o == nil { +func (s *SearchAutomationTemplateVersionsRequest) GetAutomationTemplateID() *string { + if s == nil { return nil } - return o.AutomationTemplateID + return s.AutomationTemplateID } -func (o *SearchAutomationTemplateVersionsRequest) GetPageSize() *int { - if o == nil { +func (s *SearchAutomationTemplateVersionsRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchAutomationTemplateVersionsRequest) GetPageToken() *string { - if o == nil { +func (s *SearchAutomationTemplateVersionsRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationtemplateversionsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationtemplateversionsresponse.go index 81c559cd..275583bd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationtemplateversionsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchautomationtemplateversionsresponse.go @@ -10,16 +10,16 @@ type SearchAutomationTemplateVersionsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchAutomationTemplateVersionsResponse) GetList() []AutomationTemplateVersion { - if o == nil { +func (s *SearchAutomationTemplateVersionsResponse) GetList() []AutomationTemplateVersion { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchAutomationTemplateVersionsResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchAutomationTemplateVersionsResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchgrantfeedrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchgrantfeedrequest.go index 781f0231..b6f45548 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchgrantfeedrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchgrantfeedrequest.go @@ -32,71 +32,71 @@ func (s SearchGrantFeedRequest) MarshalJSON() ([]byte, error) { } func (s *SearchGrantFeedRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SearchGrantFeedRequest) GetAppEntitlementUserBindingExpandHistoryMask() *AppEntitlementUserBindingExpandHistoryMask { - if o == nil { +func (s *SearchGrantFeedRequest) GetAppEntitlementUserBindingExpandHistoryMask() *AppEntitlementUserBindingExpandHistoryMask { + if s == nil { return nil } - return o.AppEntitlementUserBindingExpandHistoryMask + return s.AppEntitlementUserBindingExpandHistoryMask } -func (o *SearchGrantFeedRequest) GetAfter() *time.Time { - if o == nil { +func (s *SearchGrantFeedRequest) GetAfter() *time.Time { + if s == nil { return nil } - return o.After + return s.After } -func (o *SearchGrantFeedRequest) GetAppEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (s *SearchGrantFeedRequest) GetAppEntitlementRefs() []AppEntitlementRef { + if s == nil { return nil } - return o.AppEntitlementRefs + return s.AppEntitlementRefs } -func (o *SearchGrantFeedRequest) GetAppRefs() []AppRef { - if o == nil { +func (s *SearchGrantFeedRequest) GetAppRefs() []AppRef { + if s == nil { return nil } - return o.AppRefs + return s.AppRefs } -func (o *SearchGrantFeedRequest) GetAppUserRefs() []AppUserRef { - if o == nil { +func (s *SearchGrantFeedRequest) GetAppUserRefs() []AppUserRef { + if s == nil { return nil } - return o.AppUserRefs + return s.AppUserRefs } -func (o *SearchGrantFeedRequest) GetBefore() *time.Time { - if o == nil { +func (s *SearchGrantFeedRequest) GetBefore() *time.Time { + if s == nil { return nil } - return o.Before + return s.Before } -func (o *SearchGrantFeedRequest) GetPageSize() *int { - if o == nil { +func (s *SearchGrantFeedRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchGrantFeedRequest) GetPageToken() *string { - if o == nil { +func (s *SearchGrantFeedRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchGrantFeedRequest) GetUserRefs() []UserRef { - if o == nil { +func (s *SearchGrantFeedRequest) GetUserRefs() []UserRef { + if s == nil { return nil } - return o.UserRefs + return s.UserRefs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchgrantfeedresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchgrantfeedresponse.go index b47dda8c..ef7798f2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchgrantfeedresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchgrantfeedresponse.go @@ -18,24 +18,24 @@ func (s SearchGrantFeedResponseExpanded) MarshalJSON() ([]byte, error) { } func (s *SearchGrantFeedResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SearchGrantFeedResponseExpanded) GetAtType() *string { - if o == nil { +func (s *SearchGrantFeedResponseExpanded) GetAtType() *string { + if s == nil { return nil } - return o.AtType + return s.AtType } -func (o *SearchGrantFeedResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (s *SearchGrantFeedResponseExpanded) GetAdditionalProperties() map[string]any { + if s == nil { return nil } - return o.AdditionalProperties + return s.AdditionalProperties } // The SearchGrantFeedResponse message contains a list of grant event results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type SearchGrantFeedResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchGrantFeedResponse) GetExpanded() []SearchGrantFeedResponseExpanded { - if o == nil { +func (s *SearchGrantFeedResponse) GetExpanded() []SearchGrantFeedResponseExpanded { + if s == nil { return nil } - return o.Expanded + return s.Expanded } -func (o *SearchGrantFeedResponse) GetList() []AppEntitlementUserBindingFeedView { - if o == nil { +func (s *SearchGrantFeedResponse) GetList() []AppEntitlementUserBindingFeedView { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchGrantFeedResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchGrantFeedResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpastgrantsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpastgrantsrequest.go index 0da1b48a..6c72d4a1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpastgrantsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpastgrantsrequest.go @@ -18,44 +18,44 @@ type SearchPastGrantsRequest struct { PageToken *string `json:"pageToken,omitempty"` } -func (o *SearchPastGrantsRequest) GetAppEntitlementUserBindingExpandHistoryMask() *AppEntitlementUserBindingExpandHistoryMask { - if o == nil { +func (s *SearchPastGrantsRequest) GetAppEntitlementUserBindingExpandHistoryMask() *AppEntitlementUserBindingExpandHistoryMask { + if s == nil { return nil } - return o.AppEntitlementUserBindingExpandHistoryMask + return s.AppEntitlementUserBindingExpandHistoryMask } -func (o *SearchPastGrantsRequest) GetAppEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (s *SearchPastGrantsRequest) GetAppEntitlementRefs() []AppEntitlementRef { + if s == nil { return nil } - return o.AppEntitlementRefs + return s.AppEntitlementRefs } -func (o *SearchPastGrantsRequest) GetAppIds() []string { - if o == nil { +func (s *SearchPastGrantsRequest) GetAppIds() []string { + if s == nil { return nil } - return o.AppIds + return s.AppIds } -func (o *SearchPastGrantsRequest) GetAppUserRefs() []AppUserRef { - if o == nil { +func (s *SearchPastGrantsRequest) GetAppUserRefs() []AppUserRef { + if s == nil { return nil } - return o.AppUserRefs + return s.AppUserRefs } -func (o *SearchPastGrantsRequest) GetPageSize() *int { - if o == nil { +func (s *SearchPastGrantsRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchPastGrantsRequest) GetPageToken() *string { - if o == nil { +func (s *SearchPastGrantsRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpastgrantsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpastgrantsresponse.go index 65941cf0..243f1f14 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpastgrantsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpastgrantsresponse.go @@ -18,24 +18,24 @@ func (s SearchPastGrantsResponseExpanded) MarshalJSON() ([]byte, error) { } func (s *SearchPastGrantsResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SearchPastGrantsResponseExpanded) GetAtType() *string { - if o == nil { +func (s *SearchPastGrantsResponseExpanded) GetAtType() *string { + if s == nil { return nil } - return o.AtType + return s.AtType } -func (o *SearchPastGrantsResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (s *SearchPastGrantsResponseExpanded) GetAdditionalProperties() map[string]any { + if s == nil { return nil } - return o.AdditionalProperties + return s.AdditionalProperties } // The SearchPastGrantsResponse message contains a list of past grants and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type SearchPastGrantsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchPastGrantsResponse) GetExpanded() []SearchPastGrantsResponseExpanded { - if o == nil { +func (s *SearchPastGrantsResponse) GetExpanded() []SearchPastGrantsResponseExpanded { + if s == nil { return nil } - return o.Expanded + return s.Expanded } -func (o *SearchPastGrantsResponse) GetList() []AppEntitlementUserBindingHistoryView { - if o == nil { +func (s *SearchPastGrantsResponse) GetList() []AppEntitlementUserBindingHistoryView { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchPastGrantsResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchPastGrantsResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpoliciesrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpoliciesrequest.go index 1c57825d..beed0626 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpoliciesrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpoliciesrequest.go @@ -17,6 +17,17 @@ func (e PolicyTypes) ToPointer() *PolicyTypes { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PolicyTypes) IsExact() bool { + if e != nil { + switch *e { + case "POLICY_TYPE_UNSPECIFIED", "POLICY_TYPE_GRANT", "POLICY_TYPE_REVOKE", "POLICY_TYPE_CERTIFY", "POLICY_TYPE_ACCESS_REQUEST", "POLICY_TYPE_PROVISION": + return true + } + } + return false +} + // SearchPoliciesRequest - Search Policies by a few properties. type SearchPoliciesRequest struct { // Search for policies with a case insensitive match on the display name. @@ -37,58 +48,58 @@ type SearchPoliciesRequest struct { Refs []PolicyRef `json:"refs,omitempty"` } -func (o *SearchPoliciesRequest) GetDisplayName() *string { - if o == nil { +func (s *SearchPoliciesRequest) GetDisplayName() *string { + if s == nil { return nil } - return o.DisplayName + return s.DisplayName } -func (o *SearchPoliciesRequest) GetExcludePolicyIds() []string { - if o == nil { +func (s *SearchPoliciesRequest) GetExcludePolicyIds() []string { + if s == nil { return nil } - return o.ExcludePolicyIds + return s.ExcludePolicyIds } -func (o *SearchPoliciesRequest) GetIncludeDeleted() *bool { - if o == nil { +func (s *SearchPoliciesRequest) GetIncludeDeleted() *bool { + if s == nil { return nil } - return o.IncludeDeleted + return s.IncludeDeleted } -func (o *SearchPoliciesRequest) GetPageSize() *int { - if o == nil { +func (s *SearchPoliciesRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchPoliciesRequest) GetPageToken() *string { - if o == nil { +func (s *SearchPoliciesRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchPoliciesRequest) GetPolicyTypes() []PolicyTypes { - if o == nil { +func (s *SearchPoliciesRequest) GetPolicyTypes() []PolicyTypes { + if s == nil { return nil } - return o.PolicyTypes + return s.PolicyTypes } -func (o *SearchPoliciesRequest) GetQuery() *string { - if o == nil { +func (s *SearchPoliciesRequest) GetQuery() *string { + if s == nil { return nil } - return o.Query + return s.Query } -func (o *SearchPoliciesRequest) GetRefs() []PolicyRef { - if o == nil { +func (s *SearchPoliciesRequest) GetRefs() []PolicyRef { + if s == nil { return nil } - return o.Refs + return s.Refs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpoliciesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpoliciesresponse.go index e49febde..0e64b606 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpoliciesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchpoliciesresponse.go @@ -10,16 +10,16 @@ type SearchPoliciesResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchPoliciesResponse) GetList() []Policy { - if o == nil { +func (s *SearchPoliciesResponse) GetList() []Policy { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchPoliciesResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchPoliciesResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepupprovidersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepupprovidersrequest.go index 22ee73cf..4d2b0e51 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepupprovidersrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepupprovidersrequest.go @@ -15,6 +15,17 @@ func (e ProviderType) ToPointer() *ProviderType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ProviderType) IsExact() bool { + if e != nil { + switch *e { + case "PROVIDER_TYPE_UNSPECIFIED", "PROVIDER_TYPE_OAUTH2", "PROVIDER_TYPE_MICROSOFT": + return true + } + } + return false +} + // SearchStepUpProvidersRequest - Request message for searching step-up providers type SearchStepUpProvidersRequest struct { // Maximum number of results to return @@ -29,37 +40,37 @@ type SearchStepUpProvidersRequest struct { Refs []StepUpProviderRef `json:"refs,omitempty"` } -func (o *SearchStepUpProvidersRequest) GetPageSize() *int { - if o == nil { +func (s *SearchStepUpProvidersRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchStepUpProvidersRequest) GetPageToken() *string { - if o == nil { +func (s *SearchStepUpProvidersRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchStepUpProvidersRequest) GetProviderType() *ProviderType { - if o == nil { +func (s *SearchStepUpProvidersRequest) GetProviderType() *ProviderType { + if s == nil { return nil } - return o.ProviderType + return s.ProviderType } -func (o *SearchStepUpProvidersRequest) GetQuery() *string { - if o == nil { +func (s *SearchStepUpProvidersRequest) GetQuery() *string { + if s == nil { return nil } - return o.Query + return s.Query } -func (o *SearchStepUpProvidersRequest) GetRefs() []StepUpProviderRef { - if o == nil { +func (s *SearchStepUpProvidersRequest) GetRefs() []StepUpProviderRef { + if s == nil { return nil } - return o.Refs + return s.Refs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepupprovidersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepupprovidersresponse.go index aa85bc10..89cad230 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepupprovidersresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepupprovidersresponse.go @@ -10,16 +10,16 @@ type SearchStepUpProvidersResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchStepUpProvidersResponse) GetList() []StepUpProvider { - if o == nil { +func (s *SearchStepUpProvidersResponse) GetList() []StepUpProvider { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchStepUpProvidersResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchStepUpProvidersResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepuptransactionsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepuptransactionsrequest.go index ffa7d73e..5bc332df 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepuptransactionsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepuptransactionsrequest.go @@ -21,6 +21,17 @@ func (e SearchStepUpTransactionsRequestState) ToPointer() *SearchStepUpTransacti return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *SearchStepUpTransactionsRequestState) IsExact() bool { + if e != nil { + switch *e { + case "STEP_UP_TRANSACTION_STATE_UNSPECIFIED", "STEP_UP_TRANSACTION_STATE_PENDING", "STEP_UP_TRANSACTION_STATE_VERIFIED", "STEP_UP_TRANSACTION_STATE_ERROR": + return true + } + } + return false +} + // TargetType - The targetType field. type TargetType string @@ -34,6 +45,17 @@ func (e TargetType) ToPointer() *TargetType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TargetType) IsExact() bool { + if e != nil { + switch *e { + case "TARGET_TYPE_UNSPECIFIED", "TARGET_TYPE_TICKET", "TARGET_TYPE_TEST": + return true + } + } + return false +} + // SearchStepUpTransactionsRequest - Request message for searching step-up transactions type SearchStepUpTransactionsRequest struct { CreatedAfter *time.Time `json:"createdAfter,omitempty"` @@ -59,71 +81,71 @@ func (s SearchStepUpTransactionsRequest) MarshalJSON() ([]byte, error) { } func (s *SearchStepUpTransactionsRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SearchStepUpTransactionsRequest) GetCreatedAfter() *time.Time { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetCreatedAfter() *time.Time { + if s == nil { return nil } - return o.CreatedAfter + return s.CreatedAfter } -func (o *SearchStepUpTransactionsRequest) GetCreatedBefore() *time.Time { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetCreatedBefore() *time.Time { + if s == nil { return nil } - return o.CreatedBefore + return s.CreatedBefore } -func (o *SearchStepUpTransactionsRequest) GetPageSize() *int { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchStepUpTransactionsRequest) GetPageToken() *string { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchStepUpTransactionsRequest) GetProviderID() *string { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetProviderID() *string { + if s == nil { return nil } - return o.ProviderID + return s.ProviderID } -func (o *SearchStepUpTransactionsRequest) GetState() *SearchStepUpTransactionsRequestState { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetState() *SearchStepUpTransactionsRequestState { + if s == nil { return nil } - return o.State + return s.State } -func (o *SearchStepUpTransactionsRequest) GetTargetType() *TargetType { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetTargetType() *TargetType { + if s == nil { return nil } - return o.TargetType + return s.TargetType } -func (o *SearchStepUpTransactionsRequest) GetTaskID() *string { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetTaskID() *string { + if s == nil { return nil } - return o.TaskID + return s.TaskID } -func (o *SearchStepUpTransactionsRequest) GetUserID() *string { - if o == nil { +func (s *SearchStepUpTransactionsRequest) GetUserID() *string { + if s == nil { return nil } - return o.UserID + return s.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepuptransactionsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepuptransactionsresponse.go index f876fbc6..42e21455 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepuptransactionsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchstepuptransactionsresponse.go @@ -10,16 +10,16 @@ type SearchStepUpTransactionsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchStepUpTransactionsResponse) GetList() []StepUpTransaction { - if o == nil { +func (s *SearchStepUpTransactionsResponse) GetList() []StepUpTransaction { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchStepUpTransactionsResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchStepUpTransactionsResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchusersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchusersrequest.go index 99b4e8b7..69526f5b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchusersrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchusersrequest.go @@ -16,24 +16,48 @@ func (e ExcludeTypes) ToPointer() *ExcludeTypes { return &e } -type UserStatuses string +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ExcludeTypes) IsExact() bool { + if e != nil { + switch *e { + case "USER_TYPE_UNSPECIFIED", "USER_TYPE_SYSTEM", "USER_TYPE_HUMAN", "USER_TYPE_SERVICE", "USER_TYPE_AGENT": + return true + } + } + return false +} + +type SearchUsersRequestUserStatuses string const ( - UserStatusesUnknown UserStatuses = "UNKNOWN" - UserStatusesEnabled UserStatuses = "ENABLED" - UserStatusesDisabled UserStatuses = "DISABLED" - UserStatusesDeleted UserStatuses = "DELETED" + SearchUsersRequestUserStatusesUnknown SearchUsersRequestUserStatuses = "UNKNOWN" + SearchUsersRequestUserStatusesEnabled SearchUsersRequestUserStatuses = "ENABLED" + SearchUsersRequestUserStatusesDisabled SearchUsersRequestUserStatuses = "DISABLED" + SearchUsersRequestUserStatusesDeleted SearchUsersRequestUserStatuses = "DELETED" ) -func (e UserStatuses) ToPointer() *UserStatuses { +func (e SearchUsersRequestUserStatuses) ToPointer() *SearchUsersRequestUserStatuses { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *SearchUsersRequestUserStatuses) IsExact() bool { + if e != nil { + switch *e { + case "UNKNOWN", "ENABLED", "DISABLED", "DELETED": + return true + } + } + return false +} + // SearchUsersRequest - Search for users based on some filters. type SearchUsersRequest struct { // The user expand mask is used to indicate which related objects should be expanded in the response. // The supported paths are 'role_ids', 'manager_ids', 'delegated_user_id', 'directory_ids', and '*'. UserExpandMask *UserExpandMask `json:"expandMask,omitempty"` + // Search for users that have any of the departments on this list. + Departments []string `json:"departments,omitempty"` // Search for users based on their email (exact match). Email *string `json:"email,omitempty"` // An array of users IDs to exclude from the results. @@ -42,6 +66,10 @@ type SearchUsersRequest struct { ExcludeTypes []ExcludeTypes `json:"excludeTypes,omitempty"` // Deprecated. Use refs array instead. Ids []string `json:"ids,omitempty"` + // Search for users that have any of the job titles on this list. + JobTitles []string `json:"jobTitles,omitempty"` + // Search for users that have any of the manager IDs on this list. + ManagerIds []string `json:"managerIds,omitempty"` // The pageSize where 0 <= pageSize <= 100. Values < 10 will be set to 10. A value of 0 returns the default page size (currently 25) PageSize *int `json:"pageSize,omitempty"` // The pageToken field. @@ -53,82 +81,103 @@ type SearchUsersRequest struct { // Search for users that have any of the role IDs on this list. RoleIds []string `json:"roleIds,omitempty"` // Search for users that have any of the statuses on this list. This can only be ENABLED, DISABLED, and DELETED - UserStatuses []UserStatuses `json:"userStatuses,omitempty"` + UserStatuses []SearchUsersRequestUserStatuses `json:"userStatuses,omitempty"` +} + +func (s *SearchUsersRequest) GetUserExpandMask() *UserExpandMask { + if s == nil { + return nil + } + return s.UserExpandMask +} + +func (s *SearchUsersRequest) GetDepartments() []string { + if s == nil { + return nil + } + return s.Departments +} + +func (s *SearchUsersRequest) GetEmail() *string { + if s == nil { + return nil + } + return s.Email } -func (o *SearchUsersRequest) GetUserExpandMask() *UserExpandMask { - if o == nil { +func (s *SearchUsersRequest) GetExcludeIds() []string { + if s == nil { return nil } - return o.UserExpandMask + return s.ExcludeIds } -func (o *SearchUsersRequest) GetEmail() *string { - if o == nil { +func (s *SearchUsersRequest) GetExcludeTypes() []ExcludeTypes { + if s == nil { return nil } - return o.Email + return s.ExcludeTypes } -func (o *SearchUsersRequest) GetExcludeIds() []string { - if o == nil { +func (s *SearchUsersRequest) GetIds() []string { + if s == nil { return nil } - return o.ExcludeIds + return s.Ids } -func (o *SearchUsersRequest) GetExcludeTypes() []ExcludeTypes { - if o == nil { +func (s *SearchUsersRequest) GetJobTitles() []string { + if s == nil { return nil } - return o.ExcludeTypes + return s.JobTitles } -func (o *SearchUsersRequest) GetIds() []string { - if o == nil { +func (s *SearchUsersRequest) GetManagerIds() []string { + if s == nil { return nil } - return o.Ids + return s.ManagerIds } -func (o *SearchUsersRequest) GetPageSize() *int { - if o == nil { +func (s *SearchUsersRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SearchUsersRequest) GetPageToken() *string { - if o == nil { +func (s *SearchUsersRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SearchUsersRequest) GetQuery() *string { - if o == nil { +func (s *SearchUsersRequest) GetQuery() *string { + if s == nil { return nil } - return o.Query + return s.Query } -func (o *SearchUsersRequest) GetRefs() []UserRef { - if o == nil { +func (s *SearchUsersRequest) GetRefs() []UserRef { + if s == nil { return nil } - return o.Refs + return s.Refs } -func (o *SearchUsersRequest) GetRoleIds() []string { - if o == nil { +func (s *SearchUsersRequest) GetRoleIds() []string { + if s == nil { return nil } - return o.RoleIds + return s.RoleIds } -func (o *SearchUsersRequest) GetUserStatuses() []UserStatuses { - if o == nil { +func (s *SearchUsersRequest) GetUserStatuses() []SearchUsersRequestUserStatuses { + if s == nil { return nil } - return o.UserStatuses + return s.UserStatuses } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchusersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchusersresponse.go index 8fa119e6..2acfeefc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchusersresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/searchusersresponse.go @@ -18,24 +18,24 @@ func (s SearchUsersResponseExpanded) MarshalJSON() ([]byte, error) { } func (s *SearchUsersResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SearchUsersResponseExpanded) GetAtType() *string { - if o == nil { +func (s *SearchUsersResponseExpanded) GetAtType() *string { + if s == nil { return nil } - return o.AtType + return s.AtType } -func (o *SearchUsersResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (s *SearchUsersResponseExpanded) GetAdditionalProperties() map[string]any { + if s == nil { return nil } - return o.AdditionalProperties + return s.AdditionalProperties } // The SearchUsersResponse message. @@ -48,23 +48,23 @@ type SearchUsersResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SearchUsersResponse) GetExpanded() []SearchUsersResponseExpanded { - if o == nil { +func (s *SearchUsersResponse) GetExpanded() []SearchUsersResponseExpanded { + if s == nil { return nil } - return o.Expanded + return s.Expanded } -func (o *SearchUsersResponse) GetList() []UserView { - if o == nil { +func (s *SearchUsersResponse) GetList() []UserView { + if s == nil { return nil } - return o.List + return s.List } -func (o *SearchUsersResponse) GetNextPageToken() *string { - if o == nil { +func (s *SearchUsersResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/secrettrait.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/secrettrait.go index 97041616..5daf16c0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/secrettrait.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/secrettrait.go @@ -21,36 +21,36 @@ func (s SecretTrait) MarshalJSON() ([]byte, error) { } func (s *SecretTrait) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SecretTrait) GetIdentityAppUserID() *string { - if o == nil { +func (s *SecretTrait) GetIdentityAppUserID() *string { + if s == nil { return nil } - return o.IdentityAppUserID + return s.IdentityAppUserID } -func (o *SecretTrait) GetLastUsedAt() *time.Time { - if o == nil { +func (s *SecretTrait) GetLastUsedAt() *time.Time { + if s == nil { return nil } - return o.LastUsedAt + return s.LastUsedAt } -func (o *SecretTrait) GetSecretCreatedAt() *time.Time { - if o == nil { +func (s *SecretTrait) GetSecretCreatedAt() *time.Time { + if s == nil { return nil } - return o.SecretCreatedAt + return s.SecretCreatedAt } -func (o *SecretTrait) GetSecretExpiresAt() *time.Time { - if o == nil { +func (s *SecretTrait) GetSecretExpiresAt() *time.Time { + if s == nil { return nil } - return o.SecretExpiresAt + return s.SecretExpiresAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/security.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/security.go index 22182768..94dfe069 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/security.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/security.go @@ -7,16 +7,16 @@ type Security struct { Oauth string `security:"scheme,type=oauth2,name=Authorization"` } -func (o *Security) GetBearerAuth() string { - if o == nil { +func (s *Security) GetBearerAuth() string { + if s == nil { return "" } - return o.BearerAuth + return s.BearerAuth } -func (o *Security) GetOauth() string { - if o == nil { +func (s *Security) GetOauth() string { + if s == nil { return "" } - return o.Oauth + return s.Oauth } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectedusersscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectedusersscope.go new file mode 100644 index 00000000..38df95c0 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectedusersscope.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SelectedUsersScope message. +type SelectedUsersScope struct { + // The userIds field. + UserIds []string `json:"userIds,omitempty"` +} + +func (s *SelectedUsersScope) GetUserIds() []string { + if s == nil { + return nil + } + return s.UserIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectfield.go new file mode 100644 index 00000000..0b86d299 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectfield.go @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// Type - The type field. +type Type string + +const ( + TypeSelectTypeUnspecified Type = "SELECT_TYPE_UNSPECIFIED" + TypeSelectTypeDropdown Type = "SELECT_TYPE_DROPDOWN" + TypeSelectTypeRadio Type = "SELECT_TYPE_RADIO" + TypeSelectTypeButtons Type = "SELECT_TYPE_BUTTONS" +) + +func (e Type) ToPointer() *Type { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Type) IsExact() bool { + if e != nil { + switch *e { + case "SELECT_TYPE_UNSPECIFIED", "SELECT_TYPE_DROPDOWN", "SELECT_TYPE_RADIO", "SELECT_TYPE_BUTTONS": + return true + } + } + return false +} + +// The SelectField message. +type SelectField struct { + // The options field. + Options []SelectOption `json:"options,omitempty"` + // The type field. + Type *Type `json:"type,omitempty"` +} + +func (s *SelectField) GetOptions() []SelectOption { + if s == nil { + return nil + } + return s.Options +} + +func (s *SelectField) GetType() *Type { + if s == nil { + return nil + } + return s.Type +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectoption.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectoption.go new file mode 100644 index 00000000..22cb159e --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selectoption.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SelectOption message. +type SelectOption struct { + // Used for type BUTTONS + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The value field. + Value *string `json:"value,omitempty"` +} + +func (s *SelectOption) GetDescription() *string { + if s == nil { + return nil + } + return s.Description +} + +func (s *SelectOption) GetDisplayName() *string { + if s == nil { + return nil + } + return s.DisplayName +} + +func (s *SelectOption) GetValue() *string { + if s == nil { + return nil + } + return s.Value +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selfapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selfapproval.go index cdfce6b1..b207008e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selfapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selfapproval.go @@ -8,27 +8,45 @@ type SelfApproval struct { AssignedUserIds []string `json:"assignedUserIds,omitempty"` // Configuration to allow a fallback if the identity user of the target app user cannot be determined. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and the identity user of the target app user cannot be determined. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if fallback is enabled and the identity user of the target app user cannot be determined. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` } -func (o *SelfApproval) GetAssignedUserIds() []string { - if o == nil { +func (s *SelfApproval) GetAssignedUserIds() []string { + if s == nil { return nil } - return o.AssignedUserIds + return s.AssignedUserIds } -func (o *SelfApproval) GetFallback() *bool { - if o == nil { +func (s *SelfApproval) GetFallback() *bool { + if s == nil { return nil } - return o.Fallback + return s.Fallback } -func (o *SelfApproval) GetFallbackUserIds() []string { - if o == nil { +func (s *SelfApproval) GetFallbackGroupIds() []AppEntitlementReference { + if s == nil { return nil } - return o.FallbackUserIds + return s.FallbackGroupIds +} + +func (s *SelfApproval) GetFallbackUserIds() []string { + if s == nil { + return nil + } + return s.FallbackUserIds +} + +func (s *SelfApproval) GetIsGroupFallbackEnabled() *bool { + if s == nil { + return nil + } + return s.IsGroupFallbackEnabled } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selfapprovalinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selfapprovalinput.go index 8083917c..12d6f83d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selfapprovalinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/selfapprovalinput.go @@ -6,20 +6,38 @@ package shared type SelfApprovalInput struct { // Configuration to allow a fallback if the identity user of the target app user cannot be determined. Fallback *bool `json:"fallback,omitempty"` + // Configuration to specify which groups to fallback to if fallback is enabled and the identity user of the target app user cannot be determined. + FallbackGroupIds []AppEntitlementReference `json:"fallbackGroupIds,omitempty"` // Configuration to specific which users to fallback to if fallback is enabled and the identity user of the target app user cannot be determined. FallbackUserIds []string `json:"fallbackUserIds,omitempty"` + // Configuration to enable fallback for group fallback. + IsGroupFallbackEnabled *bool `json:"isGroupFallbackEnabled,omitempty"` } -func (o *SelfApprovalInput) GetFallback() *bool { - if o == nil { +func (s *SelfApprovalInput) GetFallback() *bool { + if s == nil { return nil } - return o.Fallback + return s.Fallback } -func (o *SelfApprovalInput) GetFallbackUserIds() []string { - if o == nil { +func (s *SelfApprovalInput) GetFallbackGroupIds() []AppEntitlementReference { + if s == nil { return nil } - return o.FallbackUserIds + return s.FallbackGroupIds +} + +func (s *SelfApprovalInput) GetFallbackUserIds() []string { + if s == nil { + return nil + } + return s.FallbackUserIds +} + +func (s *SelfApprovalInput) GetIsGroupFallbackEnabled() *bool { + if s == nil { + return nil + } + return s.IsGroupFallbackEnabled } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sendemail.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sendemail.go index 946a217c..6846f14d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sendemail.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sendemail.go @@ -18,44 +18,44 @@ type SendEmail struct { UserRefs []UserRef `json:"userRefs,omitempty"` } -func (o *SendEmail) GetBody() *string { - if o == nil { +func (s *SendEmail) GetBody() *string { + if s == nil { return nil } - return o.Body + return s.Body } -func (o *SendEmail) GetSubject() *string { - if o == nil { +func (s *SendEmail) GetSubject() *string { + if s == nil { return nil } - return o.Subject + return s.Subject } -func (o *SendEmail) GetTitle() *string { - if o == nil { +func (s *SendEmail) GetTitle() *string { + if s == nil { return nil } - return o.Title + return s.Title } -func (o *SendEmail) GetUseSubjectUser() *bool { - if o == nil { +func (s *SendEmail) GetUseSubjectUser() *bool { + if s == nil { return nil } - return o.UseSubjectUser + return s.UseSubjectUser } -func (o *SendEmail) GetUserIdsCel() *string { - if o == nil { +func (s *SendEmail) GetUserIdsCel() *string { + if s == nil { return nil } - return o.UserIdsCel + return s.UserIdsCel } -func (o *SendEmail) GetUserRefs() []UserRef { - if o == nil { +func (s *SendEmail) GetUserRefs() []UserRef { + if s == nil { return nil } - return o.UserRefs + return s.UserRefs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sendslackmessage.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sendslackmessage.go index b1daa21b..dc22fe5d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sendslackmessage.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sendslackmessage.go @@ -20,23 +20,23 @@ type SendSlackMessage struct { ChannelNameCel *string `json:"channelNameCel,omitempty"` } -func (o *SendSlackMessage) GetBody() *string { - if o == nil { +func (s *SendSlackMessage) GetBody() *string { + if s == nil { return nil } - return o.Body + return s.Body } -func (o *SendSlackMessage) GetChannelName() *string { - if o == nil { +func (s *SendSlackMessage) GetChannelName() *string { + if s == nil { return nil } - return o.ChannelName + return s.ChannelName } -func (o *SendSlackMessage) GetChannelNameCel() *string { - if o == nil { +func (s *SendSlackMessage) GetChannelNameCel() *string { + if s == nil { return nil } - return o.ChannelNameCel + return s.ChannelNameCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sessionsettings.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sessionsettings.go index cc510760..b1178d92 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sessionsettings.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sessionsettings.go @@ -17,44 +17,44 @@ type SessionSettings struct { MaxSessionLength *string `json:"maxSessionLength,omitempty"` } -func (o *SessionSettings) GetCIDRRestriction() *CIDRRestriction { - if o == nil { +func (s *SessionSettings) GetCIDRRestriction() *CIDRRestriction { + if s == nil { return nil } - return o.CIDRRestriction + return s.CIDRRestriction } -func (o *SessionSettings) GetCIDRRestriction1() *CIDRRestriction { - if o == nil { +func (s *SessionSettings) GetCIDRRestriction1() *CIDRRestriction { + if s == nil { return nil } - return o.CIDRRestriction1 + return s.CIDRRestriction1 } -func (o *SessionSettings) GetCIDRRestriction2() *CIDRRestriction { - if o == nil { +func (s *SessionSettings) GetCIDRRestriction2() *CIDRRestriction { + if s == nil { return nil } - return o.CIDRRestriction2 + return s.CIDRRestriction2 } -func (o *SessionSettings) GetCIDRRestriction3() *CIDRRestriction { - if o == nil { +func (s *SessionSettings) GetCIDRRestriction3() *CIDRRestriction { + if s == nil { return nil } - return o.CIDRRestriction3 + return s.CIDRRestriction3 } -func (o *SessionSettings) GetCIDRRestriction4() *CIDRRestriction { - if o == nil { +func (s *SessionSettings) GetCIDRRestriction4() *CIDRRestriction { + if s == nil { return nil } - return o.CIDRRestriction4 + return s.CIDRRestriction4 } -func (o *SessionSettings) GetMaxSessionLength() *string { - if o == nil { +func (s *SessionSettings) GetMaxSessionLength() *string { + if s == nil { return nil } - return o.MaxSessionLength + return s.MaxSessionLength } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappentitlementownersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappentitlementownersrequest.go index bc4c2514..adb7f8c5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappentitlementownersrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappentitlementownersrequest.go @@ -8,9 +8,9 @@ type SetAppEntitlementOwnersRequest struct { UserIds []string `json:"userIds,omitempty"` } -func (o *SetAppEntitlementOwnersRequest) GetUserIds() []string { - if o == nil { +func (s *SetAppEntitlementOwnersRequest) GetUserIds() []string { + if s == nil { return nil } - return o.UserIds + return s.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappownersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappownersrequest.go index 89c6c21c..5f82cd4f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappownersrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappownersrequest.go @@ -8,9 +8,9 @@ type SetAppOwnersRequest struct { UserIds []string `json:"userIds,omitempty"` } -func (o *SetAppOwnersRequest) GetUserIds() []string { - if o == nil { +func (s *SetAppOwnersRequest) GetUserIds() []string { + if s == nil { return nil } - return o.UserIds + return s.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappresourceownersrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappresourceownersrequest.go new file mode 100644 index 00000000..35a57452 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappresourceownersrequest.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SetAppResourceOwnersRequest message. +type SetAppResourceOwnersRequest struct { + // The userIds field. + UserIds []string `json:"userIds,omitempty"` +} + +func (s *SetAppResourceOwnersRequest) GetUserIds() []string { + if s == nil { + return nil + } + return s.UserIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappresourceownersresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappresourceownersresponse.go new file mode 100644 index 00000000..31d4c033 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setappresourceownersresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// SetAppResourceOwnersResponse - The empty response message for setting the app resource owners. +type SetAppResourceOwnersResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setbundleautomationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setbundleautomationrequest.go index 98d63793..022f0bfd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setbundleautomationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setbundleautomationrequest.go @@ -17,30 +17,30 @@ type SetBundleAutomationRequest struct { Enabled *bool `json:"enabled,omitempty"` } -func (o *SetBundleAutomationRequest) GetBundleAutomationRuleEntitlement() *BundleAutomationRuleEntitlement { - if o == nil { +func (s *SetBundleAutomationRequest) GetBundleAutomationRuleEntitlement() *BundleAutomationRuleEntitlement { + if s == nil { return nil } - return o.BundleAutomationRuleEntitlement + return s.BundleAutomationRuleEntitlement } -func (o *SetBundleAutomationRequest) GetCreateTasks() *bool { - if o == nil { +func (s *SetBundleAutomationRequest) GetCreateTasks() *bool { + if s == nil { return nil } - return o.CreateTasks + return s.CreateTasks } -func (o *SetBundleAutomationRequest) GetDisableCircuitBreaker() *bool { - if o == nil { +func (s *SetBundleAutomationRequest) GetDisableCircuitBreaker() *bool { + if s == nil { return nil } - return o.DisableCircuitBreaker + return s.DisableCircuitBreaker } -func (o *SetBundleAutomationRequest) GetEnabled() *bool { - if o == nil { +func (s *SetBundleAutomationRequest) GetEnabled() *bool { + if s == nil { return nil } - return o.Enabled + return s.Enabled } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setexpiringuserdelegationbindingbyadminrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setexpiringuserdelegationbindingbyadminrequest.go new file mode 100644 index 00000000..f432abb4 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setexpiringuserdelegationbindingbyadminrequest.go @@ -0,0 +1,48 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The SetExpiringUserDelegationBindingByAdminRequest message. +type SetExpiringUserDelegationBindingByAdminRequest struct { + // The delegatedUserId field. + DelegatedUserID *string `json:"delegatedUserId,omitempty"` + DelegationExpireAt *time.Time `json:"delegationExpireAt,omitempty"` + DelegationStartAt *time.Time `json:"delegationStartAt,omitempty"` +} + +func (s SetExpiringUserDelegationBindingByAdminRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SetExpiringUserDelegationBindingByAdminRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { + return err + } + return nil +} + +func (s *SetExpiringUserDelegationBindingByAdminRequest) GetDelegatedUserID() *string { + if s == nil { + return nil + } + return s.DelegatedUserID +} + +func (s *SetExpiringUserDelegationBindingByAdminRequest) GetDelegationExpireAt() *time.Time { + if s == nil { + return nil + } + return s.DelegationExpireAt +} + +func (s *SetExpiringUserDelegationBindingByAdminRequest) GetDelegationStartAt() *time.Time { + if s == nil { + return nil + } + return s.DelegationStartAt +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setexpiringuserdelegationbindingbyadminresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setexpiringuserdelegationbindingbyadminresponse.go new file mode 100644 index 00000000..43611eac --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/setexpiringuserdelegationbindingbyadminresponse.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SetExpiringUserDelegationBindingByAdminResponse message. +type SetExpiringUserDelegationBindingByAdminResponse struct { + // The ExpiringUserDelegationBinding message. + ExpiringUserDelegationBinding *ExpiringUserDelegationBinding `json:"item,omitempty"` +} + +func (s *SetExpiringUserDelegationBindingByAdminResponse) GetExpiringUserDelegationBinding() *ExpiringUserDelegationBinding { + if s == nil { + return nil + } + return s.ExpiringUserDelegationBinding +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sfixed32rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sfixed32rules.go index 8f6adbdf..caf68caa 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sfixed32rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sfixed32rules.go @@ -31,58 +31,58 @@ type SFixed32Rules struct { NotIn []int `json:"notIn,omitempty"` } -func (o *SFixed32Rules) GetConst() *int { - if o == nil { +func (s *SFixed32Rules) GetConst() *int { + if s == nil { return nil } - return o.Const + return s.Const } -func (o *SFixed32Rules) GetGt() *int { - if o == nil { +func (s *SFixed32Rules) GetGt() *int { + if s == nil { return nil } - return o.Gt + return s.Gt } -func (o *SFixed32Rules) GetGte() *int { - if o == nil { +func (s *SFixed32Rules) GetGte() *int { + if s == nil { return nil } - return o.Gte + return s.Gte } -func (o *SFixed32Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (s *SFixed32Rules) GetIgnoreEmpty() *bool { + if s == nil { return nil } - return o.IgnoreEmpty + return s.IgnoreEmpty } -func (o *SFixed32Rules) GetIn() []int { - if o == nil { +func (s *SFixed32Rules) GetIn() []int { + if s == nil { return nil } - return o.In + return s.In } -func (o *SFixed32Rules) GetLt() *int { - if o == nil { +func (s *SFixed32Rules) GetLt() *int { + if s == nil { return nil } - return o.Lt + return s.Lt } -func (o *SFixed32Rules) GetLte() *int { - if o == nil { +func (s *SFixed32Rules) GetLte() *int { + if s == nil { return nil } - return o.Lte + return s.Lte } -func (o *SFixed32Rules) GetNotIn() []int { - if o == nil { +func (s *SFixed32Rules) GetNotIn() []int { + if s == nil { return nil } - return o.NotIn + return s.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sfixed64rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sfixed64rules.go index 68b34710..5d9f651c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sfixed64rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sfixed64rules.go @@ -31,58 +31,58 @@ type SFixed64Rules struct { NotIn []int64 `integer:"string" json:"notIn,omitempty"` } -func (o *SFixed64Rules) GetConst() *int64 { - if o == nil { +func (s *SFixed64Rules) GetConst() *int64 { + if s == nil { return nil } - return o.Const + return s.Const } -func (o *SFixed64Rules) GetGt() *int64 { - if o == nil { +func (s *SFixed64Rules) GetGt() *int64 { + if s == nil { return nil } - return o.Gt + return s.Gt } -func (o *SFixed64Rules) GetGte() *int64 { - if o == nil { +func (s *SFixed64Rules) GetGte() *int64 { + if s == nil { return nil } - return o.Gte + return s.Gte } -func (o *SFixed64Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (s *SFixed64Rules) GetIgnoreEmpty() *bool { + if s == nil { return nil } - return o.IgnoreEmpty + return s.IgnoreEmpty } -func (o *SFixed64Rules) GetIn() []int64 { - if o == nil { +func (s *SFixed64Rules) GetIn() []int64 { + if s == nil { return nil } - return o.In + return s.In } -func (o *SFixed64Rules) GetLt() *int64 { - if o == nil { +func (s *SFixed64Rules) GetLt() *int64 { + if s == nil { return nil } - return o.Lt + return s.Lt } -func (o *SFixed64Rules) GetLte() *int64 { - if o == nil { +func (s *SFixed64Rules) GetLte() *int64 { + if s == nil { return nil } - return o.Lte + return s.Lte } -func (o *SFixed64Rules) GetNotIn() []int64 { - if o == nil { +func (s *SFixed64Rules) GetNotIn() []int64 { + if s == nil { return nil } - return o.NotIn + return s.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sharedproviderconfig.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sharedproviderconfig.go new file mode 100644 index 00000000..42cc3e95 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sharedproviderconfig.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SharedProviderConfig message. +type SharedProviderConfig struct { + // The defaultValueCel field. + DefaultValueCel *string `json:"defaultValueCel,omitempty"` + // The inputTransformationCel field. + InputTransformationCel *string `json:"inputTransformationCel,omitempty"` + // The lockDefaultValues field. + LockDefaultValues *bool `json:"lockDefaultValues,omitempty"` +} + +func (s *SharedProviderConfig) GetDefaultValueCel() *string { + if s == nil { + return nil + } + return s.DefaultValueCel +} + +func (s *SharedProviderConfig) GetInputTransformationCel() *string { + if s == nil { + return nil + } + return s.InputTransformationCel +} + +func (s *SharedProviderConfig) GetLockDefaultValues() *bool { + if s == nil { + return nil + } + return s.LockDefaultValues +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/singleappsetup.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/singleappsetup.go new file mode 100644 index 00000000..2d3bda1e --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/singleappsetup.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SingleAppSetup message. +type SingleAppSetup struct { + // The appId field. + AppID *string `json:"appId,omitempty"` +} + +func (s *SingleAppSetup) GetAppID() *string { + if s == nil { + return nil + } + return s.AppID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sint32rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sint32rules.go index a4207541..e61026e2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sint32rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sint32rules.go @@ -31,58 +31,58 @@ type SInt32Rules struct { NotIn []int `json:"notIn,omitempty"` } -func (o *SInt32Rules) GetConst() *int { - if o == nil { +func (s *SInt32Rules) GetConst() *int { + if s == nil { return nil } - return o.Const + return s.Const } -func (o *SInt32Rules) GetGt() *int { - if o == nil { +func (s *SInt32Rules) GetGt() *int { + if s == nil { return nil } - return o.Gt + return s.Gt } -func (o *SInt32Rules) GetGte() *int { - if o == nil { +func (s *SInt32Rules) GetGte() *int { + if s == nil { return nil } - return o.Gte + return s.Gte } -func (o *SInt32Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (s *SInt32Rules) GetIgnoreEmpty() *bool { + if s == nil { return nil } - return o.IgnoreEmpty + return s.IgnoreEmpty } -func (o *SInt32Rules) GetIn() []int { - if o == nil { +func (s *SInt32Rules) GetIn() []int { + if s == nil { return nil } - return o.In + return s.In } -func (o *SInt32Rules) GetLt() *int { - if o == nil { +func (s *SInt32Rules) GetLt() *int { + if s == nil { return nil } - return o.Lt + return s.Lt } -func (o *SInt32Rules) GetLte() *int { - if o == nil { +func (s *SInt32Rules) GetLte() *int { + if s == nil { return nil } - return o.Lte + return s.Lte } -func (o *SInt32Rules) GetNotIn() []int { - if o == nil { +func (s *SInt32Rules) GetNotIn() []int { + if s == nil { return nil } - return o.NotIn + return s.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sint64rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sint64rules.go index 7de0a1c2..b5892c77 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sint64rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/sint64rules.go @@ -31,58 +31,58 @@ type SInt64Rules struct { NotIn []int64 `integer:"string" json:"notIn,omitempty"` } -func (o *SInt64Rules) GetConst() *int64 { - if o == nil { +func (s *SInt64Rules) GetConst() *int64 { + if s == nil { return nil } - return o.Const + return s.Const } -func (o *SInt64Rules) GetGt() *int64 { - if o == nil { +func (s *SInt64Rules) GetGt() *int64 { + if s == nil { return nil } - return o.Gt + return s.Gt } -func (o *SInt64Rules) GetGte() *int64 { - if o == nil { +func (s *SInt64Rules) GetGte() *int64 { + if s == nil { return nil } - return o.Gte + return s.Gte } -func (o *SInt64Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (s *SInt64Rules) GetIgnoreEmpty() *bool { + if s == nil { return nil } - return o.IgnoreEmpty + return s.IgnoreEmpty } -func (o *SInt64Rules) GetIn() []int64 { - if o == nil { +func (s *SInt64Rules) GetIn() []int64 { + if s == nil { return nil } - return o.In + return s.In } -func (o *SInt64Rules) GetLt() *int64 { - if o == nil { +func (s *SInt64Rules) GetLt() *int64 { + if s == nil { return nil } - return o.Lt + return s.Lt } -func (o *SInt64Rules) GetLte() *int64 { - if o == nil { +func (s *SInt64Rules) GetLte() *int64 { + if s == nil { return nil } - return o.Lte + return s.Lte } -func (o *SInt64Rules) GetNotIn() []int64 { - if o == nil { +func (s *SInt64Rules) GetNotIn() []int64 { + if s == nil { return nil } - return o.NotIn + return s.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/skippedaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/skippedaction.go index f1eff3c8..a950512c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/skippedaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/skippedaction.go @@ -21,29 +21,29 @@ func (s SkippedAction) MarshalJSON() ([]byte, error) { } func (s *SkippedAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SkippedAction) GetNewPolicyStepID() *string { - if o == nil { +func (s *SkippedAction) GetNewPolicyStepID() *string { + if s == nil { return nil } - return o.NewPolicyStepID + return s.NewPolicyStepID } -func (o *SkippedAction) GetSkippedAt() *time.Time { - if o == nil { +func (s *SkippedAction) GetSkippedAt() *time.Time { + if s == nil { return nil } - return o.SkippedAt + return s.SkippedAt } -func (o *SkippedAction) GetUserID() *string { - if o == nil { +func (s *SkippedAction) GetUserID() *string { + if s == nil { return nil } - return o.UserID + return s.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/skipstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/skipstep.go new file mode 100644 index 00000000..29e6a337 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/skipstep.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SkipStep message. +type SkipStep struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/slackchannel.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/slackchannel.go new file mode 100644 index 00000000..8445fd75 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/slackchannel.go @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SlackChannel message. +type SlackChannel struct { + // The description field. + Description *string `json:"description,omitempty"` + // The name field. + Name *string `json:"name,omitempty"` +} + +func (s *SlackChannel) GetDescription() *string { + if s == nil { + return nil + } + return s.Description +} + +func (s *SlackChannel) GetName() *string { + if s == nil { + return nil + } + return s.Name +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/slacknotifications.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/slacknotifications.go index 05b9786b..cc409f6f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/slacknotifications.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/slacknotifications.go @@ -12,23 +12,23 @@ type SlackNotifications struct { Enabled *bool `json:"enabled,omitempty"` } -func (o *SlackNotifications) GetChannelID() *string { - if o == nil { +func (s *SlackNotifications) GetChannelID() *string { + if s == nil { return nil } - return o.ChannelID + return s.ChannelID } -func (o *SlackNotifications) GetChannelName() *string { - if o == nil { +func (s *SlackNotifications) GetChannelName() *string { + if s == nil { return nil } - return o.ChannelName + return s.ChannelName } -func (o *SlackNotifications) GetEnabled() *bool { - if o == nil { +func (s *SlackNotifications) GetEnabled() *bool { + if s == nil { return nil } - return o.Enabled + return s.Enabled } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/specificaccessconflictsscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/specificaccessconflictsscope.go new file mode 100644 index 00000000..d93c9253 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/specificaccessconflictsscope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SpecificAccessConflictsScope message. +type SpecificAccessConflictsScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/specificresourcesscope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/specificresourcesscope.go new file mode 100644 index 00000000..588cd11a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/specificresourcesscope.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SpecificResourcesScope message. +type SpecificResourcesScope struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/status.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/status.go index cd361c23..8bd2a6f7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/status.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/status.go @@ -18,24 +18,24 @@ func (d Details) MarshalJSON() ([]byte, error) { } func (d *Details) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { return err } return nil } -func (o *Details) GetAtType() *string { - if o == nil { +func (d *Details) GetAtType() *string { + if d == nil { return nil } - return o.AtType + return d.AtType } -func (o *Details) GetAdditionalProperties() map[string]any { - if o == nil { +func (d *Details) GetAdditionalProperties() map[string]any { + if d == nil { return nil } - return o.AdditionalProperties + return d.AdditionalProperties } // Status - The `Status` type defines a logical error model that is suitable for @@ -58,23 +58,23 @@ type Status struct { Message *string `json:"message,omitempty"` } -func (o *Status) GetCode() *int { - if o == nil { +func (s *Status) GetCode() *int { + if s == nil { return nil } - return o.Code + return s.Code } -func (o *Status) GetDetails() []Details { - if o == nil { +func (s *Status) GetDetails() []Details { + if s == nil { return nil } - return o.Details + return s.Details } -func (o *Status) GetMessage() *string { - if o == nil { +func (s *Status) GetMessage() *string { + if s == nil { return nil } - return o.Message + return s.Message } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupmicrosoftsettings.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupmicrosoftsettings.go index 9a01316c..f1681853 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupmicrosoftsettings.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupmicrosoftsettings.go @@ -10,16 +10,16 @@ type StepUpMicrosoftSettings struct { Tenant *string `json:"tenant,omitempty"` } -func (o *StepUpMicrosoftSettings) GetConditionalAccessIds() []string { - if o == nil { +func (s *StepUpMicrosoftSettings) GetConditionalAccessIds() []string { + if s == nil { return nil } - return o.ConditionalAccessIds + return s.ConditionalAccessIds } -func (o *StepUpMicrosoftSettings) GetTenant() *string { - if o == nil { +func (s *StepUpMicrosoftSettings) GetTenant() *string { + if s == nil { return nil } - return o.Tenant + return s.Tenant } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupoauth2settings.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupoauth2settings.go index 8a97d054..7ee1e8a5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupoauth2settings.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupoauth2settings.go @@ -16,9 +16,9 @@ type StepUpOAuth2Settings struct { AcrValues []string `json:"acrValues,omitempty"` } -func (o *StepUpOAuth2Settings) GetAcrValues() []string { - if o == nil { +func (s *StepUpOAuth2Settings) GetAcrValues() []string { + if s == nil { return nil } - return o.AcrValues + return s.AcrValues } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupprovider.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupprovider.go index 89b85510..d3c1d83d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupprovider.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupprovider.go @@ -45,78 +45,78 @@ func (s StepUpProvider) MarshalJSON() ([]byte, error) { } func (s *StepUpProvider) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *StepUpProvider) GetStepUpMicrosoftSettings() *StepUpMicrosoftSettings { - if o == nil { +func (s *StepUpProvider) GetStepUpMicrosoftSettings() *StepUpMicrosoftSettings { + if s == nil { return nil } - return o.StepUpMicrosoftSettings + return s.StepUpMicrosoftSettings } -func (o *StepUpProvider) GetStepUpOAuth2Settings() *StepUpOAuth2Settings { - if o == nil { +func (s *StepUpProvider) GetStepUpOAuth2Settings() *StepUpOAuth2Settings { + if s == nil { return nil } - return o.StepUpOAuth2Settings + return s.StepUpOAuth2Settings } -func (o *StepUpProvider) GetClientID() *string { - if o == nil { +func (s *StepUpProvider) GetClientID() *string { + if s == nil { return nil } - return o.ClientID + return s.ClientID } -func (o *StepUpProvider) GetCreatedAt() *time.Time { - if o == nil { +func (s *StepUpProvider) GetCreatedAt() *time.Time { + if s == nil { return nil } - return o.CreatedAt + return s.CreatedAt } -func (o *StepUpProvider) GetDisplayName() *string { - if o == nil { +func (s *StepUpProvider) GetDisplayName() *string { + if s == nil { return nil } - return o.DisplayName + return s.DisplayName } -func (o *StepUpProvider) GetEnabled() *bool { - if o == nil { +func (s *StepUpProvider) GetEnabled() *bool { + if s == nil { return nil } - return o.Enabled + return s.Enabled } -func (o *StepUpProvider) GetID() *string { - if o == nil { +func (s *StepUpProvider) GetID() *string { + if s == nil { return nil } - return o.ID + return s.ID } -func (o *StepUpProvider) GetIssuerURL() *string { - if o == nil { +func (s *StepUpProvider) GetIssuerURL() *string { + if s == nil { return nil } - return o.IssuerURL + return s.IssuerURL } -func (o *StepUpProvider) GetLastTestedAt() *time.Time { - if o == nil { +func (s *StepUpProvider) GetLastTestedAt() *time.Time { + if s == nil { return nil } - return o.LastTestedAt + return s.LastTestedAt } -func (o *StepUpProvider) GetUpdatedAt() *time.Time { - if o == nil { +func (s *StepUpProvider) GetUpdatedAt() *time.Time { + if s == nil { return nil } - return o.UpdatedAt + return s.UpdatedAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupproviderinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupproviderinput.go index b8707327..51058639 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupproviderinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupproviderinput.go @@ -30,44 +30,44 @@ type StepUpProviderInput struct { IssuerURL *string `json:"issuerUrl,omitempty"` } -func (o *StepUpProviderInput) GetStepUpMicrosoftSettings() *StepUpMicrosoftSettings { - if o == nil { +func (s *StepUpProviderInput) GetStepUpMicrosoftSettings() *StepUpMicrosoftSettings { + if s == nil { return nil } - return o.StepUpMicrosoftSettings + return s.StepUpMicrosoftSettings } -func (o *StepUpProviderInput) GetStepUpOAuth2Settings() *StepUpOAuth2Settings { - if o == nil { +func (s *StepUpProviderInput) GetStepUpOAuth2Settings() *StepUpOAuth2Settings { + if s == nil { return nil } - return o.StepUpOAuth2Settings + return s.StepUpOAuth2Settings } -func (o *StepUpProviderInput) GetClientID() *string { - if o == nil { +func (s *StepUpProviderInput) GetClientID() *string { + if s == nil { return nil } - return o.ClientID + return s.ClientID } -func (o *StepUpProviderInput) GetDisplayName() *string { - if o == nil { +func (s *StepUpProviderInput) GetDisplayName() *string { + if s == nil { return nil } - return o.DisplayName + return s.DisplayName } -func (o *StepUpProviderInput) GetEnabled() *bool { - if o == nil { +func (s *StepUpProviderInput) GetEnabled() *bool { + if s == nil { return nil } - return o.Enabled + return s.Enabled } -func (o *StepUpProviderInput) GetIssuerURL() *string { - if o == nil { +func (s *StepUpProviderInput) GetIssuerURL() *string { + if s == nil { return nil } - return o.IssuerURL + return s.IssuerURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupproviderref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupproviderref.go index 79d81322..873191b0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupproviderref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepupproviderref.go @@ -8,9 +8,9 @@ type StepUpProviderRef struct { ID *string `json:"id,omitempty"` } -func (o *StepUpProviderRef) GetID() *string { - if o == nil { +func (s *StepUpProviderRef) GetID() *string { + if s == nil { return nil } - return o.ID + return s.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepuptransaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepuptransaction.go index 8f94e6e4..63d8d98f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepuptransaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stepuptransaction.go @@ -21,6 +21,17 @@ func (e StepUpTransactionState) ToPointer() *StepUpTransactionState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *StepUpTransactionState) IsExact() bool { + if e != nil { + switch *e { + case "STEP_UP_TRANSACTION_STATE_UNSPECIFIED", "STEP_UP_TRANSACTION_STATE_PENDING", "STEP_UP_TRANSACTION_STATE_VERIFIED", "STEP_UP_TRANSACTION_STATE_ERROR": + return true + } + } + return false +} + // StepUpTransaction represents a record of a step-up authentication attempt // // This message contains a oneof named target. Only a single field of the following list may be set at a time: @@ -52,85 +63,85 @@ func (s StepUpTransaction) MarshalJSON() ([]byte, error) { } func (s *StepUpTransaction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *StepUpTransaction) GetTargetTask() *TargetTask { - if o == nil { +func (s *StepUpTransaction) GetTargetTask() *TargetTask { + if s == nil { return nil } - return o.TargetTask + return s.TargetTask } -func (o *StepUpTransaction) GetTargetTest() *TargetTest { - if o == nil { +func (s *StepUpTransaction) GetTargetTest() *TargetTest { + if s == nil { return nil } - return o.TargetTest + return s.TargetTest } -func (o *StepUpTransaction) GetClaims() map[string]any { - if o == nil { +func (s *StepUpTransaction) GetClaims() map[string]any { + if s == nil { return nil } - return o.Claims + return s.Claims } -func (o *StepUpTransaction) GetCreatedAt() *time.Time { - if o == nil { +func (s *StepUpTransaction) GetCreatedAt() *time.Time { + if s == nil { return nil } - return o.CreatedAt + return s.CreatedAt } -func (o *StepUpTransaction) GetErrorMessage() *string { - if o == nil { +func (s *StepUpTransaction) GetErrorMessage() *string { + if s == nil { return nil } - return o.ErrorMessage + return s.ErrorMessage } -func (o *StepUpTransaction) GetExpiresAt() *time.Time { - if o == nil { +func (s *StepUpTransaction) GetExpiresAt() *time.Time { + if s == nil { return nil } - return o.ExpiresAt + return s.ExpiresAt } -func (o *StepUpTransaction) GetID() *string { - if o == nil { +func (s *StepUpTransaction) GetID() *string { + if s == nil { return nil } - return o.ID + return s.ID } -func (o *StepUpTransaction) GetProviderID() *string { - if o == nil { +func (s *StepUpTransaction) GetProviderID() *string { + if s == nil { return nil } - return o.ProviderID + return s.ProviderID } -func (o *StepUpTransaction) GetState() *StepUpTransactionState { - if o == nil { +func (s *StepUpTransaction) GetState() *StepUpTransactionState { + if s == nil { return nil } - return o.State + return s.State } -func (o *StepUpTransaction) GetUpdatedAt() *time.Time { - if o == nil { +func (s *StepUpTransaction) GetUpdatedAt() *time.Time { + if s == nil { return nil } - return o.UpdatedAt + return s.UpdatedAt } -func (o *StepUpTransaction) GetUserID() *string { - if o == nil { +func (s *StepUpTransaction) GetUserID() *string { + if s == nil { return nil } - return o.UserID + return s.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringfield.go index e0a95422..defa0d79 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringfield.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringfield.go @@ -7,12 +7,23 @@ package shared // This message contains a oneof named view. Only a single field of the following list may be set at a time: // - textField // - passwordField +// - selectField +// - pickerField // // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: // - rules type StringField struct { // The PasswordField message. PasswordField *PasswordField `json:"passwordField,omitempty"` + // The PickerField message. + // + // This message contains a oneof named type. Only a single field of the following list may be set at a time: + // - appUserPicker + // - resourcePicker + // + PickerField *PickerField `json:"pickerField,omitempty"` + // The SelectField message. + SelectField *SelectField `json:"selectField,omitempty"` // StringRules describe the constraints applied to `string` values // // This message contains a oneof named well_known. Only a single field of the following list may be set at a time: @@ -36,37 +47,51 @@ type StringField struct { Placeholder *string `json:"placeholder,omitempty"` } -func (o *StringField) GetPasswordField() *PasswordField { - if o == nil { +func (s *StringField) GetPasswordField() *PasswordField { + if s == nil { + return nil + } + return s.PasswordField +} + +func (s *StringField) GetPickerField() *PickerField { + if s == nil { + return nil + } + return s.PickerField +} + +func (s *StringField) GetSelectField() *SelectField { + if s == nil { return nil } - return o.PasswordField + return s.SelectField } -func (o *StringField) GetStringRules() *StringRules { - if o == nil { +func (s *StringField) GetStringRules() *StringRules { + if s == nil { return nil } - return o.StringRules + return s.StringRules } -func (o *StringField) GetTextField() *TextField { - if o == nil { +func (s *StringField) GetTextField() *TextField { + if s == nil { return nil } - return o.TextField + return s.TextField } -func (o *StringField) GetDefaultValue() *string { - if o == nil { +func (s *StringField) GetDefaultValue() *string { + if s == nil { return nil } - return o.DefaultValue + return s.DefaultValue } -func (o *StringField) GetPlaceholder() *string { - if o == nil { +func (s *StringField) GetPlaceholder() *string { + if s == nil { return nil } - return o.Placeholder + return s.Placeholder } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringlistfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringlistfield.go new file mode 100644 index 00000000..1ffae11d --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringlistfield.go @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The StringListField message. +type StringListField struct { + // StringRules describe the constraints applied to `string` values + // + // This message contains a oneof named well_known. Only a single field of the following list may be set at a time: + // - email + // - hostname + // - ip + // - ipv4 + // - ipv6 + // - uri + // - uriRef + // - address + // - uuid + // - wellKnownRegex + // + StringRules *StringRules `json:"valueValidator,omitempty"` +} + +func (s *StringListField) GetStringRules() *StringRules { + if s == nil { + return nil + } + return s.StringRules +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringmapfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringmapfield.go new file mode 100644 index 00000000..b492257c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringmapfield.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The StringMapField message. +type StringMapField struct { + // The optional field. + Optional *bool `json:"optional,omitempty"` +} + +func (s *StringMapField) GetOptional() *bool { + if s == nil { + return nil + } + return s.Optional +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringrules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringrules.go index 2016b8a2..936c90c3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringrules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringrules.go @@ -17,6 +17,17 @@ func (e WellKnownRegex) ToPointer() *WellKnownRegex { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *WellKnownRegex) IsExact() bool { + if e != nil { + switch *e { + case "UNKNOWN", "HTTP_HEADER_NAME", "HTTP_HEADER_VALUE": + return true + } + } + return false +} + // StringRules describe the constraints applied to `string` values // // This message contains a oneof named well_known. Only a single field of the following list may be set at a time: @@ -137,184 +148,184 @@ type StringRules struct { WellKnownRegex *WellKnownRegex `json:"wellKnownRegex,omitempty"` } -func (o *StringRules) GetAddress() *bool { - if o == nil { +func (s *StringRules) GetAddress() *bool { + if s == nil { return nil } - return o.Address + return s.Address } -func (o *StringRules) GetConst() *string { - if o == nil { +func (s *StringRules) GetConst() *string { + if s == nil { return nil } - return o.Const + return s.Const } -func (o *StringRules) GetContains() *string { - if o == nil { +func (s *StringRules) GetContains() *string { + if s == nil { return nil } - return o.Contains + return s.Contains } -func (o *StringRules) GetEmail() *bool { - if o == nil { +func (s *StringRules) GetEmail() *bool { + if s == nil { return nil } - return o.Email + return s.Email } -func (o *StringRules) GetHostname() *bool { - if o == nil { +func (s *StringRules) GetHostname() *bool { + if s == nil { return nil } - return o.Hostname + return s.Hostname } -func (o *StringRules) GetIgnoreEmpty() *bool { - if o == nil { +func (s *StringRules) GetIgnoreEmpty() *bool { + if s == nil { return nil } - return o.IgnoreEmpty + return s.IgnoreEmpty } -func (o *StringRules) GetIn() []string { - if o == nil { +func (s *StringRules) GetIn() []string { + if s == nil { return nil } - return o.In + return s.In } -func (o *StringRules) GetIP() *bool { - if o == nil { +func (s *StringRules) GetIP() *bool { + if s == nil { return nil } - return o.IP + return s.IP } -func (o *StringRules) GetIpv4() *bool { - if o == nil { +func (s *StringRules) GetIpv4() *bool { + if s == nil { return nil } - return o.Ipv4 + return s.Ipv4 } -func (o *StringRules) GetIpv6() *bool { - if o == nil { +func (s *StringRules) GetIpv6() *bool { + if s == nil { return nil } - return o.Ipv6 + return s.Ipv6 } -func (o *StringRules) GetLen() *string { - if o == nil { +func (s *StringRules) GetLen() *string { + if s == nil { return nil } - return o.Len + return s.Len } -func (o *StringRules) GetLenBytes() *string { - if o == nil { +func (s *StringRules) GetLenBytes() *string { + if s == nil { return nil } - return o.LenBytes + return s.LenBytes } -func (o *StringRules) GetMaxBytes() *string { - if o == nil { +func (s *StringRules) GetMaxBytes() *string { + if s == nil { return nil } - return o.MaxBytes + return s.MaxBytes } -func (o *StringRules) GetMaxLen() *string { - if o == nil { +func (s *StringRules) GetMaxLen() *string { + if s == nil { return nil } - return o.MaxLen + return s.MaxLen } -func (o *StringRules) GetMinBytes() *string { - if o == nil { +func (s *StringRules) GetMinBytes() *string { + if s == nil { return nil } - return o.MinBytes + return s.MinBytes } -func (o *StringRules) GetMinLen() *string { - if o == nil { +func (s *StringRules) GetMinLen() *string { + if s == nil { return nil } - return o.MinLen + return s.MinLen } -func (o *StringRules) GetNotContains() *string { - if o == nil { +func (s *StringRules) GetNotContains() *string { + if s == nil { return nil } - return o.NotContains + return s.NotContains } -func (o *StringRules) GetNotIn() []string { - if o == nil { +func (s *StringRules) GetNotIn() []string { + if s == nil { return nil } - return o.NotIn + return s.NotIn } -func (o *StringRules) GetPattern() *string { - if o == nil { +func (s *StringRules) GetPattern() *string { + if s == nil { return nil } - return o.Pattern + return s.Pattern } -func (o *StringRules) GetPrefix() *string { - if o == nil { +func (s *StringRules) GetPrefix() *string { + if s == nil { return nil } - return o.Prefix + return s.Prefix } -func (o *StringRules) GetStrict() *bool { - if o == nil { +func (s *StringRules) GetStrict() *bool { + if s == nil { return nil } - return o.Strict + return s.Strict } -func (o *StringRules) GetSuffix() *string { - if o == nil { +func (s *StringRules) GetSuffix() *string { + if s == nil { return nil } - return o.Suffix + return s.Suffix } -func (o *StringRules) GetURI() *bool { - if o == nil { +func (s *StringRules) GetURI() *bool { + if s == nil { return nil } - return o.URI + return s.URI } -func (o *StringRules) GetURIRef() *bool { - if o == nil { +func (s *StringRules) GetURIRef() *bool { + if s == nil { return nil } - return o.URIRef + return s.URIRef } -func (o *StringRules) GetUUID() *bool { - if o == nil { +func (s *StringRules) GetUUID() *bool { + if s == nil { return nil } - return o.UUID + return s.UUID } -func (o *StringRules) GetWellKnownRegex() *WellKnownRegex { - if o == nil { +func (s *StringRules) GetWellKnownRegex() *WellKnownRegex { + if s == nil { return nil } - return o.WellKnownRegex + return s.WellKnownRegex } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringslicefield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringslicefield.go index 4fe5a0c1..ceb8afad 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringslicefield.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/stringslicefield.go @@ -6,12 +6,20 @@ package shared // // This message contains a oneof named view. Only a single field of the following list may be set at a time: // - chipsField +// - pickerField // // This message contains a oneof named _rules. Only a single field of the following list may be set at a time: // - rules type StringSliceField struct { // The ChipsField message. ChipsField *ChipsField `json:"chipsField,omitempty"` + // The PickerField message. + // + // This message contains a oneof named type. Only a single field of the following list may be set at a time: + // - appUserPicker + // - resourcePicker + // + PickerField *PickerField `json:"pickerField,omitempty"` // RepeatedRules describe the constraints applied to `repeated` values RepeatedRules *RepeatedRules `json:"rules,omitempty"` // The defaultValues field. @@ -20,30 +28,37 @@ type StringSliceField struct { Placeholder *string `json:"placeholder,omitempty"` } -func (o *StringSliceField) GetChipsField() *ChipsField { - if o == nil { +func (s *StringSliceField) GetChipsField() *ChipsField { + if s == nil { return nil } - return o.ChipsField + return s.ChipsField } -func (o *StringSliceField) GetRepeatedRules() *RepeatedRules { - if o == nil { +func (s *StringSliceField) GetPickerField() *PickerField { + if s == nil { return nil } - return o.RepeatedRules + return s.PickerField } -func (o *StringSliceField) GetDefaultValues() []string { - if o == nil { +func (s *StringSliceField) GetRepeatedRules() *RepeatedRules { + if s == nil { return nil } - return o.DefaultValues + return s.RepeatedRules } -func (o *StringSliceField) GetPlaceholder() *string { - if o == nil { +func (s *StringSliceField) GetDefaultValues() []string { + if s == nil { return nil } - return o.Placeholder + return s.DefaultValues +} + +func (s *StringSliceField) GetPlaceholder() *string { + if s == nil { + return nil + } + return s.Placeholder } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/syncconfig.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/syncconfig.go new file mode 100644 index 00000000..9f8ac555 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/syncconfig.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The SyncConfig message. +type SyncConfig struct { + // The syncResourceTypeIds field. + SyncResourceTypeIds []string `json:"syncResourceTypeIds,omitempty"` +} + +func (s *SyncConfig) GetSyncResourceTypeIds() []string { + if s == nil { + return nil + } + return s.SyncResourceTypeIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/systemlogservicelisteventsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/systemlogservicelisteventsrequest.go index 35ed1cb9..d00f62f8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/systemlogservicelisteventsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/systemlogservicelisteventsrequest.go @@ -20,6 +20,17 @@ func (e SortDirection) ToPointer() *SortDirection { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *SortDirection) IsExact() bool { + if e != nil { + switch *e { + case "SORT_DIRECTION_UNSPECIFIED", "SORT_DIRECTION_ASC", "SORT_DIRECTION_DESC": + return true + } + } + return false +} + // The SystemLogServiceListEventsRequest message. type SystemLogServiceListEventsRequest struct { // The pageSize field. @@ -39,50 +50,50 @@ func (s SystemLogServiceListEventsRequest) MarshalJSON() ([]byte, error) { } func (s *SystemLogServiceListEventsRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { return err } return nil } -func (o *SystemLogServiceListEventsRequest) GetPageSize() *int { - if o == nil { +func (s *SystemLogServiceListEventsRequest) GetPageSize() *int { + if s == nil { return nil } - return o.PageSize + return s.PageSize } -func (o *SystemLogServiceListEventsRequest) GetPageToken() *string { - if o == nil { +func (s *SystemLogServiceListEventsRequest) GetPageToken() *string { + if s == nil { return nil } - return o.PageToken + return s.PageToken } -func (o *SystemLogServiceListEventsRequest) GetSince() *time.Time { - if o == nil { +func (s *SystemLogServiceListEventsRequest) GetSince() *time.Time { + if s == nil { return nil } - return o.Since + return s.Since } -func (o *SystemLogServiceListEventsRequest) GetSinceEventUID() *string { - if o == nil { +func (s *SystemLogServiceListEventsRequest) GetSinceEventUID() *string { + if s == nil { return nil } - return o.SinceEventUID + return s.SinceEventUID } -func (o *SystemLogServiceListEventsRequest) GetSortDirection() *SortDirection { - if o == nil { +func (s *SystemLogServiceListEventsRequest) GetSortDirection() *SortDirection { + if s == nil { return nil } - return o.SortDirection + return s.SortDirection } -func (o *SystemLogServiceListEventsRequest) GetUntil() *time.Time { - if o == nil { +func (s *SystemLogServiceListEventsRequest) GetUntil() *time.Time { + if s == nil { return nil } - return o.Until + return s.Until } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/systemlogservicelisteventsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/systemlogservicelisteventsresponse.go index ef7c3dfd..d8f45784 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/systemlogservicelisteventsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/systemlogservicelisteventsresponse.go @@ -10,16 +10,16 @@ type SystemLogServiceListEventsResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *SystemLogServiceListEventsResponse) GetList() []map[string]any { - if o == nil { +func (s *SystemLogServiceListEventsResponse) GetList() []map[string]any { + if s == nil { return nil } - return o.List + return s.List } -func (o *SystemLogServiceListEventsResponse) GetNextPageToken() *string { - if o == nil { +func (s *SystemLogServiceListEventsResponse) GetNextPageToken() *string { + if s == nil { return nil } - return o.NextPageToken + return s.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/targettask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/targettask.go index df8458f8..4a917d28 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/targettask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/targettask.go @@ -10,16 +10,16 @@ type TargetTask struct { TaskID *string `json:"taskId,omitempty"` } -func (o *TargetTask) GetPolicyStepID() *string { - if o == nil { +func (t *TargetTask) GetPolicyStepID() *string { + if t == nil { return nil } - return o.PolicyStepID + return t.PolicyStepID } -func (o *TargetTask) GetTaskID() *string { - if o == nil { +func (t *TargetTask) GetTaskID() *string { + if t == nil { return nil } - return o.TaskID + return t.TaskID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/task.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/task.go index 53e4186c..867cb78c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/task.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/task.go @@ -43,6 +43,17 @@ func (e Actions) ToPointer() *Actions { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Actions) IsExact() bool { + if e != nil { + switch *e { + case "TASK_ACTION_TYPE_UNSPECIFIED", "TASK_ACTION_TYPE_CLOSE", "TASK_ACTION_TYPE_APPROVE", "TASK_ACTION_TYPE_DENY", "TASK_ACTION_TYPE_COMMENT", "TASK_ACTION_TYPE_DELETE", "TASK_ACTION_TYPE_REASSIGN", "TASK_ACTION_TYPE_RESTART", "TASK_ACTION_TYPE_SEND_REMINDER", "TASK_ACTION_TYPE_PROVISION_COMPLETE", "TASK_ACTION_TYPE_PROVISION_CANCELLED", "TASK_ACTION_TYPE_PROVISION_ERRORED", "TASK_ACTION_TYPE_ROLLBACK_SKIPPED", "TASK_ACTION_TYPE_PROVISION_APP_USER_TARGET_CREATED", "TASK_ACTION_TYPE_HARD_RESET", "TASK_ACTION_TYPE_ESCALATE_TO_EMERGENCY_ACCESS", "TASK_ACTION_TYPE_CHANGE_POLICY", "TASK_ACTION_TYPE_RECALCULATE_DENIAL_FROM_BASE_POLICY_DECISIONS", "TASK_ACTION_TYPE_SET_INSIGHTS_AND_RECOMMENDATION", "TASK_ACTION_TYPE_SET_ANALYSIS_ID", "TASK_ACTION_TYPE_RECALCULATE_APPROVERS_LIST", "TASK_ACTION_TYPE_PROCESS_NOW", "TASK_ACTION_TYPE_APPROVE_WITH_STEP_UP", "TASK_ACTION_TYPE_SKIP_STEP", "TASK_ACTION_TYPE_ROLLBACK_CANCELLED", "TASK_ACTION_TYPE_UPDATE_REQUEST_DATA", "TASK_ACTION_TYPE_UPDATE_GRANT_DURATION": + return true + } + } + return false +} + // Annotations - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. type Annotations struct { // The type of the serialized message. @@ -55,24 +66,24 @@ func (a Annotations) MarshalJSON() ([]byte, error) { } func (a *Annotations) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { return err } return nil } -func (o *Annotations) GetAtType() *string { - if o == nil { +func (a *Annotations) GetAtType() *string { + if a == nil { return nil } - return o.AtType + return a.AtType } -func (o *Annotations) GetAdditionalProperties() map[string]any { - if o == nil { +func (a *Annotations) GetAdditionalProperties() map[string]any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } // Origin - The origin field. @@ -98,6 +109,17 @@ func (e Origin) ToPointer() *Origin { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Origin) IsExact() bool { + if e != nil { + switch *e { + case "TASK_ORIGIN_UNSPECIFIED", "TASK_ORIGIN_PROFILE_MEMBERSHIP_AUTOMATION", "TASK_ORIGIN_SLACK", "TASK_ORIGIN_API", "TASK_ORIGIN_JIRA", "TASK_ORIGIN_COPILOT", "TASK_ORIGIN_WEBAPP", "TASK_ORIGIN_TIME_REVOKE", "TASK_ORIGIN_NON_USAGE_REVOKE", "TASK_ORIGIN_PROFILE_MEMBERSHIP_MANUAL", "TASK_ORIGIN_PROFILE_MEMBERSHIP", "TASK_ORIGIN_AUTOMATION", "TASK_ORIGIN_ACCESS_REVIEW": + return true + } + } + return false +} + // Processing - The processing state of a task as defined by the `processing_enum` type Processing string @@ -112,6 +134,17 @@ func (e Processing) ToPointer() *Processing { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Processing) IsExact() bool { + if e != nil { + switch *e { + case "TASK_PROCESSING_TYPE_UNSPECIFIED", "TASK_PROCESSING_TYPE_PROCESSING", "TASK_PROCESSING_TYPE_WAITING", "TASK_PROCESSING_TYPE_DONE": + return true + } + } + return false +} + // Recommendation - The recommendation field. type Recommendation string @@ -126,6 +159,17 @@ func (e Recommendation) ToPointer() *Recommendation { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Recommendation) IsExact() bool { + if e != nil { + switch *e { + case "INSIGHT_RECOMMENDATION_UNSPECIFIED", "INSIGHT_RECOMMENDATION_APPROVE", "INSIGHT_RECOMMENDATION_DENY", "INSIGHT_RECOMMENDATION_REVIEW": + return true + } + } + return false +} + // TaskState - The current state of the task as defined by the `state_enum` type TaskState string @@ -139,6 +183,17 @@ func (e TaskState) ToPointer() *TaskState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskState) IsExact() bool { + if e != nil { + switch *e { + case "TASK_STATE_UNSPECIFIED", "TASK_STATE_OPEN", "TASK_STATE_CLOSED": + return true + } + } + return false +} + // Task - A fully-fleged task object. Includes its policy, references to external apps, its type, its processing history, and more. type Task struct { // A form is a collection of fields to be filled out by a user @@ -152,6 +207,7 @@ type Task struct { // - revoke // - certify // - offboarding + // - action // TaskType *TaskType `json:"type,omitempty"` // The actions that can be performed on the task by the current user. @@ -203,190 +259,190 @@ func (t Task) MarshalJSON() ([]byte, error) { } func (t *Task) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *Task) GetForm() *FormInput { - if o == nil { +func (t *Task) GetForm() *FormInput { + if t == nil { return nil } - return o.Form + return t.Form } -func (o *Task) GetPolicyInstance() *PolicyInstance { - if o == nil { +func (t *Task) GetPolicyInstance() *PolicyInstance { + if t == nil { return nil } - return o.PolicyInstance + return t.PolicyInstance } -func (o *Task) GetTaskType() *TaskType { - if o == nil { +func (t *Task) GetTaskType() *TaskType { + if t == nil { return nil } - return o.TaskType + return t.TaskType } -func (o *Task) GetActions() []Actions { - if o == nil { +func (t *Task) GetActions() []Actions { + if t == nil { return nil } - return o.Actions + return t.Actions } -func (o *Task) GetAnalysisID() *string { - if o == nil { +func (t *Task) GetAnalysisID() *string { + if t == nil { return nil } - return o.AnalysisID + return t.AnalysisID } -func (o *Task) GetAnnotations() []Annotations { - if o == nil { +func (t *Task) GetAnnotations() []Annotations { + if t == nil { return nil } - return o.Annotations + return t.Annotations } -func (o *Task) GetCommentCount() *int { - if o == nil { +func (t *Task) GetCommentCount() *int { + if t == nil { return nil } - return o.CommentCount + return t.CommentCount } -func (o *Task) GetCreatedAt() *time.Time { - if o == nil { +func (t *Task) GetCreatedAt() *time.Time { + if t == nil { return nil } - return o.CreatedAt + return t.CreatedAt } -func (o *Task) GetCreatedByUserID() *string { - if o == nil { +func (t *Task) GetCreatedByUserID() *string { + if t == nil { return nil } - return o.CreatedByUserID + return t.CreatedByUserID } -func (o *Task) GetData() map[string]any { - if o == nil { +func (t *Task) GetData() map[string]any { + if t == nil { return nil } - return o.Data + return t.Data } -func (o *Task) GetDeletedAt() *time.Time { - if o == nil { +func (t *Task) GetDeletedAt() *time.Time { + if t == nil { return nil } - return o.DeletedAt + return t.DeletedAt } -func (o *Task) GetDescription() *string { - if o == nil { +func (t *Task) GetDescription() *string { + if t == nil { return nil } - return o.Description + return t.Description } -func (o *Task) GetDisplayName() *string { - if o == nil { +func (t *Task) GetDisplayName() *string { + if t == nil { return nil } - return o.DisplayName + return t.DisplayName } -func (o *Task) GetEmergencyAccess() *bool { - if o == nil { +func (t *Task) GetEmergencyAccess() *bool { + if t == nil { return nil } - return o.EmergencyAccess + return t.EmergencyAccess } -func (o *Task) GetExternalRefs() []ExternalRef { - if o == nil { +func (t *Task) GetExternalRefs() []ExternalRef { + if t == nil { return nil } - return o.ExternalRefs + return t.ExternalRefs } -func (o *Task) GetID() *string { - if o == nil { +func (t *Task) GetID() *string { + if t == nil { return nil } - return o.ID + return t.ID } -func (o *Task) GetInsightIds() []string { - if o == nil { +func (t *Task) GetInsightIds() []string { + if t == nil { return nil } - return o.InsightIds + return t.InsightIds } -func (o *Task) GetNumericID() *int64 { - if o == nil { +func (t *Task) GetNumericID() *int64 { + if t == nil { return nil } - return o.NumericID + return t.NumericID } -func (o *Task) GetOrigin() *Origin { - if o == nil { +func (t *Task) GetOrigin() *Origin { + if t == nil { return nil } - return o.Origin + return t.Origin } -func (o *Task) GetPolicyGenerationID() *string { - if o == nil { +func (t *Task) GetPolicyGenerationID() *string { + if t == nil { return nil } - return o.PolicyGenerationID + return t.PolicyGenerationID } -func (o *Task) GetProcessing() *Processing { - if o == nil { +func (t *Task) GetProcessing() *Processing { + if t == nil { return nil } - return o.Processing + return t.Processing } -func (o *Task) GetRecommendation() *Recommendation { - if o == nil { +func (t *Task) GetRecommendation() *Recommendation { + if t == nil { return nil } - return o.Recommendation + return t.Recommendation } -func (o *Task) GetState() *TaskState { - if o == nil { +func (t *Task) GetState() *TaskState { + if t == nil { return nil } - return o.State + return t.State } -func (o *Task) GetStepApproverIds() []string { - if o == nil { +func (t *Task) GetStepApproverIds() []string { + if t == nil { return nil } - return o.StepApproverIds + return t.StepApproverIds } -func (o *Task) GetUpdatedAt() *time.Time { - if o == nil { +func (t *Task) GetUpdatedAt() *time.Time { + if t == nil { return nil } - return o.UpdatedAt + return t.UpdatedAt } -func (o *Task) GetUserID() *string { - if o == nil { +func (t *Task) GetUserID() *string { + if t == nil { return nil } - return o.UserID + return t.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaction.go index 2798ffa7..a6fad0e7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaction.go @@ -15,6 +15,41 @@ func (e TaskTypes) ToPointer() *TaskTypes { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskTypes) IsExact() bool { + if e != nil { + switch *e { + case "TASK_TYPE_UNSPECIFIED", "TASK_TYPE_REQUEST", "TASK_TYPE_REVOKE", "TASK_TYPE_REVIEW": + return true + } + } + return false +} + +// TaskUserRelation - The taskUserRelation field. +type TaskUserRelation string + +const ( + TaskUserRelationTaskUserRelationUnspecified TaskUserRelation = "TASK_USER_RELATION_UNSPECIFIED" + TaskUserRelationTaskUserRelationAssignee TaskUserRelation = "TASK_USER_RELATION_ASSIGNEE" + TaskUserRelationTaskUserRelationSubject TaskUserRelation = "TASK_USER_RELATION_SUBJECT" +) + +func (e TaskUserRelation) ToPointer() *TaskUserRelation { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskUserRelation) IsExact() bool { + if e != nil { + switch *e { + case "TASK_USER_RELATION_UNSPECIFIED", "TASK_USER_RELATION_ASSIGNEE", "TASK_USER_RELATION_SUBJECT": + return true + } + } + return false +} + // The TaskAction message. // // This message contains a oneof named action. Only a single field of the following list may be set at a time: @@ -42,25 +77,34 @@ type TaskAction struct { ReassignAction *ReassignAction `json:"reassign,omitempty"` // The taskTypes field. TaskTypes []TaskTypes `json:"taskTypes,omitempty"` + // The taskUserRelation field. + TaskUserRelation *TaskUserRelation `json:"taskUserRelation,omitempty"` +} + +func (t *TaskAction) GetCloseAction() *CloseAction { + if t == nil { + return nil + } + return t.CloseAction } -func (o *TaskAction) GetCloseAction() *CloseAction { - if o == nil { +func (t *TaskAction) GetReassignAction() *ReassignAction { + if t == nil { return nil } - return o.CloseAction + return t.ReassignAction } -func (o *TaskAction) GetReassignAction() *ReassignAction { - if o == nil { +func (t *TaskAction) GetTaskTypes() []TaskTypes { + if t == nil { return nil } - return o.ReassignAction + return t.TaskTypes } -func (o *TaskAction) GetTaskTypes() []TaskTypes { - if o == nil { +func (t *TaskAction) GetTaskUserRelation() *TaskUserRelation { + if t == nil { return nil } - return o.TaskTypes + return t.TaskUserRelation } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaction1.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaction1.go index 73b1db68..fc4a3de1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaction1.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaction1.go @@ -44,6 +44,17 @@ func (e ActionType) ToPointer() *ActionType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *ActionType) IsExact() bool { + if e != nil { + switch *e { + case "TASK_ACTION_TYPE_UNSPECIFIED", "TASK_ACTION_TYPE_CLOSE", "TASK_ACTION_TYPE_APPROVE", "TASK_ACTION_TYPE_DENY", "TASK_ACTION_TYPE_COMMENT", "TASK_ACTION_TYPE_DELETE", "TASK_ACTION_TYPE_REASSIGN", "TASK_ACTION_TYPE_RESTART", "TASK_ACTION_TYPE_SEND_REMINDER", "TASK_ACTION_TYPE_PROVISION_COMPLETE", "TASK_ACTION_TYPE_PROVISION_CANCELLED", "TASK_ACTION_TYPE_PROVISION_ERRORED", "TASK_ACTION_TYPE_ROLLBACK_SKIPPED", "TASK_ACTION_TYPE_PROVISION_APP_USER_TARGET_CREATED", "TASK_ACTION_TYPE_HARD_RESET", "TASK_ACTION_TYPE_ESCALATE_TO_EMERGENCY_ACCESS", "TASK_ACTION_TYPE_CHANGE_POLICY", "TASK_ACTION_TYPE_RECALCULATE_DENIAL_FROM_BASE_POLICY_DECISIONS", "TASK_ACTION_TYPE_SET_INSIGHTS_AND_RECOMMENDATION", "TASK_ACTION_TYPE_SET_ANALYSIS_ID", "TASK_ACTION_TYPE_RECALCULATE_APPROVERS_LIST", "TASK_ACTION_TYPE_PROCESS_NOW", "TASK_ACTION_TYPE_APPROVE_WITH_STEP_UP", "TASK_ACTION_TYPE_SKIP_STEP", "TASK_ACTION_TYPE_ROLLBACK_CANCELLED", "TASK_ACTION_TYPE_UPDATE_REQUEST_DATA", "TASK_ACTION_TYPE_UPDATE_GRANT_DURATION": + return true + } + } + return false +} + // TaskAction1 - The TaskAction message. type TaskAction1 struct { // The actionType field. @@ -66,64 +77,64 @@ func (t TaskAction1) MarshalJSON() ([]byte, error) { } func (t *TaskAction1) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskAction1) GetActionType() *ActionType { - if o == nil { +func (t *TaskAction1) GetActionType() *ActionType { + if t == nil { return nil } - return o.ActionType + return t.ActionType } -func (o *TaskAction1) GetBulkActionID() *string { - if o == nil { +func (t *TaskAction1) GetBulkActionID() *string { + if t == nil { return nil } - return o.BulkActionID + return t.BulkActionID } -func (o *TaskAction1) GetCreatedAt() *time.Time { - if o == nil { +func (t *TaskAction1) GetCreatedAt() *time.Time { + if t == nil { return nil } - return o.CreatedAt + return t.CreatedAt } -func (o *TaskAction1) GetDeletedAt() *time.Time { - if o == nil { +func (t *TaskAction1) GetDeletedAt() *time.Time { + if t == nil { return nil } - return o.DeletedAt + return t.DeletedAt } -func (o *TaskAction1) GetID() *string { - if o == nil { +func (t *TaskAction1) GetID() *string { + if t == nil { return nil } - return o.ID + return t.ID } -func (o *TaskAction1) GetPolicyStepID() *string { - if o == nil { +func (t *TaskAction1) GetPolicyStepID() *string { + if t == nil { return nil } - return o.PolicyStepID + return t.PolicyStepID } -func (o *TaskAction1) GetUpdatedAt() *time.Time { - if o == nil { +func (t *TaskAction1) GetUpdatedAt() *time.Time { + if t == nil { return nil } - return o.UpdatedAt + return t.UpdatedAt } -func (o *TaskAction1) GetUserID() *string { - if o == nil { +func (t *TaskAction1) GetUserID() *string { + if t == nil { return nil } - return o.UserID + return t.UserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapproverequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapproverequest.go index 46ed4ea8..516689b0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapproverequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapproverequest.go @@ -12,23 +12,23 @@ type TaskActionsServiceApproveRequest struct { PolicyStepID string `json:"policyStepId"` } -func (o *TaskActionsServiceApproveRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceApproveRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceApproveRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceApproveRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } -func (o *TaskActionsServiceApproveRequest) GetPolicyStepID() string { - if o == nil { +func (t *TaskActionsServiceApproveRequest) GetPolicyStepID() string { + if t == nil { return "" } - return o.PolicyStepID + return t.PolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapproveresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapproveresponse.go index 67227597..a2e79b52 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapproveresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapproveresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceApproveResponseExpanded) MarshalJSON() ([]byte, error) } func (t *TaskActionsServiceApproveResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceApproveResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceApproveResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceApproveResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceApproveResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskActionsServiceApproveResponse returns a task view with paths indicating the location of expanded items in the array. @@ -48,23 +48,23 @@ type TaskActionsServiceApproveResponse struct { TicketActionID *string `json:"ticketActionId,omitempty"` } -func (o *TaskActionsServiceApproveResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceApproveResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceApproveResponse) GetExpanded() []TaskActionsServiceApproveResponseExpanded { - if o == nil { +func (t *TaskActionsServiceApproveResponse) GetExpanded() []TaskActionsServiceApproveResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskActionsServiceApproveResponse) GetTicketActionID() *string { - if o == nil { +func (t *TaskActionsServiceApproveResponse) GetTicketActionID() *string { + if t == nil { return nil } - return o.TicketActionID + return t.TicketActionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapprovewithstepuprequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapprovewithstepuprequest.go index dc1cee2d..1ffdb43e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapprovewithstepuprequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapprovewithstepuprequest.go @@ -16,30 +16,30 @@ type TaskActionsServiceApproveWithStepUpRequest struct { StepUpTransactionID string `json:"stepUpTransactionId"` } -func (o *TaskActionsServiceApproveWithStepUpRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceApproveWithStepUpRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } -func (o *TaskActionsServiceApproveWithStepUpRequest) GetPolicyStepID() string { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpRequest) GetPolicyStepID() string { + if t == nil { return "" } - return o.PolicyStepID + return t.PolicyStepID } -func (o *TaskActionsServiceApproveWithStepUpRequest) GetStepUpTransactionID() string { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpRequest) GetStepUpTransactionID() string { + if t == nil { return "" } - return o.StepUpTransactionID + return t.StepUpTransactionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapprovewithstepupresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapprovewithstepupresponse.go index 61238385..e55fb0e8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapprovewithstepupresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceapprovewithstepupresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceApproveWithStepUpResponseExpanded) MarshalJSON() ([]by } func (t *TaskActionsServiceApproveWithStepUpResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceApproveWithStepUpResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceApproveWithStepUpResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // TaskActionsServiceApproveWithStepUpResponse is the response for approving a task with step-up authentication @@ -50,30 +50,30 @@ type TaskActionsServiceApproveWithStepUpResponse struct { TicketActionID *string `json:"ticketActionId,omitempty"` } -func (o *TaskActionsServiceApproveWithStepUpResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceApproveWithStepUpResponse) GetExpanded() []TaskActionsServiceApproveWithStepUpResponseExpanded { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpResponse) GetExpanded() []TaskActionsServiceApproveWithStepUpResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskActionsServiceApproveWithStepUpResponse) GetRedirectURL() *string { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpResponse) GetRedirectURL() *string { + if t == nil { return nil } - return o.RedirectURL + return t.RedirectURL } -func (o *TaskActionsServiceApproveWithStepUpResponse) GetTicketActionID() *string { - if o == nil { +func (t *TaskActionsServiceApproveWithStepUpResponse) GetTicketActionID() *string { + if t == nil { return nil } - return o.TicketActionID + return t.TicketActionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecloserequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecloserequest.go index 522a8460..f26907a1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecloserequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecloserequest.go @@ -10,16 +10,16 @@ type TaskActionsServiceCloseRequest struct { Comment *string `json:"comment,omitempty"` } -func (o *TaskActionsServiceCloseRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceCloseRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceCloseRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceCloseRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecloseresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecloseresponse.go index 7076b9fe..acb16bd1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecloseresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecloseresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceCloseResponseExpanded) MarshalJSON() ([]byte, error) { } func (t *TaskActionsServiceCloseResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceCloseResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceCloseResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceCloseResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceCloseResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskActionsServiceCloseResponse returns a task view with paths indicating the location of expanded items in the array. @@ -48,23 +48,23 @@ type TaskActionsServiceCloseResponse struct { TaskActionID *string `json:"taskActionId,omitempty"` } -func (o *TaskActionsServiceCloseResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceCloseResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceCloseResponse) GetExpanded() []TaskActionsServiceCloseResponseExpanded { - if o == nil { +func (t *TaskActionsServiceCloseResponse) GetExpanded() []TaskActionsServiceCloseResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskActionsServiceCloseResponse) GetTaskActionID() *string { - if o == nil { +func (t *TaskActionsServiceCloseResponse) GetTaskActionID() *string { + if t == nil { return nil } - return o.TaskActionID + return t.TaskActionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecommentrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecommentrequest.go index 21bd23e2..57a0e21b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecommentrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecommentrequest.go @@ -10,16 +10,16 @@ type TaskActionsServiceCommentRequest struct { Comment *string `json:"comment,omitempty"` } -func (o *TaskActionsServiceCommentRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceCommentRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceCommentRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceCommentRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecommentresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecommentresponse.go index 316ac32b..a3220ae8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecommentresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicecommentresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceCommentResponseExpanded) MarshalJSON() ([]byte, error) } func (t *TaskActionsServiceCommentResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceCommentResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceCommentResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceCommentResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceCommentResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // TaskActionsServiceCommentResponse - Task actions service comment response returns the task view inluding the expanded array of items that are indicated by the expand mask on the request. @@ -46,16 +46,16 @@ type TaskActionsServiceCommentResponse struct { Expanded []TaskActionsServiceCommentResponseExpanded `json:"expanded,omitempty"` } -func (o *TaskActionsServiceCommentResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceCommentResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceCommentResponse) GetExpanded() []TaskActionsServiceCommentResponseExpanded { - if o == nil { +func (t *TaskActionsServiceCommentResponse) GetExpanded() []TaskActionsServiceCommentResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicedenyrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicedenyrequest.go index 08f98621..50184223 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicedenyrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicedenyrequest.go @@ -12,23 +12,23 @@ type TaskActionsServiceDenyRequest struct { PolicyStepID *string `json:"policyStepId,omitempty"` } -func (o *TaskActionsServiceDenyRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceDenyRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceDenyRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceDenyRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } -func (o *TaskActionsServiceDenyRequest) GetPolicyStepID() *string { - if o == nil { +func (t *TaskActionsServiceDenyRequest) GetPolicyStepID() *string { + if t == nil { return nil } - return o.PolicyStepID + return t.PolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicedenyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicedenyresponse.go index 9be92eab..32f21a76 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicedenyresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicedenyresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceDenyResponseExpanded) MarshalJSON() ([]byte, error) { } func (t *TaskActionsServiceDenyResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceDenyResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceDenyResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceDenyResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceDenyResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskActionsServiceDenyResponse returns a task view with paths indicating the location of expanded items in the array. @@ -48,23 +48,23 @@ type TaskActionsServiceDenyResponse struct { TicketActionID *string `json:"ticketActionId,omitempty"` } -func (o *TaskActionsServiceDenyResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceDenyResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceDenyResponse) GetExpanded() []TaskActionsServiceDenyResponseExpanded { - if o == nil { +func (t *TaskActionsServiceDenyResponse) GetExpanded() []TaskActionsServiceDenyResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskActionsServiceDenyResponse) GetTicketActionID() *string { - if o == nil { +func (t *TaskActionsServiceDenyResponse) GetTicketActionID() *string { + if t == nil { return nil } - return o.TicketActionID + return t.TicketActionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceescalatetoemergencyaccessrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceescalatetoemergencyaccessrequest.go index 489847ed..278b1c1c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceescalatetoemergencyaccessrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceescalatetoemergencyaccessrequest.go @@ -12,23 +12,23 @@ type TaskActionsServiceEscalateToEmergencyAccessRequest struct { PolicyStepID *string `json:"policyStepId,omitempty"` } -func (o *TaskActionsServiceEscalateToEmergencyAccessRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceEscalateToEmergencyAccessRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceEscalateToEmergencyAccessRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceEscalateToEmergencyAccessRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } -func (o *TaskActionsServiceEscalateToEmergencyAccessRequest) GetPolicyStepID() *string { - if o == nil { +func (t *TaskActionsServiceEscalateToEmergencyAccessRequest) GetPolicyStepID() *string { + if t == nil { return nil } - return o.PolicyStepID + return t.PolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicehardresetrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicehardresetrequest.go index 6a1e9e0b..b32c3212 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicehardresetrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicehardresetrequest.go @@ -10,16 +10,16 @@ type TaskActionsServiceHardResetRequest struct { Comment *string `json:"comment,omitempty"` } -func (o *TaskActionsServiceHardResetRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceHardResetRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceHardResetRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceHardResetRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicehardresetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicehardresetresponse.go index 6968c2f7..caa391d2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicehardresetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicehardresetresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceHardResetResponseExpanded) MarshalJSON() ([]byte, erro } func (t *TaskActionsServiceHardResetResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceHardResetResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceHardResetResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceHardResetResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceHardResetResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskActionsServiceHardResetResponse message. @@ -48,23 +48,23 @@ type TaskActionsServiceHardResetResponse struct { TicketActionID *string `json:"ticketActionId,omitempty"` } -func (o *TaskActionsServiceHardResetResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceHardResetResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceHardResetResponse) GetExpanded() []TaskActionsServiceHardResetResponseExpanded { - if o == nil { +func (t *TaskActionsServiceHardResetResponse) GetExpanded() []TaskActionsServiceHardResetResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskActionsServiceHardResetResponse) GetTicketActionID() *string { - if o == nil { +func (t *TaskActionsServiceHardResetResponse) GetTicketActionID() *string { + if t == nil { return nil } - return o.TicketActionID + return t.TicketActionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceprocessnowrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceprocessnowrequest.go index 2c215ca8..b3084c7d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceprocessnowrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceprocessnowrequest.go @@ -8,9 +8,9 @@ type TaskActionsServiceProcessNowRequest struct { TaskExpandMask *TaskExpandMask `json:"expandMask,omitempty"` } -func (o *TaskActionsServiceProcessNowRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceProcessNowRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceprocessnowresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceprocessnowresponse.go index 4bd4b8a2..65580bd9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceprocessnowresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceprocessnowresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceProcessNowResponseExpanded) MarshalJSON() ([]byte, err } func (t *TaskActionsServiceProcessNowResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceProcessNowResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceProcessNowResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceProcessNowResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceProcessNowResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskActionsServiceProcessNowResponse message. @@ -46,16 +46,16 @@ type TaskActionsServiceProcessNowResponse struct { Expanded []TaskActionsServiceProcessNowResponseExpanded `json:"expanded,omitempty"` } -func (o *TaskActionsServiceProcessNowResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceProcessNowResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceProcessNowResponse) GetExpanded() []TaskActionsServiceProcessNowResponseExpanded { - if o == nil { +func (t *TaskActionsServiceProcessNowResponse) GetExpanded() []TaskActionsServiceProcessNowResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicereassignrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicereassignrequest.go index b3e2cbbe..639c4bd7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicereassignrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicereassignrequest.go @@ -14,30 +14,30 @@ type TaskActionsServiceReassignRequest struct { PolicyStepID *string `json:"policyStepId,omitempty"` } -func (o *TaskActionsServiceReassignRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceReassignRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceReassignRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceReassignRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } -func (o *TaskActionsServiceReassignRequest) GetNewStepUserIds() []string { - if o == nil { +func (t *TaskActionsServiceReassignRequest) GetNewStepUserIds() []string { + if t == nil { return nil } - return o.NewStepUserIds + return t.NewStepUserIds } -func (o *TaskActionsServiceReassignRequest) GetPolicyStepID() *string { - if o == nil { +func (t *TaskActionsServiceReassignRequest) GetPolicyStepID() *string { + if t == nil { return nil } - return o.PolicyStepID + return t.PolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicereassignresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicereassignresponse.go index 2eff4982..06c79902 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicereassignresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicereassignresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceReassignResponseExpanded) MarshalJSON() ([]byte, error } func (t *TaskActionsServiceReassignResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceReassignResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceReassignResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceReassignResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceReassignResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskActionsServiceReassignResponse returns a task view with paths indicating the location of expanded items in the array. @@ -48,23 +48,23 @@ type TaskActionsServiceReassignResponse struct { TicketActionID *string `json:"ticketActionId,omitempty"` } -func (o *TaskActionsServiceReassignResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceReassignResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceReassignResponse) GetExpanded() []TaskActionsServiceReassignResponseExpanded { - if o == nil { +func (t *TaskActionsServiceReassignResponse) GetExpanded() []TaskActionsServiceReassignResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskActionsServiceReassignResponse) GetTicketActionID() *string { - if o == nil { +func (t *TaskActionsServiceReassignResponse) GetTicketActionID() *string { + if t == nil { return nil } - return o.TicketActionID + return t.TicketActionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicerestartrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicerestartrequest.go index e5eceaa9..72aecd85 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicerestartrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicerestartrequest.go @@ -12,23 +12,23 @@ type TaskActionsServiceRestartRequest struct { PolicyStepID *string `json:"policyStepId,omitempty"` } -func (o *TaskActionsServiceRestartRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceRestartRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceRestartRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceRestartRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } -func (o *TaskActionsServiceRestartRequest) GetPolicyStepID() *string { - if o == nil { +func (t *TaskActionsServiceRestartRequest) GetPolicyStepID() *string { + if t == nil { return nil } - return o.PolicyStepID + return t.PolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicerestartresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicerestartresponse.go index c28d05b6..9de0497a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicerestartresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsservicerestartresponse.go @@ -18,24 +18,24 @@ func (t TaskActionsServiceRestartResponseExpanded) MarshalJSON() ([]byte, error) } func (t *TaskActionsServiceRestartResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskActionsServiceRestartResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskActionsServiceRestartResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskActionsServiceRestartResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskActionsServiceRestartResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskActionsServiceRestartResponse message. @@ -48,23 +48,23 @@ type TaskActionsServiceRestartResponse struct { TicketActionID *string `json:"ticketActionId,omitempty"` } -func (o *TaskActionsServiceRestartResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskActionsServiceRestartResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskActionsServiceRestartResponse) GetExpanded() []TaskActionsServiceRestartResponseExpanded { - if o == nil { +func (t *TaskActionsServiceRestartResponse) GetExpanded() []TaskActionsServiceRestartResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskActionsServiceRestartResponse) GetTicketActionID() *string { - if o == nil { +func (t *TaskActionsServiceRestartResponse) GetTicketActionID() *string { + if t == nil { return nil } - return o.TicketActionID + return t.TicketActionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceskipsteprequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceskipsteprequest.go index b23dd87b..6195f22f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceskipsteprequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceskipsteprequest.go @@ -12,23 +12,23 @@ type TaskActionsServiceSkipStepRequest struct { PolicyStepID string `json:"policyStepId"` } -func (o *TaskActionsServiceSkipStepRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceSkipStepRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceSkipStepRequest) GetComment() *string { - if o == nil { +func (t *TaskActionsServiceSkipStepRequest) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } -func (o *TaskActionsServiceSkipStepRequest) GetPolicyStepID() string { - if o == nil { +func (t *TaskActionsServiceSkipStepRequest) GetPolicyStepID() string { + if t == nil { return "" } - return o.PolicyStepID + return t.PolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceupdategrantdurationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceupdategrantdurationrequest.go index d3a2a419..fce87653 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceupdategrantdurationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceupdategrantdurationrequest.go @@ -9,16 +9,16 @@ type TaskActionsServiceUpdateGrantDurationRequest struct { Duration string `json:"duration"` } -func (o *TaskActionsServiceUpdateGrantDurationRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceUpdateGrantDurationRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceUpdateGrantDurationRequest) GetDuration() string { - if o == nil { +func (t *TaskActionsServiceUpdateGrantDurationRequest) GetDuration() string { + if t == nil { return "" } - return o.Duration + return t.Duration } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceupdaterequestdatarequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceupdaterequestdatarequest.go index 356b883b..edf71991 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceupdaterequestdatarequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskactionsserviceupdaterequestdatarequest.go @@ -9,16 +9,16 @@ type TaskActionsServiceUpdateRequestDataRequest struct { Data map[string]any `json:"data,omitempty"` } -func (o *TaskActionsServiceUpdateRequestDataRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskActionsServiceUpdateRequestDataRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskActionsServiceUpdateRequestDataRequest) GetData() map[string]any { - if o == nil { +func (t *TaskActionsServiceUpdateRequestDataRequest) GetData() map[string]any { + if t == nil { return nil } - return o.Data + return t.Data } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccessrequestoutcome.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccessrequestoutcome.go index 0d9ac901..b4873ea5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccessrequestoutcome.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccessrequestoutcome.go @@ -17,15 +17,26 @@ func (e Outcome) ToPointer() *Outcome { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Outcome) IsExact() bool { + if e != nil { + switch *e { + case "ACCESS_REQUEST_OUTCOME_UNSPECIFIED", "ACCESS_REQUEST_OUTCOME_APPROVED", "ACCESS_REQUEST_OUTCOME_DENIED", "ACCESS_REQUEST_OUTCOME_ERROR", "ACCESS_REQUEST_OUTCOME_CANCELLED": + return true + } + } + return false +} + // The TaskAuditAccessRequestOutcome message. type TaskAuditAccessRequestOutcome struct { // The outcome field. Outcome *Outcome `json:"outcome,omitempty"` } -func (o *TaskAuditAccessRequestOutcome) GetOutcome() *Outcome { - if o == nil { +func (t *TaskAuditAccessRequestOutcome) GetOutcome() *Outcome { + if t == nil { return nil } - return o.Outcome + return t.Outcome } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccountlifecycleactioncreated.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccountlifecycleactioncreated.go new file mode 100644 index 00000000..c7d6258a --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccountlifecycleactioncreated.go @@ -0,0 +1,52 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The TaskAuditAccountLifecycleActionCreated message. +type TaskAuditAccountLifecycleActionCreated struct { + // The batonActionDisplayName field. + BatonActionDisplayName *string `json:"batonActionDisplayName,omitempty"` + // The batonActionInvocationId field. + BatonActionInvocationID *string `json:"batonActionInvocationId,omitempty"` + // The batonActionName field. + BatonActionName *string `json:"batonActionName,omitempty"` + // The batonAppId field. + BatonAppID *string `json:"batonAppId,omitempty"` + // The batonConnectorId field. + BatonConnectorID *string `json:"batonConnectorId,omitempty"` +} + +func (t *TaskAuditAccountLifecycleActionCreated) GetBatonActionDisplayName() *string { + if t == nil { + return nil + } + return t.BatonActionDisplayName +} + +func (t *TaskAuditAccountLifecycleActionCreated) GetBatonActionInvocationID() *string { + if t == nil { + return nil + } + return t.BatonActionInvocationID +} + +func (t *TaskAuditAccountLifecycleActionCreated) GetBatonActionName() *string { + if t == nil { + return nil + } + return t.BatonActionName +} + +func (t *TaskAuditAccountLifecycleActionCreated) GetBatonAppID() *string { + if t == nil { + return nil + } + return t.BatonAppID +} + +func (t *TaskAuditAccountLifecycleActionCreated) GetBatonConnectorID() *string { + if t == nil { + return nil + } + return t.BatonConnectorID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccountlifecycleactionfailed.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccountlifecycleactionfailed.go new file mode 100644 index 00000000..bcc34df2 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditaccountlifecycleactionfailed.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The TaskAuditAccountLifecycleActionFailed message. +type TaskAuditAccountLifecycleActionFailed struct { + // The batonActionDisplayName field. + BatonActionDisplayName *string `json:"batonActionDisplayName,omitempty"` + // The batonActionInvocationId field. + BatonActionInvocationID *string `json:"batonActionInvocationId,omitempty"` + // The batonActionName field. + BatonActionName *string `json:"batonActionName,omitempty"` + // The batonAppId field. + BatonAppID *string `json:"batonAppId,omitempty"` + // The batonConnectorId field. + BatonConnectorID *string `json:"batonConnectorId,omitempty"` + // The error field. + Error *string `json:"error,omitempty"` +} + +func (t *TaskAuditAccountLifecycleActionFailed) GetBatonActionDisplayName() *string { + if t == nil { + return nil + } + return t.BatonActionDisplayName +} + +func (t *TaskAuditAccountLifecycleActionFailed) GetBatonActionInvocationID() *string { + if t == nil { + return nil + } + return t.BatonActionInvocationID +} + +func (t *TaskAuditAccountLifecycleActionFailed) GetBatonActionName() *string { + if t == nil { + return nil + } + return t.BatonActionName +} + +func (t *TaskAuditAccountLifecycleActionFailed) GetBatonAppID() *string { + if t == nil { + return nil + } + return t.BatonAppID +} + +func (t *TaskAuditAccountLifecycleActionFailed) GetBatonConnectorID() *string { + if t == nil { + return nil + } + return t.BatonConnectorID +} + +func (t *TaskAuditAccountLifecycleActionFailed) GetError() *string { + if t == nil { + return nil + } + return t.Error +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancecreated.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancecreated.go new file mode 100644 index 00000000..86344056 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancecreated.go @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The TaskAuditActionInstanceCreated message. +type TaskAuditActionInstanceCreated struct { + // The ActionInstance message. + // + // This message contains a oneof named target_instance. Only a single field of the following list may be set at a time: + // - automation + // + // + // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: + // - success + // - denied + // - error + // - cancelled + // + ActionInstance *ActionInstance `json:"instance,omitempty"` +} + +func (t *TaskAuditActionInstanceCreated) GetActionInstance() *ActionInstance { + if t == nil { + return nil + } + return t.ActionInstance +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancefailed.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancefailed.go new file mode 100644 index 00000000..e1f8e628 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancefailed.go @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The TaskAuditActionInstanceFailed message. +type TaskAuditActionInstanceFailed struct { + // The ActionInstance message. + // + // This message contains a oneof named target_instance. Only a single field of the following list may be set at a time: + // - automation + // + // + // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: + // - success + // - denied + // - error + // - cancelled + // + ActionInstance *ActionInstance `json:"instance,omitempty"` +} + +func (t *TaskAuditActionInstanceFailed) GetActionInstance() *ActionInstance { + if t == nil { + return nil + } + return t.ActionInstance +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancesucceeded.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancesucceeded.go new file mode 100644 index 00000000..f04faf4d --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactioninstancesucceeded.go @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The TaskAuditActionInstanceSucceeded message. +type TaskAuditActionInstanceSucceeded struct { + // The ActionInstance message. + // + // This message contains a oneof named target_instance. Only a single field of the following list may be set at a time: + // - automation + // + // + // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: + // - success + // - denied + // - error + // - cancelled + // + ActionInstance *ActionInstance `json:"instance,omitempty"` +} + +func (t *TaskAuditActionInstanceSucceeded) GetActionInstance() *ActionInstance { + if t == nil { + return nil + } + return t.ActionInstance +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactionsubmitted.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactionsubmitted.go index c6d6922b..fbc0ebb1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactionsubmitted.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditactionsubmitted.go @@ -8,9 +8,9 @@ type TaskAuditActionSubmitted struct { TaskAction *TaskAction1 `json:"action,omitempty"` } -func (o *TaskAuditActionSubmitted) GetTaskAction() *TaskAction1 { - if o == nil { +func (t *TaskAuditActionSubmitted) GetTaskAction() *TaskAction1 { + if t == nil { return nil } - return o.TaskAction + return t.TaskAction } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditapprovalinstancechange.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditapprovalinstancechange.go index b4b16aa3..6ae64503 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditapprovalinstancechange.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditapprovalinstancechange.go @@ -17,9 +17,9 @@ type TaskAuditApprovalInstanceChange struct { ApprovalInstance *ApprovalInstance `json:"instance,omitempty"` } -func (o *TaskAuditApprovalInstanceChange) GetApprovalInstance() *ApprovalInstance { - if o == nil { +func (t *TaskAuditApprovalInstanceChange) GetApprovalInstance() *ApprovalInstance { + if t == nil { return nil } - return o.ApprovalInstance + return t.ApprovalInstance } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditbulkactionerror.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditbulkactionerror.go index 0924553b..b5048360 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditbulkactionerror.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditbulkactionerror.go @@ -8,9 +8,9 @@ type TaskAuditBulkActionError struct { Error *string `json:"error,omitempty"` } -func (o *TaskAuditBulkActionError) GetError() *string { - if o == nil { +func (t *TaskAuditBulkActionError) GetError() *string { + if t == nil { return nil } - return o.Error + return t.Error } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditcertifyoutcome.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditcertifyoutcome.go index 21b78bd9..586d7ed4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditcertifyoutcome.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditcertifyoutcome.go @@ -18,15 +18,26 @@ func (e TaskAuditCertifyOutcomeOutcome) ToPointer() *TaskAuditCertifyOutcomeOutc return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskAuditCertifyOutcomeOutcome) IsExact() bool { + if e != nil { + switch *e { + case "CERTIFY_OUTCOME_UNSPECIFIED", "CERTIFY_OUTCOME_CERTIFIED", "CERTIFY_OUTCOME_DECERTIFIED", "CERTIFY_OUTCOME_ERROR", "CERTIFY_OUTCOME_CANCELLED", "CERTIFY_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + // The TaskAuditCertifyOutcome message. type TaskAuditCertifyOutcome struct { // The outcome field. Outcome *TaskAuditCertifyOutcomeOutcome `json:"outcome,omitempty"` } -func (o *TaskAuditCertifyOutcome) GetOutcome() *TaskAuditCertifyOutcomeOutcome { - if o == nil { +func (t *TaskAuditCertifyOutcome) GetOutcome() *TaskAuditCertifyOutcomeOutcome { + if t == nil { return nil } - return o.Outcome + return t.Outcome } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditcomment.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditcomment.go index aa0c7bad..f252511f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditcomment.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditcomment.go @@ -21,29 +21,29 @@ func (t TaskAuditComment) MarshalJSON() ([]byte, error) { } func (t *TaskAuditComment) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskAuditComment) GetComment() *string { - if o == nil { +func (t *TaskAuditComment) GetComment() *string { + if t == nil { return nil } - return o.Comment + return t.Comment } -func (o *TaskAuditComment) GetUpdatedAt() *time.Time { - if o == nil { +func (t *TaskAuditComment) GetUpdatedAt() *time.Time { + if t == nil { return nil } - return o.UpdatedAt + return t.UpdatedAt } -func (o *TaskAuditComment) GetUpdatedBy() *string { - if o == nil { +func (t *TaskAuditComment) GetUpdatedBy() *string { + if t == nil { return nil } - return o.UpdatedBy + return t.UpdatedBy } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditconditionalpolicyexecutionresult.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditconditionalpolicyexecutionresult.go index 850d8cc0..72ee081f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditconditionalpolicyexecutionresult.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditconditionalpolicyexecutionresult.go @@ -16,37 +16,37 @@ type TaskAuditConditionalPolicyExecutionResult struct { PolicyKey *string `json:"policyKey,omitempty"` } -func (o *TaskAuditConditionalPolicyExecutionResult) GetCondition() *string { - if o == nil { +func (t *TaskAuditConditionalPolicyExecutionResult) GetCondition() *string { + if t == nil { return nil } - return o.Condition + return t.Condition } -func (o *TaskAuditConditionalPolicyExecutionResult) GetConditionMatched() *bool { - if o == nil { +func (t *TaskAuditConditionalPolicyExecutionResult) GetConditionMatched() *bool { + if t == nil { return nil } - return o.ConditionMatched + return t.ConditionMatched } -func (o *TaskAuditConditionalPolicyExecutionResult) GetDefaultCondition() *bool { - if o == nil { +func (t *TaskAuditConditionalPolicyExecutionResult) GetDefaultCondition() *bool { + if t == nil { return nil } - return o.DefaultCondition + return t.DefaultCondition } -func (o *TaskAuditConditionalPolicyExecutionResult) GetError() *string { - if o == nil { +func (t *TaskAuditConditionalPolicyExecutionResult) GetError() *string { + if t == nil { return nil } - return o.Error + return t.Error } -func (o *TaskAuditConditionalPolicyExecutionResult) GetPolicyKey() *string { - if o == nil { +func (t *TaskAuditConditionalPolicyExecutionResult) GetPolicyKey() *string { + if t == nil { return nil } - return o.PolicyKey + return t.PolicyKey } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditconnectoractionresult.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditconnectoractionresult.go index ccc19447..86c1e4fb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditconnectoractionresult.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditconnectoractionresult.go @@ -25,51 +25,51 @@ type TaskAuditConnectorActionResult struct { ConnectorID *string `json:"connectorId,omitempty"` } -func (o *TaskAuditConnectorActionResult) GetTaskAuditCancelledResult() *TaskAuditCancelledResult { - if o == nil { +func (t *TaskAuditConnectorActionResult) GetTaskAuditCancelledResult() *TaskAuditCancelledResult { + if t == nil { return nil } - return o.TaskAuditCancelledResult + return t.TaskAuditCancelledResult } -func (o *TaskAuditConnectorActionResult) GetTaskAuditErrorResult() *TaskAuditErrorResult { - if o == nil { +func (t *TaskAuditConnectorActionResult) GetTaskAuditErrorResult() *TaskAuditErrorResult { + if t == nil { return nil } - return o.TaskAuditErrorResult + return t.TaskAuditErrorResult } -func (o *TaskAuditConnectorActionResult) GetTaskAuditSuccessResult() *TaskAuditSuccessResult { - if o == nil { +func (t *TaskAuditConnectorActionResult) GetTaskAuditSuccessResult() *TaskAuditSuccessResult { + if t == nil { return nil } - return o.TaskAuditSuccessResult + return t.TaskAuditSuccessResult } -func (o *TaskAuditConnectorActionResult) GetAppEntitlementID() *string { - if o == nil { +func (t *TaskAuditConnectorActionResult) GetAppEntitlementID() *string { + if t == nil { return nil } - return o.AppEntitlementID + return t.AppEntitlementID } -func (o *TaskAuditConnectorActionResult) GetAppID() *string { - if o == nil { +func (t *TaskAuditConnectorActionResult) GetAppID() *string { + if t == nil { return nil } - return o.AppID + return t.AppID } -func (o *TaskAuditConnectorActionResult) GetConnectorActionID() *string { - if o == nil { +func (t *TaskAuditConnectorActionResult) GetConnectorActionID() *string { + if t == nil { return nil } - return o.ConnectorActionID + return t.ConnectorActionID } -func (o *TaskAuditConnectorActionResult) GetConnectorID() *string { - if o == nil { +func (t *TaskAuditConnectorActionResult) GetConnectorID() *string { + if t == nil { return nil } - return o.ConnectorID + return t.ConnectorID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditerrorresult.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditerrorresult.go index 3ce62cba..5c5fe004 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditerrorresult.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditerrorresult.go @@ -10,16 +10,16 @@ type TaskAuditErrorResult struct { ErrorReason *string `json:"errorReason,omitempty"` } -func (o *TaskAuditErrorResult) GetErrorCount() *int64 { - if o == nil { +func (t *TaskAuditErrorResult) GetErrorCount() *int64 { + if t == nil { return nil } - return o.ErrorCount + return t.ErrorCount } -func (o *TaskAuditErrorResult) GetErrorReason() *string { - if o == nil { +func (t *TaskAuditErrorResult) GetErrorReason() *string { + if t == nil { return nil } - return o.ErrorReason + return t.ErrorReason } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditescalatetoemergencyaccess.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditescalatetoemergencyaccess.go index bec73729..ab8a9f0c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditescalatetoemergencyaccess.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditescalatetoemergencyaccess.go @@ -10,16 +10,16 @@ type TaskAuditEscalateToEmergencyAccess struct { OldPolicyStepID *string `json:"oldPolicyStepId,omitempty"` } -func (o *TaskAuditEscalateToEmergencyAccess) GetOldPolicyID() *string { - if o == nil { +func (t *TaskAuditEscalateToEmergencyAccess) GetOldPolicyID() *string { + if t == nil { return nil } - return o.OldPolicyID + return t.OldPolicyID } -func (o *TaskAuditEscalateToEmergencyAccess) GetOldPolicyStepID() *string { - if o == nil { +func (t *TaskAuditEscalateToEmergencyAccess) GetOldPolicyStepID() *string { + if t == nil { return nil } - return o.OldPolicyStepID + return t.OldPolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexpressionpolicysteperror.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexpressionpolicysteperror.go index b5ef4e66..7f9b1c6a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexpressionpolicysteperror.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexpressionpolicysteperror.go @@ -8,9 +8,9 @@ type TaskAuditExpressionPolicyStepError struct { Error *string `json:"error,omitempty"` } -func (o *TaskAuditExpressionPolicyStepError) GetError() *string { - if o == nil { +func (t *TaskAuditExpressionPolicyStepError) GetError() *string { + if t == nil { return nil } - return o.Error + return t.Error } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketcreated.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketcreated.go index 1e508506..09092167 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketcreated.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketcreated.go @@ -18,44 +18,44 @@ type TaskAuditExternalTicketCreated struct { ExternalTicketURL *string `json:"externalTicketUrl,omitempty"` } -func (o *TaskAuditExternalTicketCreated) GetAppID() *string { - if o == nil { +func (t *TaskAuditExternalTicketCreated) GetAppID() *string { + if t == nil { return nil } - return o.AppID + return t.AppID } -func (o *TaskAuditExternalTicketCreated) GetConnectorID() *string { - if o == nil { +func (t *TaskAuditExternalTicketCreated) GetConnectorID() *string { + if t == nil { return nil } - return o.ConnectorID + return t.ConnectorID } -func (o *TaskAuditExternalTicketCreated) GetExternalTicketID() *string { - if o == nil { +func (t *TaskAuditExternalTicketCreated) GetExternalTicketID() *string { + if t == nil { return nil } - return o.ExternalTicketID + return t.ExternalTicketID } -func (o *TaskAuditExternalTicketCreated) GetExternalTicketProvisionerConfigID() *string { - if o == nil { +func (t *TaskAuditExternalTicketCreated) GetExternalTicketProvisionerConfigID() *string { + if t == nil { return nil } - return o.ExternalTicketProvisionerConfigID + return t.ExternalTicketProvisionerConfigID } -func (o *TaskAuditExternalTicketCreated) GetExternalTicketProvisionerConfigName() *string { - if o == nil { +func (t *TaskAuditExternalTicketCreated) GetExternalTicketProvisionerConfigName() *string { + if t == nil { return nil } - return o.ExternalTicketProvisionerConfigName + return t.ExternalTicketProvisionerConfigName } -func (o *TaskAuditExternalTicketCreated) GetExternalTicketURL() *string { - if o == nil { +func (t *TaskAuditExternalTicketCreated) GetExternalTicketURL() *string { + if t == nil { return nil } - return o.ExternalTicketURL + return t.ExternalTicketURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketerror.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketerror.go index 114539a8..0f43f139 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketerror.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketerror.go @@ -8,9 +8,9 @@ type TaskAuditExternalTicketError struct { ErrorMessage *string `json:"errorMessage,omitempty"` } -func (o *TaskAuditExternalTicketError) GetErrorMessage() *string { - if o == nil { +func (t *TaskAuditExternalTicketError) GetErrorMessage() *string { + if t == nil { return nil } - return o.ErrorMessage + return t.ErrorMessage } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketprovisionstepresolved.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketprovisionstepresolved.go index 01eabdad..e8e7f1ce 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketprovisionstepresolved.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternalticketprovisionstepresolved.go @@ -16,37 +16,37 @@ type TaskAuditExternalTicketProvisionStepResolved struct { ExternalTicketURL *string `json:"externalTicketUrl,omitempty"` } -func (o *TaskAuditExternalTicketProvisionStepResolved) GetAppID() *string { - if o == nil { +func (t *TaskAuditExternalTicketProvisionStepResolved) GetAppID() *string { + if t == nil { return nil } - return o.AppID + return t.AppID } -func (o *TaskAuditExternalTicketProvisionStepResolved) GetConnectorID() *string { - if o == nil { +func (t *TaskAuditExternalTicketProvisionStepResolved) GetConnectorID() *string { + if t == nil { return nil } - return o.ConnectorID + return t.ConnectorID } -func (o *TaskAuditExternalTicketProvisionStepResolved) GetExternalTicketID() *string { - if o == nil { +func (t *TaskAuditExternalTicketProvisionStepResolved) GetExternalTicketID() *string { + if t == nil { return nil } - return o.ExternalTicketID + return t.ExternalTicketID } -func (o *TaskAuditExternalTicketProvisionStepResolved) GetExternalTicketProvisionerConfigID() *string { - if o == nil { +func (t *TaskAuditExternalTicketProvisionStepResolved) GetExternalTicketProvisionerConfigID() *string { + if t == nil { return nil } - return o.ExternalTicketProvisionerConfigID + return t.ExternalTicketProvisionerConfigID } -func (o *TaskAuditExternalTicketProvisionStepResolved) GetExternalTicketURL() *string { - if o == nil { +func (t *TaskAuditExternalTicketProvisionStepResolved) GetExternalTicketURL() *string { + if t == nil { return nil } - return o.ExternalTicketURL + return t.ExternalTicketURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternaltickettriggered.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternaltickettriggered.go index 458c560e..793ea685 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternaltickettriggered.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditexternaltickettriggered.go @@ -16,37 +16,37 @@ type TaskAuditExternalTicketTriggered struct { ExternalTicketProvisionerConfigName *string `json:"externalTicketProvisionerConfigName,omitempty"` } -func (o *TaskAuditExternalTicketTriggered) GetAppID() *string { - if o == nil { +func (t *TaskAuditExternalTicketTriggered) GetAppID() *string { + if t == nil { return nil } - return o.AppID + return t.AppID } -func (o *TaskAuditExternalTicketTriggered) GetConnectorID() *string { - if o == nil { +func (t *TaskAuditExternalTicketTriggered) GetConnectorID() *string { + if t == nil { return nil } - return o.ConnectorID + return t.ConnectorID } -func (o *TaskAuditExternalTicketTriggered) GetExternalTicketID() *string { - if o == nil { +func (t *TaskAuditExternalTicketTriggered) GetExternalTicketID() *string { + if t == nil { return nil } - return o.ExternalTicketID + return t.ExternalTicketID } -func (o *TaskAuditExternalTicketTriggered) GetExternalTicketProvisionerConfigID() *string { - if o == nil { +func (t *TaskAuditExternalTicketTriggered) GetExternalTicketProvisionerConfigID() *string { + if t == nil { return nil } - return o.ExternalTicketProvisionerConfigID + return t.ExternalTicketProvisionerConfigID } -func (o *TaskAuditExternalTicketTriggered) GetExternalTicketProvisionerConfigName() *string { - if o == nil { +func (t *TaskAuditExternalTicketTriggered) GetExternalTicketProvisionerConfigName() *string { + if t == nil { return nil } - return o.ExternalTicketProvisionerConfigName + return t.ExternalTicketProvisionerConfigName } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditfinishedconnectoractions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditfinishedconnectoractions.go index c726e6df..c67e5a7e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditfinishedconnectoractions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditfinishedconnectoractions.go @@ -8,9 +8,9 @@ type TaskAuditFinishedConnectorActions struct { PolicyStepID *string `json:"policyStepId,omitempty"` } -func (o *TaskAuditFinishedConnectorActions) GetPolicyStepID() *string { - if o == nil { +func (t *TaskAuditFinishedConnectorActions) GetPolicyStepID() *string { + if t == nil { return nil } - return o.PolicyStepID + return t.PolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditforminstancechange.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditforminstancechange.go index 8214dede..616423f0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditforminstancechange.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditforminstancechange.go @@ -8,9 +8,9 @@ type TaskAuditFormInstanceChange struct { IsValid *bool `json:"isValid,omitempty"` } -func (o *TaskAuditFormInstanceChange) GetIsValid() *bool { - if o == nil { +func (t *TaskAuditFormInstanceChange) GetIsValid() *bool { + if t == nil { return nil } - return o.IsValid + return t.IsValid } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditgrantdurationupdated.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditgrantdurationupdated.go index 19ca3bde..90b2617b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditgrantdurationupdated.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditgrantdurationupdated.go @@ -7,9 +7,9 @@ type TaskAuditGrantDurationUpdated struct { Duration *string `json:"duration,omitempty"` } -func (o *TaskAuditGrantDurationUpdated) GetDuration() *string { - if o == nil { +func (t *TaskAuditGrantDurationUpdated) GetDuration() *string { + if t == nil { return nil } - return o.Duration + return t.Duration } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditgrantoutcome.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditgrantoutcome.go index 5e84f12a..ad1a00d4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditgrantoutcome.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditgrantoutcome.go @@ -18,15 +18,26 @@ func (e TaskAuditGrantOutcomeOutcome) ToPointer() *TaskAuditGrantOutcomeOutcome return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskAuditGrantOutcomeOutcome) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_OUTCOME_UNSPECIFIED", "GRANT_OUTCOME_GRANTED", "GRANT_OUTCOME_DENIED", "GRANT_OUTCOME_ERROR", "GRANT_OUTCOME_CANCELLED", "GRANT_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + // The TaskAuditGrantOutcome message. type TaskAuditGrantOutcome struct { // The outcome field. Outcome *TaskAuditGrantOutcomeOutcome `json:"outcome,omitempty"` } -func (o *TaskAuditGrantOutcome) GetOutcome() *TaskAuditGrantOutcomeOutcome { - if o == nil { +func (t *TaskAuditGrantOutcome) GetOutcome() *TaskAuditGrantOutcomeOutcome { + if t == nil { return nil } - return o.Outcome + return t.Outcome } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaudithardreset.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaudithardreset.go index 6d59f265..413989b8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaudithardreset.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskaudithardreset.go @@ -8,9 +8,9 @@ type TaskAuditHardReset struct { OldPolicyStepID *string `json:"oldPolicyStepId,omitempty"` } -func (o *TaskAuditHardReset) GetOldPolicyStepID() *string { - if o == nil { +func (t *TaskAuditHardReset) GetOldPolicyStepID() *string { + if t == nil { return nil } - return o.OldPolicyStepID + return t.OldPolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditlistrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditlistrequest.go index 36b07862..ad51e90e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditlistrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditlistrequest.go @@ -14,30 +14,30 @@ type TaskAuditListRequest struct { TaskID *string `json:"taskId,omitempty"` } -func (o *TaskAuditListRequest) GetPageSize() *int { - if o == nil { +func (t *TaskAuditListRequest) GetPageSize() *int { + if t == nil { return nil } - return o.PageSize + return t.PageSize } -func (o *TaskAuditListRequest) GetPageToken() *string { - if o == nil { +func (t *TaskAuditListRequest) GetPageToken() *string { + if t == nil { return nil } - return o.PageToken + return t.PageToken } -func (o *TaskAuditListRequest) GetRefs() []TaskAuditViewRef { - if o == nil { +func (t *TaskAuditListRequest) GetRefs() []TaskAuditViewRef { + if t == nil { return nil } - return o.Refs + return t.Refs } -func (o *TaskAuditListRequest) GetTaskID() *string { - if o == nil { +func (t *TaskAuditListRequest) GetTaskID() *string { + if t == nil { return nil } - return o.TaskID + return t.TaskID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditlistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditlistresponse.go index c6603b8f..b3150741 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditlistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditlistresponse.go @@ -10,16 +10,16 @@ type TaskAuditListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *TaskAuditListResponse) GetList() []TaskAuditView { - if o == nil { +func (t *TaskAuditListResponse) GetList() []TaskAuditView { + if t == nil { return nil } - return o.List + return t.List } -func (o *TaskAuditListResponse) GetNextPageToken() *string { - if o == nil { +func (t *TaskAuditListResponse) GetNextPageToken() *string { + if t == nil { return nil } - return o.NextPageToken + return t.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditmetadata.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditmetadata.go index 4c1fddf2..a8b1f212 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditmetadata.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditmetadata.go @@ -8,9 +8,9 @@ type TaskAuditMetaData struct { User *User `json:"user,omitempty"` } -func (o *TaskAuditMetaData) GetUser() *User { - if o == nil { +func (t *TaskAuditMetaData) GetUser() *User { + if t == nil { return nil } - return o.User + return t.User } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyapprovalreassigned.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyapprovalreassigned.go index bbf2b47d..92605db3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyapprovalreassigned.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyapprovalreassigned.go @@ -14,30 +14,30 @@ type TaskAuditPolicyApprovalReassigned struct { Users []User `json:"users,omitempty"` } -func (o *TaskAuditPolicyApprovalReassigned) GetNewPolicyStepID() *string { - if o == nil { +func (t *TaskAuditPolicyApprovalReassigned) GetNewPolicyStepID() *string { + if t == nil { return nil } - return o.NewPolicyStepID + return t.NewPolicyStepID } -func (o *TaskAuditPolicyApprovalReassigned) GetNewUsers() []string { - if o == nil { +func (t *TaskAuditPolicyApprovalReassigned) GetNewUsers() []string { + if t == nil { return nil } - return o.NewUsers + return t.NewUsers } -func (o *TaskAuditPolicyApprovalReassigned) GetOldPolicyStepID() *string { - if o == nil { +func (t *TaskAuditPolicyApprovalReassigned) GetOldPolicyStepID() *string { + if t == nil { return nil } - return o.OldPolicyStepID + return t.OldPolicyStepID } -func (o *TaskAuditPolicyApprovalReassigned) GetUsers() []User { - if o == nil { +func (t *TaskAuditPolicyApprovalReassigned) GetUsers() []User { + if t == nil { return nil } - return o.Users + return t.Users } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicychanged.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicychanged.go index fb6da03b..d5e601b9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicychanged.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicychanged.go @@ -10,16 +10,16 @@ type TaskAuditPolicyChanged struct { OldPolicyID *string `json:"oldPolicyId,omitempty"` } -func (o *TaskAuditPolicyChanged) GetNewPolicyID() *string { - if o == nil { +func (t *TaskAuditPolicyChanged) GetNewPolicyID() *string { + if t == nil { return nil } - return o.NewPolicyID + return t.NewPolicyID } -func (o *TaskAuditPolicyChanged) GetOldPolicyID() *string { - if o == nil { +func (t *TaskAuditPolicyChanged) GetOldPolicyID() *string { + if t == nil { return nil } - return o.OldPolicyID + return t.OldPolicyID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyevaluationstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyevaluationstep.go index ee574d2d..0ba07ecb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyevaluationstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyevaluationstep.go @@ -8,9 +8,9 @@ type TaskAuditPolicyEvaluationStep struct { StepComment *string `json:"stepComment,omitempty"` } -func (o *TaskAuditPolicyEvaluationStep) GetStepComment() *string { - if o == nil { +func (t *TaskAuditPolicyEvaluationStep) GetStepComment() *string { + if t == nil { return nil } - return o.StepComment + return t.StepComment } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisioncancelled.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisioncancelled.go new file mode 100644 index 00000000..8763a9b5 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisioncancelled.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The TaskAuditPolicyProvisionCancelled message. +type TaskAuditPolicyProvisionCancelled struct { + // The cancelReason field. + CancelReason *string `json:"cancelReason,omitempty"` +} + +func (t *TaskAuditPolicyProvisionCancelled) GetCancelReason() *string { + if t == nil { + return nil + } + return t.CancelReason +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisionerror.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisionerror.go index 7be77190..9ecd659c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisionerror.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisionerror.go @@ -8,9 +8,9 @@ type TaskAuditPolicyProvisionError struct { Error *string `json:"error,omitempty"` } -func (o *TaskAuditPolicyProvisionError) GetError() *string { - if o == nil { +func (t *TaskAuditPolicyProvisionError) GetError() *string { + if t == nil { return nil } - return o.Error + return t.Error } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisionreassigned.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisionreassigned.go index 212c86a5..bce8712a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisionreassigned.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditpolicyprovisionreassigned.go @@ -14,30 +14,30 @@ type TaskAuditPolicyProvisionReassigned struct { Users []User `json:"users,omitempty"` } -func (o *TaskAuditPolicyProvisionReassigned) GetNewPolicyStepID() *string { - if o == nil { +func (t *TaskAuditPolicyProvisionReassigned) GetNewPolicyStepID() *string { + if t == nil { return nil } - return o.NewPolicyStepID + return t.NewPolicyStepID } -func (o *TaskAuditPolicyProvisionReassigned) GetNewUsers() []string { - if o == nil { +func (t *TaskAuditPolicyProvisionReassigned) GetNewUsers() []string { + if t == nil { return nil } - return o.NewUsers + return t.NewUsers } -func (o *TaskAuditPolicyProvisionReassigned) GetOldPolicyStepID() *string { - if o == nil { +func (t *TaskAuditPolicyProvisionReassigned) GetOldPolicyStepID() *string { + if t == nil { return nil } - return o.OldPolicyStepID + return t.OldPolicyStepID } -func (o *TaskAuditPolicyProvisionReassigned) GetUsers() []User { - if o == nil { +func (t *TaskAuditPolicyProvisionReassigned) GetUsers() []User { + if t == nil { return nil } - return o.Users + return t.Users } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditreassignedtodelegate.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditreassignedtodelegate.go index 2f1c0b74..f527b1d0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditreassignedtodelegate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditreassignedtodelegate.go @@ -14,30 +14,30 @@ type TaskAuditReassignedToDelegate struct { OriginalAssigneeUserID *string `json:"originalAssigneeUserId,omitempty"` } -func (o *TaskAuditReassignedToDelegate) GetUser() *User { - if o == nil { +func (t *TaskAuditReassignedToDelegate) GetUser() *User { + if t == nil { return nil } - return o.User + return t.User } -func (o *TaskAuditReassignedToDelegate) GetUser1() *User { - if o == nil { +func (t *TaskAuditReassignedToDelegate) GetUser1() *User { + if t == nil { return nil } - return o.User1 + return t.User1 } -func (o *TaskAuditReassignedToDelegate) GetDelegatedAssigneeUserID() *string { - if o == nil { +func (t *TaskAuditReassignedToDelegate) GetDelegatedAssigneeUserID() *string { + if t == nil { return nil } - return o.DelegatedAssigneeUserID + return t.DelegatedAssigneeUserID } -func (o *TaskAuditReassignedToDelegate) GetOriginalAssigneeUserID() *string { - if o == nil { +func (t *TaskAuditReassignedToDelegate) GetOriginalAssigneeUserID() *string { + if t == nil { return nil } - return o.OriginalAssigneeUserID + return t.OriginalAssigneeUserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditreassignmentlisterror.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditreassignmentlisterror.go index 59843c2f..84e393ab 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditreassignmentlisterror.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditreassignmentlisterror.go @@ -8,9 +8,9 @@ type TaskAuditReassignmentListError struct { ErrorMessage *string `json:"errorMessage,omitempty"` } -func (o *TaskAuditReassignmentListError) GetErrorMessage() *string { - if o == nil { +func (t *TaskAuditReassignmentListError) GetErrorMessage() *string { + if t == nil { return nil } - return o.ErrorMessage + return t.ErrorMessage } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditrestart.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditrestart.go index b9bd4c67..dd212f5f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditrestart.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditrestart.go @@ -8,9 +8,9 @@ type TaskAuditRestart struct { OldPolicyStepID *string `json:"oldPolicyStepId,omitempty"` } -func (o *TaskAuditRestart) GetOldPolicyStepID() *string { - if o == nil { +func (t *TaskAuditRestart) GetOldPolicyStepID() *string { + if t == nil { return nil } - return o.OldPolicyStepID + return t.OldPolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditrevokeoutcome.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditrevokeoutcome.go index 8953c698..74fcd200 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditrevokeoutcome.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditrevokeoutcome.go @@ -18,15 +18,26 @@ func (e TaskAuditRevokeOutcomeOutcome) ToPointer() *TaskAuditRevokeOutcomeOutcom return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskAuditRevokeOutcomeOutcome) IsExact() bool { + if e != nil { + switch *e { + case "REVOKE_OUTCOME_UNSPECIFIED", "REVOKE_OUTCOME_REVOKED", "REVOKE_OUTCOME_DENIED", "REVOKE_OUTCOME_ERROR", "REVOKE_OUTCOME_CANCELLED", "REVOKE_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + // The TaskAuditRevokeOutcome message. type TaskAuditRevokeOutcome struct { // The outcome field. Outcome *TaskAuditRevokeOutcomeOutcome `json:"outcome,omitempty"` } -func (o *TaskAuditRevokeOutcome) GetOutcome() *TaskAuditRevokeOutcomeOutcome { - if o == nil { +func (t *TaskAuditRevokeOutcome) GetOutcome() *TaskAuditRevokeOutcomeOutcome { + if t == nil { return nil } - return o.Outcome + return t.Outcome } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditslaescalation.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditslaescalation.go index 636c9c03..39dcb5b9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditslaescalation.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditslaescalation.go @@ -8,9 +8,9 @@ type TaskAuditSLAEscalation struct { Message *string `json:"message,omitempty"` } -func (o *TaskAuditSLAEscalation) GetMessage() *string { - if o == nil { +func (t *TaskAuditSLAEscalation) GetMessage() *string { + if t == nil { return nil } - return o.Message + return t.Message } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstartedconnectoractions.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstartedconnectoractions.go index 09311a25..9490d728 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstartedconnectoractions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstartedconnectoractions.go @@ -8,9 +8,9 @@ type TaskAuditStartedConnectorActions struct { PolicyStepID *string `json:"policyStepId,omitempty"` } -func (o *TaskAuditStartedConnectorActions) GetPolicyStepID() *string { - if o == nil { +func (t *TaskAuditStartedConnectorActions) GetPolicyStepID() *string { + if t == nil { return nil } - return o.PolicyStepID + return t.PolicyStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstatechange.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstatechange.go index 6e1f1d8f..add28ee9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstatechange.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstatechange.go @@ -15,15 +15,26 @@ func (e PreviousState) ToPointer() *PreviousState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *PreviousState) IsExact() bool { + if e != nil { + switch *e { + case "TASK_STATE_UNSPECIFIED", "TASK_STATE_OPEN", "TASK_STATE_CLOSED": + return true + } + } + return false +} + // The TaskAuditStateChange message. type TaskAuditStateChange struct { // The previousState field. PreviousState *PreviousState `json:"previousState,omitempty"` } -func (o *TaskAuditStateChange) GetPreviousState() *PreviousState { - if o == nil { +func (t *TaskAuditStateChange) GetPreviousState() *PreviousState { + if t == nil { return nil } - return o.PreviousState + return t.PreviousState } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstepskipped.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstepskipped.go index be35ce5c..109b05b3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstepskipped.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstepskipped.go @@ -8,9 +8,9 @@ type TaskAuditStepSkipped struct { SkippedBy *string `json:"skippedBy,omitempty"` } -func (o *TaskAuditStepSkipped) GetSkippedBy() *string { - if o == nil { +func (t *TaskAuditStepSkipped) GetSkippedBy() *string { + if t == nil { return nil } - return o.SkippedBy + return t.SkippedBy } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstepupapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstepupapproval.go index f996bbea..371b28cf 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstepupapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditstepupapproval.go @@ -8,9 +8,9 @@ type TaskAuditStepUpApproval struct { StepUpTransactionID *string `json:"stepUpTransactionId,omitempty"` } -func (o *TaskAuditStepUpApproval) GetStepUpTransactionID() *string { - if o == nil { +func (t *TaskAuditStepUpApproval) GetStepUpTransactionID() *string { + if t == nil { return nil } - return o.StepUpTransactionID + return t.StepUpTransactionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditsuccessresult.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditsuccessresult.go index 7d9d6f2a..b8ad04be 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditsuccessresult.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditsuccessresult.go @@ -18,24 +18,24 @@ func (t TaskAuditSuccessResultAnnotations) MarshalJSON() ([]byte, error) { } func (t *TaskAuditSuccessResultAnnotations) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskAuditSuccessResultAnnotations) GetAtType() *string { - if o == nil { +func (t *TaskAuditSuccessResultAnnotations) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskAuditSuccessResultAnnotations) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskAuditSuccessResultAnnotations) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskAuditSuccessResult message. @@ -44,9 +44,9 @@ type TaskAuditSuccessResult struct { Annotations []TaskAuditSuccessResultAnnotations `json:"annotations,omitempty"` } -func (o *TaskAuditSuccessResult) GetAnnotations() []TaskAuditSuccessResultAnnotations { - if o == nil { +func (t *TaskAuditSuccessResult) GetAnnotations() []TaskAuditSuccessResultAnnotations { + if t == nil { return nil } - return o.Annotations + return t.Annotations } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditview.go index 18140cdd..f856b14e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditview.go @@ -20,6 +20,17 @@ func (e CurrentState) ToPointer() *CurrentState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *CurrentState) IsExact() bool { + if e != nil { + switch *e { + case "TASK_STATE_UNSPECIFIED", "TASK_STATE_OPEN", "TASK_STATE_CLOSED": + return true + } + } + return false +} + // TaskAuditViewEventType - The eventType field. type TaskAuditViewEventType string @@ -33,6 +44,17 @@ func (e TaskAuditViewEventType) ToPointer() *TaskAuditViewEventType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskAuditViewEventType) IsExact() bool { + if e != nil { + switch *e { + case "TASK_AUDIT_EVENT_TYPE_UNSPECIFIED", "TASK_AUDIT_EVENT_TYPE_NEUTRAL", "TASK_AUDIT_EVENT_TYPE_ERROR": + return true + } + } + return false +} + // Source - The source field. type Source string @@ -48,6 +70,17 @@ func (e Source) ToPointer() *Source { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *Source) IsExact() bool { + if e != nil { + switch *e { + case "SOURCE_UNSPECIFIED", "SOURCE_C1", "SOURCE_JIRA", "SOURCE_SLACK", "SOURCE_COPILOT_AGENTS": + return true + } + } + return false +} + // The TaskAuditView message. // // This message contains a oneof named typ. Only a single field of the following list may be set at a time: @@ -101,9 +134,27 @@ func (e Source) ToPointer() *Source { // - policyChanged // - formInstanceChange // - grantDurationUpdated +// - waitStepUntilTime +// - webhookApprovalFatalError +// - accountLifecycleActionCreated +// - accountLifecycleActionFailed +// - provisionCancelled +// - actionInstanceCreated +// - actionInstanceSucceeded +// - actionInstanceFailed type TaskAuditView struct { // The TaskAuditAccessRequestOutcome message. TaskAuditAccessRequestOutcome *TaskAuditAccessRequestOutcome `json:"accessRequestOutcome,omitempty"` + // The TaskAuditAccountLifecycleActionCreated message. + TaskAuditAccountLifecycleActionCreated *TaskAuditAccountLifecycleActionCreated `json:"accountLifecycleActionCreated,omitempty"` + // The TaskAuditAccountLifecycleActionFailed message. + TaskAuditAccountLifecycleActionFailed *TaskAuditAccountLifecycleActionFailed `json:"accountLifecycleActionFailed,omitempty"` + // The TaskAuditActionInstanceCreated message. + TaskAuditActionInstanceCreated *TaskAuditActionInstanceCreated `json:"actionInstanceCreated,omitempty"` + // The TaskAuditActionInstanceFailed message. + TaskAuditActionInstanceFailed *TaskAuditActionInstanceFailed `json:"actionInstanceFailed,omitempty"` + // The TaskAuditActionInstanceSucceeded message. + TaskAuditActionInstanceSucceeded *TaskAuditActionInstanceSucceeded `json:"actionInstanceSucceeded,omitempty"` // The TaskAuditActionSubmitted message. TaskAuditActionSubmitted *TaskAuditActionSubmitted `json:"actionSubmitted,omitempty"` // The TaskAuditApprovalAutoAcceptedByPolicy message. @@ -162,6 +213,8 @@ type TaskAuditView struct { TaskAuditPolicyChanged *TaskAuditPolicyChanged `json:"policyChanged,omitempty"` // The TaskAuditPolicyEvaluationStep message. TaskAuditPolicyEvaluationStep *TaskAuditPolicyEvaluationStep `json:"policyEvaluationStep,omitempty"` + // The TaskAuditPolicyProvisionCancelled message. + TaskAuditPolicyProvisionCancelled *TaskAuditPolicyProvisionCancelled `json:"provisionCancelled,omitempty"` // The TaskAuditPolicyProvisionError message. TaskAuditPolicyProvisionError *TaskAuditPolicyProvisionError `json:"provisionError,omitempty"` // The TaskAuditPolicyProvisionReassigned message. @@ -194,12 +247,16 @@ type TaskAuditView struct { TaskAuditWaitStepSuccess *TaskAuditWaitStepSuccess `json:"waitStepSuccess,omitempty"` // The TaskAuditWaitStepTimedOut message. TaskAuditWaitStepTimedOut *TaskAuditWaitStepTimedOut `json:"waitStepTimedOut,omitempty"` + // The TaskAuditWaitStepUntilTime message. + TaskAuditWaitStepUntilTime *TaskAuditWaitStepUntilTime `json:"waitStepUntilTime,omitempty"` // The TaskAuditWaitStepWaiting message. TaskAuditWaitStepWaiting *TaskAuditWaitStepWaiting `json:"waitStepWaiting,omitempty"` // The TaskAuditWebhookApprovalAttempt message. TaskAuditWebhookApprovalAttempt *TaskAuditWebhookApprovalAttempt `json:"webhookApprovalAttempt,omitempty"` // The TaskAuditWebhookApprovalBadResponse message. TaskAuditWebhookApprovalBadResponse *TaskAuditWebhookApprovalBadResponse `json:"webhookApprovalBadResponse,omitempty"` + // The TaskAuditWebhookApprovalFatalError message. + TaskAuditWebhookApprovalFatalError *TaskAuditWebhookApprovalFatalError `json:"webhookApprovalFatalError,omitempty"` // The TaskAuditWebhookApprovalSuccess message. TaskAuditWebhookApprovalSuccess *TaskAuditWebhookApprovalSuccess `json:"webhookApprovalSuccess,omitempty"` // The TaskAuditWebhookApprovalTriggered message. @@ -232,421 +289,477 @@ func (t TaskAuditView) MarshalJSON() ([]byte, error) { } func (t *TaskAuditView) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskAuditView) GetTaskAuditAccessRequestOutcome() *TaskAuditAccessRequestOutcome { - if o == nil { +func (t *TaskAuditView) GetTaskAuditAccessRequestOutcome() *TaskAuditAccessRequestOutcome { + if t == nil { + return nil + } + return t.TaskAuditAccessRequestOutcome +} + +func (t *TaskAuditView) GetTaskAuditAccountLifecycleActionCreated() *TaskAuditAccountLifecycleActionCreated { + if t == nil { + return nil + } + return t.TaskAuditAccountLifecycleActionCreated +} + +func (t *TaskAuditView) GetTaskAuditAccountLifecycleActionFailed() *TaskAuditAccountLifecycleActionFailed { + if t == nil { + return nil + } + return t.TaskAuditAccountLifecycleActionFailed +} + +func (t *TaskAuditView) GetTaskAuditActionInstanceCreated() *TaskAuditActionInstanceCreated { + if t == nil { + return nil + } + return t.TaskAuditActionInstanceCreated +} + +func (t *TaskAuditView) GetTaskAuditActionInstanceFailed() *TaskAuditActionInstanceFailed { + if t == nil { + return nil + } + return t.TaskAuditActionInstanceFailed +} + +func (t *TaskAuditView) GetTaskAuditActionInstanceSucceeded() *TaskAuditActionInstanceSucceeded { + if t == nil { + return nil + } + return t.TaskAuditActionInstanceSucceeded +} + +func (t *TaskAuditView) GetTaskAuditActionSubmitted() *TaskAuditActionSubmitted { + if t == nil { + return nil + } + return t.TaskAuditActionSubmitted +} + +func (t *TaskAuditView) GetTaskAuditApprovalAutoAcceptedByPolicy() *TaskAuditApprovalAutoAcceptedByPolicy { + if t == nil { + return nil + } + return t.TaskAuditApprovalAutoAcceptedByPolicy +} + +func (t *TaskAuditView) GetTaskAuditApprovalAutoRejectedByPolicy() *TaskAuditApprovalAutoRejectedByPolicy { + if t == nil { return nil } - return o.TaskAuditAccessRequestOutcome + return t.TaskAuditApprovalAutoRejectedByPolicy } -func (o *TaskAuditView) GetTaskAuditActionSubmitted() *TaskAuditActionSubmitted { - if o == nil { +func (t *TaskAuditView) GetTaskAuditApprovalHappenedAutomatically() *TaskAuditApprovalHappenedAutomatically { + if t == nil { return nil } - return o.TaskAuditActionSubmitted + return t.TaskAuditApprovalHappenedAutomatically } -func (o *TaskAuditView) GetTaskAuditApprovalAutoAcceptedByPolicy() *TaskAuditApprovalAutoAcceptedByPolicy { - if o == nil { +func (t *TaskAuditView) GetTaskAuditApprovalInstanceChange() *TaskAuditApprovalInstanceChange { + if t == nil { return nil } - return o.TaskAuditApprovalAutoAcceptedByPolicy + return t.TaskAuditApprovalInstanceChange } -func (o *TaskAuditView) GetTaskAuditApprovalAutoRejectedByPolicy() *TaskAuditApprovalAutoRejectedByPolicy { - if o == nil { +func (t *TaskAuditView) GetTaskAuditBulkActionError() *TaskAuditBulkActionError { + if t == nil { return nil } - return o.TaskAuditApprovalAutoRejectedByPolicy + return t.TaskAuditBulkActionError } -func (o *TaskAuditView) GetTaskAuditApprovalHappenedAutomatically() *TaskAuditApprovalHappenedAutomatically { - if o == nil { +func (t *TaskAuditView) GetTaskAuditCertifyOutcome() *TaskAuditCertifyOutcome { + if t == nil { return nil } - return o.TaskAuditApprovalHappenedAutomatically + return t.TaskAuditCertifyOutcome } -func (o *TaskAuditView) GetTaskAuditApprovalInstanceChange() *TaskAuditApprovalInstanceChange { - if o == nil { +func (t *TaskAuditView) GetTaskAuditComment() *TaskAuditComment { + if t == nil { return nil } - return o.TaskAuditApprovalInstanceChange + return t.TaskAuditComment } -func (o *TaskAuditView) GetTaskAuditBulkActionError() *TaskAuditBulkActionError { - if o == nil { +func (t *TaskAuditView) GetTaskAuditConditionalPolicyExecutionResult() *TaskAuditConditionalPolicyExecutionResult { + if t == nil { return nil } - return o.TaskAuditBulkActionError + return t.TaskAuditConditionalPolicyExecutionResult } -func (o *TaskAuditView) GetTaskAuditCertifyOutcome() *TaskAuditCertifyOutcome { - if o == nil { +func (t *TaskAuditView) GetTaskAuditConnectorActionResult() *TaskAuditConnectorActionResult { + if t == nil { return nil } - return o.TaskAuditCertifyOutcome + return t.TaskAuditConnectorActionResult } -func (o *TaskAuditView) GetTaskAuditComment() *TaskAuditComment { - if o == nil { +func (t *TaskAuditView) GetTaskAuditEscalateToEmergencyAccess() *TaskAuditEscalateToEmergencyAccess { + if t == nil { return nil } - return o.TaskAuditComment + return t.TaskAuditEscalateToEmergencyAccess } -func (o *TaskAuditView) GetTaskAuditConditionalPolicyExecutionResult() *TaskAuditConditionalPolicyExecutionResult { - if o == nil { +func (t *TaskAuditView) GetTaskAuditExpressionPolicyStepError() *TaskAuditExpressionPolicyStepError { + if t == nil { return nil } - return o.TaskAuditConditionalPolicyExecutionResult + return t.TaskAuditExpressionPolicyStepError } -func (o *TaskAuditView) GetTaskAuditConnectorActionResult() *TaskAuditConnectorActionResult { - if o == nil { +func (t *TaskAuditView) GetTaskAuditExternalTicketCreated() *TaskAuditExternalTicketCreated { + if t == nil { return nil } - return o.TaskAuditConnectorActionResult + return t.TaskAuditExternalTicketCreated } -func (o *TaskAuditView) GetTaskAuditEscalateToEmergencyAccess() *TaskAuditEscalateToEmergencyAccess { - if o == nil { +func (t *TaskAuditView) GetTaskAuditExternalTicketError() *TaskAuditExternalTicketError { + if t == nil { return nil } - return o.TaskAuditEscalateToEmergencyAccess + return t.TaskAuditExternalTicketError } -func (o *TaskAuditView) GetTaskAuditExpressionPolicyStepError() *TaskAuditExpressionPolicyStepError { - if o == nil { +func (t *TaskAuditView) GetTaskAuditExternalTicketProvisionStepResolved() *TaskAuditExternalTicketProvisionStepResolved { + if t == nil { return nil } - return o.TaskAuditExpressionPolicyStepError + return t.TaskAuditExternalTicketProvisionStepResolved } -func (o *TaskAuditView) GetTaskAuditExternalTicketCreated() *TaskAuditExternalTicketCreated { - if o == nil { +func (t *TaskAuditView) GetTaskAuditExternalTicketTriggered() *TaskAuditExternalTicketTriggered { + if t == nil { return nil } - return o.TaskAuditExternalTicketCreated + return t.TaskAuditExternalTicketTriggered } -func (o *TaskAuditView) GetTaskAuditExternalTicketError() *TaskAuditExternalTicketError { - if o == nil { +func (t *TaskAuditView) GetTaskAuditFinishedConnectorActions() *TaskAuditFinishedConnectorActions { + if t == nil { return nil } - return o.TaskAuditExternalTicketError + return t.TaskAuditFinishedConnectorActions } -func (o *TaskAuditView) GetTaskAuditExternalTicketProvisionStepResolved() *TaskAuditExternalTicketProvisionStepResolved { - if o == nil { +func (t *TaskAuditView) GetTaskAuditFormInstanceChange() *TaskAuditFormInstanceChange { + if t == nil { return nil } - return o.TaskAuditExternalTicketProvisionStepResolved + return t.TaskAuditFormInstanceChange } -func (o *TaskAuditView) GetTaskAuditExternalTicketTriggered() *TaskAuditExternalTicketTriggered { - if o == nil { +func (t *TaskAuditView) GetTaskAuditGrantDurationUpdated() *TaskAuditGrantDurationUpdated { + if t == nil { return nil } - return o.TaskAuditExternalTicketTriggered + return t.TaskAuditGrantDurationUpdated } -func (o *TaskAuditView) GetTaskAuditFinishedConnectorActions() *TaskAuditFinishedConnectorActions { - if o == nil { +func (t *TaskAuditView) GetTaskAuditGrantOutcome() *TaskAuditGrantOutcome { + if t == nil { return nil } - return o.TaskAuditFinishedConnectorActions + return t.TaskAuditGrantOutcome } -func (o *TaskAuditView) GetTaskAuditFormInstanceChange() *TaskAuditFormInstanceChange { - if o == nil { +func (t *TaskAuditView) GetTaskAuditHardReset() *TaskAuditHardReset { + if t == nil { return nil } - return o.TaskAuditFormInstanceChange + return t.TaskAuditHardReset } -func (o *TaskAuditView) GetTaskAuditGrantDurationUpdated() *TaskAuditGrantDurationUpdated { - if o == nil { +func (t *TaskAuditView) GetTaskAuditMetaData() *TaskAuditMetaData { + if t == nil { return nil } - return o.TaskAuditGrantDurationUpdated + return t.TaskAuditMetaData } -func (o *TaskAuditView) GetTaskAuditGrantOutcome() *TaskAuditGrantOutcome { - if o == nil { +func (t *TaskAuditView) GetTaskAuditNewTask() *TaskAuditNewTask { + if t == nil { return nil } - return o.TaskAuditGrantOutcome + return t.TaskAuditNewTask } -func (o *TaskAuditView) GetTaskAuditHardReset() *TaskAuditHardReset { - if o == nil { +func (t *TaskAuditView) GetTaskAuditPolicyApprovalReassigned() *TaskAuditPolicyApprovalReassigned { + if t == nil { return nil } - return o.TaskAuditHardReset + return t.TaskAuditPolicyApprovalReassigned } -func (o *TaskAuditView) GetTaskAuditMetaData() *TaskAuditMetaData { - if o == nil { +func (t *TaskAuditView) GetTaskAuditPolicyChanged() *TaskAuditPolicyChanged { + if t == nil { return nil } - return o.TaskAuditMetaData + return t.TaskAuditPolicyChanged } -func (o *TaskAuditView) GetTaskAuditNewTask() *TaskAuditNewTask { - if o == nil { +func (t *TaskAuditView) GetTaskAuditPolicyEvaluationStep() *TaskAuditPolicyEvaluationStep { + if t == nil { return nil } - return o.TaskAuditNewTask + return t.TaskAuditPolicyEvaluationStep } -func (o *TaskAuditView) GetTaskAuditPolicyApprovalReassigned() *TaskAuditPolicyApprovalReassigned { - if o == nil { +func (t *TaskAuditView) GetTaskAuditPolicyProvisionCancelled() *TaskAuditPolicyProvisionCancelled { + if t == nil { return nil } - return o.TaskAuditPolicyApprovalReassigned + return t.TaskAuditPolicyProvisionCancelled } -func (o *TaskAuditView) GetTaskAuditPolicyChanged() *TaskAuditPolicyChanged { - if o == nil { +func (t *TaskAuditView) GetTaskAuditPolicyProvisionError() *TaskAuditPolicyProvisionError { + if t == nil { return nil } - return o.TaskAuditPolicyChanged + return t.TaskAuditPolicyProvisionError } -func (o *TaskAuditView) GetTaskAuditPolicyEvaluationStep() *TaskAuditPolicyEvaluationStep { - if o == nil { +func (t *TaskAuditView) GetTaskAuditPolicyProvisionReassigned() *TaskAuditPolicyProvisionReassigned { + if t == nil { return nil } - return o.TaskAuditPolicyEvaluationStep + return t.TaskAuditPolicyProvisionReassigned } -func (o *TaskAuditView) GetTaskAuditPolicyProvisionError() *TaskAuditPolicyProvisionError { - if o == nil { +func (t *TaskAuditView) GetTaskAuditReassignedToDelegate() *TaskAuditReassignedToDelegate { + if t == nil { return nil } - return o.TaskAuditPolicyProvisionError + return t.TaskAuditReassignedToDelegate } -func (o *TaskAuditView) GetTaskAuditPolicyProvisionReassigned() *TaskAuditPolicyProvisionReassigned { - if o == nil { +func (t *TaskAuditView) GetTaskAuditReassignmentListError() *TaskAuditReassignmentListError { + if t == nil { return nil } - return o.TaskAuditPolicyProvisionReassigned + return t.TaskAuditReassignmentListError } -func (o *TaskAuditView) GetTaskAuditReassignedToDelegate() *TaskAuditReassignedToDelegate { - if o == nil { +func (t *TaskAuditView) GetTaskAuditRestart() *TaskAuditRestart { + if t == nil { return nil } - return o.TaskAuditReassignedToDelegate + return t.TaskAuditRestart } -func (o *TaskAuditView) GetTaskAuditReassignmentListError() *TaskAuditReassignmentListError { - if o == nil { +func (t *TaskAuditView) GetTaskAuditRevokeOutcome() *TaskAuditRevokeOutcome { + if t == nil { return nil } - return o.TaskAuditReassignmentListError + return t.TaskAuditRevokeOutcome } -func (o *TaskAuditView) GetTaskAuditRestart() *TaskAuditRestart { - if o == nil { +func (t *TaskAuditView) GetTaskAuditSLAEscalation() *TaskAuditSLAEscalation { + if t == nil { return nil } - return o.TaskAuditRestart + return t.TaskAuditSLAEscalation } -func (o *TaskAuditView) GetTaskAuditRevokeOutcome() *TaskAuditRevokeOutcome { - if o == nil { +func (t *TaskAuditView) GetTaskAuditStartedConnectorActions() *TaskAuditStartedConnectorActions { + if t == nil { return nil } - return o.TaskAuditRevokeOutcome + return t.TaskAuditStartedConnectorActions } -func (o *TaskAuditView) GetTaskAuditSLAEscalation() *TaskAuditSLAEscalation { - if o == nil { +func (t *TaskAuditView) GetTaskAuditStateChange() *TaskAuditStateChange { + if t == nil { return nil } - return o.TaskAuditSLAEscalation + return t.TaskAuditStateChange } -func (o *TaskAuditView) GetTaskAuditStartedConnectorActions() *TaskAuditStartedConnectorActions { - if o == nil { +func (t *TaskAuditView) GetTaskAuditStepSkipped() *TaskAuditStepSkipped { + if t == nil { return nil } - return o.TaskAuditStartedConnectorActions + return t.TaskAuditStepSkipped } -func (o *TaskAuditView) GetTaskAuditStateChange() *TaskAuditStateChange { - if o == nil { +func (t *TaskAuditView) GetTaskAuditStepUpApproval() *TaskAuditStepUpApproval { + if t == nil { return nil } - return o.TaskAuditStateChange + return t.TaskAuditStepUpApproval } -func (o *TaskAuditView) GetTaskAuditStepSkipped() *TaskAuditStepSkipped { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWaitForAnalysisStepSuccess() *TaskAuditWaitForAnalysisStepSuccess { + if t == nil { return nil } - return o.TaskAuditStepSkipped + return t.TaskAuditWaitForAnalysisStepSuccess } -func (o *TaskAuditView) GetTaskAuditStepUpApproval() *TaskAuditStepUpApproval { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWaitForAnalysisStepTimedOut() *TaskAuditWaitForAnalysisStepTimedOut { + if t == nil { return nil } - return o.TaskAuditStepUpApproval + return t.TaskAuditWaitForAnalysisStepTimedOut } -func (o *TaskAuditView) GetTaskAuditWaitForAnalysisStepSuccess() *TaskAuditWaitForAnalysisStepSuccess { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWaitForAnalysisStepWaiting() *TaskAuditWaitForAnalysisStepWaiting { + if t == nil { return nil } - return o.TaskAuditWaitForAnalysisStepSuccess + return t.TaskAuditWaitForAnalysisStepWaiting } -func (o *TaskAuditView) GetTaskAuditWaitForAnalysisStepTimedOut() *TaskAuditWaitForAnalysisStepTimedOut { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWaitStepSuccess() *TaskAuditWaitStepSuccess { + if t == nil { return nil } - return o.TaskAuditWaitForAnalysisStepTimedOut + return t.TaskAuditWaitStepSuccess } -func (o *TaskAuditView) GetTaskAuditWaitForAnalysisStepWaiting() *TaskAuditWaitForAnalysisStepWaiting { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWaitStepTimedOut() *TaskAuditWaitStepTimedOut { + if t == nil { return nil } - return o.TaskAuditWaitForAnalysisStepWaiting + return t.TaskAuditWaitStepTimedOut } -func (o *TaskAuditView) GetTaskAuditWaitStepSuccess() *TaskAuditWaitStepSuccess { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWaitStepUntilTime() *TaskAuditWaitStepUntilTime { + if t == nil { return nil } - return o.TaskAuditWaitStepSuccess + return t.TaskAuditWaitStepUntilTime } -func (o *TaskAuditView) GetTaskAuditWaitStepTimedOut() *TaskAuditWaitStepTimedOut { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWaitStepWaiting() *TaskAuditWaitStepWaiting { + if t == nil { return nil } - return o.TaskAuditWaitStepTimedOut + return t.TaskAuditWaitStepWaiting } -func (o *TaskAuditView) GetTaskAuditWaitStepWaiting() *TaskAuditWaitStepWaiting { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWebhookApprovalAttempt() *TaskAuditWebhookApprovalAttempt { + if t == nil { return nil } - return o.TaskAuditWaitStepWaiting + return t.TaskAuditWebhookApprovalAttempt } -func (o *TaskAuditView) GetTaskAuditWebhookApprovalAttempt() *TaskAuditWebhookApprovalAttempt { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWebhookApprovalBadResponse() *TaskAuditWebhookApprovalBadResponse { + if t == nil { return nil } - return o.TaskAuditWebhookApprovalAttempt + return t.TaskAuditWebhookApprovalBadResponse } -func (o *TaskAuditView) GetTaskAuditWebhookApprovalBadResponse() *TaskAuditWebhookApprovalBadResponse { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWebhookApprovalFatalError() *TaskAuditWebhookApprovalFatalError { + if t == nil { return nil } - return o.TaskAuditWebhookApprovalBadResponse + return t.TaskAuditWebhookApprovalFatalError } -func (o *TaskAuditView) GetTaskAuditWebhookApprovalSuccess() *TaskAuditWebhookApprovalSuccess { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWebhookApprovalSuccess() *TaskAuditWebhookApprovalSuccess { + if t == nil { return nil } - return o.TaskAuditWebhookApprovalSuccess + return t.TaskAuditWebhookApprovalSuccess } -func (o *TaskAuditView) GetTaskAuditWebhookApprovalTriggered() *TaskAuditWebhookApprovalTriggered { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWebhookApprovalTriggered() *TaskAuditWebhookApprovalTriggered { + if t == nil { return nil } - return o.TaskAuditWebhookApprovalTriggered + return t.TaskAuditWebhookApprovalTriggered } -func (o *TaskAuditView) GetTaskAuditWebhookAttempt() *TaskAuditWebhookAttempt { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWebhookAttempt() *TaskAuditWebhookAttempt { + if t == nil { return nil } - return o.TaskAuditWebhookAttempt + return t.TaskAuditWebhookAttempt } -func (o *TaskAuditView) GetTaskAuditWebhookSuccess() *TaskAuditWebhookSuccess { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWebhookSuccess() *TaskAuditWebhookSuccess { + if t == nil { return nil } - return o.TaskAuditWebhookSuccess + return t.TaskAuditWebhookSuccess } -func (o *TaskAuditView) GetTaskAuditWebhookTriggered() *TaskAuditWebhookTriggered { - if o == nil { +func (t *TaskAuditView) GetTaskAuditWebhookTriggered() *TaskAuditWebhookTriggered { + if t == nil { return nil } - return o.TaskAuditWebhookTriggered + return t.TaskAuditWebhookTriggered } -func (o *TaskAuditView) GetCreated() *time.Time { - if o == nil { +func (t *TaskAuditView) GetCreated() *time.Time { + if t == nil { return nil } - return o.Created + return t.Created } -func (o *TaskAuditView) GetCurrentState() *CurrentState { - if o == nil { +func (t *TaskAuditView) GetCurrentState() *CurrentState { + if t == nil { return nil } - return o.CurrentState + return t.CurrentState } -func (o *TaskAuditView) GetEventType() *TaskAuditViewEventType { - if o == nil { +func (t *TaskAuditView) GetEventType() *TaskAuditViewEventType { + if t == nil { return nil } - return o.EventType + return t.EventType } -func (o *TaskAuditView) GetID() *string { - if o == nil { +func (t *TaskAuditView) GetID() *string { + if t == nil { return nil } - return o.ID + return t.ID } -func (o *TaskAuditView) GetSource() *Source { - if o == nil { +func (t *TaskAuditView) GetSource() *Source { + if t == nil { return nil } - return o.Source + return t.Source } -func (o *TaskAuditView) GetTicketID() *string { - if o == nil { +func (t *TaskAuditView) GetTicketID() *string { + if t == nil { return nil } - return o.TicketID + return t.TicketID } -func (o *TaskAuditView) GetUserID() *string { - if o == nil { +func (t *TaskAuditView) GetUserID() *string { + if t == nil { return nil } - return o.UserID + return t.UserID } -func (o *TaskAuditView) GetWorkflowStep() *int { - if o == nil { +func (t *TaskAuditView) GetWorkflowStep() *int { + if t == nil { return nil } - return o.WorkflowStep + return t.WorkflowStep } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditviewref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditviewref.go index 1b7581ce..95f0e2fd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditviewref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditviewref.go @@ -8,9 +8,9 @@ type TaskAuditViewRef struct { ID *string `json:"id,omitempty"` } -func (o *TaskAuditViewRef) GetID() *string { - if o == nil { +func (t *TaskAuditViewRef) GetID() *string { + if t == nil { return nil } - return o.ID + return t.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysisstepsuccess.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysisstepsuccess.go index 5973e00a..99a3d7b4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysisstepsuccess.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysisstepsuccess.go @@ -19,22 +19,22 @@ func (t TaskAuditWaitForAnalysisStepSuccess) MarshalJSON() ([]byte, error) { } func (t *TaskAuditWaitForAnalysisStepSuccess) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskAuditWaitForAnalysisStepSuccess) GetStepID() *string { - if o == nil { +func (t *TaskAuditWaitForAnalysisStepSuccess) GetStepID() *string { + if t == nil { return nil } - return o.StepID + return t.StepID } -func (o *TaskAuditWaitForAnalysisStepSuccess) GetSucceededAt() *time.Time { - if o == nil { +func (t *TaskAuditWaitForAnalysisStepSuccess) GetSucceededAt() *time.Time { + if t == nil { return nil } - return o.SucceededAt + return t.SucceededAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysissteptimedout.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysissteptimedout.go index 4239599d..627b297c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysissteptimedout.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysissteptimedout.go @@ -19,22 +19,22 @@ func (t TaskAuditWaitForAnalysisStepTimedOut) MarshalJSON() ([]byte, error) { } func (t *TaskAuditWaitForAnalysisStepTimedOut) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskAuditWaitForAnalysisStepTimedOut) GetStepID() *string { - if o == nil { +func (t *TaskAuditWaitForAnalysisStepTimedOut) GetStepID() *string { + if t == nil { return nil } - return o.StepID + return t.StepID } -func (o *TaskAuditWaitForAnalysisStepTimedOut) GetTimedOutAt() *time.Time { - if o == nil { +func (t *TaskAuditWaitForAnalysisStepTimedOut) GetTimedOutAt() *time.Time { + if t == nil { return nil } - return o.TimedOutAt + return t.TimedOutAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysisstepwaiting.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysisstepwaiting.go index 7cba2097..1d3b79dc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysisstepwaiting.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitforanalysisstepwaiting.go @@ -8,9 +8,9 @@ type TaskAuditWaitForAnalysisStepWaiting struct { StepID *string `json:"stepId,omitempty"` } -func (o *TaskAuditWaitForAnalysisStepWaiting) GetStepID() *string { - if o == nil { +func (t *TaskAuditWaitForAnalysisStepWaiting) GetStepID() *string { + if t == nil { return nil } - return o.StepID + return t.StepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepsuccess.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepsuccess.go index a0cf46bd..eeee5265 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepsuccess.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepsuccess.go @@ -21,29 +21,29 @@ func (t TaskAuditWaitStepSuccess) MarshalJSON() ([]byte, error) { } func (t *TaskAuditWaitStepSuccess) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskAuditWaitStepSuccess) GetCondition() *string { - if o == nil { +func (t *TaskAuditWaitStepSuccess) GetCondition() *string { + if t == nil { return nil } - return o.Condition + return t.Condition } -func (o *TaskAuditWaitStepSuccess) GetStepID() *string { - if o == nil { +func (t *TaskAuditWaitStepSuccess) GetStepID() *string { + if t == nil { return nil } - return o.StepID + return t.StepID } -func (o *TaskAuditWaitStepSuccess) GetSucceededAt() *time.Time { - if o == nil { +func (t *TaskAuditWaitStepSuccess) GetSucceededAt() *time.Time { + if t == nil { return nil } - return o.SucceededAt + return t.SucceededAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitsteptimedout.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitsteptimedout.go index e317ec74..d3da757a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitsteptimedout.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitsteptimedout.go @@ -21,29 +21,29 @@ func (t TaskAuditWaitStepTimedOut) MarshalJSON() ([]byte, error) { } func (t *TaskAuditWaitStepTimedOut) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskAuditWaitStepTimedOut) GetCondition() *string { - if o == nil { +func (t *TaskAuditWaitStepTimedOut) GetCondition() *string { + if t == nil { return nil } - return o.Condition + return t.Condition } -func (o *TaskAuditWaitStepTimedOut) GetStepID() *string { - if o == nil { +func (t *TaskAuditWaitStepTimedOut) GetStepID() *string { + if t == nil { return nil } - return o.StepID + return t.StepID } -func (o *TaskAuditWaitStepTimedOut) GetTimedOutAt() *time.Time { - if o == nil { +func (t *TaskAuditWaitStepTimedOut) GetTimedOutAt() *time.Time { + if t == nil { return nil } - return o.TimedOutAt + return t.TimedOutAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepuntiltime.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepuntiltime.go new file mode 100644 index 00000000..a534cee8 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepuntiltime.go @@ -0,0 +1,40 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The TaskAuditWaitStepUntilTime message. +type TaskAuditWaitStepUntilTime struct { + // The stepId field. + StepID *string `json:"stepId,omitempty"` + UntilTime *time.Time `json:"untilTime,omitempty"` +} + +func (t TaskAuditWaitStepUntilTime) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TaskAuditWaitStepUntilTime) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { + return err + } + return nil +} + +func (t *TaskAuditWaitStepUntilTime) GetStepID() *string { + if t == nil { + return nil + } + return t.StepID +} + +func (t *TaskAuditWaitStepUntilTime) GetUntilTime() *time.Time { + if t == nil { + return nil + } + return t.UntilTime +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepwaiting.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepwaiting.go index 09c84cc6..1e581ade 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepwaiting.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwaitstepwaiting.go @@ -10,16 +10,16 @@ type TaskAuditWaitStepWaiting struct { StepID *string `json:"stepId,omitempty"` } -func (o *TaskAuditWaitStepWaiting) GetCondition() *string { - if o == nil { +func (t *TaskAuditWaitStepWaiting) GetCondition() *string { + if t == nil { return nil } - return o.Condition + return t.Condition } -func (o *TaskAuditWaitStepWaiting) GetStepID() *string { - if o == nil { +func (t *TaskAuditWaitStepWaiting) GetStepID() *string { + if t == nil { return nil } - return o.StepID + return t.StepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalattempt.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalattempt.go index c5a5fc3e..2fd2c65f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalattempt.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalattempt.go @@ -14,30 +14,30 @@ type TaskAuditWebhookApprovalAttempt struct { WebhookURL *string `json:"webhookUrl,omitempty"` } -func (o *TaskAuditWebhookApprovalAttempt) GetWebhookID() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalAttempt) GetWebhookID() *string { + if t == nil { return nil } - return o.WebhookID + return t.WebhookID } -func (o *TaskAuditWebhookApprovalAttempt) GetWebhookInstanceID() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalAttempt) GetWebhookInstanceID() *string { + if t == nil { return nil } - return o.WebhookInstanceID + return t.WebhookInstanceID } -func (o *TaskAuditWebhookApprovalAttempt) GetWebhookName() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalAttempt) GetWebhookName() *string { + if t == nil { return nil } - return o.WebhookName + return t.WebhookName } -func (o *TaskAuditWebhookApprovalAttempt) GetWebhookURL() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalAttempt) GetWebhookURL() *string { + if t == nil { return nil } - return o.WebhookURL + return t.WebhookURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalbadresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalbadresponse.go index 2d59e167..52fb115b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalbadresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalbadresponse.go @@ -16,37 +16,37 @@ type TaskAuditWebhookApprovalBadResponse struct { WebhookURL *string `json:"webhookUrl,omitempty"` } -func (o *TaskAuditWebhookApprovalBadResponse) GetError() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalBadResponse) GetError() *string { + if t == nil { return nil } - return o.Error + return t.Error } -func (o *TaskAuditWebhookApprovalBadResponse) GetWebhookID() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalBadResponse) GetWebhookID() *string { + if t == nil { return nil } - return o.WebhookID + return t.WebhookID } -func (o *TaskAuditWebhookApprovalBadResponse) GetWebhookInstanceID() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalBadResponse) GetWebhookInstanceID() *string { + if t == nil { return nil } - return o.WebhookInstanceID + return t.WebhookInstanceID } -func (o *TaskAuditWebhookApprovalBadResponse) GetWebhookName() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalBadResponse) GetWebhookName() *string { + if t == nil { return nil } - return o.WebhookName + return t.WebhookName } -func (o *TaskAuditWebhookApprovalBadResponse) GetWebhookURL() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalBadResponse) GetWebhookURL() *string { + if t == nil { return nil } - return o.WebhookURL + return t.WebhookURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalfatalerror.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalfatalerror.go new file mode 100644 index 00000000..98e17aa0 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalfatalerror.go @@ -0,0 +1,52 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The TaskAuditWebhookApprovalFatalError message. +type TaskAuditWebhookApprovalFatalError struct { + // The error field. + Error *string `json:"error,omitempty"` + // The webhookId field. + WebhookID *string `json:"webhookId,omitempty"` + // The webhookInstanceId field. + WebhookInstanceID *string `json:"webhookInstanceId,omitempty"` + // The webhookName field. + WebhookName *string `json:"webhookName,omitempty"` + // The webhookUrl field. + WebhookURL *string `json:"webhookUrl,omitempty"` +} + +func (t *TaskAuditWebhookApprovalFatalError) GetError() *string { + if t == nil { + return nil + } + return t.Error +} + +func (t *TaskAuditWebhookApprovalFatalError) GetWebhookID() *string { + if t == nil { + return nil + } + return t.WebhookID +} + +func (t *TaskAuditWebhookApprovalFatalError) GetWebhookInstanceID() *string { + if t == nil { + return nil + } + return t.WebhookInstanceID +} + +func (t *TaskAuditWebhookApprovalFatalError) GetWebhookName() *string { + if t == nil { + return nil + } + return t.WebhookName +} + +func (t *TaskAuditWebhookApprovalFatalError) GetWebhookURL() *string { + if t == nil { + return nil + } + return t.WebhookURL +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalsuccess.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalsuccess.go index 783e5959..6d42f5e9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalsuccess.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovalsuccess.go @@ -14,30 +14,30 @@ type TaskAuditWebhookApprovalSuccess struct { WebhookURL *string `json:"webhookUrl,omitempty"` } -func (o *TaskAuditWebhookApprovalSuccess) GetWebhookID() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalSuccess) GetWebhookID() *string { + if t == nil { return nil } - return o.WebhookID + return t.WebhookID } -func (o *TaskAuditWebhookApprovalSuccess) GetWebhookInstanceID() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalSuccess) GetWebhookInstanceID() *string { + if t == nil { return nil } - return o.WebhookInstanceID + return t.WebhookInstanceID } -func (o *TaskAuditWebhookApprovalSuccess) GetWebhookName() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalSuccess) GetWebhookName() *string { + if t == nil { return nil } - return o.WebhookName + return t.WebhookName } -func (o *TaskAuditWebhookApprovalSuccess) GetWebhookURL() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalSuccess) GetWebhookURL() *string { + if t == nil { return nil } - return o.WebhookURL + return t.WebhookURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovaltriggered.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovaltriggered.go index 5e509ced..74439983 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovaltriggered.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookapprovaltriggered.go @@ -14,30 +14,30 @@ type TaskAuditWebhookApprovalTriggered struct { WebhookURL *string `json:"webhookUrl,omitempty"` } -func (o *TaskAuditWebhookApprovalTriggered) GetWebhookID() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalTriggered) GetWebhookID() *string { + if t == nil { return nil } - return o.WebhookID + return t.WebhookID } -func (o *TaskAuditWebhookApprovalTriggered) GetWebhookInstanceID() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalTriggered) GetWebhookInstanceID() *string { + if t == nil { return nil } - return o.WebhookInstanceID + return t.WebhookInstanceID } -func (o *TaskAuditWebhookApprovalTriggered) GetWebhookName() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalTriggered) GetWebhookName() *string { + if t == nil { return nil } - return o.WebhookName + return t.WebhookName } -func (o *TaskAuditWebhookApprovalTriggered) GetWebhookURL() *string { - if o == nil { +func (t *TaskAuditWebhookApprovalTriggered) GetWebhookURL() *string { + if t == nil { return nil } - return o.WebhookURL + return t.WebhookURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookattempt.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookattempt.go index 7504607f..758ffc83 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookattempt.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhookattempt.go @@ -14,30 +14,30 @@ type TaskAuditWebhookAttempt struct { WebhookURL *string `json:"webhookUrl,omitempty"` } -func (o *TaskAuditWebhookAttempt) GetWebhookID() *string { - if o == nil { +func (t *TaskAuditWebhookAttempt) GetWebhookID() *string { + if t == nil { return nil } - return o.WebhookID + return t.WebhookID } -func (o *TaskAuditWebhookAttempt) GetWebhookInstanceID() *string { - if o == nil { +func (t *TaskAuditWebhookAttempt) GetWebhookInstanceID() *string { + if t == nil { return nil } - return o.WebhookInstanceID + return t.WebhookInstanceID } -func (o *TaskAuditWebhookAttempt) GetWebhookName() *string { - if o == nil { +func (t *TaskAuditWebhookAttempt) GetWebhookName() *string { + if t == nil { return nil } - return o.WebhookName + return t.WebhookName } -func (o *TaskAuditWebhookAttempt) GetWebhookURL() *string { - if o == nil { +func (t *TaskAuditWebhookAttempt) GetWebhookURL() *string { + if t == nil { return nil } - return o.WebhookURL + return t.WebhookURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhooksuccess.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhooksuccess.go index 11d0f8f8..eedc29b8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhooksuccess.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhooksuccess.go @@ -14,30 +14,30 @@ type TaskAuditWebhookSuccess struct { WebhookURL *string `json:"webhookUrl,omitempty"` } -func (o *TaskAuditWebhookSuccess) GetWebhookID() *string { - if o == nil { +func (t *TaskAuditWebhookSuccess) GetWebhookID() *string { + if t == nil { return nil } - return o.WebhookID + return t.WebhookID } -func (o *TaskAuditWebhookSuccess) GetWebhookInstanceID() *string { - if o == nil { +func (t *TaskAuditWebhookSuccess) GetWebhookInstanceID() *string { + if t == nil { return nil } - return o.WebhookInstanceID + return t.WebhookInstanceID } -func (o *TaskAuditWebhookSuccess) GetWebhookName() *string { - if o == nil { +func (t *TaskAuditWebhookSuccess) GetWebhookName() *string { + if t == nil { return nil } - return o.WebhookName + return t.WebhookName } -func (o *TaskAuditWebhookSuccess) GetWebhookURL() *string { - if o == nil { +func (t *TaskAuditWebhookSuccess) GetWebhookURL() *string { + if t == nil { return nil } - return o.WebhookURL + return t.WebhookURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhooktriggered.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhooktriggered.go index 31f4af1c..33db4ff4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhooktriggered.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskauditwebhooktriggered.go @@ -14,30 +14,30 @@ type TaskAuditWebhookTriggered struct { WebhookURL *string `json:"webhookUrl,omitempty"` } -func (o *TaskAuditWebhookTriggered) GetWebhookID() *string { - if o == nil { +func (t *TaskAuditWebhookTriggered) GetWebhookID() *string { + if t == nil { return nil } - return o.WebhookID + return t.WebhookID } -func (o *TaskAuditWebhookTriggered) GetWebhookInstanceID() *string { - if o == nil { +func (t *TaskAuditWebhookTriggered) GetWebhookInstanceID() *string { + if t == nil { return nil } - return o.WebhookInstanceID + return t.WebhookInstanceID } -func (o *TaskAuditWebhookTriggered) GetWebhookName() *string { - if o == nil { +func (t *TaskAuditWebhookTriggered) GetWebhookName() *string { + if t == nil { return nil } - return o.WebhookName + return t.WebhookName } -func (o *TaskAuditWebhookTriggered) GetWebhookURL() *string { - if o == nil { +func (t *TaskAuditWebhookTriggered) GetWebhookURL() *string { + if t == nil { return nil } - return o.WebhookURL + return t.WebhookURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskexpandmask.go index 8bc2e1f0..a9469df7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskexpandmask.go @@ -4,13 +4,13 @@ package shared // TaskExpandMask - The task expand mask is an array of strings that specifes the related objects the requester wishes to have returned when making a request where the expand mask is part of the input. Use '*' to view all possible responses. type TaskExpandMask struct { - // A list of paths to expand in the response. May be any combination of "*", "access_review_id", "user_id", "created_by_user_id", "app_id", "app_user_id", "app_entitlement_ids", "step_approver_ids", "identity_user_id", and "insight_ids". + // A list of paths to expand in the response. May be any combination of "*", "access_review_id", "user_id", "created_by_user_id", "app_id", "app_user_id", "app_entitlement_ids", "step_approver_ids", "identity_user_id", "insight_ids", and "app_user_last_usage". Paths []string `json:"paths,omitempty"` } -func (o *TaskExpandMask) GetPaths() []string { - if o == nil { +func (t *TaskExpandMask) GetPaths() []string { + if t == nil { return nil } - return o.Paths + return t.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskgrantsource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskgrantsource.go index 2412ed55..0be0a407 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskgrantsource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskgrantsource.go @@ -14,30 +14,30 @@ type TaskGrantSource struct { RequestID *string `json:"requestId,omitempty"` } -func (o *TaskGrantSource) GetConversationID() *string { - if o == nil { +func (t *TaskGrantSource) GetConversationID() *string { + if t == nil { return nil } - return o.ConversationID + return t.ConversationID } -func (o *TaskGrantSource) GetExternalURL() *string { - if o == nil { +func (t *TaskGrantSource) GetExternalURL() *string { + if t == nil { return nil } - return o.ExternalURL + return t.ExternalURL } -func (o *TaskGrantSource) GetIntegrationID() *string { - if o == nil { +func (t *TaskGrantSource) GetIntegrationID() *string { + if t == nil { return nil } - return o.IntegrationID + return t.IntegrationID } -func (o *TaskGrantSource) GetRequestID() *string { - if o == nil { +func (t *TaskGrantSource) GetRequestID() *string { + if t == nil { return nil } - return o.RequestID + return t.RequestID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskref.go index 0ef0703c..679ca4cf 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskref.go @@ -8,9 +8,9 @@ type TaskRef struct { ID *string `json:"id,omitempty"` } -func (o *TaskRef) GetID() *string { - if o == nil { +func (t *TaskRef) GetID() *string { + if t == nil { return nil } - return o.ID + return t.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesource.go index 959e6b4a..65ff63d4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesource.go @@ -20,30 +20,30 @@ type TaskRevokeSource struct { TaskRevokeSourceReview *TaskRevokeSourceReview `json:"review,omitempty"` } -func (o *TaskRevokeSource) GetTaskRevokeSourceExpired() *TaskRevokeSourceExpired { - if o == nil { +func (t *TaskRevokeSource) GetTaskRevokeSourceExpired() *TaskRevokeSourceExpired { + if t == nil { return nil } - return o.TaskRevokeSourceExpired + return t.TaskRevokeSourceExpired } -func (o *TaskRevokeSource) GetTaskRevokeSourceNonUsage() *TaskRevokeSourceNonUsage { - if o == nil { +func (t *TaskRevokeSource) GetTaskRevokeSourceNonUsage() *TaskRevokeSourceNonUsage { + if t == nil { return nil } - return o.TaskRevokeSourceNonUsage + return t.TaskRevokeSourceNonUsage } -func (o *TaskRevokeSource) GetTaskRevokeSourceRequest() *TaskRevokeSourceRequest { - if o == nil { +func (t *TaskRevokeSource) GetTaskRevokeSourceRequest() *TaskRevokeSourceRequest { + if t == nil { return nil } - return o.TaskRevokeSourceRequest + return t.TaskRevokeSourceRequest } -func (o *TaskRevokeSource) GetTaskRevokeSourceReview() *TaskRevokeSourceReview { - if o == nil { +func (t *TaskRevokeSource) GetTaskRevokeSourceReview() *TaskRevokeSourceReview { + if t == nil { return nil } - return o.TaskRevokeSourceReview + return t.TaskRevokeSourceReview } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourceexpired.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourceexpired.go index ce5867c4..81654ddc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourceexpired.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourceexpired.go @@ -17,15 +17,15 @@ func (t TaskRevokeSourceExpired) MarshalJSON() ([]byte, error) { } func (t *TaskRevokeSourceExpired) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskRevokeSourceExpired) GetExpiredAt() *time.Time { - if o == nil { +func (t *TaskRevokeSourceExpired) GetExpiredAt() *time.Time { + if t == nil { return nil } - return o.ExpiredAt + return t.ExpiredAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcenonusage.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcenonusage.go index 40eaa388..5aa05c9e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcenonusage.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcenonusage.go @@ -18,22 +18,22 @@ func (t TaskRevokeSourceNonUsage) MarshalJSON() ([]byte, error) { } func (t *TaskRevokeSourceNonUsage) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskRevokeSourceNonUsage) GetExpiresAt() *time.Time { - if o == nil { +func (t *TaskRevokeSourceNonUsage) GetExpiresAt() *time.Time { + if t == nil { return nil } - return o.ExpiresAt + return t.ExpiresAt } -func (o *TaskRevokeSourceNonUsage) GetLastLogin() *time.Time { - if o == nil { +func (t *TaskRevokeSourceNonUsage) GetLastLogin() *time.Time { + if t == nil { return nil } - return o.LastLogin + return t.LastLogin } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcerequest.go index adae0cf6..b7f97dcb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcerequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcerequest.go @@ -8,9 +8,9 @@ type TaskRevokeSourceRequest struct { RequestUserID *string `json:"requestUserId,omitempty"` } -func (o *TaskRevokeSourceRequest) GetRequestUserID() *string { - if o == nil { +func (t *TaskRevokeSourceRequest) GetRequestUserID() *string { + if t == nil { return nil } - return o.RequestUserID + return t.RequestUserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcereview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcereview.go index 5a19ff1e..06b6102e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcereview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskrevokesourcereview.go @@ -10,16 +10,16 @@ type TaskRevokeSourceReview struct { CertTicketID *string `json:"certTicketId,omitempty"` } -func (o *TaskRevokeSourceReview) GetAccessReviewID() *string { - if o == nil { +func (t *TaskRevokeSourceReview) GetAccessReviewID() *string { + if t == nil { return nil } - return o.AccessReviewID + return t.AccessReviewID } -func (o *TaskRevokeSourceReview) GetCertTicketID() *string { - if o == nil { +func (t *TaskRevokeSourceReview) GetCertTicketID() *string { + if t == nil { return nil } - return o.CertTicketID + return t.CertTicketID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasksearchrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasksearchrequest.go index c6f2d8c1..9519fea6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasksearchrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasksearchrequest.go @@ -7,19 +7,56 @@ import ( "time" ) -type AccountTypes string +type TaskSearchRequestAccountTypes string const ( - AccountTypesAppUserTypeUnspecified AccountTypes = "APP_USER_TYPE_UNSPECIFIED" - AccountTypesAppUserTypeUser AccountTypes = "APP_USER_TYPE_USER" - AccountTypesAppUserTypeServiceAccount AccountTypes = "APP_USER_TYPE_SERVICE_ACCOUNT" - AccountTypesAppUserTypeSystemAccount AccountTypes = "APP_USER_TYPE_SYSTEM_ACCOUNT" + TaskSearchRequestAccountTypesAppUserTypeUnspecified TaskSearchRequestAccountTypes = "APP_USER_TYPE_UNSPECIFIED" + TaskSearchRequestAccountTypesAppUserTypeUser TaskSearchRequestAccountTypes = "APP_USER_TYPE_USER" + TaskSearchRequestAccountTypesAppUserTypeServiceAccount TaskSearchRequestAccountTypes = "APP_USER_TYPE_SERVICE_ACCOUNT" + TaskSearchRequestAccountTypesAppUserTypeSystemAccount TaskSearchRequestAccountTypes = "APP_USER_TYPE_SYSTEM_ACCOUNT" ) -func (e AccountTypes) ToPointer() *AccountTypes { +func (e TaskSearchRequestAccountTypes) ToPointer() *TaskSearchRequestAccountTypes { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskSearchRequestAccountTypes) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + +type CertifyOutcomes string + +const ( + CertifyOutcomesCertifyOutcomeUnspecified CertifyOutcomes = "CERTIFY_OUTCOME_UNSPECIFIED" + CertifyOutcomesCertifyOutcomeCertified CertifyOutcomes = "CERTIFY_OUTCOME_CERTIFIED" + CertifyOutcomesCertifyOutcomeDecertified CertifyOutcomes = "CERTIFY_OUTCOME_DECERTIFIED" + CertifyOutcomesCertifyOutcomeError CertifyOutcomes = "CERTIFY_OUTCOME_ERROR" + CertifyOutcomesCertifyOutcomeCancelled CertifyOutcomes = "CERTIFY_OUTCOME_CANCELLED" + CertifyOutcomesCertifyOutcomeWaitTimedOut CertifyOutcomes = "CERTIFY_OUTCOME_WAIT_TIMED_OUT" +) + +func (e CertifyOutcomes) ToPointer() *CertifyOutcomes { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *CertifyOutcomes) IsExact() bool { + if e != nil { + switch *e { + case "CERTIFY_OUTCOME_UNSPECIFIED", "CERTIFY_OUTCOME_CERTIFIED", "CERTIFY_OUTCOME_DECERTIFIED", "CERTIFY_OUTCOME_ERROR", "CERTIFY_OUTCOME_CANCELLED", "CERTIFY_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + // CurrentStep - Search tasks that have this type of step as the current step. type CurrentStep string @@ -33,6 +70,17 @@ func (e CurrentStep) ToPointer() *CurrentStep { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *CurrentStep) IsExact() bool { + if e != nil { + switch *e { + case "TASK_SEARCH_CURRENT_STEP_UNSPECIFIED", "TASK_SEARCH_CURRENT_STEP_APPROVAL", "TASK_SEARCH_CURRENT_STEP_PROVISION": + return true + } + } + return false +} + // EmergencyStatus - Search tasks that are or are not emergency access. type EmergencyStatus string @@ -47,24 +95,99 @@ func (e EmergencyStatus) ToPointer() *EmergencyStatus { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *EmergencyStatus) IsExact() bool { + if e != nil { + switch *e { + case "UNSPECIFIED", "ALL", "NON_EMERGENCY", "EMERGENCY": + return true + } + } + return false +} + +type GrantOutcomes string + +const ( + GrantOutcomesGrantOutcomeUnspecified GrantOutcomes = "GRANT_OUTCOME_UNSPECIFIED" + GrantOutcomesGrantOutcomeGranted GrantOutcomes = "GRANT_OUTCOME_GRANTED" + GrantOutcomesGrantOutcomeDenied GrantOutcomes = "GRANT_OUTCOME_DENIED" + GrantOutcomesGrantOutcomeError GrantOutcomes = "GRANT_OUTCOME_ERROR" + GrantOutcomesGrantOutcomeCancelled GrantOutcomes = "GRANT_OUTCOME_CANCELLED" + GrantOutcomesGrantOutcomeWaitTimedOut GrantOutcomes = "GRANT_OUTCOME_WAIT_TIMED_OUT" +) + +func (e GrantOutcomes) ToPointer() *GrantOutcomes { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *GrantOutcomes) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_OUTCOME_UNSPECIFIED", "GRANT_OUTCOME_GRANTED", "GRANT_OUTCOME_DENIED", "GRANT_OUTCOME_ERROR", "GRANT_OUTCOME_CANCELLED", "GRANT_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + +type RevokeOutcomes string + +const ( + RevokeOutcomesRevokeOutcomeUnspecified RevokeOutcomes = "REVOKE_OUTCOME_UNSPECIFIED" + RevokeOutcomesRevokeOutcomeRevoked RevokeOutcomes = "REVOKE_OUTCOME_REVOKED" + RevokeOutcomesRevokeOutcomeDenied RevokeOutcomes = "REVOKE_OUTCOME_DENIED" + RevokeOutcomesRevokeOutcomeError RevokeOutcomes = "REVOKE_OUTCOME_ERROR" + RevokeOutcomesRevokeOutcomeCancelled RevokeOutcomes = "REVOKE_OUTCOME_CANCELLED" + RevokeOutcomesRevokeOutcomeWaitTimedOut RevokeOutcomes = "REVOKE_OUTCOME_WAIT_TIMED_OUT" +) + +func (e RevokeOutcomes) ToPointer() *RevokeOutcomes { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *RevokeOutcomes) IsExact() bool { + if e != nil { + switch *e { + case "REVOKE_OUTCOME_UNSPECIFIED", "REVOKE_OUTCOME_REVOKED", "REVOKE_OUTCOME_DENIED", "REVOKE_OUTCOME_ERROR", "REVOKE_OUTCOME_CANCELLED", "REVOKE_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + // SortBy - Sort tasks in a specific order. type SortBy string const ( - SortByTaskSearchSortByUnspecified SortBy = "TASK_SEARCH_SORT_BY_UNSPECIFIED" - SortByTaskSearchSortByAccount SortBy = "TASK_SEARCH_SORT_BY_ACCOUNT" - SortByTaskSearchSortByResource SortBy = "TASK_SEARCH_SORT_BY_RESOURCE" - SortByTaskSearchSortByAccountOwner SortBy = "TASK_SEARCH_SORT_BY_ACCOUNT_OWNER" - SortByTaskSearchSortByReverseTicketID SortBy = "TASK_SEARCH_SORT_BY_REVERSE_TICKET_ID" - SortByTaskSearchSortByTicketID SortBy = "TASK_SEARCH_SORT_BY_TICKET_ID" - SortByTaskSearchSortByCreatedAt SortBy = "TASK_SEARCH_SORT_BY_CREATED_AT" - SortByTaskSearchSortByReverseCreatedAt SortBy = "TASK_SEARCH_SORT_BY_REVERSE_CREATED_AT" + SortByTaskSearchSortByUnspecified SortBy = "TASK_SEARCH_SORT_BY_UNSPECIFIED" + SortByTaskSearchSortByAccount SortBy = "TASK_SEARCH_SORT_BY_ACCOUNT" + SortByTaskSearchSortByResource SortBy = "TASK_SEARCH_SORT_BY_RESOURCE" + SortByTaskSearchSortByAccountOwner SortBy = "TASK_SEARCH_SORT_BY_ACCOUNT_OWNER" + SortByTaskSearchSortByReverseTicketID SortBy = "TASK_SEARCH_SORT_BY_REVERSE_TICKET_ID" + SortByTaskSearchSortByTicketID SortBy = "TASK_SEARCH_SORT_BY_TICKET_ID" + SortByTaskSearchSortByCreatedAt SortBy = "TASK_SEARCH_SORT_BY_CREATED_AT" + SortByTaskSearchSortByReverseCreatedAt SortBy = "TASK_SEARCH_SORT_BY_REVERSE_CREATED_AT" + SortByTaskSearchSortByAppResourceIDAndAppEntitlement SortBy = "TASK_SEARCH_SORT_BY_APP_RESOURCE_ID_AND_APP_ENTITLEMENT" ) func (e SortBy) ToPointer() *SortBy { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *SortBy) IsExact() bool { + if e != nil { + switch *e { + case "TASK_SEARCH_SORT_BY_UNSPECIFIED", "TASK_SEARCH_SORT_BY_ACCOUNT", "TASK_SEARCH_SORT_BY_RESOURCE", "TASK_SEARCH_SORT_BY_ACCOUNT_OWNER", "TASK_SEARCH_SORT_BY_REVERSE_TICKET_ID", "TASK_SEARCH_SORT_BY_TICKET_ID", "TASK_SEARCH_SORT_BY_CREATED_AT", "TASK_SEARCH_SORT_BY_REVERSE_CREATED_AT", "TASK_SEARCH_SORT_BY_APP_RESOURCE_ID_AND_APP_ENTITLEMENT": + return true + } + } + return false +} + type StepApprovalTypes string const ( @@ -85,6 +208,17 @@ func (e StepApprovalTypes) ToPointer() *StepApprovalTypes { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *StepApprovalTypes) IsExact() bool { + if e != nil { + switch *e { + case "STEP_APPROVAL_TYPE_UNSPECIFIED", "STEP_APPROVAL_TYPE_USERS", "STEP_APPROVAL_TYPE_MANAGER", "STEP_APPROVAL_TYPE_APP_OWNERS", "STEP_APPROVAL_TYPE_GROUP", "STEP_APPROVAL_TYPE_SELF", "STEP_APPROVAL_TYPE_ENTITLEMENT_OWNERS", "STEP_APPROVAL_TYPE_EXPRESSION", "STEP_APPROVAL_TYPE_WEBHOOK", "STEP_APPROVAL_TYPE_RESOURCE_OWNERS", "STEP_APPROVAL_TYPE_AGENT": + return true + } + } + return false +} + type TaskStates string const ( @@ -97,6 +231,17 @@ func (e TaskStates) ToPointer() *TaskStates { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskStates) IsExact() bool { + if e != nil { + switch *e { + case "TASK_STATE_UNSPECIFIED", "TASK_STATE_OPEN", "TASK_STATE_CLOSED": + return true + } + } + return false +} + // TaskSearchRequest - Search for tasks based on a plethora filters. type TaskSearchRequest struct { // The task expand mask is an array of strings that specifes the related objects the requester wishes to have returned when making a request where the expand mask is part of the input. Use '*' to view all possible responses. @@ -106,7 +251,7 @@ type TaskSearchRequest struct { // Search tasks that have any of these account owners. AccountOwnerIds []string `json:"accountOwnerIds,omitempty"` // The accountTypes field. - AccountTypes []AccountTypes `json:"accountTypes,omitempty"` + AccountTypes []TaskSearchRequestAccountTypes `json:"accountTypes,omitempty"` // Search tasks that have this actor ID. ActorID *string `json:"actorId,omitempty"` // Search tasks that have any of these app entitlement IDs. @@ -122,9 +267,11 @@ type TaskSearchRequest struct { // Search tasks that are currently assigned to this user, or that are closed and were previously approved by this user. AssignedOrStepApproverUserID *string `json:"assignedOrStepApproverUserId,omitempty"` // Search tasks by List of UserIDs which are currently assigned these Tasks - AssigneesInIds []string `json:"assigneesInIds,omitempty"` - CreatedAfter *time.Time `json:"createdAfter,omitempty"` - CreatedBefore *time.Time `json:"createdBefore,omitempty"` + AssigneesInIds []string `json:"assigneesInIds,omitempty"` + // Search tasks by certify outcome + CertifyOutcomes []CertifyOutcomes `json:"certifyOutcomes,omitempty"` + CreatedAfter *time.Time `json:"createdAfter,omitempty"` + CreatedBefore *time.Time `json:"createdBefore,omitempty"` // Search tasks that have this type of step as the current step. CurrentStep *CurrentStep `json:"currentStep,omitempty"` // Search tasks that are or are not emergency access. @@ -135,6 +282,9 @@ type TaskSearchRequest struct { ExcludeAppResourceTypeIds []string `json:"excludeAppResourceTypeIds,omitempty"` // Exclude Specific TaskIDs from this serach result. ExcludeIds []string `json:"excludeIds,omitempty"` + // Search tasks by grant outcome + GrantOutcomes []GrantOutcomes `json:"grantOutcomes,omitempty"` + IncludeActedAfter *time.Time `json:"includeActedAfter,omitempty"` // Whether or not to include deleted tasks. IncludeDeleted *bool `json:"includeDeleted,omitempty"` // Search tasks where the user would see this task in the My Work section @@ -143,17 +293,21 @@ type TaskSearchRequest struct { // Search tasks that were created by any of the users in this array. OpenerIds []string `json:"openerIds,omitempty"` // Search tasks that were opened by this user, or that the user is the subject of. - OpenerOrSubjectUserID *string `json:"openerOrSubjectUserId,omitempty"` + OpenerOrSubjectUserID *string `json:"openerOrSubjectUserId,omitempty"` + OutcomeAfter *time.Time `json:"outcomeAfter,omitempty"` + OutcomeBefore *time.Time `json:"outcomeBefore,omitempty"` // The pageSize where 0 <= pageSize <= 100. Values < 10 will be set to 10. A value of 0 returns the default page size (currently 25) PageSize *int `json:"pageSize,omitempty"` // The pageToken field. PageToken *string `json:"pageToken,omitempty"` // Search tasks that were acted on by any of these users. PreviouslyActedOnIds []string `json:"previouslyActedOnIds,omitempty"` - // Fuzzy search tasks by display name or description. Also can search by numeric ID. + // Fuzzy search tasks by display name, description, or ID. Query *string `json:"query,omitempty"` // Query tasks by display name, description, or numeric ID. Refs []TaskRef `json:"refs,omitempty"` + // Search tasks by revoke outcome + RevokeOutcomes []RevokeOutcomes `json:"revokeOutcomes,omitempty"` // Sort tasks in a specific order. SortBy *SortBy `json:"sortBy,omitempty"` // Search tasks that have a current policy step of this type @@ -173,253 +327,295 @@ func (t TaskSearchRequest) MarshalJSON() ([]byte, error) { } func (t *TaskSearchRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskSearchRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskSearchRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { + return nil + } + return t.TaskExpandMask +} + +func (t *TaskSearchRequest) GetAccessReviewIds() []string { + if t == nil { + return nil + } + return t.AccessReviewIds +} + +func (t *TaskSearchRequest) GetAccountOwnerIds() []string { + if t == nil { + return nil + } + return t.AccountOwnerIds +} + +func (t *TaskSearchRequest) GetAccountTypes() []TaskSearchRequestAccountTypes { + if t == nil { + return nil + } + return t.AccountTypes +} + +func (t *TaskSearchRequest) GetActorID() *string { + if t == nil { + return nil + } + return t.ActorID +} + +func (t *TaskSearchRequest) GetAppEntitlementIds() []string { + if t == nil { + return nil + } + return t.AppEntitlementIds +} + +func (t *TaskSearchRequest) GetAppResourceIds() []string { + if t == nil { return nil } - return o.TaskExpandMask + return t.AppResourceIds } -func (o *TaskSearchRequest) GetAccessReviewIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetAppResourceTypeIds() []string { + if t == nil { return nil } - return o.AccessReviewIds + return t.AppResourceTypeIds } -func (o *TaskSearchRequest) GetAccountOwnerIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetAppUserSubjectIds() []string { + if t == nil { return nil } - return o.AccountOwnerIds + return t.AppUserSubjectIds } -func (o *TaskSearchRequest) GetAccountTypes() []AccountTypes { - if o == nil { +func (t *TaskSearchRequest) GetApplicationIds() []string { + if t == nil { return nil } - return o.AccountTypes + return t.ApplicationIds } -func (o *TaskSearchRequest) GetActorID() *string { - if o == nil { +func (t *TaskSearchRequest) GetAssignedOrStepApproverUserID() *string { + if t == nil { return nil } - return o.ActorID + return t.AssignedOrStepApproverUserID } -func (o *TaskSearchRequest) GetAppEntitlementIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetAssigneesInIds() []string { + if t == nil { return nil } - return o.AppEntitlementIds + return t.AssigneesInIds } -func (o *TaskSearchRequest) GetAppResourceIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetCertifyOutcomes() []CertifyOutcomes { + if t == nil { return nil } - return o.AppResourceIds + return t.CertifyOutcomes } -func (o *TaskSearchRequest) GetAppResourceTypeIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetCreatedAfter() *time.Time { + if t == nil { return nil } - return o.AppResourceTypeIds + return t.CreatedAfter } -func (o *TaskSearchRequest) GetAppUserSubjectIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetCreatedBefore() *time.Time { + if t == nil { return nil } - return o.AppUserSubjectIds + return t.CreatedBefore } -func (o *TaskSearchRequest) GetApplicationIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetCurrentStep() *CurrentStep { + if t == nil { return nil } - return o.ApplicationIds + return t.CurrentStep } -func (o *TaskSearchRequest) GetAssignedOrStepApproverUserID() *string { - if o == nil { +func (t *TaskSearchRequest) GetEmergencyStatus() *EmergencyStatus { + if t == nil { return nil } - return o.AssignedOrStepApproverUserID + return t.EmergencyStatus } -func (o *TaskSearchRequest) GetAssigneesInIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetExcludeAppEntitlementIds() []string { + if t == nil { return nil } - return o.AssigneesInIds + return t.ExcludeAppEntitlementIds } -func (o *TaskSearchRequest) GetCreatedAfter() *time.Time { - if o == nil { +func (t *TaskSearchRequest) GetExcludeAppResourceTypeIds() []string { + if t == nil { return nil } - return o.CreatedAfter + return t.ExcludeAppResourceTypeIds } -func (o *TaskSearchRequest) GetCreatedBefore() *time.Time { - if o == nil { +func (t *TaskSearchRequest) GetExcludeIds() []string { + if t == nil { return nil } - return o.CreatedBefore + return t.ExcludeIds } -func (o *TaskSearchRequest) GetCurrentStep() *CurrentStep { - if o == nil { +func (t *TaskSearchRequest) GetGrantOutcomes() []GrantOutcomes { + if t == nil { return nil } - return o.CurrentStep + return t.GrantOutcomes } -func (o *TaskSearchRequest) GetEmergencyStatus() *EmergencyStatus { - if o == nil { +func (t *TaskSearchRequest) GetIncludeActedAfter() *time.Time { + if t == nil { return nil } - return o.EmergencyStatus + return t.IncludeActedAfter } -func (o *TaskSearchRequest) GetExcludeAppEntitlementIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetIncludeDeleted() *bool { + if t == nil { return nil } - return o.ExcludeAppEntitlementIds + return t.IncludeDeleted } -func (o *TaskSearchRequest) GetExcludeAppResourceTypeIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetMyWorkUserIds() []string { + if t == nil { return nil } - return o.ExcludeAppResourceTypeIds + return t.MyWorkUserIds } -func (o *TaskSearchRequest) GetExcludeIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetOlderThanDuration() *string { + if t == nil { return nil } - return o.ExcludeIds + return t.OlderThanDuration } -func (o *TaskSearchRequest) GetIncludeDeleted() *bool { - if o == nil { +func (t *TaskSearchRequest) GetOpenerIds() []string { + if t == nil { return nil } - return o.IncludeDeleted + return t.OpenerIds } -func (o *TaskSearchRequest) GetMyWorkUserIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetOpenerOrSubjectUserID() *string { + if t == nil { return nil } - return o.MyWorkUserIds + return t.OpenerOrSubjectUserID } -func (o *TaskSearchRequest) GetOlderThanDuration() *string { - if o == nil { +func (t *TaskSearchRequest) GetOutcomeAfter() *time.Time { + if t == nil { return nil } - return o.OlderThanDuration + return t.OutcomeAfter } -func (o *TaskSearchRequest) GetOpenerIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetOutcomeBefore() *time.Time { + if t == nil { return nil } - return o.OpenerIds + return t.OutcomeBefore } -func (o *TaskSearchRequest) GetOpenerOrSubjectUserID() *string { - if o == nil { +func (t *TaskSearchRequest) GetPageSize() *int { + if t == nil { return nil } - return o.OpenerOrSubjectUserID + return t.PageSize } -func (o *TaskSearchRequest) GetPageSize() *int { - if o == nil { +func (t *TaskSearchRequest) GetPageToken() *string { + if t == nil { return nil } - return o.PageSize + return t.PageToken } -func (o *TaskSearchRequest) GetPageToken() *string { - if o == nil { +func (t *TaskSearchRequest) GetPreviouslyActedOnIds() []string { + if t == nil { return nil } - return o.PageToken + return t.PreviouslyActedOnIds } -func (o *TaskSearchRequest) GetPreviouslyActedOnIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetQuery() *string { + if t == nil { return nil } - return o.PreviouslyActedOnIds + return t.Query } -func (o *TaskSearchRequest) GetQuery() *string { - if o == nil { +func (t *TaskSearchRequest) GetRefs() []TaskRef { + if t == nil { return nil } - return o.Query + return t.Refs } -func (o *TaskSearchRequest) GetRefs() []TaskRef { - if o == nil { +func (t *TaskSearchRequest) GetRevokeOutcomes() []RevokeOutcomes { + if t == nil { return nil } - return o.Refs + return t.RevokeOutcomes } -func (o *TaskSearchRequest) GetSortBy() *SortBy { - if o == nil { +func (t *TaskSearchRequest) GetSortBy() *SortBy { + if t == nil { return nil } - return o.SortBy + return t.SortBy } -func (o *TaskSearchRequest) GetStepApprovalTypes() []StepApprovalTypes { - if o == nil { +func (t *TaskSearchRequest) GetStepApprovalTypes() []StepApprovalTypes { + if t == nil { return nil } - return o.StepApprovalTypes + return t.StepApprovalTypes } -func (o *TaskSearchRequest) GetSubjectIds() []string { - if o == nil { +func (t *TaskSearchRequest) GetSubjectIds() []string { + if t == nil { return nil } - return o.SubjectIds + return t.SubjectIds } -func (o *TaskSearchRequest) GetTaskStates() []TaskStates { - if o == nil { +func (t *TaskSearchRequest) GetTaskStates() []TaskStates { + if t == nil { return nil } - return o.TaskStates + return t.TaskStates } -func (o *TaskSearchRequest) GetTaskTypes() []TaskTypeInput { - if o == nil { +func (t *TaskSearchRequest) GetTaskTypes() []TaskTypeInput { + if t == nil { return nil } - return o.TaskTypes + return t.TaskTypes } -func (o *TaskSearchRequest) GetUserEmploymentStatuses() []string { - if o == nil { +func (t *TaskSearchRequest) GetUserEmploymentStatuses() []string { + if t == nil { return nil } - return o.UserEmploymentStatuses + return t.UserEmploymentStatuses } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasksearchresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasksearchresponse.go index 6d3dab77..793c1f8d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasksearchresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasksearchresponse.go @@ -18,24 +18,24 @@ func (t TaskSearchResponseExpanded) MarshalJSON() ([]byte, error) { } func (t *TaskSearchResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskSearchResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskSearchResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskSearchResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskSearchResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskSearchResponse message contains a list of results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type TaskSearchResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *TaskSearchResponse) GetExpanded() []TaskSearchResponseExpanded { - if o == nil { +func (t *TaskSearchResponse) GetExpanded() []TaskSearchResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskSearchResponse) GetList() []TaskView { - if o == nil { +func (t *TaskSearchResponse) GetList() []TaskView { + if t == nil { return nil } - return o.List + return t.List } -func (o *TaskSearchResponse) GetNextPageToken() *string { - if o == nil { +func (t *TaskSearchResponse) GetNextPageToken() *string { + if t == nil { return nil } - return o.NextPageToken + return t.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskserviceactionresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskserviceactionresponse.go index 12a9c19f..3099df18 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskserviceactionresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskserviceactionresponse.go @@ -18,24 +18,24 @@ func (t TaskServiceActionResponseExpanded) MarshalJSON() ([]byte, error) { } func (t *TaskServiceActionResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskServiceActionResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskServiceActionResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskServiceActionResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskServiceActionResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskServiceActionResponse message. @@ -48,23 +48,23 @@ type TaskServiceActionResponse struct { TicketActionID *string `json:"ticketActionId,omitempty"` } -func (o *TaskServiceActionResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskServiceActionResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskServiceActionResponse) GetExpanded() []TaskServiceActionResponseExpanded { - if o == nil { +func (t *TaskServiceActionResponse) GetExpanded() []TaskServiceActionResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } -func (o *TaskServiceActionResponse) GetTicketActionID() *string { - if o == nil { +func (t *TaskServiceActionResponse) GetTicketActionID() *string { + if t == nil { return nil } - return o.TicketActionID + return t.TicketActionID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreategrantrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreategrantrequest.go index 7d284c56..8a2bd092 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreategrantrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreategrantrequest.go @@ -24,72 +24,72 @@ type TaskServiceCreateGrantRequest struct { RequestData map[string]any `json:"requestData,omitempty"` } -func (o *TaskServiceCreateGrantRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskServiceCreateGrantRequest) GetTaskGrantSource() *TaskGrantSource { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetTaskGrantSource() *TaskGrantSource { + if t == nil { return nil } - return o.TaskGrantSource + return t.TaskGrantSource } -func (o *TaskServiceCreateGrantRequest) GetAppEntitlementID() string { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetAppEntitlementID() string { + if t == nil { return "" } - return o.AppEntitlementID + return t.AppEntitlementID } -func (o *TaskServiceCreateGrantRequest) GetAppID() string { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetAppID() string { + if t == nil { return "" } - return o.AppID + return t.AppID } -func (o *TaskServiceCreateGrantRequest) GetAppUserID() *string { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetAppUserID() *string { + if t == nil { return nil } - return o.AppUserID + return t.AppUserID } -func (o *TaskServiceCreateGrantRequest) GetDescription() *string { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetDescription() *string { + if t == nil { return nil } - return o.Description + return t.Description } -func (o *TaskServiceCreateGrantRequest) GetEmergencyAccess() *bool { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetEmergencyAccess() *bool { + if t == nil { return nil } - return o.EmergencyAccess + return t.EmergencyAccess } -func (o *TaskServiceCreateGrantRequest) GetGrantDuration() *string { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetGrantDuration() *string { + if t == nil { return nil } - return o.GrantDuration + return t.GrantDuration } -func (o *TaskServiceCreateGrantRequest) GetIdentityUserID() *string { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetIdentityUserID() *string { + if t == nil { return nil } - return o.IdentityUserID + return t.IdentityUserID } -func (o *TaskServiceCreateGrantRequest) GetRequestData() map[string]any { - if o == nil { +func (t *TaskServiceCreateGrantRequest) GetRequestData() map[string]any { + if t == nil { return nil } - return o.RequestData + return t.RequestData } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreategrantresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreategrantresponse.go index 20d7453c..2638fdd9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreategrantresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreategrantresponse.go @@ -18,24 +18,24 @@ func (t TaskServiceCreateGrantResponseExpanded) MarshalJSON() ([]byte, error) { } func (t *TaskServiceCreateGrantResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskServiceCreateGrantResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskServiceCreateGrantResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskServiceCreateGrantResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskServiceCreateGrantResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskServiceCreateGrantResponse returns a task view which has a task including JSONPATHs to the expanded items in the expanded array. @@ -46,16 +46,16 @@ type TaskServiceCreateGrantResponse struct { Expanded []TaskServiceCreateGrantResponseExpanded `json:"expanded,omitempty"` } -func (o *TaskServiceCreateGrantResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskServiceCreateGrantResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskServiceCreateGrantResponse) GetExpanded() []TaskServiceCreateGrantResponseExpanded { - if o == nil { +func (t *TaskServiceCreateGrantResponse) GetExpanded() []TaskServiceCreateGrantResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreateoffboardingrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreateoffboardingrequest.go index 1504b6b1..45eae200 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreateoffboardingrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreateoffboardingrequest.go @@ -12,23 +12,23 @@ type TaskServiceCreateOffboardingRequest struct { SubjectUserID *string `json:"subjectUserId,omitempty"` } -func (o *TaskServiceCreateOffboardingRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskServiceCreateOffboardingRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskServiceCreateOffboardingRequest) GetDescription() *string { - if o == nil { +func (t *TaskServiceCreateOffboardingRequest) GetDescription() *string { + if t == nil { return nil } - return o.Description + return t.Description } -func (o *TaskServiceCreateOffboardingRequest) GetSubjectUserID() *string { - if o == nil { +func (t *TaskServiceCreateOffboardingRequest) GetSubjectUserID() *string { + if t == nil { return nil } - return o.SubjectUserID + return t.SubjectUserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreateoffboardingresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreateoffboardingresponse.go index ef0cf74d..a46e8f3f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreateoffboardingresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreateoffboardingresponse.go @@ -18,24 +18,24 @@ func (t TaskServiceCreateOffboardingResponseExpanded) MarshalJSON() ([]byte, err } func (t *TaskServiceCreateOffboardingResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskServiceCreateOffboardingResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskServiceCreateOffboardingResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskServiceCreateOffboardingResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskServiceCreateOffboardingResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskServiceCreateOffboardingResponse message. @@ -46,16 +46,16 @@ type TaskServiceCreateOffboardingResponse struct { Expanded []TaskServiceCreateOffboardingResponseExpanded `json:"expanded,omitempty"` } -func (o *TaskServiceCreateOffboardingResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskServiceCreateOffboardingResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskServiceCreateOffboardingResponse) GetExpanded() []TaskServiceCreateOffboardingResponseExpanded { - if o == nil { +func (t *TaskServiceCreateOffboardingResponse) GetExpanded() []TaskServiceCreateOffboardingResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreaterevokerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreaterevokerequest.go index 57cf7d43..f596e1f3 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreaterevokerequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreaterevokerequest.go @@ -18,44 +18,44 @@ type TaskServiceCreateRevokeRequest struct { IdentityUserID *string `json:"identityUserId,omitempty"` } -func (o *TaskServiceCreateRevokeRequest) GetTaskExpandMask() *TaskExpandMask { - if o == nil { +func (t *TaskServiceCreateRevokeRequest) GetTaskExpandMask() *TaskExpandMask { + if t == nil { return nil } - return o.TaskExpandMask + return t.TaskExpandMask } -func (o *TaskServiceCreateRevokeRequest) GetAppEntitlementID() string { - if o == nil { +func (t *TaskServiceCreateRevokeRequest) GetAppEntitlementID() string { + if t == nil { return "" } - return o.AppEntitlementID + return t.AppEntitlementID } -func (o *TaskServiceCreateRevokeRequest) GetAppID() string { - if o == nil { +func (t *TaskServiceCreateRevokeRequest) GetAppID() string { + if t == nil { return "" } - return o.AppID + return t.AppID } -func (o *TaskServiceCreateRevokeRequest) GetAppUserID() *string { - if o == nil { +func (t *TaskServiceCreateRevokeRequest) GetAppUserID() *string { + if t == nil { return nil } - return o.AppUserID + return t.AppUserID } -func (o *TaskServiceCreateRevokeRequest) GetDescription() *string { - if o == nil { +func (t *TaskServiceCreateRevokeRequest) GetDescription() *string { + if t == nil { return nil } - return o.Description + return t.Description } -func (o *TaskServiceCreateRevokeRequest) GetIdentityUserID() *string { - if o == nil { +func (t *TaskServiceCreateRevokeRequest) GetIdentityUserID() *string { + if t == nil { return nil } - return o.IdentityUserID + return t.IdentityUserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreaterevokeresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreaterevokeresponse.go index 335f89b3..7df569ad 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreaterevokeresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicecreaterevokeresponse.go @@ -18,24 +18,24 @@ func (t TaskServiceCreateRevokeResponseExpanded) MarshalJSON() ([]byte, error) { } func (t *TaskServiceCreateRevokeResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskServiceCreateRevokeResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskServiceCreateRevokeResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskServiceCreateRevokeResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskServiceCreateRevokeResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskServiceCreateRevokeResponse returns a task view which has a task including JSONPATHs to the expanded items in the expanded array. @@ -46,16 +46,16 @@ type TaskServiceCreateRevokeResponse struct { Expanded []TaskServiceCreateRevokeResponseExpanded `json:"expanded,omitempty"` } -func (o *TaskServiceCreateRevokeResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskServiceCreateRevokeResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskServiceCreateRevokeResponse) GetExpanded() []TaskServiceCreateRevokeResponseExpanded { - if o == nil { +func (t *TaskServiceCreateRevokeResponse) GetExpanded() []TaskServiceCreateRevokeResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicegetresponse.go index e503cc01..b504c826 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskservicegetresponse.go @@ -18,24 +18,24 @@ func (t TaskServiceGetResponseExpanded) MarshalJSON() ([]byte, error) { } func (t *TaskServiceGetResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskServiceGetResponseExpanded) GetAtType() *string { - if o == nil { +func (t *TaskServiceGetResponseExpanded) GetAtType() *string { + if t == nil { return nil } - return o.AtType + return t.AtType } -func (o *TaskServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (t *TaskServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { + if t == nil { return nil } - return o.AdditionalProperties + return t.AdditionalProperties } // The TaskServiceGetResponse returns a task view which has a task including JSONPATHs to the expanded items in the expanded array. @@ -46,16 +46,16 @@ type TaskServiceGetResponse struct { Expanded []TaskServiceGetResponseExpanded `json:"expanded,omitempty"` } -func (o *TaskServiceGetResponse) GetTaskView() *TaskView { - if o == nil { +func (t *TaskServiceGetResponse) GetTaskView() *TaskView { + if t == nil { return nil } - return o.TaskView + return t.TaskView } -func (o *TaskServiceGetResponse) GetExpanded() []TaskServiceGetResponseExpanded { - if o == nil { +func (t *TaskServiceGetResponse) GetExpanded() []TaskServiceGetResponseExpanded { + if t == nil { return nil } - return o.Expanded + return t.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktype.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktype.go index 6cacf5d7..49a213f7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktype.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktype.go @@ -9,7 +9,10 @@ package shared // - revoke // - certify // - offboarding +// - action type TaskType struct { + // The TaskTypeAction message. + TaskTypeAction *TaskTypeAction `json:"action,omitempty"` // The TaskTypeCertify message indicates that a task is a certify task and all related details. TaskTypeCertify *TaskTypeCertify `json:"certify,omitempty"` // The TaskTypeGrant message indicates that a task is a grant task and all related details. @@ -20,30 +23,37 @@ type TaskType struct { TaskTypeRevoke *TaskTypeRevoke `json:"revoke,omitempty"` } -func (o *TaskType) GetTaskTypeCertify() *TaskTypeCertify { - if o == nil { +func (t *TaskType) GetTaskTypeAction() *TaskTypeAction { + if t == nil { return nil } - return o.TaskTypeCertify + return t.TaskTypeAction } -func (o *TaskType) GetTaskTypeGrant() *TaskTypeGrant { - if o == nil { +func (t *TaskType) GetTaskTypeCertify() *TaskTypeCertify { + if t == nil { return nil } - return o.TaskTypeGrant + return t.TaskTypeCertify } -func (o *TaskType) GetTaskTypeOffboarding() *TaskTypeOffboarding { - if o == nil { +func (t *TaskType) GetTaskTypeGrant() *TaskTypeGrant { + if t == nil { return nil } - return o.TaskTypeOffboarding + return t.TaskTypeGrant } -func (o *TaskType) GetTaskTypeRevoke() *TaskTypeRevoke { - if o == nil { +func (t *TaskType) GetTaskTypeOffboarding() *TaskTypeOffboarding { + if t == nil { return nil } - return o.TaskTypeRevoke + return t.TaskTypeOffboarding +} + +func (t *TaskType) GetTaskTypeRevoke() *TaskTypeRevoke { + if t == nil { + return nil + } + return t.TaskTypeRevoke } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeaction.go new file mode 100644 index 00000000..72af1f75 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeaction.go @@ -0,0 +1,83 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// TaskTypeActionOutcome - The outcome field. +type TaskTypeActionOutcome string + +const ( + TaskTypeActionOutcomeActionOutcomeUnspecified TaskTypeActionOutcome = "ACTION_OUTCOME_UNSPECIFIED" + TaskTypeActionOutcomeActionOutcomeSuccess TaskTypeActionOutcome = "ACTION_OUTCOME_SUCCESS" + TaskTypeActionOutcomeActionOutcomeDenied TaskTypeActionOutcome = "ACTION_OUTCOME_DENIED" + TaskTypeActionOutcomeActionOutcomeError TaskTypeActionOutcome = "ACTION_OUTCOME_ERROR" + TaskTypeActionOutcomeActionOutcomeCancelled TaskTypeActionOutcome = "ACTION_OUTCOME_CANCELLED" +) + +func (e TaskTypeActionOutcome) ToPointer() *TaskTypeActionOutcome { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskTypeActionOutcome) IsExact() bool { + if e != nil { + switch *e { + case "ACTION_OUTCOME_UNSPECIFIED", "ACTION_OUTCOME_SUCCESS", "ACTION_OUTCOME_DENIED", "ACTION_OUTCOME_ERROR", "ACTION_OUTCOME_CANCELLED": + return true + } + } + return false +} + +// The TaskTypeAction message. +type TaskTypeAction struct { + // The ID of the action to execute. + ActionID *string `json:"actionId,omitempty"` + FormValues map[string]any `json:"formValues,omitempty"` + // The outcome field. + Outcome *TaskTypeActionOutcome `json:"outcome,omitempty"` + OutcomeTime *time.Time `json:"outcomeTime,omitempty"` +} + +func (t TaskTypeAction) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TaskTypeAction) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { + return err + } + return nil +} + +func (t *TaskTypeAction) GetActionID() *string { + if t == nil { + return nil + } + return t.ActionID +} + +func (t *TaskTypeAction) GetFormValues() map[string]any { + if t == nil { + return nil + } + return t.FormValues +} + +func (t *TaskTypeAction) GetOutcome() *TaskTypeActionOutcome { + if t == nil { + return nil + } + return t.Outcome +} + +func (t *TaskTypeAction) GetOutcomeTime() *time.Time { + if t == nil { + return nil + } + return t.OutcomeTime +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeactioninput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeactioninput.go new file mode 100644 index 00000000..fee89c96 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeactioninput.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// TaskTypeActionInput - The TaskTypeAction message. +type TaskTypeActionInput struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypecertify.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypecertify.go index 33f97501..9eadda38 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypecertify.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypecertify.go @@ -23,6 +23,17 @@ func (e TaskTypeCertifyOutcome) ToPointer() *TaskTypeCertifyOutcome { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskTypeCertifyOutcome) IsExact() bool { + if e != nil { + switch *e { + case "CERTIFY_OUTCOME_UNSPECIFIED", "CERTIFY_OUTCOME_CERTIFIED", "CERTIFY_OUTCOME_DECERTIFIED", "CERTIFY_OUTCOME_ERROR", "CERTIFY_OUTCOME_CANCELLED", "CERTIFY_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + // The TaskTypeCertify message indicates that a task is a certify task and all related details. type TaskTypeCertify struct { // The ID of the access review. @@ -47,64 +58,64 @@ func (t TaskTypeCertify) MarshalJSON() ([]byte, error) { } func (t *TaskTypeCertify) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskTypeCertify) GetAccessReviewID() *string { - if o == nil { +func (t *TaskTypeCertify) GetAccessReviewID() *string { + if t == nil { return nil } - return o.AccessReviewID + return t.AccessReviewID } -func (o *TaskTypeCertify) GetAccessReviewSelection() *string { - if o == nil { +func (t *TaskTypeCertify) GetAccessReviewSelection() *string { + if t == nil { return nil } - return o.AccessReviewSelection + return t.AccessReviewSelection } -func (o *TaskTypeCertify) GetAppEntitlementID() *string { - if o == nil { +func (t *TaskTypeCertify) GetAppEntitlementID() *string { + if t == nil { return nil } - return o.AppEntitlementID + return t.AppEntitlementID } -func (o *TaskTypeCertify) GetAppID() *string { - if o == nil { +func (t *TaskTypeCertify) GetAppID() *string { + if t == nil { return nil } - return o.AppID + return t.AppID } -func (o *TaskTypeCertify) GetAppUserID() *string { - if o == nil { +func (t *TaskTypeCertify) GetAppUserID() *string { + if t == nil { return nil } - return o.AppUserID + return t.AppUserID } -func (o *TaskTypeCertify) GetIdentityUserID() *string { - if o == nil { +func (t *TaskTypeCertify) GetIdentityUserID() *string { + if t == nil { return nil } - return o.IdentityUserID + return t.IdentityUserID } -func (o *TaskTypeCertify) GetOutcome() *TaskTypeCertifyOutcome { - if o == nil { +func (t *TaskTypeCertify) GetOutcome() *TaskTypeCertifyOutcome { + if t == nil { return nil } - return o.Outcome + return t.Outcome } -func (o *TaskTypeCertify) GetOutcomeTime() *time.Time { - if o == nil { +func (t *TaskTypeCertify) GetOutcomeTime() *time.Time { + if t == nil { return nil } - return o.OutcomeTime + return t.OutcomeTime } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypegrant.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypegrant.go index b105b167..c24a2b77 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypegrant.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypegrant.go @@ -23,6 +23,17 @@ func (e TaskTypeGrantOutcome) ToPointer() *TaskTypeGrantOutcome { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskTypeGrantOutcome) IsExact() bool { + if e != nil { + switch *e { + case "GRANT_OUTCOME_UNSPECIFIED", "GRANT_OUTCOME_GRANTED", "GRANT_OUTCOME_DENIED", "GRANT_OUTCOME_ERROR", "GRANT_OUTCOME_CANCELLED", "GRANT_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + // The TaskTypeGrant message indicates that a task is a grant task and all related details. type TaskTypeGrant struct { // The TaskGrantSource message tracks which external URL was the source of the specificed grant ticket. @@ -46,64 +57,64 @@ func (t TaskTypeGrant) MarshalJSON() ([]byte, error) { } func (t *TaskTypeGrant) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskTypeGrant) GetTaskGrantSource() *TaskGrantSource { - if o == nil { +func (t *TaskTypeGrant) GetTaskGrantSource() *TaskGrantSource { + if t == nil { return nil } - return o.TaskGrantSource + return t.TaskGrantSource } -func (o *TaskTypeGrant) GetAppEntitlementID() *string { - if o == nil { +func (t *TaskTypeGrant) GetAppEntitlementID() *string { + if t == nil { return nil } - return o.AppEntitlementID + return t.AppEntitlementID } -func (o *TaskTypeGrant) GetAppID() *string { - if o == nil { +func (t *TaskTypeGrant) GetAppID() *string { + if t == nil { return nil } - return o.AppID + return t.AppID } -func (o *TaskTypeGrant) GetAppUserID() *string { - if o == nil { +func (t *TaskTypeGrant) GetAppUserID() *string { + if t == nil { return nil } - return o.AppUserID + return t.AppUserID } -func (o *TaskTypeGrant) GetGrantDuration() *string { - if o == nil { +func (t *TaskTypeGrant) GetGrantDuration() *string { + if t == nil { return nil } - return o.GrantDuration + return t.GrantDuration } -func (o *TaskTypeGrant) GetIdentityUserID() *string { - if o == nil { +func (t *TaskTypeGrant) GetIdentityUserID() *string { + if t == nil { return nil } - return o.IdentityUserID + return t.IdentityUserID } -func (o *TaskTypeGrant) GetOutcome() *TaskTypeGrantOutcome { - if o == nil { +func (t *TaskTypeGrant) GetOutcome() *TaskTypeGrantOutcome { + if t == nil { return nil } - return o.Outcome + return t.Outcome } -func (o *TaskTypeGrant) GetOutcomeTime() *time.Time { - if o == nil { +func (t *TaskTypeGrant) GetOutcomeTime() *time.Time { + if t == nil { return nil } - return o.OutcomeTime + return t.OutcomeTime } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypegrantinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypegrantinput.go index ca03f553..bba732f5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypegrantinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypegrantinput.go @@ -8,9 +8,9 @@ type TaskTypeGrantInput struct { TaskGrantSource *TaskGrantSource `json:"source,omitempty"` } -func (o *TaskTypeGrantInput) GetTaskGrantSource() *TaskGrantSource { - if o == nil { +func (t *TaskTypeGrantInput) GetTaskGrantSource() *TaskGrantSource { + if t == nil { return nil } - return o.TaskGrantSource + return t.TaskGrantSource } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeinput.go index d3c69d7d..4884fd88 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeinput.go @@ -9,7 +9,10 @@ package shared // - revoke // - certify // - offboarding +// - action type TaskTypeInput struct { + // The TaskTypeAction message. + TaskTypeAction *TaskTypeActionInput `json:"action,omitempty"` // The TaskTypeCertify message indicates that a task is a certify task and all related details. TaskTypeCertify *TaskTypeCertifyInput `json:"certify,omitempty"` // The TaskTypeGrant message indicates that a task is a grant task and all related details. @@ -20,30 +23,37 @@ type TaskTypeInput struct { TaskTypeRevoke *TaskTypeRevokeInput `json:"revoke,omitempty"` } -func (o *TaskTypeInput) GetTaskTypeCertify() *TaskTypeCertifyInput { - if o == nil { +func (t *TaskTypeInput) GetTaskTypeAction() *TaskTypeActionInput { + if t == nil { return nil } - return o.TaskTypeCertify + return t.TaskTypeAction } -func (o *TaskTypeInput) GetTaskTypeGrant() *TaskTypeGrantInput { - if o == nil { +func (t *TaskTypeInput) GetTaskTypeCertify() *TaskTypeCertifyInput { + if t == nil { return nil } - return o.TaskTypeGrant + return t.TaskTypeCertify } -func (o *TaskTypeInput) GetTaskTypeOffboarding() *TaskTypeOffboardingInput { - if o == nil { +func (t *TaskTypeInput) GetTaskTypeGrant() *TaskTypeGrantInput { + if t == nil { return nil } - return o.TaskTypeOffboarding + return t.TaskTypeGrant } -func (o *TaskTypeInput) GetTaskTypeRevoke() *TaskTypeRevokeInput { - if o == nil { +func (t *TaskTypeInput) GetTaskTypeOffboarding() *TaskTypeOffboardingInput { + if t == nil { return nil } - return o.TaskTypeRevoke + return t.TaskTypeOffboarding +} + +func (t *TaskTypeInput) GetTaskTypeRevoke() *TaskTypeRevokeInput { + if t == nil { + return nil + } + return t.TaskTypeRevoke } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeoffboarding.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeoffboarding.go index 3d85bc15..bdfafd7c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeoffboarding.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktypeoffboarding.go @@ -22,6 +22,17 @@ func (e TaskTypeOffboardingOutcome) ToPointer() *TaskTypeOffboardingOutcome { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskTypeOffboardingOutcome) IsExact() bool { + if e != nil { + switch *e { + case "OFFBOARDING_OUTCOME_UNSPECIFIED", "OFFBOARDING_OUTCOME_IN_PROGRESS", "OFFBOARDING_OUTCOME_DONE", "OFFBOARDING_OUTCOME_ERROR", "OFFBOARDING_OUTCOME_CANCELLED": + return true + } + } + return false +} + // The TaskTypeOffboarding message. type TaskTypeOffboarding struct { // The outcome field. @@ -36,29 +47,29 @@ func (t TaskTypeOffboarding) MarshalJSON() ([]byte, error) { } func (t *TaskTypeOffboarding) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskTypeOffboarding) GetOutcome() *TaskTypeOffboardingOutcome { - if o == nil { +func (t *TaskTypeOffboarding) GetOutcome() *TaskTypeOffboardingOutcome { + if t == nil { return nil } - return o.Outcome + return t.Outcome } -func (o *TaskTypeOffboarding) GetOutcomeTime() *time.Time { - if o == nil { +func (t *TaskTypeOffboarding) GetOutcomeTime() *time.Time { + if t == nil { return nil } - return o.OutcomeTime + return t.OutcomeTime } -func (o *TaskTypeOffboarding) GetSubjectUserID() *string { - if o == nil { +func (t *TaskTypeOffboarding) GetSubjectUserID() *string { + if t == nil { return nil } - return o.SubjectUserID + return t.SubjectUserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktyperevoke.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktyperevoke.go index 50ca0fe6..9b96422c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktyperevoke.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktyperevoke.go @@ -23,6 +23,17 @@ func (e TaskTypeRevokeOutcome) ToPointer() *TaskTypeRevokeOutcome { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TaskTypeRevokeOutcome) IsExact() bool { + if e != nil { + switch *e { + case "REVOKE_OUTCOME_UNSPECIFIED", "REVOKE_OUTCOME_REVOKED", "REVOKE_OUTCOME_DENIED", "REVOKE_OUTCOME_ERROR", "REVOKE_OUTCOME_CANCELLED", "REVOKE_OUTCOME_WAIT_TIMED_OUT": + return true + } + } + return false +} + // The TaskTypeRevoke message indicates that a task is a revoke task and all related details. type TaskTypeRevoke struct { // The TaskRevokeSource message indicates the source of the revoke task is one of expired, nonUsage, request, or review. @@ -52,57 +63,57 @@ func (t TaskTypeRevoke) MarshalJSON() ([]byte, error) { } func (t *TaskTypeRevoke) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TaskTypeRevoke) GetTaskRevokeSource() *TaskRevokeSource { - if o == nil { +func (t *TaskTypeRevoke) GetTaskRevokeSource() *TaskRevokeSource { + if t == nil { return nil } - return o.TaskRevokeSource + return t.TaskRevokeSource } -func (o *TaskTypeRevoke) GetAppEntitlementID() *string { - if o == nil { +func (t *TaskTypeRevoke) GetAppEntitlementID() *string { + if t == nil { return nil } - return o.AppEntitlementID + return t.AppEntitlementID } -func (o *TaskTypeRevoke) GetAppID() *string { - if o == nil { +func (t *TaskTypeRevoke) GetAppID() *string { + if t == nil { return nil } - return o.AppID + return t.AppID } -func (o *TaskTypeRevoke) GetAppUserID() *string { - if o == nil { +func (t *TaskTypeRevoke) GetAppUserID() *string { + if t == nil { return nil } - return o.AppUserID + return t.AppUserID } -func (o *TaskTypeRevoke) GetIdentityUserID() *string { - if o == nil { +func (t *TaskTypeRevoke) GetIdentityUserID() *string { + if t == nil { return nil } - return o.IdentityUserID + return t.IdentityUserID } -func (o *TaskTypeRevoke) GetOutcome() *TaskTypeRevokeOutcome { - if o == nil { +func (t *TaskTypeRevoke) GetOutcome() *TaskTypeRevokeOutcome { + if t == nil { return nil } - return o.Outcome + return t.Outcome } -func (o *TaskTypeRevoke) GetOutcomeTime() *time.Time { - if o == nil { +func (t *TaskTypeRevoke) GetOutcomeTime() *time.Time { + if t == nil { return nil } - return o.OutcomeTime + return t.OutcomeTime } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktyperevokeinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktyperevokeinput.go index 042a7964..4e2ab3e9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktyperevokeinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/tasktyperevokeinput.go @@ -15,9 +15,9 @@ type TaskTypeRevokeInput struct { TaskRevokeSource *TaskRevokeSource `json:"source,omitempty"` } -func (o *TaskTypeRevokeInput) GetTaskRevokeSource() *TaskRevokeSource { - if o == nil { +func (t *TaskTypeRevokeInput) GetTaskRevokeSource() *TaskRevokeSource { + if t == nil { return nil } - return o.TaskRevokeSource + return t.TaskRevokeSource } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskview.go index 0bab175f..057d0b0f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/taskview.go @@ -10,6 +10,8 @@ type TaskView struct { AccessReviewPath *string `json:"accessReviewPath,omitempty"` // JSONPATH expression indicating the location of the App object in the expanded array AppPath *string `json:"appPath,omitempty"` + // JSONPATH expression indicating the location of the AppUser last usage timestamp in the expanded array + AppUserLastUsagePath *string `json:"appUserLastUsagePath,omitempty"` // JSONPATH expression indicating the location of the AppUser object in the expanded array AppUserPath *string `json:"appUserPath,omitempty"` // JSONPATH expression indicating the location of the object of the User that created the ticket in the expanded array @@ -26,72 +28,79 @@ type TaskView struct { UserPath *string `json:"userPath,omitempty"` } -func (o *TaskView) GetTask() *Task { - if o == nil { +func (t *TaskView) GetTask() *Task { + if t == nil { return nil } - return o.Task + return t.Task } -func (o *TaskView) GetAccessReviewPath() *string { - if o == nil { +func (t *TaskView) GetAccessReviewPath() *string { + if t == nil { return nil } - return o.AccessReviewPath + return t.AccessReviewPath } -func (o *TaskView) GetAppPath() *string { - if o == nil { +func (t *TaskView) GetAppPath() *string { + if t == nil { return nil } - return o.AppPath + return t.AppPath } -func (o *TaskView) GetAppUserPath() *string { - if o == nil { +func (t *TaskView) GetAppUserLastUsagePath() *string { + if t == nil { return nil } - return o.AppUserPath + return t.AppUserLastUsagePath } -func (o *TaskView) GetCreatedByUserPath() *string { - if o == nil { +func (t *TaskView) GetAppUserPath() *string { + if t == nil { return nil } - return o.CreatedByUserPath + return t.AppUserPath } -func (o *TaskView) GetEntitlementsPath() *string { - if o == nil { +func (t *TaskView) GetCreatedByUserPath() *string { + if t == nil { return nil } - return o.EntitlementsPath + return t.CreatedByUserPath } -func (o *TaskView) GetIdentityUserPath() *string { - if o == nil { +func (t *TaskView) GetEntitlementsPath() *string { + if t == nil { return nil } - return o.IdentityUserPath + return t.EntitlementsPath } -func (o *TaskView) GetInsightsPath() *string { - if o == nil { +func (t *TaskView) GetIdentityUserPath() *string { + if t == nil { return nil } - return o.InsightsPath + return t.IdentityUserPath } -func (o *TaskView) GetStepApproversPath() *string { - if o == nil { +func (t *TaskView) GetInsightsPath() *string { + if t == nil { return nil } - return o.StepApproversPath + return t.InsightsPath } -func (o *TaskView) GetUserPath() *string { - if o == nil { +func (t *TaskView) GetStepApproversPath() *string { + if t == nil { return nil } - return o.UserPath + return t.StepApproversPath +} + +func (t *TaskView) GetUserPath() *string { + if t == nil { + return nil + } + return t.UserPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testaccountprovisionpolicyrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testaccountprovisionpolicyrequest.go index 581dc40c..e1529f3f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testaccountprovisionpolicyrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testaccountprovisionpolicyrequest.go @@ -8,9 +8,9 @@ type TestAccountProvisionPolicyRequest struct { Cel *string `json:"cel,omitempty"` } -func (o *TestAccountProvisionPolicyRequest) GetCel() *string { - if o == nil { +func (t *TestAccountProvisionPolicyRequest) GetCel() *string { + if t == nil { return nil } - return o.Cel + return t.Cel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testaccountprovisionpolicyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testaccountprovisionpolicyresponse.go index 74c62461..c5feeb19 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testaccountprovisionpolicyresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testaccountprovisionpolicyresponse.go @@ -10,16 +10,16 @@ type TestAccountProvisionPolicyResponse struct { Value *string `json:"value,omitempty"` } -func (o *TestAccountProvisionPolicyResponse) GetType() *string { - if o == nil { +func (t *TestAccountProvisionPolicyResponse) GetType() *string { + if t == nil { return nil } - return o.Type + return t.Type } -func (o *TestAccountProvisionPolicyResponse) GetValue() *string { - if o == nil { +func (t *TestAccountProvisionPolicyResponse) GetValue() *string { + if t == nil { return nil } - return o.Value + return t.Value } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testsourceiprequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testsourceiprequest.go index 39d25d0f..d95159ba 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testsourceiprequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testsourceiprequest.go @@ -10,16 +10,16 @@ type TestSourceIPRequest struct { SourceIP *string `json:"sourceIp,omitempty"` } -func (o *TestSourceIPRequest) GetAllowCidr() []string { - if o == nil { +func (t *TestSourceIPRequest) GetAllowCidr() []string { + if t == nil { return nil } - return o.AllowCidr + return t.AllowCidr } -func (o *TestSourceIPRequest) GetSourceIP() *string { - if o == nil { +func (t *TestSourceIPRequest) GetSourceIP() *string { + if t == nil { return nil } - return o.SourceIP + return t.SourceIP } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testsourceipresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testsourceipresponse.go index 4510297d..00b8ba04 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testsourceipresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/testsourceipresponse.go @@ -18,23 +18,23 @@ type TestSourceIPResponse struct { CheckedIP *string `json:"checkedIp,omitempty"` } -func (o *TestSourceIPResponse) GetStatus() *Status { - if o == nil { +func (t *TestSourceIPResponse) GetStatus() *Status { + if t == nil { return nil } - return o.Status + return t.Status } -func (o *TestSourceIPResponse) GetAllowed() *bool { - if o == nil { +func (t *TestSourceIPResponse) GetAllowed() *bool { + if t == nil { return nil } - return o.Allowed + return t.Allowed } -func (o *TestSourceIPResponse) GetCheckedIP() *string { - if o == nil { +func (t *TestSourceIPResponse) GetCheckedIP() *string { + if t == nil { return nil } - return o.CheckedIP + return t.CheckedIP } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/teststepupproviderresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/teststepupproviderresponse.go index 836c1afb..0e772afa 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/teststepupproviderresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/teststepupproviderresponse.go @@ -8,9 +8,9 @@ type TestStepUpProviderResponse struct { RedirectURL *string `json:"redirectUrl,omitempty"` } -func (o *TestStepUpProviderResponse) GetRedirectURL() *string { - if o == nil { +func (t *TestStepUpProviderResponse) GetRedirectURL() *string { + if t == nil { return nil } - return o.RedirectURL + return t.RedirectURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/textfield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/textfield.go index 8e83d164..09e8990f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/textfield.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/textfield.go @@ -8,9 +8,9 @@ type TextField struct { Multiline *bool `json:"multiline,omitempty"` } -func (o *TextField) GetMultiline() *bool { - if o == nil { +func (t *TextField) GetMultiline() *bool { + if t == nil { return nil } - return o.Multiline + return t.Multiline } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/timestamprules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/timestamprules.go index 653f2b81..6ab2b68c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/timestamprules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/timestamprules.go @@ -32,71 +32,71 @@ func (t TimestampRules) MarshalJSON() ([]byte, error) { } func (t *TimestampRules) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { return err } return nil } -func (o *TimestampRules) GetConst() *time.Time { - if o == nil { +func (t *TimestampRules) GetConst() *time.Time { + if t == nil { return nil } - return o.Const + return t.Const } -func (o *TimestampRules) GetGt() *time.Time { - if o == nil { +func (t *TimestampRules) GetGt() *time.Time { + if t == nil { return nil } - return o.Gt + return t.Gt } -func (o *TimestampRules) GetGtNow() *bool { - if o == nil { +func (t *TimestampRules) GetGtNow() *bool { + if t == nil { return nil } - return o.GtNow + return t.GtNow } -func (o *TimestampRules) GetGte() *time.Time { - if o == nil { +func (t *TimestampRules) GetGte() *time.Time { + if t == nil { return nil } - return o.Gte + return t.Gte } -func (o *TimestampRules) GetLt() *time.Time { - if o == nil { +func (t *TimestampRules) GetLt() *time.Time { + if t == nil { return nil } - return o.Lt + return t.Lt } -func (o *TimestampRules) GetLtNow() *bool { - if o == nil { +func (t *TimestampRules) GetLtNow() *bool { + if t == nil { return nil } - return o.LtNow + return t.LtNow } -func (o *TimestampRules) GetLte() *time.Time { - if o == nil { +func (t *TimestampRules) GetLte() *time.Time { + if t == nil { return nil } - return o.Lte + return t.Lte } -func (o *TimestampRules) GetRequired() *bool { - if o == nil { +func (t *TimestampRules) GetRequired() *bool { + if t == nil { return nil } - return o.Required + return t.Required } -func (o *TimestampRules) GetWithin() *string { - if o == nil { +func (t *TimestampRules) GetWithin() *string { + if t == nil { return nil } - return o.Within + return t.Within } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/togglefield.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/togglefield.go new file mode 100644 index 00000000..39b37afc --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/togglefield.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The ToggleField message. +type ToggleField struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/uint32rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/uint32rules.go index 85afe5fd..dba6fa3a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/uint32rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/uint32rules.go @@ -31,58 +31,58 @@ type UInt32Rules struct { NotIn []int64 `json:"notIn,omitempty"` } -func (o *UInt32Rules) GetConst() *int64 { - if o == nil { +func (u *UInt32Rules) GetConst() *int64 { + if u == nil { return nil } - return o.Const + return u.Const } -func (o *UInt32Rules) GetGt() *int64 { - if o == nil { +func (u *UInt32Rules) GetGt() *int64 { + if u == nil { return nil } - return o.Gt + return u.Gt } -func (o *UInt32Rules) GetGte() *int64 { - if o == nil { +func (u *UInt32Rules) GetGte() *int64 { + if u == nil { return nil } - return o.Gte + return u.Gte } -func (o *UInt32Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (u *UInt32Rules) GetIgnoreEmpty() *bool { + if u == nil { return nil } - return o.IgnoreEmpty + return u.IgnoreEmpty } -func (o *UInt32Rules) GetIn() []int64 { - if o == nil { +func (u *UInt32Rules) GetIn() []int64 { + if u == nil { return nil } - return o.In + return u.In } -func (o *UInt32Rules) GetLt() *int64 { - if o == nil { +func (u *UInt32Rules) GetLt() *int64 { + if u == nil { return nil } - return o.Lt + return u.Lt } -func (o *UInt32Rules) GetLte() *int64 { - if o == nil { +func (u *UInt32Rules) GetLte() *int64 { + if u == nil { return nil } - return o.Lte + return u.Lte } -func (o *UInt32Rules) GetNotIn() []int64 { - if o == nil { +func (u *UInt32Rules) GetNotIn() []int64 { + if u == nil { return nil } - return o.NotIn + return u.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/uint64rules.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/uint64rules.go index 49aeca48..076b216e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/uint64rules.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/uint64rules.go @@ -31,58 +31,58 @@ type UInt64Rules struct { NotIn []string `json:"notIn,omitempty"` } -func (o *UInt64Rules) GetConst() *string { - if o == nil { +func (u *UInt64Rules) GetConst() *string { + if u == nil { return nil } - return o.Const + return u.Const } -func (o *UInt64Rules) GetGt() *string { - if o == nil { +func (u *UInt64Rules) GetGt() *string { + if u == nil { return nil } - return o.Gt + return u.Gt } -func (o *UInt64Rules) GetGte() *string { - if o == nil { +func (u *UInt64Rules) GetGte() *string { + if u == nil { return nil } - return o.Gte + return u.Gte } -func (o *UInt64Rules) GetIgnoreEmpty() *bool { - if o == nil { +func (u *UInt64Rules) GetIgnoreEmpty() *bool { + if u == nil { return nil } - return o.IgnoreEmpty + return u.IgnoreEmpty } -func (o *UInt64Rules) GetIn() []string { - if o == nil { +func (u *UInt64Rules) GetIn() []string { + if u == nil { return nil } - return o.In + return u.In } -func (o *UInt64Rules) GetLt() *string { - if o == nil { +func (u *UInt64Rules) GetLt() *string { + if u == nil { return nil } - return o.Lt + return u.Lt } -func (o *UInt64Rules) GetLte() *string { - if o == nil { +func (u *UInt64Rules) GetLte() *string { + if u == nil { return nil } - return o.Lte + return u.Lte } -func (o *UInt64Rules) GetNotIn() []string { - if o == nil { +func (u *UInt64Rules) GetNotIn() []string { + if u == nil { return nil } - return o.NotIn + return u.NotIn } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/unenrollfromallaccessprofiles.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/unenrollfromallaccessprofiles.go index fbb5e355..dc8851af 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/unenrollfromallaccessprofiles.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/unenrollfromallaccessprofiles.go @@ -16,37 +16,37 @@ type UnenrollFromAllAccessProfiles struct { UserRefs []UserRef `json:"userRefs,omitempty"` } -func (o *UnenrollFromAllAccessProfiles) GetCatalogIds() []string { - if o == nil { +func (u *UnenrollFromAllAccessProfiles) GetCatalogIds() []string { + if u == nil { return nil } - return o.CatalogIds + return u.CatalogIds } -func (o *UnenrollFromAllAccessProfiles) GetCatalogIdsCel() *string { - if o == nil { +func (u *UnenrollFromAllAccessProfiles) GetCatalogIdsCel() *string { + if u == nil { return nil } - return o.CatalogIdsCel + return u.CatalogIdsCel } -func (o *UnenrollFromAllAccessProfiles) GetUseSubjectUser() *bool { - if o == nil { +func (u *UnenrollFromAllAccessProfiles) GetUseSubjectUser() *bool { + if u == nil { return nil } - return o.UseSubjectUser + return u.UseSubjectUser } -func (o *UnenrollFromAllAccessProfiles) GetUserIdsCel() *string { - if o == nil { +func (u *UnenrollFromAllAccessProfiles) GetUserIdsCel() *string { + if u == nil { return nil } - return o.UserIdsCel + return u.UserIdsCel } -func (o *UnenrollFromAllAccessProfiles) GetUserRefs() []UserRef { - if o == nil { +func (u *UnenrollFromAllAccessProfiles) GetUserRefs() []UserRef { + if u == nil { return nil } - return o.UserRefs + return u.UserRefs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappentitlementrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappentitlementrequest.go index fa9c147c..426014cc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappentitlementrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappentitlementrequest.go @@ -18,30 +18,30 @@ type UpdateAppEntitlementRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdateAppEntitlementRequest) GetAppEntitlement() *AppEntitlementInput { - if o == nil { +func (u *UpdateAppEntitlementRequest) GetAppEntitlement() *AppEntitlementInput { + if u == nil { return nil } - return o.AppEntitlement + return u.AppEntitlement } -func (o *UpdateAppEntitlementRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { - if o == nil { +func (u *UpdateAppEntitlementRequest) GetAppEntitlementExpandMask() *AppEntitlementExpandMask { + if u == nil { return nil } - return o.AppEntitlementExpandMask + return u.AppEntitlementExpandMask } -func (o *UpdateAppEntitlementRequest) GetOverrideAccessRequestsDefaults() *bool { - if o == nil { +func (u *UpdateAppEntitlementRequest) GetOverrideAccessRequestsDefaults() *bool { + if u == nil { return nil } - return o.OverrideAccessRequestsDefaults + return u.OverrideAccessRequestsDefaults } -func (o *UpdateAppEntitlementRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdateAppEntitlementRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappentitlementresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappentitlementresponse.go index 91d80040..1ffa269f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappentitlementresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappentitlementresponse.go @@ -18,24 +18,24 @@ func (u UpdateAppEntitlementResponseExpanded) MarshalJSON() ([]byte, error) { } func (u *UpdateAppEntitlementResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil } -func (o *UpdateAppEntitlementResponseExpanded) GetAtType() *string { - if o == nil { +func (u *UpdateAppEntitlementResponseExpanded) GetAtType() *string { + if u == nil { return nil } - return o.AtType + return u.AtType } -func (o *UpdateAppEntitlementResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (u *UpdateAppEntitlementResponseExpanded) GetAdditionalProperties() map[string]any { + if u == nil { return nil } - return o.AdditionalProperties + return u.AdditionalProperties } // The UpdateAppEntitlementResponse message. @@ -46,16 +46,16 @@ type UpdateAppEntitlementResponse struct { Expanded []UpdateAppEntitlementResponseExpanded `json:"expanded,omitempty"` } -func (o *UpdateAppEntitlementResponse) GetAppEntitlementView() *AppEntitlementView { - if o == nil { +func (u *UpdateAppEntitlementResponse) GetAppEntitlementView() *AppEntitlementView { + if u == nil { return nil } - return o.AppEntitlementView + return u.AppEntitlementView } -func (o *UpdateAppEntitlementResponse) GetExpanded() []UpdateAppEntitlementResponseExpanded { - if o == nil { +func (u *UpdateAppEntitlementResponse) GetExpanded() []UpdateAppEntitlementResponseExpanded { + if u == nil { return nil } - return o.Expanded + return u.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateapprequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateapprequest.go index 836babc3..52ab97f2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateapprequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateapprequest.go @@ -9,16 +9,16 @@ type UpdateAppRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdateAppRequest) GetApp() *AppInput { - if o == nil { +func (u *UpdateAppRequest) GetApp() *AppInput { + if u == nil { return nil } - return o.App + return u.App } -func (o *UpdateAppRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdateAppRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappresponse.go index 0f8e4ca3..8be10991 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappresponse.go @@ -8,9 +8,9 @@ type UpdateAppResponse struct { App *App `json:"app,omitempty"` } -func (o *UpdateAppResponse) GetApp() *App { - if o == nil { +func (u *UpdateAppResponse) GetApp() *App { + if u == nil { return nil } - return o.App + return u.App } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappusagecontrolsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappusagecontrolsrequest.go index 7da3e1ea..ddbdd8a6 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappusagecontrolsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappusagecontrolsrequest.go @@ -9,16 +9,16 @@ type UpdateAppUsageControlsRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdateAppUsageControlsRequest) GetAppUsageControls() *AppUsageControls { - if o == nil { +func (u *UpdateAppUsageControlsRequest) GetAppUsageControls() *AppUsageControls { + if u == nil { return nil } - return o.AppUsageControls + return u.AppUsageControls } -func (o *UpdateAppUsageControlsRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdateAppUsageControlsRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappusagecontrolsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappusagecontrolsresponse.go index 53cf8bd2..4f061088 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappusagecontrolsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateappusagecontrolsresponse.go @@ -8,9 +8,9 @@ type UpdateAppUsageControlsResponse struct { AppUsageControls *AppUsageControls `json:"appUsageControls,omitempty"` } -func (o *UpdateAppUsageControlsResponse) GetAppUsageControls() *AppUsageControls { - if o == nil { +func (u *UpdateAppUsageControlsResponse) GetAppUsageControls() *AppUsageControls { + if u == nil { return nil } - return o.AppUsageControls + return u.AppUsageControls } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateautomationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateautomationrequest.go index e392dd68..f823d46a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateautomationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateautomationrequest.go @@ -13,16 +13,16 @@ type UpdateAutomationRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdateAutomationRequest) GetAutomation() *AutomationInput { - if o == nil { +func (u *UpdateAutomationRequest) GetAutomation() *AutomationInput { + if u == nil { return nil } - return o.Automation + return u.Automation } -func (o *UpdateAutomationRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdateAutomationRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateautomationresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateautomationresponse.go index bcb8c676..2f259ba4 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateautomationresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateautomationresponse.go @@ -14,16 +14,16 @@ type UpdateAutomationResponse struct { WebhookHmacSecret *string `json:"webhookHmacSecret,omitempty"` } -func (o *UpdateAutomationResponse) GetAutomation() *Automation { - if o == nil { +func (u *UpdateAutomationResponse) GetAutomation() *Automation { + if u == nil { return nil } - return o.Automation + return u.Automation } -func (o *UpdateAutomationResponse) GetWebhookHmacSecret() *string { - if o == nil { +func (u *UpdateAutomationResponse) GetWebhookHmacSecret() *string { + if u == nil { return nil } - return o.WebhookHmacSecret + return u.WebhookHmacSecret } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateconnectorschedulerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateconnectorschedulerequest.go new file mode 100644 index 00000000..53bec318 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateconnectorschedulerequest.go @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The UpdateConnectorScheduleRequest message. +// +// This message contains a oneof named schedule. Only a single field of the following list may be set at a time: +// - cron +type UpdateConnectorScheduleRequest struct { + // The ConnectorScheduleCron message. + ConnectorScheduleCron *ConnectorScheduleCron `json:"cron,omitempty"` +} + +func (u *UpdateConnectorScheduleRequest) GetConnectorScheduleCron() *ConnectorScheduleCron { + if u == nil { + return nil + } + return u.ConnectorScheduleCron +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateconnectorscheduleresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateconnectorscheduleresponse.go new file mode 100644 index 00000000..4e423bb1 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateconnectorscheduleresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The UpdateConnectorScheduleResponse message. +type UpdateConnectorScheduleResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updategrantdurationrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updategrantdurationrequest.go index cd910ccf..16e65e0d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updategrantdurationrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updategrantdurationrequest.go @@ -17,15 +17,15 @@ func (u UpdateGrantDurationRequest) MarshalJSON() ([]byte, error) { } func (u *UpdateGrantDurationRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil } -func (o *UpdateGrantDurationRequest) GetNewDeprovisionAt() *time.Time { - if o == nil { +func (u *UpdateGrantDurationRequest) GetNewDeprovisionAt() *time.Time { + if u == nil { return nil } - return o.NewDeprovisionAt + return u.NewDeprovisionAt } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updategrantdurationresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updategrantdurationresponse.go index e42a6203..38e39ef2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updategrantdurationresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updategrantdurationresponse.go @@ -8,9 +8,9 @@ type UpdateGrantDurationResponse struct { AppEntitlementUserBinding *AppEntitlementUserBinding `json:"binding,omitempty"` } -func (o *UpdateGrantDurationResponse) GetAppEntitlementUserBinding() *AppEntitlementUserBinding { - if o == nil { +func (u *UpdateGrantDurationResponse) GetAppEntitlementUserBinding() *AppEntitlementUserBinding { + if u == nil { return nil } - return o.AppEntitlementUserBinding + return u.AppEntitlementUserBinding } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatemanuallymanagedresourcetyperequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatemanuallymanagedresourcetyperequest.go index 3e99d440..7aebcbfd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatemanuallymanagedresourcetyperequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatemanuallymanagedresourcetyperequest.go @@ -9,16 +9,16 @@ type UpdateManuallyManagedResourceTypeRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdateManuallyManagedResourceTypeRequest) GetAppResourceType() *AppResourceTypeInput { - if o == nil { +func (u *UpdateManuallyManagedResourceTypeRequest) GetAppResourceType() *AppResourceTypeInput { + if u == nil { return nil } - return o.AppResourceType + return u.AppResourceType } -func (o *UpdateManuallyManagedResourceTypeRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdateManuallyManagedResourceTypeRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatemanuallymanagedresourcetyperesponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatemanuallymanagedresourcetyperesponse.go index 7b188e51..56c76060 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatemanuallymanagedresourcetyperesponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatemanuallymanagedresourcetyperesponse.go @@ -18,24 +18,24 @@ func (u UpdateManuallyManagedResourceTypeResponseExpanded) MarshalJSON() ([]byte } func (u *UpdateManuallyManagedResourceTypeResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil } -func (o *UpdateManuallyManagedResourceTypeResponseExpanded) GetAtType() *string { - if o == nil { +func (u *UpdateManuallyManagedResourceTypeResponseExpanded) GetAtType() *string { + if u == nil { return nil } - return o.AtType + return u.AtType } -func (o *UpdateManuallyManagedResourceTypeResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (u *UpdateManuallyManagedResourceTypeResponseExpanded) GetAdditionalProperties() map[string]any { + if u == nil { return nil } - return o.AdditionalProperties + return u.AdditionalProperties } // The UpdateManuallyManagedResourceTypeResponse message. @@ -46,16 +46,16 @@ type UpdateManuallyManagedResourceTypeResponse struct { Expanded []UpdateManuallyManagedResourceTypeResponseExpanded `json:"expanded,omitempty"` } -func (o *UpdateManuallyManagedResourceTypeResponse) GetAppResourceType() *AppResourceType { - if o == nil { +func (u *UpdateManuallyManagedResourceTypeResponse) GetAppResourceType() *AppResourceType { + if u == nil { return nil } - return o.AppResourceType + return u.AppResourceType } -func (o *UpdateManuallyManagedResourceTypeResponse) GetExpanded() []UpdateManuallyManagedResourceTypeResponseExpanded { - if o == nil { +func (u *UpdateManuallyManagedResourceTypeResponse) GetExpanded() []UpdateManuallyManagedResourceTypeResponseExpanded { + if u == nil { return nil } - return o.Expanded + return u.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateorgdomainrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateorgdomainrequest.go index 455b7637..3a609e73 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateorgdomainrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateorgdomainrequest.go @@ -8,9 +8,9 @@ type UpdateOrgDomainRequest struct { NewDomains []string `json:"newDomains,omitempty"` } -func (o *UpdateOrgDomainRequest) GetNewDomains() []string { - if o == nil { +func (u *UpdateOrgDomainRequest) GetNewDomains() []string { + if u == nil { return nil } - return o.NewDomains + return u.NewDomains } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateorgdomainresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateorgdomainresponse.go index 5989c4c5..4b7125c0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateorgdomainresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateorgdomainresponse.go @@ -8,9 +8,9 @@ type UpdateOrgDomainResponse struct { List []OrgDomain `json:"list,omitempty"` } -func (o *UpdateOrgDomainResponse) GetList() []OrgDomain { - if o == nil { +func (u *UpdateOrgDomainResponse) GetList() []OrgDomain { + if u == nil { return nil } - return o.List + return u.List } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatepolicyrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatepolicyrequest.go index 6661b164..d38a5b19 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatepolicyrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatepolicyrequest.go @@ -9,16 +9,16 @@ type UpdatePolicyRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdatePolicyRequest) GetPolicy() *PolicyInput { - if o == nil { +func (u *UpdatePolicyRequest) GetPolicy() *PolicyInput { + if u == nil { return nil } - return o.Policy + return u.Policy } -func (o *UpdatePolicyRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdatePolicyRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatepolicyresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatepolicyresponse.go index 4781d050..24454e2e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatepolicyresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatepolicyresponse.go @@ -8,9 +8,9 @@ type UpdatePolicyResponse struct { Policy *Policy `json:"policy,omitempty"` } -func (o *UpdatePolicyResponse) GetPolicy() *Policy { - if o == nil { +func (u *UpdatePolicyResponse) GetPolicy() *Policy { + if u == nil { return nil } - return o.Policy + return u.Policy } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updaterolerequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updaterolerequest.go index dedecfec..108c48bb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updaterolerequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updaterolerequest.go @@ -9,16 +9,16 @@ type UpdateRoleRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdateRoleRequest) GetRole() *RoleInput { - if o == nil { +func (u *UpdateRoleRequest) GetRole() *RoleInput { + if u == nil { return nil } - return o.Role + return u.Role } -func (o *UpdateRoleRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdateRoleRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updaterolesresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updaterolesresponse.go index f28d99ca..de773db5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updaterolesresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updaterolesresponse.go @@ -8,9 +8,9 @@ type UpdateRolesResponse struct { Role *Role `json:"role,omitempty"` } -func (o *UpdateRolesResponse) GetRole() *Role { - if o == nil { +func (u *UpdateRolesResponse) GetRole() *Role { + if u == nil { return nil } - return o.Role + return u.Role } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatesessionsettingsrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatesessionsettingsrequest.go index 8233a388..18b6294e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatesessionsettingsrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatesessionsettingsrequest.go @@ -9,16 +9,16 @@ type UpdateSessionSettingsRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdateSessionSettingsRequest) GetSessionSettings() *SessionSettings { - if o == nil { +func (u *UpdateSessionSettingsRequest) GetSessionSettings() *SessionSettings { + if u == nil { return nil } - return o.SessionSettings + return u.SessionSettings } -func (o *UpdateSessionSettingsRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdateSessionSettingsRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatesessionsettingsresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatesessionsettingsresponse.go index 379e2c9b..7178799a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatesessionsettingsresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatesessionsettingsresponse.go @@ -8,9 +8,9 @@ type UpdateSessionSettingsResponse struct { SessionSettings *SessionSettings `json:"sessionSettings,omitempty"` } -func (o *UpdateSessionSettingsResponse) GetSessionSettings() *SessionSettings { - if o == nil { +func (u *UpdateSessionSettingsResponse) GetSessionSettings() *SessionSettings { + if u == nil { return nil } - return o.SessionSettings + return u.SessionSettings } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupproviderrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupproviderrequest.go index de3fbb85..35895e6d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupproviderrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupproviderrequest.go @@ -14,16 +14,16 @@ type UpdateStepUpProviderRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *UpdateStepUpProviderRequest) GetStepUpProvider() *StepUpProviderInput { - if o == nil { +func (u *UpdateStepUpProviderRequest) GetStepUpProvider() *StepUpProviderInput { + if u == nil { return nil } - return o.StepUpProvider + return u.StepUpProvider } -func (o *UpdateStepUpProviderRequest) GetUpdateMask() *string { - if o == nil { +func (u *UpdateStepUpProviderRequest) GetUpdateMask() *string { + if u == nil { return nil } - return o.UpdateMask + return u.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupproviderresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupproviderresponse.go index 8fffd992..002da072 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupproviderresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupproviderresponse.go @@ -13,9 +13,9 @@ type UpdateStepUpProviderResponse struct { StepUpProvider *StepUpProvider `json:"stepUpProvider,omitempty"` } -func (o *UpdateStepUpProviderResponse) GetStepUpProvider() *StepUpProvider { - if o == nil { +func (u *UpdateStepUpProviderResponse) GetStepUpProvider() *StepUpProvider { + if u == nil { return nil } - return o.StepUpProvider + return u.StepUpProvider } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupprovidersecretrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupprovidersecretrequest.go index 1543c990..eee714dd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupprovidersecretrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupprovidersecretrequest.go @@ -8,9 +8,9 @@ type UpdateStepUpProviderSecretRequest struct { ClientSecret *string `json:"clientSecret,omitempty"` } -func (o *UpdateStepUpProviderSecretRequest) GetClientSecret() *string { - if o == nil { +func (u *UpdateStepUpProviderSecretRequest) GetClientSecret() *string { + if u == nil { return nil } - return o.ClientSecret + return u.ClientSecret } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupprovidersecretresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupprovidersecretresponse.go index 344848a0..6080018b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupprovidersecretresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updatestepupprovidersecretresponse.go @@ -13,9 +13,9 @@ type UpdateStepUpProviderSecretResponse struct { StepUpProvider *StepUpProvider `json:"stepUpProvider,omitempty"` } -func (o *UpdateStepUpProviderSecretResponse) GetStepUpProvider() *StepUpProvider { - if o == nil { +func (u *UpdateStepUpProviderSecretResponse) GetStepUpProvider() *StepUpProvider { + if u == nil { return nil } - return o.StepUpProvider + return u.StepUpProvider } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateuser.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateuser.go index 6e3f8039..29a67df7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateuser.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/updateuser.go @@ -18,6 +18,17 @@ func (e UserStatusEnum) ToPointer() *UserStatusEnum { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *UserStatusEnum) IsExact() bool { + if e != nil { + switch *e { + case "UNKNOWN", "ENABLED", "DISABLED", "DELETED": + return true + } + } + return false +} + // The UpdateUser message. // // This message contains a oneof named user. Only a single field of the following list may be set at a time: @@ -46,37 +57,37 @@ type UpdateUser struct { UserStatusEnum *UserStatusEnum `json:"userStatusEnum,omitempty"` } -func (o *UpdateUser) GetUserRef() *UserRef { - if o == nil { +func (u *UpdateUser) GetUserRef() *UserRef { + if u == nil { return nil } - return o.UserRef + return u.UserRef } -func (o *UpdateUser) GetUseSubjectUser() *bool { - if o == nil { +func (u *UpdateUser) GetUseSubjectUser() *bool { + if u == nil { return nil } - return o.UseSubjectUser + return u.UseSubjectUser } -func (o *UpdateUser) GetUserIDCel() *string { - if o == nil { +func (u *UpdateUser) GetUserIDCel() *string { + if u == nil { return nil } - return o.UserIDCel + return u.UserIDCel } -func (o *UpdateUser) GetUserStatusCel() *string { - if o == nil { +func (u *UpdateUser) GetUserStatusCel() *string { + if u == nil { return nil } - return o.UserStatusCel + return u.UserStatusCel } -func (o *UpdateUser) GetUserStatusEnum() *UserStatusEnum { - if o == nil { +func (u *UpdateUser) GetUserStatusEnum() *UserStatusEnum { + if u == nil { return nil } - return o.UserStatusEnum + return u.UserStatusEnum } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usagebasedrevocationtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usagebasedrevocationtrigger.go index fb767ad4..3b80e487 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usagebasedrevocationtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usagebasedrevocationtrigger.go @@ -20,6 +20,17 @@ func (e TargetedAppUserTypes) ToPointer() *TargetedAppUserTypes { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *TargetedAppUserTypes) IsExact() bool { + if e != nil { + switch *e { + case "APP_USER_TYPE_UNSPECIFIED", "APP_USER_TYPE_USER", "APP_USER_TYPE_SERVICE_ACCOUNT", "APP_USER_TYPE_SYSTEM_ACCOUNT": + return true + } + } + return false +} + // The UsageBasedRevocationTrigger message. // // This message contains a oneof named cold_start_schedule. Only a single field of the following list may be set at a time: @@ -52,78 +63,78 @@ func (u UsageBasedRevocationTrigger) MarshalJSON() ([]byte, error) { } func (u *UsageBasedRevocationTrigger) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil } -func (o *UsageBasedRevocationTrigger) GetRunDelayed() *RunDelayed { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetRunDelayed() *RunDelayed { + if u == nil { return nil } - return o.RunDelayed + return u.RunDelayed } -func (o *UsageBasedRevocationTrigger) GetRunImmediately() *RunImmediately { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetRunImmediately() *RunImmediately { + if u == nil { return nil } - return o.RunImmediately + return u.RunImmediately } -func (o *UsageBasedRevocationTrigger) GetAppID() *string { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetAppID() *string { + if u == nil { return nil } - return o.AppID + return u.AppID } -func (o *UsageBasedRevocationTrigger) GetEnabledAt() *time.Time { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetEnabledAt() *time.Time { + if u == nil { return nil } - return o.EnabledAt + return u.EnabledAt } -func (o *UsageBasedRevocationTrigger) GetExcludedGroupRefs() []AppEntitlementRef { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetExcludedGroupRefs() []AppEntitlementRef { + if u == nil { return nil } - return o.ExcludedGroupRefs + return u.ExcludedGroupRefs } -func (o *UsageBasedRevocationTrigger) GetExcludedUserRefs() []UserRef { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetExcludedUserRefs() []UserRef { + if u == nil { return nil } - return o.ExcludedUserRefs + return u.ExcludedUserRefs } -func (o *UsageBasedRevocationTrigger) GetIncludeUsersWithNoActivity() *bool { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetIncludeUsersWithNoActivity() *bool { + if u == nil { return nil } - return o.IncludeUsersWithNoActivity + return u.IncludeUsersWithNoActivity } -func (o *UsageBasedRevocationTrigger) GetTargetedAppUserTypes() []TargetedAppUserTypes { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetTargetedAppUserTypes() []TargetedAppUserTypes { + if u == nil { return nil } - return o.TargetedAppUserTypes + return u.TargetedAppUserTypes } -func (o *UsageBasedRevocationTrigger) GetTargetedEntitlementRefs() []AppEntitlementRef { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetTargetedEntitlementRefs() []AppEntitlementRef { + if u == nil { return nil } - return o.TargetedEntitlementRefs + return u.TargetedEntitlementRefs } -func (o *UsageBasedRevocationTrigger) GetUnusedForDays() *int64 { - if o == nil { +func (u *UsageBasedRevocationTrigger) GetUnusedForDays() *int64 { + if u == nil { return nil } - return o.UnusedForDays + return u.UnusedForDays } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/user.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/user.go index bdf28c9e..82210c2c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/user.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/user.go @@ -21,35 +21,68 @@ func (e DirectoryStatus) ToPointer() *DirectoryStatus { return &e } -// UserStatus - The status of the user in the system. -type UserStatus string +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *DirectoryStatus) IsExact() bool { + if e != nil { + switch *e { + case "UNKNOWN", "ENABLED", "DISABLED", "DELETED": + return true + } + } + return false +} + +// UserSchemasStatus - The status of the user in the system. +type UserSchemasStatus string const ( - UserStatusUnknown UserStatus = "UNKNOWN" - UserStatusEnabled UserStatus = "ENABLED" - UserStatusDisabled UserStatus = "DISABLED" - UserStatusDeleted UserStatus = "DELETED" + UserSchemasStatusUnknown UserSchemasStatus = "UNKNOWN" + UserSchemasStatusEnabled UserSchemasStatus = "ENABLED" + UserSchemasStatusDisabled UserSchemasStatus = "DISABLED" + UserSchemasStatusDeleted UserSchemasStatus = "DELETED" ) -func (e UserStatus) ToPointer() *UserStatus { +func (e UserSchemasStatus) ToPointer() *UserSchemasStatus { return &e } -// Type - The type of the user. -type Type string +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *UserSchemasStatus) IsExact() bool { + if e != nil { + switch *e { + case "UNKNOWN", "ENABLED", "DISABLED", "DELETED": + return true + } + } + return false +} + +// UserType - The type of the user. +type UserType string const ( - TypeUserTypeUnspecified Type = "USER_TYPE_UNSPECIFIED" - TypeUserTypeSystem Type = "USER_TYPE_SYSTEM" - TypeUserTypeHuman Type = "USER_TYPE_HUMAN" - TypeUserTypeService Type = "USER_TYPE_SERVICE" - TypeUserTypeAgent Type = "USER_TYPE_AGENT" + UserTypeUserTypeUnspecified UserType = "USER_TYPE_UNSPECIFIED" + UserTypeUserTypeSystem UserType = "USER_TYPE_SYSTEM" + UserTypeUserTypeHuman UserType = "USER_TYPE_HUMAN" + UserTypeUserTypeService UserType = "USER_TYPE_SERVICE" + UserTypeUserTypeAgent UserType = "USER_TYPE_AGENT" ) -func (e Type) ToPointer() *Type { +func (e UserType) ToPointer() *UserType { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *UserType) IsExact() bool { + if e != nil { + switch *e { + case "USER_TYPE_UNSPECIFIED", "USER_TYPE_SYSTEM", "USER_TYPE_HUMAN", "USER_TYPE_SERVICE", "USER_TYPE_AGENT": + return true + } + } + return false +} + // The User object provides all of the details for an user, as well as some configuration. type User struct { CreatedAt *time.Time `json:"createdAt,omitempty"` @@ -100,9 +133,9 @@ type User struct { // A list of unique identifiers that maps to ConductorOne's user roles let you assign users permissions tailored to the work they do in the software. RoleIds []string `json:"roleIds,omitempty"` // The status of the user in the system. - Status *UserStatus `json:"status,omitempty"` + Status *UserSchemasStatus `json:"status,omitempty"` // The type of the user. - Type *Type `json:"type,omitempty"` + Type *UserType `json:"type,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // This is the user's primary username. Typically sourced from the primary directory. Username *string `json:"username,omitempty"` @@ -117,225 +150,225 @@ func (u User) MarshalJSON() ([]byte, error) { } func (u *User) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil } -func (o *User) GetCreatedAt() *time.Time { - if o == nil { +func (u *User) GetCreatedAt() *time.Time { + if u == nil { return nil } - return o.CreatedAt + return u.CreatedAt } -func (o *User) GetDelegatedUserID() *string { - if o == nil { +func (u *User) GetDelegatedUserID() *string { + if u == nil { return nil } - return o.DelegatedUserID + return u.DelegatedUserID } -func (o *User) GetDeletedAt() *time.Time { - if o == nil { +func (u *User) GetDeletedAt() *time.Time { + if u == nil { return nil } - return o.DeletedAt + return u.DeletedAt } -func (o *User) GetDepartment() *string { - if o == nil { +func (u *User) GetDepartment() *string { + if u == nil { return nil } - return o.Department + return u.Department } -func (o *User) GetDepartmentSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetDepartmentSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.DepartmentSources + return u.DepartmentSources } -func (o *User) GetDirectoryIds() []string { - if o == nil { +func (u *User) GetDirectoryIds() []string { + if u == nil { return nil } - return o.DirectoryIds + return u.DirectoryIds } -func (o *User) GetDirectoryStatus() *DirectoryStatus { - if o == nil { +func (u *User) GetDirectoryStatus() *DirectoryStatus { + if u == nil { return nil } - return o.DirectoryStatus + return u.DirectoryStatus } -func (o *User) GetDirectoryStatusSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetDirectoryStatusSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.DirectoryStatusSources + return u.DirectoryStatusSources } -func (o *User) GetDisplayName() *string { - if o == nil { +func (u *User) GetDisplayName() *string { + if u == nil { return nil } - return o.DisplayName + return u.DisplayName } -func (o *User) GetEmail() *string { - if o == nil { +func (u *User) GetEmail() *string { + if u == nil { return nil } - return o.Email + return u.Email } -func (o *User) GetEmailSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetEmailSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.EmailSources + return u.EmailSources } -func (o *User) GetEmails() []string { - if o == nil { +func (u *User) GetEmails() []string { + if u == nil { return nil } - return o.Emails + return u.Emails } -func (o *User) GetEmployeeIDSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetEmployeeIDSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.EmployeeIDSources + return u.EmployeeIDSources } -func (o *User) GetEmployeeIds() []string { - if o == nil { +func (u *User) GetEmployeeIds() []string { + if u == nil { return nil } - return o.EmployeeIds + return u.EmployeeIds } -func (o *User) GetEmploymentStatus() *string { - if o == nil { +func (u *User) GetEmploymentStatus() *string { + if u == nil { return nil } - return o.EmploymentStatus + return u.EmploymentStatus } -func (o *User) GetEmploymentStatusSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetEmploymentStatusSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.EmploymentStatusSources + return u.EmploymentStatusSources } -func (o *User) GetEmploymentType() *string { - if o == nil { +func (u *User) GetEmploymentType() *string { + if u == nil { return nil } - return o.EmploymentType + return u.EmploymentType } -func (o *User) GetEmploymentTypeSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetEmploymentTypeSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.EmploymentTypeSources + return u.EmploymentTypeSources } -func (o *User) GetID() *string { - if o == nil { +func (u *User) GetID() *string { + if u == nil { return nil } - return o.ID + return u.ID } -func (o *User) GetJobTitle() *string { - if o == nil { +func (u *User) GetJobTitle() *string { + if u == nil { return nil } - return o.JobTitle + return u.JobTitle } -func (o *User) GetJobTitleSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetJobTitleSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.JobTitleSources + return u.JobTitleSources } -func (o *User) GetManagerIds() []string { - if o == nil { +func (u *User) GetManagerIds() []string { + if u == nil { return nil } - return o.ManagerIds + return u.ManagerIds } -func (o *User) GetManagerSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetManagerSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.ManagerSources + return u.ManagerSources } -func (o *User) GetProfile() map[string]any { - if o == nil { +func (u *User) GetProfile() map[string]any { + if u == nil { return nil } - return o.Profile + return u.Profile } -func (o *User) GetRoleIds() []string { - if o == nil { +func (u *User) GetRoleIds() []string { + if u == nil { return nil } - return o.RoleIds + return u.RoleIds } -func (o *User) GetStatus() *UserStatus { - if o == nil { +func (u *User) GetStatus() *UserSchemasStatus { + if u == nil { return nil } - return o.Status + return u.Status } -func (o *User) GetType() *Type { - if o == nil { +func (u *User) GetType() *UserType { + if u == nil { return nil } - return o.Type + return u.Type } -func (o *User) GetUpdatedAt() *time.Time { - if o == nil { +func (u *User) GetUpdatedAt() *time.Time { + if u == nil { return nil } - return o.UpdatedAt + return u.UpdatedAt } -func (o *User) GetUsername() *string { - if o == nil { +func (u *User) GetUsername() *string { + if u == nil { return nil } - return o.Username + return u.Username } -func (o *User) GetUsernameSources() []UserAttributeMappingSource { - if o == nil { +func (u *User) GetUsernameSources() []UserAttributeMappingSource { + if u == nil { return nil } - return o.UsernameSources + return u.UsernameSources } -func (o *User) GetUsernames() []string { - if o == nil { +func (u *User) GetUsernames() []string { + if u == nil { return nil } - return o.Usernames + return u.Usernames } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userapproval.go index 1aa67529..e91c607f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userapproval.go @@ -6,20 +6,29 @@ package shared type UserApproval struct { // Configuration to allow self approval of if the user is specified and also the target of the ticket. AllowSelfApproval *bool `json:"allowSelfApproval,omitempty"` + // Configuration to require distinct approvers across approval steps of a rule. + RequireDistinctApprovers *bool `json:"requireDistinctApprovers,omitempty"` // Array of users configured for approval. UserIds []string `json:"userIds,omitempty"` } -func (o *UserApproval) GetAllowSelfApproval() *bool { - if o == nil { +func (u *UserApproval) GetAllowSelfApproval() *bool { + if u == nil { return nil } - return o.AllowSelfApproval + return u.AllowSelfApproval } -func (o *UserApproval) GetUserIds() []string { - if o == nil { +func (u *UserApproval) GetRequireDistinctApprovers() *bool { + if u == nil { return nil } - return o.UserIds + return u.RequireDistinctApprovers +} + +func (u *UserApproval) GetUserIds() []string { + if u == nil { + return nil + } + return u.UserIds } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userattributemappingsource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userattributemappingsource.go index 83715d48..4aef5686 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userattributemappingsource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userattributemappingsource.go @@ -16,37 +16,37 @@ type UserAttributeMappingSource struct { Value *string `json:"value,omitempty"` } -func (o *UserAttributeMappingSource) GetAppID() *string { - if o == nil { +func (u *UserAttributeMappingSource) GetAppID() *string { + if u == nil { return nil } - return o.AppID + return u.AppID } -func (o *UserAttributeMappingSource) GetAppUserID() *string { - if o == nil { +func (u *UserAttributeMappingSource) GetAppUserID() *string { + if u == nil { return nil } - return o.AppUserID + return u.AppUserID } -func (o *UserAttributeMappingSource) GetAppUserProfileAttributeKey() *string { - if o == nil { +func (u *UserAttributeMappingSource) GetAppUserProfileAttributeKey() *string { + if u == nil { return nil } - return o.AppUserProfileAttributeKey + return u.AppUserProfileAttributeKey } -func (o *UserAttributeMappingSource) GetUserAttributeMappingID() *string { - if o == nil { +func (u *UserAttributeMappingSource) GetUserAttributeMappingID() *string { + if u == nil { return nil } - return o.UserAttributeMappingID + return u.UserAttributeMappingID } -func (o *UserAttributeMappingSource) GetValue() *string { - if o == nil { +func (u *UserAttributeMappingSource) GetValue() *string { + if u == nil { return nil } - return o.Value + return u.Value } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usercreatedtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usercreatedtrigger.go index 04248b36..d87523a5 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usercreatedtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usercreatedtrigger.go @@ -8,9 +8,9 @@ type UserCreatedTrigger struct { Condition *string `json:"condition,omitempty"` } -func (o *UserCreatedTrigger) GetCondition() *string { - if o == nil { +func (u *UserCreatedTrigger) GetCondition() *string { + if u == nil { return nil } - return o.Condition + return u.Condition } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usercriteriascope.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usercriteriascope.go new file mode 100644 index 00000000..267500be --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/usercriteriascope.go @@ -0,0 +1,67 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +type UserStatus string + +const ( + UserStatusUnknown UserStatus = "UNKNOWN" + UserStatusEnabled UserStatus = "ENABLED" + UserStatusDisabled UserStatus = "DISABLED" + UserStatusDeleted UserStatus = "DELETED" +) + +func (e UserStatus) ToPointer() *UserStatus { + return &e +} + +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *UserStatus) IsExact() bool { + if e != nil { + switch *e { + case "UNKNOWN", "ENABLED", "DISABLED", "DELETED": + return true + } + } + return false +} + +// The UserCriteriaScope message. +type UserCriteriaScope struct { + // The groupAppEntitlementsRef field. + GroupAppEntitlementsRef []AppEntitlementRef `json:"groupAppEntitlementsRef,omitempty"` + // The managerUserIds field. + ManagerUserIds []string `json:"managerUserIds,omitempty"` + // The multiUserProfileAttributes field. + MultiUserProfileAttributes map[string]IncludedUserAttributeValues `json:"multiUserProfileAttributes,omitempty"` + // The userStatus field. + UserStatus []UserStatus `json:"userStatus,omitempty"` +} + +func (u *UserCriteriaScope) GetGroupAppEntitlementsRef() []AppEntitlementRef { + if u == nil { + return nil + } + return u.GroupAppEntitlementsRef +} + +func (u *UserCriteriaScope) GetManagerUserIds() []string { + if u == nil { + return nil + } + return u.ManagerUserIds +} + +func (u *UserCriteriaScope) GetMultiUserProfileAttributes() map[string]IncludedUserAttributeValues { + if u == nil { + return nil + } + return u.MultiUserProfileAttributes +} + +func (u *UserCriteriaScope) GetUserStatus() []UserStatus { + if u == nil { + return nil + } + return u.UserStatus +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userexpandmask.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userexpandmask.go index ade95e97..9073c079 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userexpandmask.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userexpandmask.go @@ -10,9 +10,9 @@ type UserExpandMask struct { Paths []string `json:"paths,omitempty"` } -func (o *UserExpandMask) GetPaths() []string { - if o == nil { +func (u *UserExpandMask) GetPaths() []string { + if u == nil { return nil } - return o.Paths + return u.Paths } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userprofilechangetrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userprofilechangetrigger.go index 718b8b1f..7f771f51 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userprofilechangetrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userprofilechangetrigger.go @@ -8,9 +8,9 @@ type UserProfileChangeTrigger struct { Condition *string `json:"condition,omitempty"` } -func (o *UserProfileChangeTrigger) GetCondition() *string { - if o == nil { +func (u *UserProfileChangeTrigger) GetCondition() *string { + if u == nil { return nil } - return o.Condition + return u.Condition } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userproperties.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userproperties.go index f87093c8..3b748a3d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userproperties.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userproperties.go @@ -14,30 +14,30 @@ type UserProperties struct { UsernameCel *string `json:"usernameCel,omitempty"` } -func (o *UserProperties) GetDisplayNameCel() *string { - if o == nil { +func (u *UserProperties) GetDisplayNameCel() *string { + if u == nil { return nil } - return o.DisplayNameCel + return u.DisplayNameCel } -func (o *UserProperties) GetEmailCel() *string { - if o == nil { +func (u *UserProperties) GetEmailCel() *string { + if u == nil { return nil } - return o.EmailCel + return u.EmailCel } -func (o *UserProperties) GetProfileAttributeCel() *string { - if o == nil { +func (u *UserProperties) GetProfileAttributeCel() *string { + if u == nil { return nil } - return o.ProfileAttributeCel + return u.ProfileAttributeCel } -func (o *UserProperties) GetUsernameCel() *string { - if o == nil { +func (u *UserProperties) GetUsernameCel() *string { + if u == nil { return nil } - return o.UsernameCel + return u.UsernameCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userproviderconfig.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userproviderconfig.go new file mode 100644 index 00000000..b81ccdfc --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userproviderconfig.go @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The UserProviderConfig message. +type UserProviderConfig struct { + // The inputTransformationCel field. + InputTransformationCel *string `json:"inputTransformationCel,omitempty"` +} + +func (u *UserProviderConfig) GetInputTransformationCel() *string { + if u == nil { + return nil + } + return u.InputTransformationCel +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userref.go index ad8ad84b..89367735 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userref.go @@ -8,9 +8,9 @@ type UserRef struct { ID *string `json:"id,omitempty"` } -func (o *UserRef) GetID() *string { - if o == nil { +func (u *UserRef) GetID() *string { + if u == nil { return nil } - return o.ID + return u.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userservicegetresponse.go index 2ccbba20..6c4ea71d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userservicegetresponse.go @@ -18,24 +18,24 @@ func (u UserServiceGetResponseExpanded) MarshalJSON() ([]byte, error) { } func (u *UserServiceGetResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil } -func (o *UserServiceGetResponseExpanded) GetAtType() *string { - if o == nil { +func (u *UserServiceGetResponseExpanded) GetAtType() *string { + if u == nil { return nil } - return o.AtType + return u.AtType } -func (o *UserServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (u *UserServiceGetResponseExpanded) GetAdditionalProperties() map[string]any { + if u == nil { return nil } - return o.AdditionalProperties + return u.AdditionalProperties } // The UserServiceGetResponse returns a user view which has a user including JSONPATHs to the expanded items in the expanded array. @@ -46,16 +46,16 @@ type UserServiceGetResponse struct { Expanded []UserServiceGetResponseExpanded `json:"expanded,omitempty"` } -func (o *UserServiceGetResponse) GetUserView() *UserView { - if o == nil { +func (u *UserServiceGetResponse) GetUserView() *UserView { + if u == nil { return nil } - return o.UserView + return u.UserView } -func (o *UserServiceGetResponse) GetExpanded() []UserServiceGetResponseExpanded { - if o == nil { +func (u *UserServiceGetResponse) GetExpanded() []UserServiceGetResponseExpanded { + if u == nil { return nil } - return o.Expanded + return u.Expanded } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userservicelistresponse.go index 288f9592..0308a564 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userservicelistresponse.go @@ -18,24 +18,24 @@ func (u UserServiceListResponseExpanded) MarshalJSON() ([]byte, error) { } func (u *UserServiceListResponseExpanded) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil } -func (o *UserServiceListResponseExpanded) GetAtType() *string { - if o == nil { +func (u *UserServiceListResponseExpanded) GetAtType() *string { + if u == nil { return nil } - return o.AtType + return u.AtType } -func (o *UserServiceListResponseExpanded) GetAdditionalProperties() map[string]any { - if o == nil { +func (u *UserServiceListResponseExpanded) GetAdditionalProperties() map[string]any { + if u == nil { return nil } - return o.AdditionalProperties + return u.AdditionalProperties } // The UserServiceListResponse message contains a list of results and a nextPageToken if applicable. @@ -50,23 +50,23 @@ type UserServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *UserServiceListResponse) GetExpanded() []UserServiceListResponseExpanded { - if o == nil { +func (u *UserServiceListResponse) GetExpanded() []UserServiceListResponseExpanded { + if u == nil { return nil } - return o.Expanded + return u.Expanded } -func (o *UserServiceListResponse) GetList() []UserView { - if o == nil { +func (u *UserServiceListResponse) GetList() []UserView { + if u == nil { return nil } - return o.List + return u.List } -func (o *UserServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (u *UserServiceListResponse) GetNextPageToken() *string { + if u == nil { return nil } - return o.NextPageToken + return u.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userview.go index c43bd52b..6f654ef8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userview.go @@ -16,37 +16,37 @@ type UserView struct { RolesPath *string `json:"rolesPath,omitempty"` } -func (o *UserView) GetUser() *User { - if o == nil { +func (u *UserView) GetUser() *User { + if u == nil { return nil } - return o.User + return u.User } -func (o *UserView) GetDelegatedUserPath() *string { - if o == nil { +func (u *UserView) GetDelegatedUserPath() *string { + if u == nil { return nil } - return o.DelegatedUserPath + return u.DelegatedUserPath } -func (o *UserView) GetDirectoriesPath() *string { - if o == nil { +func (u *UserView) GetDirectoriesPath() *string { + if u == nil { return nil } - return o.DirectoriesPath + return u.DirectoriesPath } -func (o *UserView) GetManagersPath() *string { - if o == nil { +func (u *UserView) GetManagersPath() *string { + if u == nil { return nil } - return o.ManagersPath + return u.ManagersPath } -func (o *UserView) GetRolesPath() *string { - if o == nil { +func (u *UserView) GetRolesPath() *string { + if u == nil { return nil } - return o.RolesPath + return u.RolesPath } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userwithappentitlementuserbindingview.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userwithappentitlementuserbindingview.go index 702b288e..57bfde70 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userwithappentitlementuserbindingview.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/userwithappentitlementuserbindingview.go @@ -14,30 +14,30 @@ type UserWithAppEntitlementUserBindingView struct { AppUserID *string `json:"appUserId,omitempty"` } -func (o *UserWithAppEntitlementUserBindingView) GetUser() *User { - if o == nil { +func (u *UserWithAppEntitlementUserBindingView) GetUser() *User { + if u == nil { return nil } - return o.User + return u.User } -func (o *UserWithAppEntitlementUserBindingView) GetAppEntitlementID() *string { - if o == nil { +func (u *UserWithAppEntitlementUserBindingView) GetAppEntitlementID() *string { + if u == nil { return nil } - return o.AppEntitlementID + return u.AppEntitlementID } -func (o *UserWithAppEntitlementUserBindingView) GetAppID() *string { - if o == nil { +func (u *UserWithAppEntitlementUserBindingView) GetAppID() *string { + if u == nil { return nil } - return o.AppID + return u.AppID } -func (o *UserWithAppEntitlementUserBindingView) GetAppUserID() *string { - if o == nil { +func (u *UserWithAppEntitlementUserBindingView) GetAppUserID() *string { + if u == nil { return nil } - return o.AppUserID + return u.AppUserID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vault.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vault.go new file mode 100644 index 00000000..5a789bc1 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vault.go @@ -0,0 +1,104 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The Vault message. +// +// This message contains a oneof named vault. Only a single field of the following list may be set at a time: +// - groupAuthzVault +// - magicVault +type Vault struct { + // The GroupAuthzVault message. + GroupAuthzVault *GroupAuthzVault `json:"groupAuthzVault,omitempty"` + // The MagicVault message. + MagicVault *MagicVault `json:"magicVault,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + CredentialExpirationDuration *string `json:"credentialExpirationDuration,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` +} + +func (v Vault) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(v, "", false) +} + +func (v *Vault) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &v, "", false, nil); err != nil { + return err + } + return nil +} + +func (v *Vault) GetGroupAuthzVault() *GroupAuthzVault { + if v == nil { + return nil + } + return v.GroupAuthzVault +} + +func (v *Vault) GetMagicVault() *MagicVault { + if v == nil { + return nil + } + return v.MagicVault +} + +func (v *Vault) GetCreatedAt() *time.Time { + if v == nil { + return nil + } + return v.CreatedAt +} + +func (v *Vault) GetCredentialExpirationDuration() *string { + if v == nil { + return nil + } + return v.CredentialExpirationDuration +} + +func (v *Vault) GetDeletedAt() *time.Time { + if v == nil { + return nil + } + return v.DeletedAt +} + +func (v *Vault) GetDescription() *string { + if v == nil { + return nil + } + return v.Description +} + +func (v *Vault) GetDisplayName() *string { + if v == nil { + return nil + } + return v.DisplayName +} + +func (v *Vault) GetID() *string { + if v == nil { + return nil + } + return v.ID +} + +func (v *Vault) GetUpdatedAt() *time.Time { + if v == nil { + return nil + } + return v.UpdatedAt +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultinput.go new file mode 100644 index 00000000..cdd64ebf --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultinput.go @@ -0,0 +1,64 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// VaultInput - The Vault message. +// +// This message contains a oneof named vault. Only a single field of the following list may be set at a time: +// - groupAuthzVault +// - magicVault +type VaultInput struct { + // The GroupAuthzVault message. + GroupAuthzVault *GroupAuthzVault `json:"groupAuthzVault,omitempty"` + // The MagicVault message. + MagicVault *MagicVault `json:"magicVault,omitempty"` + CredentialExpirationDuration *string `json:"credentialExpirationDuration,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName *string `json:"displayName,omitempty"` + // The id field. + ID *string `json:"id,omitempty"` +} + +func (v *VaultInput) GetGroupAuthzVault() *GroupAuthzVault { + if v == nil { + return nil + } + return v.GroupAuthzVault +} + +func (v *VaultInput) GetMagicVault() *MagicVault { + if v == nil { + return nil + } + return v.MagicVault +} + +func (v *VaultInput) GetCredentialExpirationDuration() *string { + if v == nil { + return nil + } + return v.CredentialExpirationDuration +} + +func (v *VaultInput) GetDescription() *string { + if v == nil { + return nil + } + return v.Description +} + +func (v *VaultInput) GetDisplayName() *string { + if v == nil { + return nil + } + return v.DisplayName +} + +func (v *VaultInput) GetID() *string { + if v == nil { + return nil + } + return v.ID +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicecreaterequest.go new file mode 100644 index 00000000..fb8ec2e3 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicecreaterequest.go @@ -0,0 +1,56 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The VaultServiceCreateRequest message. +// +// This message contains a oneof named vault. Only a single field of the following list may be set at a time: +// - groupAuthzVault +// - magicVault +type VaultServiceCreateRequest struct { + // The GroupAuthzVault message. + GroupAuthzVault *GroupAuthzVault `json:"groupAuthzVault,omitempty"` + // The MagicVault message. + MagicVault *MagicVault `json:"magicVault,omitempty"` + // The description field. + Description *string `json:"description,omitempty"` + // The displayName field. + DisplayName string `json:"displayName"` + // The ownerIds field. + OwnerIds []string `json:"ownerIds,omitempty"` +} + +func (v *VaultServiceCreateRequest) GetGroupAuthzVault() *GroupAuthzVault { + if v == nil { + return nil + } + return v.GroupAuthzVault +} + +func (v *VaultServiceCreateRequest) GetMagicVault() *MagicVault { + if v == nil { + return nil + } + return v.MagicVault +} + +func (v *VaultServiceCreateRequest) GetDescription() *string { + if v == nil { + return nil + } + return v.Description +} + +func (v *VaultServiceCreateRequest) GetDisplayName() string { + if v == nil { + return "" + } + return v.DisplayName +} + +func (v *VaultServiceCreateRequest) GetOwnerIds() []string { + if v == nil { + return nil + } + return v.OwnerIds +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicecreateresponse.go new file mode 100644 index 00000000..8be2853e --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicecreateresponse.go @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The VaultServiceCreateResponse message. +type VaultServiceCreateResponse struct { + // The Vault message. + // + // This message contains a oneof named vault. Only a single field of the following list may be set at a time: + // - groupAuthzVault + // - magicVault + // + Vault *Vault `json:"vault,omitempty"` +} + +func (v *VaultServiceCreateResponse) GetVault() *Vault { + if v == nil { + return nil + } + return v.Vault +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicedeleterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicedeleterequest.go new file mode 100644 index 00000000..5bab2094 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicedeleterequest.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The VaultServiceDeleteRequest message. +type VaultServiceDeleteRequest struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicedeleteresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicedeleteresponse.go new file mode 100644 index 00000000..f08cf151 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicedeleteresponse.go @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// VaultServiceDeleteResponse - Empty response body. Status code indicates success. +type VaultServiceDeleteResponse struct { +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicegetresponse.go new file mode 100644 index 00000000..90b72998 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultservicegetresponse.go @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The VaultServiceGetResponse message. +type VaultServiceGetResponse struct { + // The Vault message. + // + // This message contains a oneof named vault. Only a single field of the following list may be set at a time: + // - groupAuthzVault + // - magicVault + // + Vault *Vault `json:"vault,omitempty"` +} + +func (v *VaultServiceGetResponse) GetVault() *Vault { + if v == nil { + return nil + } + return v.Vault +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultserviceupdaterequest.go new file mode 100644 index 00000000..a929bfca --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultserviceupdaterequest.go @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The VaultServiceUpdateRequest message contains the vault object to update and a field mask to indicate which fields to update. +type VaultServiceUpdateRequest struct { + // The Vault message. + // + // This message contains a oneof named vault. Only a single field of the following list may be set at a time: + // - groupAuthzVault + // - magicVault + // + Vault *VaultInput `json:"vault,omitempty"` + UpdateMask *string `json:"updateMask,omitempty"` +} + +func (v *VaultServiceUpdateRequest) GetVault() *VaultInput { + if v == nil { + return nil + } + return v.Vault +} + +func (v *VaultServiceUpdateRequest) GetUpdateMask() *string { + if v == nil { + return nil + } + return v.UpdateMask +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultserviceupdateresponse.go new file mode 100644 index 00000000..b77c6922 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/vaultserviceupdateresponse.go @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The VaultServiceUpdateResponse message. +type VaultServiceUpdateResponse struct { + // The Vault message. + // + // This message contains a oneof named vault. Only a single field of the following list may be set at a time: + // - groupAuthzVault + // - magicVault + // + Vault *Vault `json:"vault,omitempty"` +} + +func (v *VaultServiceUpdateResponse) GetVault() *Vault { + if v == nil { + return nil + } + return v.Vault +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/wait.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/wait.go index 0492a83f..0ea3573a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/wait.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/wait.go @@ -6,9 +6,15 @@ package shared // // This message contains a oneof named until. Only a single field of the following list may be set at a time: // - condition +// - duration +// - untilTime type Wait struct { // The WaitCondition message. WaitCondition *WaitCondition `json:"condition,omitempty"` + // The WaitDuration message. + WaitDuration *WaitDuration `json:"duration,omitempty"` + // Waits until a specific time of the day (UTC) + WaitUntilTime *WaitUntilTime `json:"untilTime,omitempty"` // The comment to post on first failed check. CommentOnFirstWait *string `json:"commentOnFirstWait,omitempty"` // The comment to post if we timeout. @@ -18,37 +24,51 @@ type Wait struct { TimeoutDuration *string `json:"timeoutDuration,omitempty"` } -func (o *Wait) GetWaitCondition() *WaitCondition { - if o == nil { +func (w *Wait) GetWaitCondition() *WaitCondition { + if w == nil { return nil } - return o.WaitCondition + return w.WaitCondition } -func (o *Wait) GetCommentOnFirstWait() *string { - if o == nil { +func (w *Wait) GetWaitDuration() *WaitDuration { + if w == nil { return nil } - return o.CommentOnFirstWait + return w.WaitDuration } -func (o *Wait) GetCommentOnTimeout() *string { - if o == nil { +func (w *Wait) GetWaitUntilTime() *WaitUntilTime { + if w == nil { return nil } - return o.CommentOnTimeout + return w.WaitUntilTime } -func (o *Wait) GetName() *string { - if o == nil { +func (w *Wait) GetCommentOnFirstWait() *string { + if w == nil { return nil } - return o.Name + return w.CommentOnFirstWait } -func (o *Wait) GetTimeoutDuration() *string { - if o == nil { +func (w *Wait) GetCommentOnTimeout() *string { + if w == nil { return nil } - return o.TimeoutDuration + return w.CommentOnTimeout +} + +func (w *Wait) GetName() *string { + if w == nil { + return nil + } + return w.Name +} + +func (w *Wait) GetTimeoutDuration() *string { + if w == nil { + return nil + } + return w.TimeoutDuration } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitcondition.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitcondition.go index efac7eb6..e022cffb 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitcondition.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitcondition.go @@ -8,9 +8,9 @@ type WaitCondition struct { Condition *string `json:"condition,omitempty"` } -func (o *WaitCondition) GetCondition() *string { - if o == nil { +func (w *WaitCondition) GetCondition() *string { + if w == nil { return nil } - return o.Condition + return w.Condition } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitconditioninstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitconditioninstance.go index 32212c9f..eb9b32a0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitconditioninstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitconditioninstance.go @@ -8,9 +8,9 @@ type WaitConditionInstance struct { Condition *string `json:"condition,omitempty"` } -func (o *WaitConditionInstance) GetCondition() *string { - if o == nil { +func (w *WaitConditionInstance) GetCondition() *string { + if w == nil { return nil } - return o.Condition + return w.Condition } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitduration.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitduration.go new file mode 100644 index 00000000..3114c83c --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitduration.go @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// The WaitDuration message. +type WaitDuration struct { + Duration *string `json:"duration,omitempty"` +} + +func (w *WaitDuration) GetDuration() *string { + if w == nil { + return nil + } + return w.Duration +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitforduration.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitforduration.go index 975b0f5e..ecdb83a8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitforduration.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitforduration.go @@ -7,9 +7,9 @@ type WaitForDuration struct { Duration *string `json:"duration,omitempty"` } -func (o *WaitForDuration) GetDuration() *string { - if o == nil { +func (w *WaitForDuration) GetDuration() *string { + if w == nil { return nil } - return o.Duration + return w.Duration } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitinstance.go index 756cb76c..6d782faa 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitinstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waitinstance.go @@ -21,10 +21,22 @@ func (e WaitInstanceState) ToPointer() *WaitInstanceState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *WaitInstanceState) IsExact() bool { + if e != nil { + switch *e { + case "WAIT_INSTANCE_STATE_UNSPECIFIED", "WAIT_INSTANCE_STATE_WAITING", "WAIT_INSTANCE_STATE_COMPLETED", "WAIT_INSTANCE_STATE_TIMED_OUT": + return true + } + } + return false +} + // WaitInstance - Used by the policy engine to describe an instantiated wait step. // // This message contains a oneof named until. Only a single field of the following list may be set at a time: // - condition +// - untilTime // // This message contains a oneof named outcome. Only a single field of the following list may be set at a time: // - succeeded @@ -39,6 +51,8 @@ type WaitInstance struct { SkippedAction *SkippedAction `json:"skipped,omitempty"` // Used by the policy engine to describe an instantiated condition to wait on. WaitConditionInstance *WaitConditionInstance `json:"condition,omitempty"` + // The WaitUntilTimeInstance message. + WaitUntilTimeInstance *WaitUntilTimeInstance `json:"untilTime,omitempty"` // The comment to post on first failed check. CommentOnFirstWait *string `json:"commentOnFirstWait,omitempty"` // The comment to post if we timeout. @@ -57,85 +71,92 @@ func (w WaitInstance) MarshalJSON() ([]byte, error) { } func (w *WaitInstance) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &w, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &w, "", false, nil); err != nil { return err } return nil } -func (o *WaitInstance) GetConditionSucceeded() *ConditionSucceeded { - if o == nil { +func (w *WaitInstance) GetConditionSucceeded() *ConditionSucceeded { + if w == nil { + return nil + } + return w.ConditionSucceeded +} + +func (w *WaitInstance) GetConditionTimedOut() *ConditionTimedOut { + if w == nil { return nil } - return o.ConditionSucceeded + return w.ConditionTimedOut } -func (o *WaitInstance) GetConditionTimedOut() *ConditionTimedOut { - if o == nil { +func (w *WaitInstance) GetSkippedAction() *SkippedAction { + if w == nil { return nil } - return o.ConditionTimedOut + return w.SkippedAction } -func (o *WaitInstance) GetSkippedAction() *SkippedAction { - if o == nil { +func (w *WaitInstance) GetWaitConditionInstance() *WaitConditionInstance { + if w == nil { return nil } - return o.SkippedAction + return w.WaitConditionInstance } -func (o *WaitInstance) GetWaitConditionInstance() *WaitConditionInstance { - if o == nil { +func (w *WaitInstance) GetWaitUntilTimeInstance() *WaitUntilTimeInstance { + if w == nil { return nil } - return o.WaitConditionInstance + return w.WaitUntilTimeInstance } -func (o *WaitInstance) GetCommentOnFirstWait() *string { - if o == nil { +func (w *WaitInstance) GetCommentOnFirstWait() *string { + if w == nil { return nil } - return o.CommentOnFirstWait + return w.CommentOnFirstWait } -func (o *WaitInstance) GetCommentOnTimeout() *string { - if o == nil { +func (w *WaitInstance) GetCommentOnTimeout() *string { + if w == nil { return nil } - return o.CommentOnTimeout + return w.CommentOnTimeout } -func (o *WaitInstance) GetName() *string { - if o == nil { +func (w *WaitInstance) GetName() *string { + if w == nil { return nil } - return o.Name + return w.Name } -func (o *WaitInstance) GetStartedWaitingAt() *time.Time { - if o == nil { +func (w *WaitInstance) GetStartedWaitingAt() *time.Time { + if w == nil { return nil } - return o.StartedWaitingAt + return w.StartedWaitingAt } -func (o *WaitInstance) GetState() *WaitInstanceState { - if o == nil { +func (w *WaitInstance) GetState() *WaitInstanceState { + if w == nil { return nil } - return o.State + return w.State } -func (o *WaitInstance) GetTimeout() *time.Time { - if o == nil { +func (w *WaitInstance) GetTimeout() *time.Time { + if w == nil { return nil } - return o.Timeout + return w.Timeout } -func (o *WaitInstance) GetTimeoutDuration() *string { - if o == nil { +func (w *WaitInstance) GetTimeoutDuration() *string { + if w == nil { return nil } - return o.TimeoutDuration + return w.TimeoutDuration } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waituntiltime.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waituntiltime.go new file mode 100644 index 00000000..a855124b --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waituntiltime.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +// WaitUntilTime - Waits until a specific time of the day (UTC) +type WaitUntilTime struct { + // The hours field. + Hours *int64 `json:"hours,omitempty"` + // The minutes field. + Minutes *int64 `json:"minutes,omitempty"` + // The timezone field. + Timezone *string `json:"timezone,omitempty"` +} + +func (w *WaitUntilTime) GetHours() *int64 { + if w == nil { + return nil + } + return w.Hours +} + +func (w *WaitUntilTime) GetMinutes() *int64 { + if w == nil { + return nil + } + return w.Minutes +} + +func (w *WaitUntilTime) GetTimezone() *string { + if w == nil { + return nil + } + return w.Timezone +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waituntiltimeinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waituntiltimeinstance.go new file mode 100644 index 00000000..5d44bdeb --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/waituntiltimeinstance.go @@ -0,0 +1,39 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package shared + +import ( + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "time" +) + +// The WaitUntilTimeInstance message. +type WaitUntilTimeInstance struct { + DurationIfExists *string `json:"durationIfExists,omitempty"` + UntilTime *time.Time `json:"untilTime,omitempty"` +} + +func (w WaitUntilTimeInstance) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(w, "", false) +} + +func (w *WaitUntilTimeInstance) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &w, "", false, nil); err != nil { + return err + } + return nil +} + +func (w *WaitUntilTimeInstance) GetDurationIfExists() *string { + if w == nil { + return nil + } + return w.DurationIfExists +} + +func (w *WaitUntilTimeInstance) GetUntilTime() *time.Time { + if w == nil { + return nil + } + return w.UntilTime +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhook.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhook.go index 486e7cf9..0c9b2297 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhook.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhook.go @@ -19,23 +19,23 @@ type Webhook struct { WebhookIDCel *string `json:"webhookIdCel,omitempty"` } -func (o *Webhook) GetPayload() map[string]any { - if o == nil { +func (w *Webhook) GetPayload() map[string]any { + if w == nil { return nil } - return o.Payload + return w.Payload } -func (o *Webhook) GetWebhookID() *string { - if o == nil { +func (w *Webhook) GetWebhookID() *string { + if w == nil { return nil } - return o.WebhookID + return w.WebhookID } -func (o *Webhook) GetWebhookIDCel() *string { - if o == nil { +func (w *Webhook) GetWebhookIDCel() *string { + if w == nil { return nil } - return o.WebhookIDCel + return w.WebhookIDCel } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhook1.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhook1.go index 06ab8035..adc30924 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhook1.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhook1.go @@ -27,57 +27,57 @@ func (w Webhook1) MarshalJSON() ([]byte, error) { } func (w *Webhook1) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &w, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &w, "", false, nil); err != nil { return err } return nil } -func (o *Webhook1) GetCreatedAt() *time.Time { - if o == nil { +func (w *Webhook1) GetCreatedAt() *time.Time { + if w == nil { return nil } - return o.CreatedAt + return w.CreatedAt } -func (o *Webhook1) GetDeletedAt() *time.Time { - if o == nil { +func (w *Webhook1) GetDeletedAt() *time.Time { + if w == nil { return nil } - return o.DeletedAt + return w.DeletedAt } -func (o *Webhook1) GetDescription() *string { - if o == nil { +func (w *Webhook1) GetDescription() *string { + if w == nil { return nil } - return o.Description + return w.Description } -func (o *Webhook1) GetDisplayName() *string { - if o == nil { +func (w *Webhook1) GetDisplayName() *string { + if w == nil { return nil } - return o.DisplayName + return w.DisplayName } -func (o *Webhook1) GetID() *string { - if o == nil { +func (w *Webhook1) GetID() *string { + if w == nil { return nil } - return o.ID + return w.ID } -func (o *Webhook1) GetUpdatedAt() *time.Time { - if o == nil { +func (w *Webhook1) GetUpdatedAt() *time.Time { + if w == nil { return nil } - return o.UpdatedAt + return w.UpdatedAt } -func (o *Webhook1) GetURL() *string { - if o == nil { +func (w *Webhook1) GetURL() *string { + if w == nil { return nil } - return o.URL + return w.URL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookapproval.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookapproval.go index 410880f5..b8742125 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookapproval.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookapproval.go @@ -8,9 +8,9 @@ type WebhookApproval struct { WebhookID *string `json:"webhookId,omitempty"` } -func (o *WebhookApproval) GetWebhookID() *string { - if o == nil { +func (w *WebhookApproval) GetWebhookID() *string { + if w == nil { return nil } - return o.WebhookID + return w.WebhookID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookautomationtrigger.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookautomationtrigger.go index 02f202ad..61f610fd 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookautomationtrigger.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookautomationtrigger.go @@ -16,23 +16,23 @@ type WebhookAutomationTrigger struct { ListenerID *string `json:"listenerId,omitempty"` } -func (o *WebhookAutomationTrigger) GetWebhookListenerAuthHMAC() *WebhookListenerAuthHMAC { - if o == nil { +func (w *WebhookAutomationTrigger) GetWebhookListenerAuthHMAC() *WebhookListenerAuthHMAC { + if w == nil { return nil } - return o.WebhookListenerAuthHMAC + return w.WebhookListenerAuthHMAC } -func (o *WebhookAutomationTrigger) GetWebhookListenerAuthJWT() *WebhookListenerAuthJWT { - if o == nil { +func (w *WebhookAutomationTrigger) GetWebhookListenerAuthJWT() *WebhookListenerAuthJWT { + if w == nil { return nil } - return o.WebhookListenerAuthJWT + return w.WebhookListenerAuthJWT } -func (o *WebhookAutomationTrigger) GetListenerID() *string { - if o == nil { +func (w *WebhookAutomationTrigger) GetListenerID() *string { + if w == nil { return nil } - return o.ListenerID + return w.ListenerID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookinput.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookinput.go index 78586240..df4000d8 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookinput.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookinput.go @@ -14,30 +14,30 @@ type WebhookInput struct { URL *string `json:"url,omitempty"` } -func (o *WebhookInput) GetDescription() *string { - if o == nil { +func (w *WebhookInput) GetDescription() *string { + if w == nil { return nil } - return o.Description + return w.Description } -func (o *WebhookInput) GetDisplayName() *string { - if o == nil { +func (w *WebhookInput) GetDisplayName() *string { + if w == nil { return nil } - return o.DisplayName + return w.DisplayName } -func (o *WebhookInput) GetID() *string { - if o == nil { +func (w *WebhookInput) GetID() *string { + if w == nil { return nil } - return o.ID + return w.ID } -func (o *WebhookInput) GetURL() *string { - if o == nil { +func (w *WebhookInput) GetURL() *string { + if w == nil { return nil } - return o.URL + return w.URL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookinstance.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookinstance.go index 51b4c432..1640ae7b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookinstance.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookinstance.go @@ -25,6 +25,17 @@ func (e WebhookInstanceState) ToPointer() *WebhookInstanceState { return &e } +// IsExact returns true if the value matches a known enum value, false otherwise. +func (e *WebhookInstanceState) IsExact() bool { + if e != nil { + switch *e { + case "WEBHOOK_STATE_UNSPECIFIED", "WEBHOOK_STATE_PENDING", "WEBHOOK_STATE_RUNNING", "WEBHOOK_STATE_ERROR", "WEBHOOK_STATE_WAITING_CALLBACK", "WEBHOOK_STATE_PROCESS_RESPONSE", "WEBHOOK_STATE_SUCCESS", "WEBHOOK_STATE_FATAL_ERROR": + return true + } + } + return false +} + // The WebhookInstance message. type WebhookInstance struct { // The WebhookSource message. @@ -59,85 +70,85 @@ func (w WebhookInstance) MarshalJSON() ([]byte, error) { } func (w *WebhookInstance) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &w, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &w, "", false, nil); err != nil { return err } return nil } -func (o *WebhookInstance) GetWebhookSource() *WebhookSource { - if o == nil { +func (w *WebhookInstance) GetWebhookSource() *WebhookSource { + if w == nil { return nil } - return o.WebhookSource + return w.WebhookSource } -func (o *WebhookInstance) GetWebhookSpec() *WebhookSpec { - if o == nil { +func (w *WebhookInstance) GetWebhookSpec() *WebhookSpec { + if w == nil { return nil } - return o.WebhookSpec + return w.WebhookSpec } -func (o *WebhookInstance) GetAttempts() *int { - if o == nil { +func (w *WebhookInstance) GetAttempts() *int { + if w == nil { return nil } - return o.Attempts + return w.Attempts } -func (o *WebhookInstance) GetCompletedAt() *time.Time { - if o == nil { +func (w *WebhookInstance) GetCompletedAt() *time.Time { + if w == nil { return nil } - return o.CompletedAt + return w.CompletedAt } -func (o *WebhookInstance) GetCreatedAt() *time.Time { - if o == nil { +func (w *WebhookInstance) GetCreatedAt() *time.Time { + if w == nil { return nil } - return o.CreatedAt + return w.CreatedAt } -func (o *WebhookInstance) GetExpiresAt() *time.Time { - if o == nil { +func (w *WebhookInstance) GetExpiresAt() *time.Time { + if w == nil { return nil } - return o.ExpiresAt + return w.ExpiresAt } -func (o *WebhookInstance) GetID() *string { - if o == nil { +func (w *WebhookInstance) GetID() *string { + if w == nil { return nil } - return o.ID + return w.ID } -func (o *WebhookInstance) GetLastAttemptedAt() *time.Time { - if o == nil { +func (w *WebhookInstance) GetLastAttemptedAt() *time.Time { + if w == nil { return nil } - return o.LastAttemptedAt + return w.LastAttemptedAt } -func (o *WebhookInstance) GetState() *WebhookInstanceState { - if o == nil { +func (w *WebhookInstance) GetState() *WebhookInstanceState { + if w == nil { return nil } - return o.State + return w.State } -func (o *WebhookInstance) GetUpdatedAt() *time.Time { - if o == nil { +func (w *WebhookInstance) GetUpdatedAt() *time.Time { + if w == nil { return nil } - return o.UpdatedAt + return w.UpdatedAt } -func (o *WebhookInstance) GetWebhookID() *string { - if o == nil { +func (w *WebhookInstance) GetWebhookID() *string { + if w == nil { return nil } - return o.WebhookID + return w.WebhookID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooklistenerauthjwt.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooklistenerauthjwt.go index aaf90e31..9a28c247 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooklistenerauthjwt.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooklistenerauthjwt.go @@ -8,9 +8,9 @@ type WebhookListenerAuthJWT struct { JwksURL *string `json:"jwksUrl,omitempty"` } -func (o *WebhookListenerAuthJWT) GetJwksURL() *string { - if o == nil { +func (w *WebhookListenerAuthJWT) GetJwksURL() *string { + if w == nil { return nil } - return o.JwksURL + return w.JwksURL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookprovision.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookprovision.go index c89936e8..a62f3e5c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookprovision.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookprovision.go @@ -8,9 +8,9 @@ type WebhookProvision struct { WebhookID *string `json:"webhookId,omitempty"` } -func (o *WebhookProvision) GetWebhookID() *string { - if o == nil { +func (w *WebhookProvision) GetWebhookID() *string { + if w == nil { return nil } - return o.WebhookID + return w.WebhookID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookref.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookref.go index bb82fc2d..a9bb325c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookref.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookref.go @@ -8,9 +8,9 @@ type WebhookRef struct { ID *string `json:"id,omitempty"` } -func (o *WebhookRef) GetID() *string { - if o == nil { +func (w *WebhookRef) GetID() *string { + if w == nil { return nil } - return o.ID + return w.ID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksource.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksource.go index f1a0e982..ce35689d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksource.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksource.go @@ -23,37 +23,37 @@ type WebhookSource struct { WebhookSourceWorkflowStep *WebhookSourceWorkflowStep `json:"workflowStep,omitempty"` } -func (o *WebhookSource) GetWebhookSourceApprovalStep() *WebhookSourceApprovalStep { - if o == nil { +func (w *WebhookSource) GetWebhookSourceApprovalStep() *WebhookSourceApprovalStep { + if w == nil { return nil } - return o.WebhookSourceApprovalStep + return w.WebhookSourceApprovalStep } -func (o *WebhookSource) GetWebhookSourcePolicyPostAction() *WebhookSourcePolicyPostAction { - if o == nil { +func (w *WebhookSource) GetWebhookSourcePolicyPostAction() *WebhookSourcePolicyPostAction { + if w == nil { return nil } - return o.WebhookSourcePolicyPostAction + return w.WebhookSourcePolicyPostAction } -func (o *WebhookSource) GetWebhookSourceProvisionStep() *WebhookSourceProvisionStep { - if o == nil { +func (w *WebhookSource) GetWebhookSourceProvisionStep() *WebhookSourceProvisionStep { + if w == nil { return nil } - return o.WebhookSourceProvisionStep + return w.WebhookSourceProvisionStep } -func (o *WebhookSource) GetWebhookSourceTest() *WebhookSourceTest { - if o == nil { +func (w *WebhookSource) GetWebhookSourceTest() *WebhookSourceTest { + if w == nil { return nil } - return o.WebhookSourceTest + return w.WebhookSourceTest } -func (o *WebhookSource) GetWebhookSourceWorkflowStep() *WebhookSourceWorkflowStep { - if o == nil { +func (w *WebhookSource) GetWebhookSourceWorkflowStep() *WebhookSourceWorkflowStep { + if w == nil { return nil } - return o.WebhookSourceWorkflowStep + return w.WebhookSourceWorkflowStep } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceapprovalstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceapprovalstep.go index d66bc065..fd066b16 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceapprovalstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceapprovalstep.go @@ -8,9 +8,9 @@ type WebhookSourceApprovalStep struct { TicketID *string `json:"ticketId,omitempty"` } -func (o *WebhookSourceApprovalStep) GetTicketID() *string { - if o == nil { +func (w *WebhookSourceApprovalStep) GetTicketID() *string { + if w == nil { return nil } - return o.TicketID + return w.TicketID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourcepolicypostaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourcepolicypostaction.go index d78f3bf9..064fbcb7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourcepolicypostaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourcepolicypostaction.go @@ -8,9 +8,9 @@ type WebhookSourcePolicyPostAction struct { TicketID *string `json:"ticketId,omitempty"` } -func (o *WebhookSourcePolicyPostAction) GetTicketID() *string { - if o == nil { +func (w *WebhookSourcePolicyPostAction) GetTicketID() *string { + if w == nil { return nil } - return o.TicketID + return w.TicketID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceprovisionstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceprovisionstep.go index 26c5d095..62053e53 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceprovisionstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceprovisionstep.go @@ -8,9 +8,9 @@ type WebhookSourceProvisionStep struct { TicketID *string `json:"ticketId,omitempty"` } -func (o *WebhookSourceProvisionStep) GetTicketID() *string { - if o == nil { +func (w *WebhookSourceProvisionStep) GetTicketID() *string { + if w == nil { return nil } - return o.TicketID + return w.TicketID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceworkflowstep.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceworkflowstep.go index e9b442de..17e3ca58 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceworkflowstep.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksourceworkflowstep.go @@ -10,16 +10,16 @@ type WebhookSourceWorkflowStep struct { WorkflowStepID *string `json:"workflowStepId,omitempty"` } -func (o *WebhookSourceWorkflowStep) GetWorkflowExecutionID() *int64 { - if o == nil { +func (w *WebhookSourceWorkflowStep) GetWorkflowExecutionID() *int64 { + if w == nil { return nil } - return o.WorkflowExecutionID + return w.WorkflowExecutionID } -func (o *WebhookSourceWorkflowStep) GetWorkflowStepID() *string { - if o == nil { +func (w *WebhookSourceWorkflowStep) GetWorkflowStepID() *string { + if w == nil { return nil } - return o.WorkflowStepID + return w.WorkflowStepID } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookspec.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookspec.go index 3483c75d..58dcca7f 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookspec.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookspec.go @@ -8,9 +8,9 @@ type WebhookSpec struct { Destination *string `json:"destination,omitempty"` } -func (o *WebhookSpec) GetDestination() *string { - if o == nil { +func (w *WebhookSpec) GetDestination() *string { + if w == nil { return nil } - return o.Destination + return w.Destination } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookssearchrequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookssearchrequest.go index a1c3935f..81f164f1 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookssearchrequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookssearchrequest.go @@ -14,30 +14,30 @@ type WebhooksSearchRequest struct { Refs []WebhookRef `json:"refs,omitempty"` } -func (o *WebhooksSearchRequest) GetPageSize() *int { - if o == nil { +func (w *WebhooksSearchRequest) GetPageSize() *int { + if w == nil { return nil } - return o.PageSize + return w.PageSize } -func (o *WebhooksSearchRequest) GetPageToken() *string { - if o == nil { +func (w *WebhooksSearchRequest) GetPageToken() *string { + if w == nil { return nil } - return o.PageToken + return w.PageToken } -func (o *WebhooksSearchRequest) GetQuery() *string { - if o == nil { +func (w *WebhooksSearchRequest) GetQuery() *string { + if w == nil { return nil } - return o.Query + return w.Query } -func (o *WebhooksSearchRequest) GetRefs() []WebhookRef { - if o == nil { +func (w *WebhooksSearchRequest) GetRefs() []WebhookRef { + if w == nil { return nil } - return o.Refs + return w.Refs } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookssearchresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookssearchresponse.go index 7c56e9eb..1730e345 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookssearchresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhookssearchresponse.go @@ -10,16 +10,16 @@ type WebhooksSearchResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *WebhooksSearchResponse) GetList() []Webhook1 { - if o == nil { +func (w *WebhooksSearchResponse) GetList() []Webhook1 { + if w == nil { return nil } - return o.List + return w.List } -func (o *WebhooksSearchResponse) GetNextPageToken() *string { - if o == nil { +func (w *WebhooksSearchResponse) GetNextPageToken() *string { + if w == nil { return nil } - return o.NextPageToken + return w.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicecreaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicecreaterequest.go index eb92179b..8cfcd390 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicecreaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicecreaterequest.go @@ -12,23 +12,23 @@ type WebhooksServiceCreateRequest struct { URL string `json:"url"` } -func (o *WebhooksServiceCreateRequest) GetDescription() *string { - if o == nil { +func (w *WebhooksServiceCreateRequest) GetDescription() *string { + if w == nil { return nil } - return o.Description + return w.Description } -func (o *WebhooksServiceCreateRequest) GetDisplayName() string { - if o == nil { +func (w *WebhooksServiceCreateRequest) GetDisplayName() string { + if w == nil { return "" } - return o.DisplayName + return w.DisplayName } -func (o *WebhooksServiceCreateRequest) GetURL() string { - if o == nil { +func (w *WebhooksServiceCreateRequest) GetURL() string { + if w == nil { return "" } - return o.URL + return w.URL } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicecreateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicecreateresponse.go index b0ea1172..f2821508 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicecreateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicecreateresponse.go @@ -8,9 +8,9 @@ type WebhooksServiceCreateResponse struct { Webhook *Webhook1 `json:"webhook,omitempty"` } -func (o *WebhooksServiceCreateResponse) GetWebhook() *Webhook1 { - if o == nil { +func (w *WebhooksServiceCreateResponse) GetWebhook() *Webhook1 { + if w == nil { return nil } - return o.Webhook + return w.Webhook } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicegetresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicegetresponse.go index 6acfa443..0a834087 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicegetresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicegetresponse.go @@ -8,9 +8,9 @@ type WebhooksServiceGetResponse struct { Webhook *Webhook1 `json:"webhook,omitempty"` } -func (o *WebhooksServiceGetResponse) GetWebhook() *Webhook1 { - if o == nil { +func (w *WebhooksServiceGetResponse) GetWebhook() *Webhook1 { + if w == nil { return nil } - return o.Webhook + return w.Webhook } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicelistresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicelistresponse.go index c2816ada..636242bc 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicelistresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicelistresponse.go @@ -10,16 +10,16 @@ type WebhooksServiceListResponse struct { NextPageToken *string `json:"nextPageToken,omitempty"` } -func (o *WebhooksServiceListResponse) GetList() []Webhook1 { - if o == nil { +func (w *WebhooksServiceListResponse) GetList() []Webhook1 { + if w == nil { return nil } - return o.List + return w.List } -func (o *WebhooksServiceListResponse) GetNextPageToken() *string { - if o == nil { +func (w *WebhooksServiceListResponse) GetNextPageToken() *string { + if w == nil { return nil } - return o.NextPageToken + return w.NextPageToken } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicetestresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicetestresponse.go index 3c4b2dcd..52c3beae 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicetestresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksservicetestresponse.go @@ -8,9 +8,9 @@ type WebhooksServiceTestResponse struct { WebhookInstance *WebhookInstance `json:"webhook,omitempty"` } -func (o *WebhooksServiceTestResponse) GetWebhookInstance() *WebhookInstance { - if o == nil { +func (w *WebhooksServiceTestResponse) GetWebhookInstance() *WebhookInstance { + if w == nil { return nil } - return o.WebhookInstance + return w.WebhookInstance } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksserviceupdaterequest.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksserviceupdaterequest.go index 9648d70c..7b9b4fce 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksserviceupdaterequest.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksserviceupdaterequest.go @@ -9,16 +9,16 @@ type WebhooksServiceUpdateRequest struct { UpdateMask *string `json:"updateMask,omitempty"` } -func (o *WebhooksServiceUpdateRequest) GetWebhook() *WebhookInput { - if o == nil { +func (w *WebhooksServiceUpdateRequest) GetWebhook() *WebhookInput { + if w == nil { return nil } - return o.Webhook + return w.Webhook } -func (o *WebhooksServiceUpdateRequest) GetUpdateMask() *string { - if o == nil { +func (w *WebhooksServiceUpdateRequest) GetUpdateMask() *string { + if w == nil { return nil } - return o.UpdateMask + return w.UpdateMask } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksserviceupdateresponse.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksserviceupdateresponse.go index 0df6a9f9..93ae13e0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksserviceupdateresponse.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/models/shared/webhooksserviceupdateresponse.go @@ -8,9 +8,9 @@ type WebhooksServiceUpdateResponse struct { Webhook *Webhook1 `json:"webhook,omitempty"` } -func (o *WebhooksServiceUpdateResponse) GetWebhook() *Webhook1 { - if o == nil { +func (w *WebhooksServiceUpdateResponse) GetWebhook() *Webhook1 { + if w == nil { return nil } - return o.Webhook + return w.Webhook } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable/optionalnullable.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable/optionalnullable.go new file mode 100644 index 00000000..c6739be0 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable/optionalnullable.go @@ -0,0 +1,233 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package optionalnullable + +import ( + "bytes" + "encoding/json" + "reflect" +) + +// OptionalNullable represents a field that can distinguish between three states: +// 1. Set to a value: field is present with a non-nil value +// 2. Set to nil: field is present but explicitly set to null in JSON +// 3. Unset: field is omitted from JSON entirely +// +// This type is designed to work with JSON marshaling/unmarshaling and supports +// the `omitempty` struct tag to properly omit unset fields from JSON output. +// +// Usage: +// +// type User struct { +// Name OptionalNullable[string] `json:"name,omitempty"` +// Age OptionalNullable[int] `json:"age,omitempty"` +// Tags OptionalNullable[[]string] `json:"tags,omitempty"` +// } +// +// // Set to value +// name := "John" +// user.Name = From(&name) +// +// // Set to nil (will appear as "name": null in JSON) +// user.Name = From[string](nil) +// +// // Leave unset (will be omitted from JSON with omitempty) +// user := User{} +// +// WARNING: Do NOT use *OptionalNullable[T] as a field type. Always use OptionalNullable[T] directly. +// Using *OptionalNullable[T] will break the omitempty behavior and JSON marshaling. +// +// The type is implemented as a map[bool]*T where: +// - nil map represents unset state +// - Map with true key represents set state (value may be nil) +type OptionalNullable[T any] map[bool]*T + +// From creates a new OptionalNullable with the given value. +// Pass nil to create a OptionalNullable that is set to null. +// Pass a pointer to a value to create a OptionalNullable with that value. +// +// Examples: +// +// hello := "hello" +// From(&hello) // set to "hello" +// From[string](nil) // set to null +func From[T any](value *T) OptionalNullable[T] { + return map[bool]*T{ + true: value, + } +} + +// IsNull returns true if the OptionalNullable is explicitly set to nil. +// Returns false if the OptionalNullable is unset or has a value. +// +// Note: This differs from traditional null checks because unset fields +// return false, not true. Use IsSet() to check if a field was provided. +func (n OptionalNullable[T]) IsNull() bool { + v, ok := n[true] + return ok && v == nil +} + +// IsSet returns true if the OptionalNullable has been explicitly set (to either a value or nil). +// Returns false if the OptionalNullable is unset (omitted from JSON). +// +// This is the key method for distinguishing between: +// - Set to nil: IsSet() = true, IsNull() = true +// - Unset: IsSet() = false, IsNull() = false +func (n OptionalNullable[T]) IsSet() bool { + _, ok := n[true] + return ok +} + +// Get returns the internal pointer and whether the field was set. +// +// Return values: +// - (ptr, true): field was set (ptr may be nil if set to null) +// - (nil, false): field was unset/omitted +// +// This method provides direct access to the internal pointer representation. +func (n OptionalNullable[T]) Get() (*T, bool) { + v, ok := n[true] + return v, ok +} + +// GetOrZero returns the value and whether it was set. +// +// Return values: +// - (value, true): field was set to a non-nil value +// - (zero, true): field was explicitly set to nil +// - (zero, false): field was unset/omitted +// +// Examples: +// +// val, ok := nullable.GetOrZero() +// if !ok { +// // Field was unset/omitted +// } else if nullable.IsNull() { +// // Field was explicitly set to null +// } else { +// // Field has a value: val +// } +func (n OptionalNullable[T]) GetOrZero() (T, bool) { + var zero T + + if v, ok := n[true]; ok { + if v == nil { + return zero, true + } + return *v, true + } + return zero, false +} + +// GetUntyped returns the value as interface{} and whether it was set. +// This is useful for reflection-based code that needs to work with the value +// without knowing the specific type T. +// +// Return values: +// - (value, true): field was set to a non-nil value +// - (nil, true): field was explicitly set to nil +// - (nil, false): field was unset/omitted +func (n OptionalNullable[T]) GetUntyped() (interface{}, bool) { + if v, ok := n[true]; ok { + if v == nil { + return nil, true + } + return *v, true + } + return nil, false +} + +// Set sets the OptionalNullable to the given value pointer. +// Pass nil to set the field to null. +// Pass a pointer to a value to set the field to that value. +// +// Examples: +// +// nullable.Set(ptrFrom("hello")) // set to "hello" +// nullable.Set(nil) // set to null +func (n *OptionalNullable[T]) Set(value *T) { + *n = map[bool]*T{ + true: value, + } +} + +// Unset removes the value, making the field unset/omitted. +// After calling Unset(), IsSet() will return false and the field +// will be omitted from JSON output when using omitempty. +func (n *OptionalNullable[T]) Unset() { + *n = map[bool]*T{} +} + +// MarshalJSON implements json.Marshaler. +// +// Behavior: +// - Unset fields: omitted from JSON when struct field has omitempty tag +// - Null fields: serialized as "null" +// - Value fields: serialized as the actual value +// +// The omitempty behavior works because an empty map is considered +// a zero value by Go's JSON package. +func (n OptionalNullable[T]) MarshalJSON() ([]byte, error) { + if n.IsNull() { + return []byte("null"), nil + } + + return json.Marshal(n[true]) +} + +// UnmarshalJSON implements json.Unmarshaler. +// +// Behavior: +// - "null" in JSON: sets the field to null (IsSet=true, IsNull=true) +// - Any other value: sets the field to that value (IsSet=true, IsNull=false) +// - Missing from JSON: field remains unset (IsSet=false, IsNull=false) +func (n *OptionalNullable[T]) UnmarshalJSON(data []byte) error { + if bytes.Equal(data, []byte("null")) { + n.Set(nil) + return nil + } + var v T + if err := json.Unmarshal(data, &v); err != nil { + return err + } + n.Set(&v) + return nil +} + +// NullableInterface defines the interface that all OptionalNullable[T] types implement. +// This interface provides untyped access to optional nullable values for reflection-based code. +type OptionalNullableInterface interface { + GetUntyped() (interface{}, bool) +} + +// AsOptionalNullable attempts to convert a reflect.Value to a OptionalNullableInterface. +// This is a helper function for reflection-based code that needs to check +// if a value implements the optional nullable interface pattern. +// +// Returns: +// - (nullable, true): if the value implements OptionalNullableInterface +// - (nil, false): if the value does not implement OptionalNullableInterface +// +// Example usage: +// +// if nullable, ok := AsOptionalNullable(reflectValue); ok { +// if value, isSet := nullable.GetUntyped(); isSet { +// // Handle the nullable value +// } +// } +func AsOptionalNullable(v reflect.Value) (OptionalNullableInterface, bool) { + // Check if the value can be converted to an interface first + if !v.CanInterface() { + return nil, false + } + + // Check if the underlying value is a nil map (unset nullable) + if v.Kind() == reflect.Map && v.IsNil() { + return nil, false + } + + if nullable, ok := v.Interface().(OptionalNullableInterface); ok { + return nullable, true + } + return nil, false +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/types/decimal.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/types/decimal.go deleted file mode 100644 index d8429bc6..00000000 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/types/decimal.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package types - -import ( - "fmt" - - "github.com/ericlagergren/decimal" -) - -// MustNewDecimalFromString returns an instance of Decimal from a string -// Avoid using this function in production code. -func MustNewDecimalFromString(s string) *decimal.Big { - d, ok := new(decimal.Big).SetString(s) - if !ok { - panic(fmt.Errorf("failed to parse string as decimal.Big")) - } - - return d -} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/form.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/form.go index 8beb3ab6..c05788e9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/form.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/form.go @@ -10,18 +10,19 @@ import ( "strings" "time" - "github.com/ericlagergren/decimal" - + "github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable" "github.com/conductorone/conductorone-sdk-go/pkg/types" ) -func populateForm(paramName string, explode bool, objType reflect.Type, objValue reflect.Value, delimiter string, defaultValue *string, getFieldName func(reflect.StructField) string) url.Values { +func populateForm(paramName string, explode bool, objType reflect.Type, objValue reflect.Value, delimiter string, defaultValue *string, allowEmptyValue map[string]struct{}, getFieldName func(reflect.StructField) string) url.Values { formValues := url.Values{} if isNil(objType, objValue) { if defaultValue != nil { formValues.Add(paramName, *defaultValue) + } else if _, ok := allowEmptyValue[paramName]; ok { + formValues.Add(paramName, "") } return formValues @@ -41,8 +42,6 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue formValues.Add(paramName, valToString(objValue.Interface())) case big.Int: formValues.Add(paramName, valToString(objValue.Interface())) - case decimal.Big: - formValues.Add(paramName, valToString(objValue.Interface())) default: var items []string @@ -64,7 +63,13 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue } if explode { - formValues.Add(fieldName, valToString(valType.Interface())) + if valType.Kind() == reflect.Slice || valType.Kind() == reflect.Array { + for i := 0; i < valType.Len(); i++ { + formValues.Add(fieldName, valToString(valType.Index(i).Interface())) + } + } else { + formValues.Add(fieldName, valToString(valType.Interface())) + } } else { items = append(items, fmt.Sprintf("%s%s%s", fieldName, delimiter, valToString(valType.Interface()))) } @@ -75,6 +80,16 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue } } case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + formValues.Add(paramName, valToString(value)) + } + // If not set or explicitly null, skip adding to form + return formValues + } + items := []string{} iter := objValue.MapRange() @@ -90,12 +105,31 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue formValues.Add(paramName, strings.Join(items, delimiter)) } case reflect.Slice, reflect.Array: - values := parseDelimitedArray(explode, objValue, delimiter) - for _, v := range values { - formValues.Add(paramName, v) + if objValue.Len() == 0 { + if _, ok := allowEmptyValue[paramName]; ok { + formValues.Add(paramName, "") + } + } else { + values := parseDelimitedArray(explode, objValue, delimiter) + for _, v := range values { + formValues.Add(paramName, v) + } } default: - formValues.Add(paramName, valToString(objValue.Interface())) + // For string types, use the value directly without conversion + if objType.Kind() == reflect.String { + stringValue := objValue.String() + formValues.Add(paramName, stringValue) + } else { + stringValue := valToString(objValue.Interface()) + if stringValue == "" { + if _, ok := allowEmptyValue[paramName]; ok { + formValues.Add(paramName, "") + } + } else if stringValue != "" { + formValues.Add(paramName, stringValue) + } + } } return formValues diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/headers.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/headers.go index a07608bd..11c0107c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/headers.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/headers.go @@ -8,6 +8,8 @@ import ( "net/http" "reflect" "strings" + + "github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable" ) func PopulateHeaders(_ context.Context, req *http.Request, headers interface{}, globals interface{}) { @@ -98,6 +100,16 @@ func serializeHeader(objType reflect.Type, objValue reflect.Value, explode bool) return strings.Join(items, ",") case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + return valToString(value) + } + // If not set or explicitly null, return empty string + return "" + } + items := []string{} iter := objValue.MapRange() diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/json.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/json.go index f627737c..addfe8d7 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/json.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/json.go @@ -5,6 +5,7 @@ package utils import ( "bytes" "encoding/json" + "errors" "fmt" "math/big" "reflect" @@ -14,20 +15,31 @@ import ( "unsafe" "github.com/conductorone/conductorone-sdk-go/pkg/types" - - "github.com/ericlagergren/decimal" ) func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) { - typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v)) + // Handle nil interface early + if v == nil { + return []byte("null"), nil + } + + // Check for nil pointer before dereferencing to avoid creating invalid reflect.Value + origVal := reflect.ValueOf(v) + if origVal.Kind() == reflect.Ptr && origVal.IsNil() { + return []byte("null"), nil + } + + typ, val := dereferencePointers(reflect.TypeOf(v), origVal) switch { case isModelType(typ): - if topLevel { + // When topLevel=true, only use json.Marshal if the type has a custom MarshalJSON + // to ensure nested structs with custom tags (like integer:"string") are handled correctly + if topLevel && implementsJSONMarshaler(v) { return json.Marshal(v) } - if isNil(typ, val) { + if isNil(typ, val) || !val.IsValid() { return []byte("null"), nil } @@ -40,21 +52,30 @@ func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, e fieldName := field.Name omitEmpty := false + omitZero := false jsonTag := field.Tag.Get("json") if jsonTag != "" { for _, tag := range strings.Split(jsonTag, ",") { if tag == "omitempty" { omitEmpty = true + } else if tag == "omitzero" { + omitZero = true } else { fieldName = tag } } } - if isNil(field.Type, fieldVal) && field.Tag.Get("const") == "" { - if omitEmpty { + if (omitEmpty || omitZero) && field.Tag.Get("const") == "" { + // Both omitempty and omitzero skip zero values (including nil) + if isNil(field.Type, fieldVal) { + continue + } + + if omitZero && fieldVal.IsZero() { continue } + } if !field.IsExported() && field.Tag.Get("const") == "" { @@ -114,29 +135,40 @@ func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, e } } -func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool, disallowUnknownFields bool) error { +func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool, requiredFields []string) error { if reflect.TypeOf(v).Kind() != reflect.Ptr { - return fmt.Errorf("v must be a pointer") + return errors.New("v must be a pointer") } typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v)) switch { case isModelType(typ): - if topLevel || bytes.Equal(b, []byte("null")) { - d := json.NewDecoder(bytes.NewReader(b)) - if disallowUnknownFields { - d.DisallowUnknownFields() - } - return d.Decode(v) + if bytes.Equal(b, []byte("null")) { + return json.Unmarshal(b, v) + } + // When topLevel=true, only use json.Unmarshal if the type has a custom UnmarshalJSON + // to ensure nested structs with custom tags (like integer:"string") are handled correctly + if topLevel && implementsJSONUnmarshaler(reflect.TypeOf(v)) { + return json.Unmarshal(b, v) } - var unmarhsaled map[string]json.RawMessage + var unmarshaled map[string]json.RawMessage - if err := json.Unmarshal(b, &unmarhsaled); err != nil { + if err := json.Unmarshal(b, &unmarshaled); err != nil { return err } + missingFields := []string{} + for _, requiredField := range requiredFields { + if _, ok := unmarshaled[requiredField]; !ok { + missingFields = append(missingFields, requiredField) + } + } + if len(missingFields) > 0 { + return fmt.Errorf("missing required fields: %s", strings.Join(missingFields, ", ")) + } + var additionalPropertiesField *reflect.StructField var additionalPropertiesValue *reflect.Value @@ -149,7 +181,7 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool jsonTag := field.Tag.Get("json") if jsonTag != "" { for _, tag := range strings.Split(jsonTag, ",") { - if tag != "omitempty" { + if tag != "omitempty" && tag != "omitzero" { fieldName = tag } } @@ -163,7 +195,7 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool // If we receive a value for a const field ignore it but mark it as unmarshaled if field.Tag.Get("const") != "" { - if r, ok := unmarhsaled[fieldName]; ok { + if r, ok := unmarshaled[fieldName]; ok { val := string(r) if strings.HasPrefix(val, `"`) && strings.HasSuffix(val, `"`) { @@ -178,13 +210,13 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool return fmt.Errorf("const field `%s` does not match expected value `%s` got `%s`", fieldName, constValue, val) } - delete(unmarhsaled, fieldName) + delete(unmarshaled, fieldName) } } else if !field.IsExported() { continue } - value, ok := unmarhsaled[fieldName] + value, ok := unmarshaled[fieldName] if !ok { defaultTag, defaultOk := field.Tag.Lookup("default") if defaultOk { @@ -192,26 +224,22 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool ok = true } } else { - delete(unmarhsaled, fieldName) + delete(unmarshaled, fieldName) } if ok { - if err := unmarshalValue(value, fieldVal, field.Tag, disallowUnknownFields); err != nil { + if err := unmarshalValue(value, fieldVal, field.Tag); err != nil { return err } } } - keys := make([]string, 0, len(unmarhsaled)) - for k := range unmarhsaled { + keys := make([]string, 0, len(unmarshaled)) + for k := range unmarshaled { keys = append(keys, k) } if len(keys) > 0 { - if disallowUnknownFields && (additionalPropertiesField == nil || additionalPropertiesValue == nil) { - return fmt.Errorf("unknown fields: %v", keys) - } - if additionalPropertiesField != nil && additionalPropertiesValue != nil { typeOfMap := additionalPropertiesField.Type if additionalPropertiesValue.Type().Kind() == reflect.Interface { @@ -222,10 +250,10 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool mapValue := reflect.MakeMap(typeOfMap) - for key, value := range unmarhsaled { + for key, value := range unmarshaled { val := reflect.New(typeOfMap.Elem()) - if err := unmarshalValue(value, val, additionalPropertiesField.Tag, disallowUnknownFields); err != nil { + if err := unmarshalValue(value, val, additionalPropertiesField.Tag); err != nil { return err } @@ -244,7 +272,7 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool } } default: - return unmarshalValue(b, reflect.ValueOf(v), tag, disallowUnknownFields) + return unmarshalValue(b, reflect.ValueOf(v), tag) } return nil @@ -284,6 +312,11 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error) return []byte("null"), nil } + // Check if the map implements json.Marshaler (like optionalnullable.OptionalNullable[T]) + if marshaler, ok := val.Interface().(json.Marshaler); ok { + return marshaler.MarshalJSON() + } + out := map[string]json.RawMessage{} for _, key := range val.MapKeys() { @@ -337,16 +370,11 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error) b := val.Interface().(big.Int) return []byte(fmt.Sprintf(`"%s"`, (&b).String())), nil } - case reflect.TypeOf(decimal.Big{}): - format := tag.Get("decimal") - if format == "number" { - b := val.Interface().(decimal.Big) - f, ok := (&b).Float64() - if ok { - return []byte(b.String()), nil - } - - return []byte(fmt.Sprintf(`%f`, f)), nil + default: + // For model types without custom MarshalJSON, use field processing + // to handle custom tags like integer:"string" + if isModelType(typ) && !implementsJSONMarshaler(v) { + return MarshalJSON(v, "", false) } } } @@ -354,6 +382,24 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error) return json.Marshal(v) } +func implementsJSONMarshaler(v interface{}) bool { + marshalerType := reflect.TypeOf((*json.Marshaler)(nil)).Elem() + vType := reflect.TypeOf(v) + if vType.Implements(marshalerType) { + return true + } + if vType.Kind() == reflect.Ptr { + // For double pointers (e.g., **TypeA), check if the inner pointer type + // implements the interface (e.g., *TypeA) + if vType.Elem().Implements(marshalerType) { + return true + } + // Also check if pointer to element implements it + return reflect.PtrTo(vType.Elem()).Implements(marshalerType) + } + return reflect.PtrTo(vType).Implements(marshalerType) +} + func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.StructTag) json.RawMessage { if tagValue == "null" { return []byte("null") @@ -378,11 +424,6 @@ func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.Struc if format == "string" { return []byte(fmt.Sprintf(`"%s"`, tagValue)) } - case reflect.TypeOf(decimal.Big{}): - decimalTag := tag.Get("decimal") - if decimalTag != "number" { - return []byte(fmt.Sprintf(`"%s"`, tagValue)) - } case reflect.TypeOf(types.Date{}): return []byte(fmt.Sprintf(`"%s"`, tagValue)) default: @@ -394,7 +435,7 @@ func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.Struc return []byte(tagValue) } -func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTag, disallowUnknownFields bool) error { +func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTag) error { if bytes.Equal(value, []byte("null")) { if v.CanAddr() { return json.Unmarshal(value, v.Addr().Interface()) @@ -466,18 +507,18 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa } } - var unmarhsaled map[string]json.RawMessage + var unmarshaled map[string]json.RawMessage - if err := json.Unmarshal(value, &unmarhsaled); err != nil { + if err := json.Unmarshal(value, &unmarshaled); err != nil { return err } m := reflect.MakeMap(typ) - for k, value := range unmarhsaled { + for k, value := range unmarshaled { itemVal := reflect.New(typ.Elem()) - if err := unmarshalValue(value, itemVal, tag, disallowUnknownFields); err != nil { + if err := unmarshalValue(value, itemVal, tag); err != nil { return err } @@ -498,7 +539,7 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa for index, value := range unmarshaled { itemVal := reflect.New(typ.Elem()) - if err := unmarshalValue(value, itemVal, tag, disallowUnknownFields); err != nil { + if err := unmarshalValue(value, itemVal, tag); err != nil { return err } @@ -563,27 +604,6 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa v.Set(reflect.ValueOf(b)) return nil - case reflect.TypeOf(decimal.Big{}): - var d *decimal.Big - format := tag.Get("decimal") - if format == "number" { - var ok bool - d, ok = new(decimal.Big).SetString(string(value)) - if !ok { - return fmt.Errorf("failed to parse number as decimal.Big") - } - } else { - if err := json.Unmarshal(value, &d); err != nil { - return err - } - } - - if v.Kind() == reflect.Ptr && v.Elem().Kind() == reflect.Ptr { - v = v.Elem() - } - - v.Set(reflect.ValueOf(d)) - return nil case reflect.TypeOf(types.Date{}): var s string @@ -605,6 +625,31 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa v.Set(reflect.ValueOf(d)) return nil + default: + // For model types without custom UnmarshalJSON, use field processing + // to handle custom tags like integer:"string" + if isModelType(typ) && !implementsJSONUnmarshaler(v.Type()) { + // If v is already a pointer, we can unmarshal directly into it + if v.Kind() == reflect.Ptr { + if v.IsNil() { + v.Set(reflect.New(v.Type().Elem())) + } + // Handle double pointers (e.g., **Struct for nullable array elements) + inner := v.Elem() + if inner.Kind() == reflect.Ptr { + if inner.IsNil() { + inner.Set(reflect.New(typ)) + } + return UnmarshalJSON(value, inner.Interface(), "", false, nil) + } + return UnmarshalJSON(value, v.Interface(), "", false, nil) + } + // For non-pointer struct values that are addressable + if v.CanAddr() { + return UnmarshalJSON(value, v.Addr().Interface(), "", false, nil) + } + // For non-addressable struct values, fall through to json.Unmarshal + } } } @@ -616,11 +661,24 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa val = v.Interface() } - d := json.NewDecoder(bytes.NewReader(value)) - if disallowUnknownFields { - d.DisallowUnknownFields() + return json.Unmarshal(value, val) +} + +func implementsJSONUnmarshaler(typ reflect.Type) bool { + unmarshalerType := reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() + if typ.Implements(unmarshalerType) { + return true + } + if typ.Kind() == reflect.Ptr { + // For double pointers (e.g., **TypeA), check if the inner pointer type + // implements the interface (e.g., *TypeA) + if typ.Elem().Implements(unmarshalerType) { + return true + } + // Also check if pointer to element implements it + return reflect.PtrTo(typ.Elem()).Implements(unmarshalerType) } - return d.Decode(val) + return reflect.PtrTo(typ).Implements(unmarshalerType) } func dereferencePointers(typ reflect.Type, val reflect.Value) (reflect.Type, reflect.Value) { @@ -652,8 +710,6 @@ func isComplexValueType(typ reflect.Type) bool { fallthrough case reflect.TypeOf(big.Int{}): fallthrough - case reflect.TypeOf(decimal.Big{}): - fallthrough case reflect.TypeOf(types.Date{}): return true } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/pathparams.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/pathparams.go index 05f37e30..2a0aa272 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/pathparams.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/pathparams.go @@ -11,8 +11,7 @@ import ( "strings" "time" - "github.com/ericlagergren/decimal" - + "github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable" "github.com/conductorone/conductorone-sdk-go/pkg/types" ) @@ -114,6 +113,16 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle } pathParams[parentName] = strings.Join(ppVals, ",") case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + pathParams[parentName] = valToString(value) + } + // If not set or explicitly null, return nil (skip parameter) + return pathParams + } + if objValue.Len() == 0 { return nil } @@ -135,8 +144,6 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle pathParams[parentName] = valToString(objValue.Interface()) case big.Int: pathParams[parentName] = valToString(objValue.Interface()) - case decimal.Big: - pathParams[parentName] = valToString(objValue.Interface()) default: var ppVals []string for i := 0; i < objType.NumField(); i++ { diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/queryparams.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/queryparams.go index dc437fbb..2ccda754 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/queryparams.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/queryparams.go @@ -12,12 +12,11 @@ import ( "reflect" "time" - "github.com/ericlagergren/decimal" - + "github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable" "github.com/conductorone/conductorone-sdk-go/pkg/types" ) -func PopulateQueryParams(_ context.Context, req *http.Request, queryParams interface{}, globals interface{}) error { +func PopulateQueryParams(_ context.Context, req *http.Request, queryParams interface{}, globals interface{}, allowEmptyValue map[string]struct{}) error { // Query parameters may already be present from overriding URL if req.URL.RawQuery != "" { return nil @@ -25,13 +24,13 @@ func PopulateQueryParams(_ context.Context, req *http.Request, queryParams inter values := url.Values{} - globalsAlreadyPopulated, err := populateQueryParams(queryParams, globals, values, []string{}) + globalsAlreadyPopulated, err := populateQueryParams(queryParams, globals, values, []string{}, allowEmptyValue) if err != nil { return err } if globals != nil { - _, err = populateQueryParams(globals, nil, values, globalsAlreadyPopulated) + _, err = populateQueryParams(globals, nil, values, globalsAlreadyPopulated, allowEmptyValue) if err != nil { return err } @@ -42,11 +41,14 @@ func PopulateQueryParams(_ context.Context, req *http.Request, queryParams inter return nil } -func populateQueryParams(queryParams interface{}, globals interface{}, values url.Values, skipFields []string) ([]string, error) { - queryParamsStructType, queryParamsValType := dereferencePointers(reflect.TypeOf(queryParams), reflect.ValueOf(queryParams)) +func populateQueryParams(queryParams interface{}, globals interface{}, values url.Values, skipFields []string, allowEmptyValue map[string]struct{}) ([]string, error) { + queryParamsVal := reflect.ValueOf(queryParams) + if queryParamsVal.Kind() == reflect.Pointer && queryParamsVal.IsNil() { + return nil, nil + } + queryParamsStructType, queryParamsValType := dereferencePointers(reflect.TypeOf(queryParams), queryParamsVal) globalsAlreadyPopulated := []string{} - for i := 0; i < queryParamsStructType.NumField(); i++ { fieldType := queryParamsStructType.Field(i) valType := queryParamsValType.Field(i) @@ -99,14 +101,14 @@ func populateQueryParams(queryParams interface{}, globals interface{}, values ur } } case "form": - vals := populateFormParams(qpTag, fieldType.Type, valType, ",", defaultValue) + vals := populateFormParams(qpTag, fieldType.Type, valType, ",", defaultValue, allowEmptyValue) for k, v := range vals { for _, vv := range v { values.Add(k, vv) } } case "pipeDelimited": - vals := populateFormParams(qpTag, fieldType.Type, valType, "|", defaultValue) + vals := populateFormParams(qpTag, fieldType.Type, valType, "|", defaultValue, allowEmptyValue) for k, v := range vals { for _, vv := range v { values.Add(k, vv) @@ -157,6 +159,16 @@ func populateDeepObjectParams(tag *paramTag, objType reflect.Type, objValue refl switch objValue.Kind() { case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + values.Add(tag.ParamName, valToString(value)) + } + // If not set or explicitly null, skip adding to values + return values + } + populateDeepObjectParamsMap(values, tag.ParamName, objValue) case reflect.Struct: populateDeepObjectParamsStruct(values, tag.ParamName, objValue) @@ -235,7 +247,7 @@ func populateDeepObjectParamsStruct(qsValues url.Values, priorScope string, stru populateDeepObjectParamsMap(qsValues, scope, fieldValue) case reflect.Struct: switch fieldValue.Type() { - case reflect.TypeOf(big.Int{}), reflect.TypeOf(decimal.Big{}), reflect.TypeOf(time.Time{}), reflect.TypeOf(types.Date{}): + case reflect.TypeOf(big.Int{}), reflect.TypeOf(time.Time{}), reflect.TypeOf(types.Date{}): qsValues.Add(scope, valToString(fieldValue.Interface())) continue @@ -248,13 +260,20 @@ func populateDeepObjectParamsStruct(qsValues url.Values, priorScope string, stru } } -func populateFormParams(tag *paramTag, objType reflect.Type, objValue reflect.Value, delimiter string, defaultValue *string) url.Values { - return populateForm(tag.ParamName, tag.Explode, objType, objValue, delimiter, defaultValue, func(fieldType reflect.StructField) string { +func populateFormParams(tag *paramTag, objType reflect.Type, objValue reflect.Value, delimiter string, defaultValue *string, allowEmptyValue map[string]struct{}) url.Values { + return populateForm(tag.ParamName, tag.Explode, objType, objValue, delimiter, defaultValue, allowEmptyValue, func(fieldType reflect.StructField) string { qpTag := parseQueryParamTag(fieldType) if qpTag == nil { return "" } + // When inline is true, use the parent's param name instead of the field's own name. + // This allows union/oneOf wrapper types to serialize their values directly under + // the parent's query parameter name. + if qpTag.Inline { + return tag.ParamName + } + return qpTag.ParamName }) } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/requestbody.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/requestbody.go index 8622ec58..b7ed0b98 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/requestbody.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/requestbody.go @@ -14,6 +14,8 @@ import ( "path/filepath" "reflect" "regexp" + + "github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable" ) const ( @@ -23,9 +25,9 @@ const ( ) var ( - jsonEncodingRegex = regexp.MustCompile(`(application|text)\/.*?\+*json.*`) - multipartEncodingRegex = regexp.MustCompile(`multipart\/.*`) - urlEncodedEncodingRegex = regexp.MustCompile(`application\/x-www-form-urlencoded.*`) + jsonEncodingRegex = regexp.MustCompile(`^(application|text)\/([^+]+\+)*json.*`) + multipartEncodingRegex = regexp.MustCompile(`^multipart\/.*`) + urlEncodedEncodingRegex = regexp.MustCompile(`^application\/x-www-form-urlencoded.*`) ) func SerializeRequestBody(_ context.Context, request interface{}, nullable, optional bool, requestFieldName, serializationMethod, tag string) (io.Reader, string, error) { @@ -205,7 +207,7 @@ func encodeMultipartFormData(w io.Writer, data interface{}) (string, error) { case reflect.Slice, reflect.Array: values := parseDelimitedArray(true, valType, ",") for _, v := range values { - if err := writer.WriteField(tag.Name+"[]", v); err != nil { + if err := writer.WriteField(tag.Name, v); err != nil { writer.Close() return "", err } @@ -323,7 +325,7 @@ func encodeFormData(fieldName string, w io.Writer, data interface{}) error { switch tag.Style { // TODO: support other styles case "form": - values := populateForm(tag.Name, tag.Explode, fieldType, valType, ",", nil, func(sf reflect.StructField) string { + values := populateForm(tag.Name, tag.Explode, fieldType, valType, ",", nil, nil, func(sf reflect.StructField) string { tag := parseFormTag(field) if tag == nil { return "" @@ -340,6 +342,17 @@ func encodeFormData(fieldName string, w io.Writer, data interface{}) error { } } case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(requestValType); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + dataValues.Set(fieldName, valToString(value)) + } + // If not set or explicitly null, skip adding to form + break + } + + // Handle regular map for _, k := range requestValType.MapKeys() { v := requestValType.MapIndex(k) dataValues.Set(fmt.Sprintf("%v", k.Interface()), valToString(v.Interface())) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/union.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/union.go new file mode 100644 index 00000000..7b0019a9 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/union.go @@ -0,0 +1,289 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package utils + +import ( + "encoding/json" + "math/big" + "reflect" + "strings" + "time" + + "github.com/conductorone/conductorone-sdk-go/pkg/types" +) + +// UnionCandidate represents a candidate type during union deserialization +type UnionCandidate struct { + Matched int // Count of matched fields (includes inexact) + Inexact int // Count of fields with unknown/unrecognized enum values + Unmatched int // Count of struct fields not found in raw JSON + AdditionalProperties int // Count of fields captured by additionalProperties + Type any // The union type enum value + Value any // The unmarshaled value +} + +// PickBestUnionCandidate selects the best union type candidate according to `betterCandidate` +func PickBestUnionCandidate(candidates []UnionCandidate, rawJSON []byte) *UnionCandidate { + if len(candidates) == 0 { + return nil + } + + if len(candidates) == 1 { + return &candidates[0] + } + + var raw any + _ = json.Unmarshal(rawJSON, &raw) + + var best *UnionCandidate + for i := range candidates { + countFields(&candidates[i], raw) + best = betterCandidate(best, &candidates[i]) + } + return best +} + +// betterCandidate returns the better of two candidates based on: +// 1. Matched count (higher is better) +// 2. Inexact count (lower is better) +// 3. Unmatched count (lower is better - fewer zero defaulted values) +// 4. AdditionalProperties count (higher is better - captures more extra fields) +// Returns a if tied (preserving spec order). +func betterCandidate(a, b *UnionCandidate) *UnionCandidate { + if a == nil { + return b + } + if b == nil { + return a + } + if a.Matched != b.Matched { + if a.Matched > b.Matched { + return a + } + return b + } + if a.Inexact != b.Inexact { + if a.Inexact > b.Inexact { + return b + } + return a + } + if a.Unmatched != b.Unmatched { + if a.Unmatched > b.Unmatched { + return b + } + return a + } + if a.AdditionalProperties != b.AdditionalProperties { + if a.AdditionalProperties > b.AdditionalProperties { + return a + } + return b + } + return a +} + +// countFields populates UnionCandidate.Matched, UnionCandidate.Inexact, and UnionCandidate.Unmatched fields +func countFields(candidate *UnionCandidate, raw any) { + typ := reflect.TypeOf(candidate.Value) + val := reflect.ValueOf(candidate.Value) + countFieldsRecursive(candidate, typ, val, raw) +} + +func countFieldsRecursive(candidate *UnionCandidate, typ reflect.Type, val reflect.Value, raw any) { + kind := typ.Kind() + + // Handle interface{}/any types - can hold any JSON value + if kind == reflect.Interface { + candidate.Matched++ + return + } + + if typ.Kind() == reflect.Ptr { + if raw == nil { + // Handle null JSON value match + candidate.Matched++ + return + } + typ, val = dereferencePointers(typ, val) + kind = typ.Kind() + } + + // Handle primitives + if kind == reflect.String || + kind == reflect.Bool || + kind == reflect.Int || kind == reflect.Int8 || kind == reflect.Int16 || kind == reflect.Int32 || kind == reflect.Int64 || + kind == reflect.Uint || kind == reflect.Uint8 || kind == reflect.Uint16 || kind == reflect.Uint32 || kind == reflect.Uint64 || + kind == reflect.Float32 || kind == reflect.Float64 || + typ == reflect.TypeOf(time.Time{}) || + typ == reflect.TypeOf(big.Int{}) || + typ == reflect.TypeOf(types.Date{}) || + typ == reflect.TypeOf([]byte{}) { + candidate.Matched++ + if !isExact(val) || raw == nil { + candidate.Inexact++ + } + return + } + + // Handle unions + if isUnion, activeVariant, variantVal := findActiveUnionVariant(typ, val); isUnion { + if activeVariant != nil && !variantVal.IsNil() { + countFieldsRecursive(candidate, activeVariant.Type.Elem(), variantVal.Elem(), raw) + } + return + } + + // Handle regular structs + if kind == reflect.Struct { + rawObj, ok := raw.(map[string]any) + if !ok { + return + } + + for i := 0; i < typ.NumField(); i++ { + field := typ.Field(i) + fieldVal := val.Field(i) + + if field.Tag.Get("additionalProperties") == "true" { + if field.Type.Kind() == reflect.Map && !fieldVal.IsNil() { + candidate.AdditionalProperties += fieldVal.Len() + } + continue + } + + jsonName, ok := jsonFieldName(field) + if !ok { + continue + } + + rawField, exists := rawObj[jsonName] + if !exists { + candidate.Unmatched++ + continue + } + + countFieldsRecursive(candidate, field.Type, fieldVal, rawField) + } + return + } + + // Handle slices and arrays + if kind == reflect.Slice || kind == reflect.Array { + if val.IsNil() || val.Len() == 0 { + return + } + + rawArr, ok := raw.([]any) + if !ok { + return + } + + // Count each array/slice element + for i := 0; i < val.Len() && i < len(rawArr); i++ { + itemVal := val.Index(i) + countFieldsRecursive(candidate, itemVal.Type(), itemVal, rawArr[i]) + } + return + } + + // Handle maps + if kind == reflect.Map { + if val.IsNil() || val.Len() == 0 { + return + } + + rawObj, ok := raw.(map[string]any) + if !ok { + return + } + + for _, key := range val.MapKeys() { + keyStr := key.String() + rawVal, exists := rawObj[keyStr] + if exists { + mapVal := val.MapIndex(key) + countFieldsRecursive(candidate, mapVal.Type(), mapVal, rawVal) + } + } + return + } + // Anything else + candidate.Matched++ + return +} + +// jsonFieldName returns the JSON field name for a struct field. +// Returns ("", false) if the field should be skipped (json:"-"). +func jsonFieldName(field reflect.StructField) (string, bool) { + jsonTag := field.Tag.Get("json") + if jsonTag == "-" { + return "", false + } + if jsonTag != "" { + parts := strings.Split(jsonTag, ",") + if parts[0] != "" { + return parts[0], true + } + } + return field.Name, true +} + +// findActiveUnionVariant detects if a struct is a union type and returns the active variant. +// A union type is detected by having fields with the `union:"member"` tag. +// Returns (false, nil, invalid) if not a union type. +// Returns (true, nil, invalid) if union type but no active variant found (all nil). +// Returns (true, field, value) if union type with an active variant. +func findActiveUnionVariant(typ reflect.Type, val reflect.Value) (bool, *reflect.StructField, reflect.Value) { + if typ.Kind() != reflect.Struct { + return false, nil, reflect.Value{} + } + + var activeVariant *reflect.StructField + var activeValue reflect.Value + isUnion := false + + for i := 0; i < typ.NumField(); i++ { + field := typ.Field(i) + + // Look for fields tagged as union members + if field.Tag.Get("union") != "member" { + continue + } + + isUnion = true + + // All union variants are pointers - only set active if non-nil + fieldVal := val.Field(i) + if !fieldVal.IsNil() { + activeVariant = &field + activeValue = fieldVal + } + } + + return isUnion, activeVariant, activeValue +} + +func isExact(val reflect.Value) bool { + if !val.IsValid() { + return true + } + + // If not addressable, make an addressable copy + if !val.CanAddr() && val.CanInterface() { + ptr := reflect.New(val.Type()) + ptr.Elem().Set(val) + val = ptr.Elem() + } + + if val.CanInterface() && val.CanAddr() { + ptrVal := val.Addr() + if method := ptrVal.MethodByName("IsExact"); method.IsValid() { + results := method.Call(nil) + if len(results) == 1 && results[0].Kind() == reflect.Bool { + return results[0].Bool() + } + } + } + return true +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/utils.go b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/utils.go index 6f1f538b..0415b536 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/utils.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/pkg/utils/utils.go @@ -14,8 +14,6 @@ import ( "strconv" "strings" "time" - - "github.com/ericlagergren/decimal" ) const ( @@ -40,8 +38,8 @@ func UnmarshalJsonFromResponseBody(body io.Reader, out interface{}, tag string) if err != nil { return fmt.Errorf("error reading response body: %w", err) } - if err := UnmarshalJSON(data, out, reflect.StructTag(tag), true, false); err != nil { - return fmt.Errorf("error unmarshalling json response body: %w", err) + if err := UnmarshalJSON(data, out, reflect.StructTag(tag), true, nil); err != nil { + return fmt.Errorf("error unmarshaling json response body: %w", err) } return nil @@ -183,8 +181,6 @@ func valToString(val interface{}) string { return v.Format(time.RFC3339Nano) case big.Int: return v.String() - case decimal.Big: - return v.String() default: return fmt.Sprintf("%v", v) } @@ -245,6 +241,21 @@ func isNil(typ reflect.Type, val reflect.Value) bool { return false } +func isEmptyContainer(typ reflect.Type, val reflect.Value) bool { + if isNil(typ, val) { + return true + } + + switch typ.Kind() { + case reflect.Slice, reflect.Array: + return val.Len() == 0 + case reflect.Map: + return val.Len() == 0 + default: + return false + } +} + func contains(arr []string, str string) bool { for _, a := range arr { if a == str { diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/policies.go b/vendor/github.com/conductorone/conductorone-sdk-go/policies.go index 6aa1885e..ef115ec2 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/policies.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/policies.go @@ -63,7 +63,7 @@ func (s *Policies) Create(ctx context.Context, request *shared.CreatePolicyReque BaseURL: baseURL, Context: ctx, OperationID: "c1.api.policy.v1.Policies.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *Policies) Delete(ctx context.Context, request operations.C1APIPolicyV1P BaseURL: baseURL, Context: ctx, OperationID: "c1.api.policy.v1.Policies.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeletePolicyRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *Policies) Get(ctx context.Context, request operations.C1APIPolicyV1Poli BaseURL: baseURL, Context: ctx, OperationID: "c1.api.policy.v1.Policies.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -692,7 +692,7 @@ func (s *Policies) List(ctx context.Context, request operations.C1APIPolicyV1Pol BaseURL: baseURL, Context: ctx, OperationID: "c1.api.policy.v1.Policies.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -714,7 +714,7 @@ func (s *Policies) List(ctx context.Context, request operations.C1APIPolicyV1Pol req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -901,7 +901,7 @@ func (s *Policies) Update(ctx context.Context, request operations.C1APIPolicyV1P BaseURL: baseURL, Context: ctx, OperationID: "c1.api.policy.v1.Policies.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdatePolicyRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/policysearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/policysearch.go index 726b6ab9..6173abd9 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/policysearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/policysearch.go @@ -13,8 +13,11 @@ import ( "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" "github.com/conductorone/conductorone-sdk-go/pkg/retry" "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "github.com/spyzhov/ajson" "net/http" "net/url" + "strconv" + "strings" ) type PolicySearch struct { @@ -63,7 +66,7 @@ func (s *PolicySearch) Search(ctx context.Context, request *shared.SearchPolicie BaseURL: baseURL, Context: ctx, OperationID: "c1.api.policy.v1.PolicySearch.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -196,6 +199,58 @@ func (s *PolicySearch) Search(ctx context.Context, request *shared.SearchPolicie ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, } + res.Next = func() (*operations.C1APIPolicyV1PolicySearchSearchResponse, error) { + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + b, err := ajson.Unmarshal(rawBody) + if err != nil { + return nil, err + } + nC, err := ajson.Eval(b, "$.nextPageToken") + if err != nil { + return nil, err + } + var nCVal string + + if nC.IsNumeric() { + numVal, err := nC.GetNumeric() + if err != nil { + return nil, err + } + // GetNumeric returns as float64 so convert to the appropriate type. + nCVal = strconv.FormatFloat(numVal, 'f', 0, 64) + } else { + val, err := nC.Value() + if err != nil { + return nil, err + } + if val == nil { + return nil, nil + } + nCVal = val.(string) + if strings.TrimSpace(nCVal) == "" { + return nil, nil + } + } + + return s.Search( + ctx, + &shared.SearchPoliciesRequest{ + DisplayName: request.DisplayName, + ExcludePolicyIds: request.ExcludePolicyIds, + IncludeDeleted: request.IncludeDeleted, + PageSize: request.PageSize, + PageToken: &nCVal, + PolicyTypes: request.PolicyTypes, + Query: request.Query, + Refs: request.Refs, + }, + opts..., + ) + } switch { case httpRes.StatusCode == 200: diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/policyvalidate.go b/vendor/github.com/conductorone/conductorone-sdk-go/policyvalidate.go index 42229750..8322d684 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/policyvalidate.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/policyvalidate.go @@ -63,7 +63,7 @@ func (s *PolicyValidate) ValidateCEL(ctx context.Context, request *shared.Editor BaseURL: baseURL, Context: ctx, OperationID: "c1.api.policy.v1.PolicyValidate.ValidateCEL", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/requestcatalogmanagement.go b/vendor/github.com/conductorone/conductorone-sdk-go/requestcatalogmanagement.go index 9bcd204b..f0d390d0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/requestcatalogmanagement.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/requestcatalogmanagement.go @@ -63,7 +63,7 @@ func (s *RequestCatalogManagement) AddAccessEntitlements(ctx context.Context, re BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.AddAccessEntitlements", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceAddAccessEntitlementsRequest", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *RequestCatalogManagement) AddAppEntitlements(ctx context.Context, reque BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.AddAppEntitlements", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceAddAppEntitlementsRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *RequestCatalogManagement) Create(ctx context.Context, request *shared.R BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -699,7 +699,7 @@ func (s *RequestCatalogManagement) CreateBundleAutomation(ctx context.Context, r BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.CreateBundleAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "CreateBundleAutomationRequest", "json", `request:"mediaType=application/json"`) @@ -879,6 +879,218 @@ func (s *RequestCatalogManagement) CreateBundleAutomation(ctx context.Context, r } +// CreateRequestableEntry - Create Requestable Entry +// Create a single requestable entry +func (s *RequestCatalogManagement) CreateRequestableEntry(ctx context.Context, request operations.C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryRequest, opts ...operations.Option) (*operations.C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/catalogs/{catalog_id}/requestable_entries/{app_id}/{entitlement_id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.CreateRequestableEntry", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceCreateRequestableEntryRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestcatalogV1RequestCatalogManagementServiceCreateRequestableEntryResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestCatalogManagementServiceCreateRequestableEntryResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestCatalogManagementServiceCreateRequestableEntryResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // Delete // Delete a catalog. func (s *RequestCatalogManagement) Delete(ctx context.Context, request operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequest, opts ...operations.Option) (*operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse, error) { @@ -900,7 +1112,219 @@ func (s *RequestCatalogManagement) Delete(ctx context.Context, request operation } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/catalogs/{id}", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/catalogs/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.Delete", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceDeleteRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestCatalogManagementServiceDeleteResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestCatalogManagementServiceDeleteResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// DeleteBundleAutomation - Delete Bundle Automation +// Invokes the c1.api.requestcatalog.v1.RequestCatalogManagementService.DeleteBundleAutomation method. +func (s *RequestCatalogManagement) DeleteBundleAutomation(ctx context.Context, request operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationRequest, opts ...operations.Option) (*operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/catalogs/{request_catalog_id}/bundle_automation", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -910,11 +1334,11 @@ func (s *RequestCatalogManagement) Delete(ctx context.Context, request operation SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.Delete", - OAuth2Scopes: []string{}, + OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.DeleteBundleAutomation", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceDeleteRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteBundleAutomationRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -1039,7 +1463,7 @@ func (s *RequestCatalogManagement) Delete(ctx context.Context, request operation } } - res := &operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteResponse{ + res := &operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1054,12 +1478,12 @@ func (s *RequestCatalogManagement) Delete(ctx context.Context, request operation return nil, err } - var out shared.RequestCatalogManagementServiceDeleteResponse + var out shared.DeleteBundleAutomationResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.RequestCatalogManagementServiceDeleteResponse = &out + res.DeleteBundleAutomationResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1091,9 +1515,9 @@ func (s *RequestCatalogManagement) Delete(ctx context.Context, request operation } -// DeleteBundleAutomation - Delete Bundle Automation -// Invokes the c1.api.requestcatalog.v1.RequestCatalogManagementService.DeleteBundleAutomation method. -func (s *RequestCatalogManagement) DeleteBundleAutomation(ctx context.Context, request operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationRequest, opts ...operations.Option) (*operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse, error) { +// DeleteRequestableEntry - Delete Requestable Entry +// Delete a single requestable entry +func (s *RequestCatalogManagement) DeleteRequestableEntry(ctx context.Context, request operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryRequest, opts ...operations.Option) (*operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -1112,7 +1536,7 @@ func (s *RequestCatalogManagement) DeleteBundleAutomation(ctx context.Context, r } else { baseURL = *o.ServerURL } - opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/catalogs/{request_catalog_id}/bundle_automation", request, nil) + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/catalogs/{catalog_id}/requestable_entries/{app_id}/{entitlement_id}", request, nil) if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -1122,11 +1546,11 @@ func (s *RequestCatalogManagement) DeleteBundleAutomation(ctx context.Context, r SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.DeleteBundleAutomation", - OAuth2Scopes: []string{}, + OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.DeleteRequestableEntry", + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteBundleAutomationRequest", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceDeleteRequestableEntryRequest", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -1251,7 +1675,7 @@ func (s *RequestCatalogManagement) DeleteBundleAutomation(ctx context.Context, r } } - res := &operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteBundleAutomationResponse{ + res := &operations.C1APIRequestcatalogV1RequestCatalogManagementServiceDeleteRequestableEntryResponse{ StatusCode: httpRes.StatusCode, ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, @@ -1266,12 +1690,12 @@ func (s *RequestCatalogManagement) DeleteBundleAutomation(ctx context.Context, r return nil, err } - var out shared.DeleteBundleAutomationResponse + var out shared.RequestCatalogManagementServiceDeleteRequestableEntryResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.DeleteBundleAutomationResponse = &out + res.RequestCatalogManagementServiceDeleteRequestableEntryResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1335,7 +1759,7 @@ func (s *RequestCatalogManagement) ForceRunBundleAutomation(ctx context.Context, BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.ForceRunBundleAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ForceRunBundleAutomationRequest", "json", `request:"mediaType=application/json"`) @@ -1547,7 +1971,7 @@ func (s *RequestCatalogManagement) Get(ctx context.Context, request operations.C BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1752,7 +2176,7 @@ func (s *RequestCatalogManagement) GetBundleAutomation(ctx context.Context, requ BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.GetBundleAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1925,6 +2349,211 @@ func (s *RequestCatalogManagement) GetBundleAutomation(ctx context.Context, requ } +// GetRequestableEntry - Get Requestable Entry +// Get a single requestable entry +func (s *RequestCatalogManagement) GetRequestableEntry(ctx context.Context, request operations.C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryRequest, opts ...operations.Option) (*operations.C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/catalogs/{catalog_id}/requestable_entries/{app_id}/{entitlement_id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.GetRequestableEntry", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestcatalogV1RequestCatalogManagementServiceGetRequestableEntryResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestCatalogManagementServiceGetRequestableEntryResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestCatalogManagementServiceGetRequestableEntryResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // List // Get a list of request catalogs. func (s *RequestCatalogManagement) List(ctx context.Context, request operations.C1APIRequestcatalogV1RequestCatalogManagementServiceListRequest, opts ...operations.Option) (*operations.C1APIRequestcatalogV1RequestCatalogManagementServiceListResponse, error) { @@ -1957,7 +2586,7 @@ func (s *RequestCatalogManagement) List(ctx context.Context, request operations. BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1979,7 +2608,7 @@ func (s *RequestCatalogManagement) List(ctx context.Context, request operations. req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -2166,7 +2795,7 @@ func (s *RequestCatalogManagement) ListAllEntitlementIdsPerApp(ctx context.Conte BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.ListAllEntitlementIdsPerApp", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2371,7 +3000,7 @@ func (s *RequestCatalogManagement) ListEntitlementsForAccess(ctx context.Context BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.ListEntitlementsForAccess", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2393,7 +3022,7 @@ func (s *RequestCatalogManagement) ListEntitlementsForAccess(ctx context.Context req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -2580,7 +3209,7 @@ func (s *RequestCatalogManagement) ListEntitlementsPerCatalog(ctx context.Contex BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.ListEntitlementsPerCatalog", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2602,7 +3231,7 @@ func (s *RequestCatalogManagement) ListEntitlementsPerCatalog(ctx context.Contex req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -2789,7 +3418,7 @@ func (s *RequestCatalogManagement) RemoveAccessEntitlements(ctx context.Context, BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.RemoveAccessEntitlements", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceRemoveAccessEntitlementsRequest", "json", `request:"mediaType=application/json"`) @@ -3001,7 +3630,7 @@ func (s *RequestCatalogManagement) RemoveAppEntitlements(ctx context.Context, re BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.RemoveAppEntitlements", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceRemoveAppEntitlementsRequest", "json", `request:"mediaType=application/json"`) @@ -3213,7 +3842,7 @@ func (s *RequestCatalogManagement) ResumePausedBundleAutomation(ctx context.Cont BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.ResumePausedBundleAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ResumePausedBundleAutomationRequest", "json", `request:"mediaType=application/json"`) @@ -3425,7 +4054,7 @@ func (s *RequestCatalogManagement) SetBundleAutomation(ctx context.Context, requ BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.SetBundleAutomation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SetBundleAutomationRequest", "json", `request:"mediaType=application/json"`) @@ -3637,7 +4266,7 @@ func (s *RequestCatalogManagement) Update(ctx context.Context, request operation BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceUpdateRequest", "json", `request:"mediaType=application/json"`) @@ -3849,7 +4478,7 @@ func (s *RequestCatalogManagement) UpdateAppEntitlements(ctx context.Context, re BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogManagementService.UpdateAppEntitlements", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestCatalogManagementServiceUpdateAppEntitlementsRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/requestcatalogsearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/requestcatalogsearch.go index b5a33f99..5db4315d 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/requestcatalogsearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/requestcatalogsearch.go @@ -63,7 +63,7 @@ func (s *RequestCatalogSearch) SearchEntitlements(ctx context.Context, request * BaseURL: baseURL, Context: ctx, OperationID: "c1.api.requestcatalog.v1.RequestCatalogSearchService.SearchEntitlements", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/requestschema.go b/vendor/github.com/conductorone/conductorone-sdk-go/requestschema.go new file mode 100644 index 00000000..fd46d624 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/requestschema.go @@ -0,0 +1,1509 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package conductoronesdkgo + +import ( + "bytes" + "context" + "fmt" + "github.com/conductorone/conductorone-sdk-go/internal/config" + "github.com/conductorone/conductorone-sdk-go/internal/hooks" + "github.com/conductorone/conductorone-sdk-go/pkg/models/operations" + "github.com/conductorone/conductorone-sdk-go/pkg/models/sdkerrors" + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "github.com/conductorone/conductorone-sdk-go/pkg/retry" + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "net/http" + "net/url" +) + +type RequestSchema struct { + rootSDK *ConductoroneAPI + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newRequestSchema(rootSDK *ConductoroneAPI, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *RequestSchema { + return &RequestSchema{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// Create +// Invokes the c1.api.request_schema.v1.RequestSchemaService.Create method. +func (s *RequestSchema) Create(ctx context.Context, request *shared.RequestSchemaServiceCreateRequest, opts ...operations.Option) (*operations.C1APIRequestSchemaV1RequestSchemaServiceCreateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/request_schemas") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.request_schema.v1.RequestSchemaService.Create", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestSchemaV1RequestSchemaServiceCreateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestSchemaServiceCreateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestSchemaServiceCreateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// CreateEntitlementBinding - Create Entitlement Binding +// Invokes the c1.api.request_schema.v1.RequestSchemaService.CreateEntitlementBinding method. +func (s *RequestSchema) CreateEntitlementBinding(ctx context.Context, request *shared.RequestSchemaServiceCreateEntitlementBindingRequest, opts ...operations.Option) (*operations.C1APIRequestSchemaV1RequestSchemaServiceCreateEntitlementBindingResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/request_schema_entitlement_binding") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.request_schema.v1.RequestSchemaService.CreateEntitlementBinding", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestSchemaV1RequestSchemaServiceCreateEntitlementBindingResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestSchemaServiceCreateEntitlementBindingResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestSchemaServiceCreateEntitlementBindingResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Delete +// Invokes the c1.api.request_schema.v1.RequestSchemaService.Delete method. +func (s *RequestSchema) Delete(ctx context.Context, request operations.C1APIRequestSchemaV1RequestSchemaServiceDeleteRequest, opts ...operations.Option) (*operations.C1APIRequestSchemaV1RequestSchemaServiceDeleteResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/request_schemas/{request_schema_id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.request_schema.v1.RequestSchemaService.Delete", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestSchemaServiceDeleteRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestSchemaV1RequestSchemaServiceDeleteResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestSchemaServiceDeleteResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestSchemaServiceDeleteResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// FindBindingForAppEntitlement - Find Binding For App Entitlement +// Invokes the c1.api.request_schema.v1.RequestSchemaService.FindBindingForAppEntitlement method. +func (s *RequestSchema) FindBindingForAppEntitlement(ctx context.Context, request *shared.RequestSchemaServiceFindBindingForAppEntitlementRequest, opts ...operations.Option) (*operations.C1APIRequestSchemaV1RequestSchemaServiceFindBindingForAppEntitlementResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/request_schema_entitlement_binding") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.request_schema.v1.RequestSchemaService.FindBindingForAppEntitlement", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "PUT", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestSchemaV1RequestSchemaServiceFindBindingForAppEntitlementResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestSchemaServiceFindBindingForAppEntitlementResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestSchemaServiceFindBindingForAppEntitlementResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Get +// Invokes the c1.api.request_schema.v1.RequestSchemaService.Get method. +func (s *RequestSchema) Get(ctx context.Context, request operations.C1APIRequestSchemaV1RequestSchemaServiceGetRequest, opts ...operations.Option) (*operations.C1APIRequestSchemaV1RequestSchemaServiceGetResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/request_schemas/{request_schema_id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.request_schema.v1.RequestSchemaService.Get", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestSchemaV1RequestSchemaServiceGetResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestSchemaServiceGetResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestSchemaServiceGetResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// RemoveEntitlementBinding - Remove Entitlement Binding +// Invokes the c1.api.request_schema.v1.RequestSchemaService.RemoveEntitlementBinding method. +func (s *RequestSchema) RemoveEntitlementBinding(ctx context.Context, request *shared.RequestSchemaServiceRemoveEntitlementBindingRequest, opts ...operations.Option) (*operations.C1APIRequestSchemaV1RequestSchemaServiceRemoveEntitlementBindingResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/request_schema_entitlement_binding") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.request_schema.v1.RequestSchemaService.RemoveEntitlementBinding", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestSchemaV1RequestSchemaServiceRemoveEntitlementBindingResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestSchemaServiceRemoveEntitlementBindingResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestSchemaServiceRemoveEntitlementBindingResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Update +// Invokes the c1.api.request_schema.v1.RequestSchemaService.Update method. +func (s *RequestSchema) Update(ctx context.Context, request operations.C1APIRequestSchemaV1RequestSchemaServiceUpdateRequest, opts ...operations.Option) (*operations.C1APIRequestSchemaV1RequestSchemaServiceUpdateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/request_schemas/{request_schema_id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.request_schema.v1.RequestSchemaService.Update", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestSchemaServiceUpdateRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIRequestSchemaV1RequestSchemaServiceUpdateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.RequestSchemaServiceUpdateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.RequestSchemaServiceUpdateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/roles.go b/vendor/github.com/conductorone/conductorone-sdk-go/roles.go index b8f3cbab..a168c277 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/roles.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/roles.go @@ -63,7 +63,7 @@ func (s *Roles) Get(ctx context.Context, request operations.C1APIIamV1RolesGetRe BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.Roles.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -268,7 +268,7 @@ func (s *Roles) List(ctx context.Context, request operations.C1APIIamV1RolesList BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.Roles.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -290,7 +290,7 @@ func (s *Roles) List(ctx context.Context, request operations.C1APIIamV1RolesList req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -477,7 +477,7 @@ func (s *Roles) Update(ctx context.Context, request operations.C1APIIamV1RolesUp BaseURL: baseURL, Context: ctx, OperationID: "c1.api.iam.v1.Roles.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateRoleRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/sessionsettings.go b/vendor/github.com/conductorone/conductorone-sdk-go/sessionsettings.go index 43cf0125..4407c693 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/sessionsettings.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/sessionsettings.go @@ -63,7 +63,7 @@ func (s *SessionSettings) Get(ctx context.Context, opts ...operations.Option) (* BaseURL: baseURL, Context: ctx, OperationID: "c1.api.settings.v1.SessionSettingsService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -268,7 +268,7 @@ func (s *SessionSettings) TestSourceIP(ctx context.Context, request *shared.Test BaseURL: baseURL, Context: ctx, OperationID: "c1.api.settings.v1.SessionSettingsService.TestSourceIP", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -480,7 +480,7 @@ func (s *SessionSettings) Update(ctx context.Context, request *shared.UpdateSess BaseURL: baseURL, Context: ctx, OperationID: "c1.api.settings.v1.SessionSettingsService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/stepupprovider.go b/vendor/github.com/conductorone/conductorone-sdk-go/stepupprovider.go index f8eddcb8..12a4f834 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/stepupprovider.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/stepupprovider.go @@ -63,7 +63,7 @@ func (s *StepUpProvider) Create(ctx context.Context, request *shared.CreateStepU BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpProviderService.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *StepUpProvider) Delete(ctx context.Context, request operations.C1APISte BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpProviderService.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "DeleteStepUpProviderRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *StepUpProvider) Get(ctx context.Context, request operations.C1APIStepup BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpProviderService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -692,7 +692,7 @@ func (s *StepUpProvider) List(ctx context.Context, opts ...operations.Option) (* BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpProviderService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -897,7 +897,7 @@ func (s *StepUpProvider) Search(ctx context.Context, request *shared.SearchStepU BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpProviderService.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -1109,7 +1109,7 @@ func (s *StepUpProvider) Test(ctx context.Context, request operations.C1APIStepu BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpProviderService.Test", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TestStepUpProviderRequest", "json", `request:"mediaType=application/json"`) @@ -1321,7 +1321,7 @@ func (s *StepUpProvider) Update(ctx context.Context, request operations.C1APISte BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpProviderService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateStepUpProviderRequest", "json", `request:"mediaType=application/json"`) @@ -1533,7 +1533,7 @@ func (s *StepUpProvider) UpdateSecret(ctx context.Context, request operations.C1 BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpProviderService.UpdateSecret", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateStepUpProviderSecretRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/stepuptransaction.go b/vendor/github.com/conductorone/conductorone-sdk-go/stepuptransaction.go index 43366113..cf6a1d05 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/stepuptransaction.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/stepuptransaction.go @@ -63,7 +63,7 @@ func (s *StepUpTransaction) Get(ctx context.Context, request operations.C1APISte BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpTransactionService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -268,7 +268,7 @@ func (s *StepUpTransaction) Search(ctx context.Context, request *shared.SearchSt BaseURL: baseURL, Context: ctx, OperationID: "c1.api.stepup.v1.StepUpTransactionService.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/systemlog.go b/vendor/github.com/conductorone/conductorone-sdk-go/systemlog.go index 1ce11891..6bc75c54 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/systemlog.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/systemlog.go @@ -66,7 +66,7 @@ func (s *SystemLog) ListEvents(ctx context.Context, request *shared.SystemLogSer BaseURL: baseURL, Context: ctx, OperationID: "c1.api.systemlog.v1.SystemLogService.ListEvents", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/task.go b/vendor/github.com/conductorone/conductorone-sdk-go/task.go index e1c6c778..4fc5190c 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/task.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/task.go @@ -63,7 +63,7 @@ func (s *Task) CreateGrantTask(ctx context.Context, request *shared.TaskServiceC BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskService.CreateGrantTask", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *Task) CreateOffboardingTask(ctx context.Context, request *shared.TaskSe BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskService.CreateOffboardingTask", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *Task) CreateRevokeTask(ctx context.Context, request *shared.TaskService BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskService.CreateRevokeTask", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -699,7 +699,7 @@ func (s *Task) Get(ctx context.Context, request operations.C1APITaskV1TaskServic BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/taskactions.go b/vendor/github.com/conductorone/conductorone-sdk-go/taskactions.go index 795f7726..736fa9ae 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/taskactions.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/taskactions.go @@ -62,7 +62,7 @@ func (s *TaskActions) Approve(ctx context.Context, request operations.C1APITaskV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.Approve", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceApproveRequest", "json", `request:"mediaType=application/json"`) @@ -274,7 +274,7 @@ func (s *TaskActions) ApproveWithStepUp(ctx context.Context, request operations. BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.ApproveWithStepUp", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceApproveWithStepUpRequest", "json", `request:"mediaType=application/json"`) @@ -486,7 +486,7 @@ func (s *TaskActions) Close(ctx context.Context, request operations.C1APITaskV1T BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.Close", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceCloseRequest", "json", `request:"mediaType=application/json"`) @@ -698,7 +698,7 @@ func (s *TaskActions) Comment(ctx context.Context, request operations.C1APITaskV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.Comment", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceCommentRequest", "json", `request:"mediaType=application/json"`) @@ -910,7 +910,7 @@ func (s *TaskActions) Deny(ctx context.Context, request operations.C1APITaskV1Ta BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.Deny", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceDenyRequest", "json", `request:"mediaType=application/json"`) @@ -1122,7 +1122,7 @@ func (s *TaskActions) EscalateToEmergencyAccess(ctx context.Context, request ope BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.EscalateToEmergencyAccess", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceEscalateToEmergencyAccessRequest", "json", `request:"mediaType=application/json"`) @@ -1334,7 +1334,7 @@ func (s *TaskActions) HardReset(ctx context.Context, request operations.C1APITas BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.HardReset", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceHardResetRequest", "json", `request:"mediaType=application/json"`) @@ -1546,7 +1546,7 @@ func (s *TaskActions) ProcessNow(ctx context.Context, request operations.C1APITa BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.ProcessNow", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceProcessNowRequest", "json", `request:"mediaType=application/json"`) @@ -1758,7 +1758,7 @@ func (s *TaskActions) Reassign(ctx context.Context, request operations.C1APITask BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.Reassign", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceReassignRequest", "json", `request:"mediaType=application/json"`) @@ -1970,7 +1970,7 @@ func (s *TaskActions) Restart(ctx context.Context, request operations.C1APITaskV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.Restart", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceRestartRequest", "json", `request:"mediaType=application/json"`) @@ -2182,7 +2182,7 @@ func (s *TaskActions) SkipStep(ctx context.Context, request operations.C1APITask BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.SkipStep", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceSkipStepRequest", "json", `request:"mediaType=application/json"`) @@ -2394,7 +2394,7 @@ func (s *TaskActions) UpdateGrantDuration(ctx context.Context, request operation BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.UpdateGrantDuration", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceUpdateGrantDurationRequest", "json", `request:"mediaType=application/json"`) @@ -2606,7 +2606,7 @@ func (s *TaskActions) UpdateRequestData(ctx context.Context, request operations. BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskActionsService.UpdateRequestData", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaskActionsServiceUpdateRequestDataRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/taskaudit.go b/vendor/github.com/conductorone/conductorone-sdk-go/taskaudit.go index 7df0fd95..29eb699e 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/taskaudit.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/taskaudit.go @@ -63,7 +63,7 @@ func (s *TaskAudit) List(ctx context.Context, request *shared.TaskAuditListReque BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskAudit.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/tasksearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/tasksearch.go index 2e70d8e2..961a874a 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/tasksearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/tasksearch.go @@ -63,7 +63,7 @@ func (s *TaskSearch) Search(ctx context.Context, request *shared.TaskSearchReque BaseURL: baseURL, Context: ctx, OperationID: "c1.api.task.v1.TaskSearchService.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/user.go b/vendor/github.com/conductorone/conductorone-sdk-go/user.go index 5fab7ce0..97db5779 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/user.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/user.go @@ -63,7 +63,7 @@ func (s *User) Get(ctx context.Context, request operations.C1APIUserV1UserServic BaseURL: baseURL, Context: ctx, OperationID: "c1.api.user.v1.UserService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -236,6 +236,211 @@ func (s *User) Get(ctx context.Context, request operations.C1APIUserV1UserServic } +// GetUserProfileTypes - Get User Profile Types +// Invokes the c1.api.user.v1.UserService.GetUserProfileTypes method. +func (s *User) GetUserProfileTypes(ctx context.Context, request operations.C1APIUserV1UserServiceGetUserProfileTypesRequest, opts ...operations.Option) (*operations.C1APIUserV1UserServiceGetUserProfileTypesResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/users/{user_id}/profile-types", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.user.v1.UserService.GetUserProfileTypes", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIUserV1UserServiceGetUserProfileTypesResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.GetUserProfileTypesResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.GetUserProfileTypesResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + // List // List users. func (s *User) List(ctx context.Context, request operations.C1APIUserV1UserServiceListRequest, opts ...operations.Option) (*operations.C1APIUserV1UserServiceListResponse, error) { @@ -268,7 +473,7 @@ func (s *User) List(ctx context.Context, request operations.C1APIUserV1UserServi BaseURL: baseURL, Context: ctx, OperationID: "c1.api.user.v1.UserService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -290,7 +495,7 @@ func (s *User) List(ctx context.Context, request operations.C1APIUserV1UserServi req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -444,3 +649,215 @@ func (s *User) List(ctx context.Context, request operations.C1APIUserV1UserServi return res, nil } + +// SetExpiringUserDelegationBindingByAdmin - Set Expiring User Delegation Binding By Admin +// Invokes the c1.api.user.v1.UserService.SetExpiringUserDelegationBindingByAdmin method. +func (s *User) SetExpiringUserDelegationBindingByAdmin(ctx context.Context, request operations.C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminRequest, opts ...operations.Option) (*operations.C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/users/{user_id}/set-delegation-by-admin", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.user.v1.UserService.SetExpiringUserDelegationBindingByAdmin", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SetExpiringUserDelegationBindingByAdminRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIUserV1UserServiceSetExpiringUserDelegationBindingByAdminResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.SetExpiringUserDelegationBindingByAdminResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.SetExpiringUserDelegationBindingByAdminResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/usersearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/usersearch.go index 177eb0b9..9e5a8cde 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/usersearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/usersearch.go @@ -13,8 +13,11 @@ import ( "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" "github.com/conductorone/conductorone-sdk-go/pkg/retry" "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "github.com/spyzhov/ajson" "net/http" "net/url" + "strconv" + "strings" ) type UserSearch struct { @@ -63,7 +66,7 @@ func (s *UserSearch) Search(ctx context.Context, request *shared.SearchUsersRequ BaseURL: baseURL, Context: ctx, OperationID: "c1.api.user.v1.UserSearch.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -196,6 +199,64 @@ func (s *UserSearch) Search(ctx context.Context, request *shared.SearchUsersRequ ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, } + res.Next = func() (*operations.C1APIUserV1UserSearchSearchResponse, error) { + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + b, err := ajson.Unmarshal(rawBody) + if err != nil { + return nil, err + } + nC, err := ajson.Eval(b, "$.nextPageToken") + if err != nil { + return nil, err + } + var nCVal string + + if nC.IsNumeric() { + numVal, err := nC.GetNumeric() + if err != nil { + return nil, err + } + // GetNumeric returns as float64 so convert to the appropriate type. + nCVal = strconv.FormatFloat(numVal, 'f', 0, 64) + } else { + val, err := nC.Value() + if err != nil { + return nil, err + } + if val == nil { + return nil, nil + } + nCVal = val.(string) + if strings.TrimSpace(nCVal) == "" { + return nil, nil + } + } + + return s.Search( + ctx, + &shared.SearchUsersRequest{ + UserExpandMask: request.UserExpandMask, + Departments: request.Departments, + Email: request.Email, + ExcludeIds: request.ExcludeIds, + ExcludeTypes: request.ExcludeTypes, + Ids: request.Ids, + JobTitles: request.JobTitles, + ManagerIds: request.ManagerIds, + PageSize: request.PageSize, + PageToken: &nCVal, + Query: request.Query, + Refs: request.Refs, + RoleIds: request.RoleIds, + UserStatuses: request.UserStatuses, + }, + opts..., + ) + } switch { case httpRes.StatusCode == 200: diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/vault.go b/vendor/github.com/conductorone/conductorone-sdk-go/vault.go new file mode 100644 index 00000000..ba38d924 --- /dev/null +++ b/vendor/github.com/conductorone/conductorone-sdk-go/vault.go @@ -0,0 +1,873 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package conductoronesdkgo + +import ( + "bytes" + "context" + "fmt" + "github.com/conductorone/conductorone-sdk-go/internal/config" + "github.com/conductorone/conductorone-sdk-go/internal/hooks" + "github.com/conductorone/conductorone-sdk-go/pkg/models/operations" + "github.com/conductorone/conductorone-sdk-go/pkg/models/sdkerrors" + "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" + "github.com/conductorone/conductorone-sdk-go/pkg/retry" + "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "net/http" + "net/url" +) + +type Vault struct { + rootSDK *ConductoroneAPI + sdkConfiguration config.SDKConfiguration + hooks *hooks.Hooks +} + +func newVault(rootSDK *ConductoroneAPI, sdkConfig config.SDKConfiguration, hooks *hooks.Hooks) *Vault { + return &Vault{ + rootSDK: rootSDK, + sdkConfiguration: sdkConfig, + hooks: hooks, + } +} + +// Create +// Invokes the c1.api.vault.v1.VaultService.Create method. +func (s *Vault) Create(ctx context.Context, request *shared.VaultServiceCreateRequest, opts ...operations.Option) (*operations.C1APIVaultV1VaultServiceCreateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := url.JoinPath(baseURL, "/api/v1/vaults") + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.vault.v1.VaultService.Create", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIVaultV1VaultServiceCreateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.VaultServiceCreateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.VaultServiceCreateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Delete +// Invokes the c1.api.vault.v1.VaultService.Delete method. +func (s *Vault) Delete(ctx context.Context, request operations.C1APIVaultV1VaultServiceDeleteRequest, opts ...operations.Option) (*operations.C1APIVaultV1VaultServiceDeleteResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/vaults/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.vault.v1.VaultService.Delete", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "VaultServiceDeleteRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIVaultV1VaultServiceDeleteResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.VaultServiceDeleteResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.VaultServiceDeleteResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Get +// Invokes the c1.api.vault.v1.VaultService.Get method. +func (s *Vault) Get(ctx context.Context, request operations.C1APIVaultV1VaultServiceGetRequest, opts ...operations.Option) (*operations.C1APIVaultV1VaultServiceGetResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/vaults/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.vault.v1.VaultService.Get", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "GET", opURL, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIVaultV1VaultServiceGetResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.VaultServiceGetResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.VaultServiceGetResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} + +// Update +// Invokes the c1.api.vault.v1.VaultService.Update method. +func (s *Vault) Update(ctx context.Context, request operations.C1APIVaultV1VaultServiceUpdateRequest, opts ...operations.Option) (*operations.C1APIVaultV1VaultServiceUpdateResponse, error) { + o := operations.Options{} + supportedOptions := []string{ + operations.SupportedOptionRetries, + operations.SupportedOptionTimeout, + } + + for _, opt := range opts { + if err := opt(&o, supportedOptions...); err != nil { + return nil, fmt.Errorf("error applying option: %w", err) + } + } + + var baseURL string + if o.ServerURL == nil { + baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + } else { + baseURL = *o.ServerURL + } + opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/vaults/{id}", request, nil) + if err != nil { + return nil, fmt.Errorf("error generating URL: %w", err) + } + + hookCtx := hooks.HookContext{ + SDK: s.rootSDK, + SDKConfiguration: s.sdkConfiguration, + BaseURL: baseURL, + Context: ctx, + OperationID: "c1.api.vault.v1.VaultService.Update", + OAuth2Scopes: nil, + SecuritySource: s.sdkConfiguration.Security, + } + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "VaultServiceUpdateRequest", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, err + } + + timeout := o.Timeout + if timeout == nil { + timeout = s.sdkConfiguration.Timeout + } + + if timeout != nil { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, *timeout) + defer cancel() + } + + req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) + if reqContentType != "" { + req.Header.Set("Content-Type", reqContentType) + } + + if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil { + return nil, err + } + + for k, v := range o.SetHeaders { + req.Header.Set(k, v) + } + + globalRetryConfig := s.sdkConfiguration.RetryConfig + retryConfig := o.Retries + if retryConfig == nil { + if globalRetryConfig != nil { + retryConfig = globalRetryConfig + } + } + + var httpRes *http.Response + if retryConfig != nil { + httpRes, err = utils.Retry(ctx, utils.Retries{ + Config: retryConfig, + StatusCodes: []string{ + "429", + "500", + "502", + "503", + "504", + }, + }, func() (*http.Response, error) { + if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil { + copyBody, err := req.GetBody() + + if err != nil { + return nil, err + } + + req.Body = copyBody + } + + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + if retry.IsPermanentError(err) || retry.IsTemporaryError(err) { + return nil, err + } + + return nil, retry.Permanent(err) + } + + httpRes, err := s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + } + return httpRes, err + }) + + if err != nil { + return nil, err + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } else { + req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req) + if err != nil { + return nil, err + } + + httpRes, err = s.sdkConfiguration.Client.Do(req) + if err != nil || httpRes == nil { + if err != nil { + err = fmt.Errorf("error sending request: %w", err) + } else { + err = fmt.Errorf("error sending request: no response") + } + + _, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err) + return nil, err + } else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) { + _httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil) + if err != nil { + return nil, err + } else if _httpRes != nil { + httpRes = _httpRes + } + } else { + httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes) + if err != nil { + return nil, err + } + } + } + + res := &operations.C1APIVaultV1VaultServiceUpdateResponse{ + StatusCode: httpRes.StatusCode, + ContentType: httpRes.Header.Get("Content-Type"), + RawResponse: httpRes, + } + + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`): + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + var out shared.VaultServiceUpdateResponse + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.VaultServiceUpdateResponse = &out + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + default: + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil + +} diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/webhooks.go b/vendor/github.com/conductorone/conductorone-sdk-go/webhooks.go index c3403636..ca5eae6b 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/webhooks.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/webhooks.go @@ -63,7 +63,7 @@ func (s *Webhooks) Create(ctx context.Context, request *shared.WebhooksServiceCr BaseURL: baseURL, Context: ctx, OperationID: "c1.api.webhooks.v1.WebhooksService.Create", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -275,7 +275,7 @@ func (s *Webhooks) Delete(ctx context.Context, request operations.C1APIWebhooksV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.webhooks.v1.WebhooksService.Delete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "WebhooksServiceDeleteRequest", "json", `request:"mediaType=application/json"`) @@ -487,7 +487,7 @@ func (s *Webhooks) Get(ctx context.Context, request operations.C1APIWebhooksV1We BaseURL: baseURL, Context: ctx, OperationID: "c1.api.webhooks.v1.WebhooksService.Get", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -692,7 +692,7 @@ func (s *Webhooks) List(ctx context.Context, request operations.C1APIWebhooksV1W BaseURL: baseURL, Context: ctx, OperationID: "c1.api.webhooks.v1.WebhooksService.List", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -714,7 +714,7 @@ func (s *Webhooks) List(ctx context.Context, request operations.C1APIWebhooksV1W req.Header.Set("Accept", "application/json") req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent) - if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil { + if err := utils.PopulateQueryParams(ctx, req, request, nil, nil); err != nil { return nil, fmt.Errorf("error populating query params: %w", err) } @@ -901,7 +901,7 @@ func (s *Webhooks) Test(ctx context.Context, request operations.C1APIWebhooksV1W BaseURL: baseURL, Context: ctx, OperationID: "c1.api.webhooks.v1.WebhooksService.Test", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "WebhooksServiceTestRequest", "json", `request:"mediaType=application/json"`) @@ -1113,7 +1113,7 @@ func (s *Webhooks) Update(ctx context.Context, request operations.C1APIWebhooksV BaseURL: baseURL, Context: ctx, OperationID: "c1.api.webhooks.v1.WebhooksService.Update", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "WebhooksServiceUpdateRequest", "json", `request:"mediaType=application/json"`) diff --git a/vendor/github.com/conductorone/conductorone-sdk-go/webhookssearch.go b/vendor/github.com/conductorone/conductorone-sdk-go/webhookssearch.go index a05dd797..dec757b0 100644 --- a/vendor/github.com/conductorone/conductorone-sdk-go/webhookssearch.go +++ b/vendor/github.com/conductorone/conductorone-sdk-go/webhookssearch.go @@ -13,8 +13,11 @@ import ( "github.com/conductorone/conductorone-sdk-go/pkg/models/shared" "github.com/conductorone/conductorone-sdk-go/pkg/retry" "github.com/conductorone/conductorone-sdk-go/pkg/utils" + "github.com/spyzhov/ajson" "net/http" "net/url" + "strconv" + "strings" ) type WebhooksSearch struct { @@ -63,7 +66,7 @@ func (s *WebhooksSearch) Search(ctx context.Context, request *shared.WebhooksSea BaseURL: baseURL, Context: ctx, OperationID: "c1.api.webhooks.v1.WebhooksSearch.Search", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -196,6 +199,54 @@ func (s *WebhooksSearch) Search(ctx context.Context, request *shared.WebhooksSea ContentType: httpRes.Header.Get("Content-Type"), RawResponse: httpRes, } + res.Next = func() (*operations.C1APIWebhooksV1WebhooksSearchSearchResponse, error) { + rawBody, err := utils.ConsumeRawBody(httpRes) + if err != nil { + return nil, err + } + + b, err := ajson.Unmarshal(rawBody) + if err != nil { + return nil, err + } + nC, err := ajson.Eval(b, "$.nextPageToken") + if err != nil { + return nil, err + } + var nCVal string + + if nC.IsNumeric() { + numVal, err := nC.GetNumeric() + if err != nil { + return nil, err + } + // GetNumeric returns as float64 so convert to the appropriate type. + nCVal = strconv.FormatFloat(numVal, 'f', 0, 64) + } else { + val, err := nC.Value() + if err != nil { + return nil, err + } + if val == nil { + return nil, nil + } + nCVal = val.(string) + if strings.TrimSpace(nCVal) == "" { + return nil, nil + } + } + + return s.Search( + ctx, + &shared.WebhooksSearchRequest{ + PageSize: request.PageSize, + PageToken: &nCVal, + Query: request.Query, + Refs: request.Refs, + }, + opts..., + ) + } switch { case httpRes.StatusCode == 200: diff --git a/vendor/github.com/ericlagergren/decimal/.gitignore b/vendor/github.com/ericlagergren/decimal/.gitignore deleted file mode 100644 index 39efa1eb..00000000 --- a/vendor/github.com/ericlagergren/decimal/.gitignore +++ /dev/null @@ -1,56 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -# Artifacts, profiles, etc. -*.exe -*.test -*.prof -*.tags -.git -*.swp -*.txt -*.tags -tags -*.test -*.out -*.zip -*.gz - -# Internal -literature/ -j/ - -# Fuzzing -fuzz/**/corpus -fuzz/**/crashers -fuzz/**/suppressions - -# Benchmark artifacts -*.xml -*.class -.idea/ - -# Development -internal/nat/ - -# Testing -x.bash -*.decTest diff --git a/vendor/github.com/ericlagergren/decimal/AUTHORS b/vendor/github.com/ericlagergren/decimal/AUTHORS deleted file mode 100644 index 82f00b5c..00000000 --- a/vendor/github.com/ericlagergren/decimal/AUTHORS +++ /dev/null @@ -1,11 +0,0 @@ -# This is the official list of 'decimal' authors for copyright purposes. - -# Names should be added to this file as one of -# Organization's name -# Individual's name - -Eric Lagergen -Nathan Hack -fantomgs -Timothy Ham -Richard Dingwall diff --git a/vendor/github.com/ericlagergren/decimal/LICENSE b/vendor/github.com/ericlagergren/decimal/LICENSE deleted file mode 100644 index f396fc6b..00000000 --- a/vendor/github.com/ericlagergren/decimal/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2016, Eric Lagergren -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, this - list of conditions and the following disclaimer in the documentation and/or - other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its contributors may - be used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED -OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/ericlagergren/decimal/README-fr.md b/vendor/github.com/ericlagergren/decimal/README-fr.md deleted file mode 100644 index 6c58eb92..00000000 --- a/vendor/github.com/ericlagergren/decimal/README-fr.md +++ /dev/null @@ -1,33 +0,0 @@ -# decimal [![Build Status](https://travis-ci.org/ericlagergren/decimal.png?branch=master)](https://travis-ci.org/ericlagergren/decimal) [![GoDoc](https://godoc.org/github.com/ericlagergren/decimal?status.svg)](https://godoc.org/github.com/ericlagergren/decimal) - -Decimal est une logithèque décimal virgule flottante, avec haute performance et -précision arbitrarie que mettre en œuvre la spécification -[General Decimal Arithmetic](http://speleotrove.com/decimal/). - -## Les fonctions - - * Valeur zéros sont sûr utiliser. - * Multiple modes de fonctionnement. - * Haute performance. - * Une logithèque mathématiques avec fonctions élémentaires et trigonométriques, - fraction continues, et beaucoup plus. - * Un API familier et idiomatique. - -## Installation - -`go get github.com/ericlagergren/decimal` - -## Documentation - -[Godoc](http://godoc.org/github.com/ericlagergren/decimal) - -## Gestion des versions - -`decimal` utilise la gestion sémantique de la version. La version actuelle est -3.3.1. - -`decimal` ne prend en charge que le deux versions plus récentes. - -## Licence - -La [BSD 3-clause](https://github.com/ericlagergren/decimal/blob/master/LICENSE) diff --git a/vendor/github.com/ericlagergren/decimal/README.md b/vendor/github.com/ericlagergren/decimal/README.md deleted file mode 100644 index f5bf8578..00000000 --- a/vendor/github.com/ericlagergren/decimal/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# decimal [![Build Status](https://travis-ci.org/ericlagergren/decimal.png?branch=master)](https://travis-ci.org/ericlagergren/decimal) [![GoDoc](https://godoc.org/github.com/ericlagergren/decimal?status.svg)](https://godoc.org/github.com/ericlagergren/decimal) - -`decimal` implements arbitrary precision, decimal floating-point numbers, per -the [General Decimal Arithmetic](http://speleotrove.com/decimal/) specification. - -## Features - - * Useful zero values. - The zero value of a `decimal.Big` is 0, just like `math/big`. - - * Multiple operating modes. - Different operating modes allow you to tailor the package's behavior to your - needs. The GDA mode strictly implements the GDA specification, while the Go - mode implements familiar Go idioms. - - * High performance. - `decimal` is consistently one of the fastest arbitrary-precision decimal - floating-point libraries, regardless of language. - - * An extensive math library. - The `math/` subpackage implements elementary and trigonometric functions, - continued fractions, and more. - - * A familiar, idiomatic API. - `decimal`'s API follows `math/big`'s API, so there isn't a steep learning - curve. - -## Installation - -`go get github.com/ericlagergren/decimal` - -## Documentation - -[GoDoc](http://godoc.org/github.com/ericlagergren/decimal) - -## Versioning - -`decimal` uses Semantic Versioning. The current version is 3.3.1. - -`decimal` only explicitly supports the two most recent major Go 1.X versions. - -## License - -[BSD 3-clause](https://github.com/ericlagergren/decimal/blob/master/LICENSE) diff --git a/vendor/github.com/ericlagergren/decimal/big.go b/vendor/github.com/ericlagergren/decimal/big.go deleted file mode 100644 index ff4d9cdc..00000000 --- a/vendor/github.com/ericlagergren/decimal/big.go +++ /dev/null @@ -1,1818 +0,0 @@ -package decimal - -import ( - "bytes" - "encoding" - "encoding/json" - "fmt" - "io" - "math" - "math/big" - "regexp" - "runtime" - "strconv" - "strings" - - "github.com/ericlagergren/decimal/internal/arith" - "github.com/ericlagergren/decimal/internal/c" -) - -const ( - // Radix is the base in which decimal arithmetic is - // performed. - Radix = 10 - - // IsCanonical is true since Big decimals are always - // normalized. - IsCanonical = true -) - -// Big is a floating-point, arbitrary-precision -// -// It is represented as a number and a scale. A scale greater -// than zero indicates the number of decimal digits after the -// radix. Otherwise, the number is multiplied by 10 to the power -// of the negation of the scale. More formally, -// -// Big = number × 10**-scale -// -// with MinScale <= scale <= MaxScale. A Big may also be ±0, -// ±Infinity, or ±NaN (either quiet or signaling). Non-NaN Big -// values are ordered, defined as the result of x.Cmp(y). -// -// Additionally, each Big value has a contextual object which -// governs arithmetic operations. -type Big struct { - // Context is the decimal's unique contextual object. - Context Context - - // unscaled is only used if the decimal is too large to fit - // in compact. - unscaled big.Int - - // compact is use if the value fits into an uint64. The scale - // does not affect whether this field is used. If a decimal - // has 20 or fewer digits, this field will be used. - compact uint64 - - // exp is the negated scale, meaning - // - // number × 10**exp = number × 10**-scale - // - exp int - - // precision is the current precision. - precision int - - // form indicates whether a decimal is a finite number, an - // infinity, or a NaN value and whether it's signed or not. - form form -} - -var ( - _ fmt.Formatter = (*Big)(nil) - _ fmt.Scanner = (*Big)(nil) - _ fmt.Stringer = (*Big)(nil) - _ json.Unmarshaler = (*Big)(nil) - _ encoding.TextUnmarshaler = (*Big)(nil) - _ decomposer = (*Big)(nil) -) - -// form indicates whether a decimal is a finite number, an -// infinity, or a nan value and whether it's signed or not. -type form uint8 - -const ( - // Particular bits: - // - // 0: sign bit - // 1: infinity - // 2: signaling nan - // 3: quiet nan - // 4-7: unused - - finite form = 0 // default, all zeros; do not re-order this constant. - - signbit form = 1 << 0 // do not assign this; used to check for signedness. - - pinf form = 1 << 1 // may compare with ==, &, etc. - ninf form = pinf | signbit // may compare with ==, &, etc. - inf form = pinf // do not assign this; used to check for either infinity. - - snan form = 1 << 2 // compare with bitwise & only due to ssnan - qnan form = 1 << 3 // compare with bitwise & only due to sqnan - ssnan form = snan | signbit // primarily for printing, signbit - sqnan form = qnan | signbit // primarily for printing, signbit - nan form = snan | qnan // do not assign this; used to check for either NaN. - - special = inf | nan // do not assign this; used to check for a special value. -) - -func (f form) String() string { - // GDA versions. Go needs to be handled manually. - switch f { - case finite: - return "finite" - case finite | signbit: - return "-finite" - case snan: - return "sNaN" - case snan | signbit: - return "-sNaN" - case qnan: - return "NaN" - case qnan | signbit: - return "-NaN" - case pinf: - return "Infinity" - case ninf: - return "-Infinity" - default: - return fmt.Sprintf("unknown form: %0.8b", f) - } -} - -// Payload is a NaN value's payload. -type Payload uint64 - -//go:generate stringer -type Payload -linecomment - -const ( - absvalue Payload = iota + 1 // absolute value of NaN - acos // acos with NaN as an operand - addinfinf // addition of infinities with opposing signs - addition // addition with NaN as an operand - asin // asin with NaN as an operand - atan // atan with NaN as an operand - atan2 // atan2 with NaN as an operand - comparison // comparison with NaN as an operand - cos // cos with NaN as an operand - division // division with NaN as an operand - exp // exp with NaN as an operand - invctxomode // operation with an invalid OperatingMode - invctxpgtu // operation with a precision greater than MaxPrecision - invctxpltz // operation with a precision less than zero - invctxrmode // operation with an invalid RoundingMode - invctxsgtu // operation with a scale greater than MaxScale - invctxsltu // operation with a scale lesser than MinScale - log // log with NaN as an operand - log10 // log10 with NaN as an operand - mul0inf // multiplication of zero with infinity - multiplication // multiplication with NaN as an operand - negation // negation with NaN as an operand - nextminus // next-minus with NaN as an operand - nextplus // next-plus with NaN as an operand - quantinf // quantization of an infinity - quantization // quantization with NaN as an operand - quantminmax // quantization exceeds minimum or maximum scale - quantprec // quantization exceeds working precision - quo00 // division of zero by zero - quoinfinf // division of infinity by infinity - quointprec // result of integer division was larger than the desired precision - quorem_ // integer division or remainder has too many digits - quotermexp // division with unlimited precision has a non-terminating decimal expansion - reduction // reduction with NaN as an operand - reminfy // remainder of infinity - remprec // result of remainder operation was larger than the desired precision - remx0 // remainder by zero - sin // sin with NaN as an operand - subinfinf // subtraction of infinities with opposing signs - subtraction // subtraction with NaN as an operand -) - -// An ErrNaN is used when a decimal operation would lead to a NaN under IEEE-754 -// rules. An ErrNaN implements the error interface. -type ErrNaN struct { - Msg string -} - -func (e ErrNaN) Error() string { - return e.Msg -} - -var _ error = ErrNaN{} - -// Canonical sets z to the canonical form of z. -// -// Since Big values are always canonical, it's identical to Copy. -func (z *Big) Canonical(x *Big) *Big { - return z.Copy(x) -} - -// CheckNaNs checks if either x or y is NaN. -// -// If so, it follows the rules of NaN handling set forth in the -// GDA specification. The argument y may be nil. It reports -// whether either condition is a NaN. -func (z *Big) CheckNaNs(x, y *Big) bool { - return z.invalidContext(z.Context) || z.checkNaNs(x, y, 0) -} - -func (z *Big) checkNaNs(x, y *Big, op Payload) bool { - var yform form - if y != nil { - yform = y.form - } - f := (x.form | yform) & nan - if f == 0 { - return false - } - - form := qnan - var cond Condition - if f&snan != 0 { - cond = InvalidOperation - if x.form&snan != 0 { - form |= (x.form & signbit) - } else { - form |= (y.form & signbit) - } - } else if x.form&nan != 0 { - form |= (x.form & signbit) - } else { - form |= (y.form & signbit) - } - z.setNaN(cond, form, op) - return true -} - -func (z *Big) xflow(exp int, over, neg bool) *Big { - // over == overflow - // neg == intermediate result < 0 - if over { - // TODO(eric): actually choose the largest finite number in the current - // precision. This is legacy now. - // - // NOTE(eric): in some situations, the decimal library tells us to set - // z to "the largest finite number that can be represented in the - // current precision..." Use signed Infinity instead. - // - // Because of the logic above, every rounding mode works out to the - // following. - if neg { - z.form = ninf - } else { - z.form = pinf - } - z.Context.Conditions |= Overflow | Inexact | Rounded - return z - } - - var sign form - if neg { - sign = signbit - } - z.setZero(sign, exp) - z.Context.Conditions |= Underflow | Inexact | Rounded | Subnormal - return z -} - -// These methods are here to prevent typos. - -func (x *Big) isCompact() bool { return x.compact != c.Inflated } -func (x *Big) isInflated() bool { return !x.isCompact() } -func (x *Big) isSpecial() bool { return x.form&special != 0 } - -// isZero reports whether x is zero. -// -// Only use after checking for specials. -func (x *Big) isZero() bool { - if debug { - if x.isSpecial() { - panic("isZero called on a special value") - } - } - return x.compact == 0 -} - -// adjusted returns the adjusted exponent. -// -// The adjusted exponent is the exponent of x when expressed in -// scientific notation with one digit before the radix. -func (x *Big) adjusted() int { - return (x.exp + x.Precision()) - 1 -} - -// etiny returns the minimum exponent of a subnormal result. -func (c Context) etiny() int { - return c.emin() - (c.precision() - 1) -} - -// etop returns the maximum exponent of an overflow result. -func (c Context) etop() int { - return c.emax() - (c.precision() - 1) -} - -// Abs sets z to the absolute value of x and returns z. -func (z *Big) Abs(x *Big) *Big { - return z.Context.Abs(z, x) -} - -// Add sets z to x + y and returns z. -func (z *Big) Add(x, y *Big) *Big { - return z.Context.Add(z, x, y) -} - -// Class returns the "class" of x, which is one of the following: -// -// sNaN -// NaN -// -Infinity -// -Normal -// -Subnormal -// -Zero -// +Zero -// +Subnormal -// +Normal -// +Infinity -// -func (x *Big) Class() string { - if x.IsNaN(0) { - if x.IsNaN(+1) { - return "NaN" - } - return "sNaN" - } - if x.Signbit() { - if x.IsInf(0) { - return "-Infinity" - } - if x.isZero() { - return "-Zero" - } - if x.IsSubnormal() { - return "-Subnormal" - } - return "-Normal" - } - if x.IsInf(0) { - return "+Infinity" - } - if x.isZero() { - return "+Zero" - } - if x.IsSubnormal() { - return "+Subnormal" - } - return "+Normal" -} - -// Cmp compares x and y and returns: -// -// -1 if x < y -// 0 if x == y -// +1 if x > y -// -// It does not modify x or y. The result is undefined if either -// x or y are NaN. -// -// For an abstract comparison with NaN values, see CmpTotal. -func (x *Big) Cmp(y *Big) int { - if debug { - x.validate() - y.validate() - } - return cmp(x, y, false) -} - -// CmpAbs compares |x| and |y| and returns: -// -// -1 if |x| < |y| -// 0 if |x| == |y| -// +1 if |x| > |y| -// -// It does not modify x or y. The result is undefined if either -// x or y are NaN. -// -// For an abstract comparison with NaN values, see -// CmpTotalAbs. -func (x *Big) CmpAbs(y *Big) int { - if debug { - x.validate() - y.validate() - } - return cmp(x, y, true) -} - -func cmpInt(x *Big, y int64) int { - switch { - case x.Signbit() && y >= 0: - return -1 - case !x.Signbit() && y < 0: - return +1 - default: - return cmpAbsInt(x, y) - } -} - -func cmpAbsInt(x *Big, y int64) int { - u := uint64(y) - - // Same scales, so compare straight across. - if x.exp == 0 { - // If the scales are the same and x x is not compact, - // then by definition it's larger than y. - if !x.isCompact() { - return +1 - } - return arith.Cmp(x.compact, u) - } - - // Signs are the same and the scales differ. Compare the - // lengths of their integral parts; if they differ in length - // one number is larger. - // E.g.: 1234.01 - // 1230011 - xl := x.adjusted() - yl := arith.Length(u) - 1 - if xl != yl { - if xl < yl { - return -1 - } - return +1 - } - - // The length of the integral parts match. Rescale x, then - // compare straight across. - t, ok := scalex(x.compact, x.exp) - if !ok { - if x.exp > 0 { - // Overflow. - return +1 - } - // Underflow. - return -1 - } - return arith.Cmp(t, u) -} - -// cmp is the implementation for both Cmp and CmpAbs. -func cmp(x, y *Big, abs bool) int { - if x == y { - return 0 - } - - // NaN cmp x - // z cmp NaN - // NaN cmp NaN - if (x.form|y.form)&nan != 0 { - return 0 - } - - // Fast path: Catches non-finite forms like zero and ±Inf, - // possibly signed. - xs := x.ord(abs) - ys := y.ord(abs) - if xs != ys { - if xs > ys { - return +1 - } - return -1 - } - switch xs { - case 0, +2, -2: - return 0 - default: - r := cmpabs(x, y) - if xs < 0 && !abs { - r = -r - } - return r - } -} - -// ord returns similar to Sign except -Inf is -2 and +Inf is +2. -func (x *Big) ord(abs bool) int { - if x.form&inf != 0 { - if x.form == pinf || abs { - return +2 - } - return -2 - } - r := x.Sign() - if abs && r < 0 { - r = -r - } - return r -} - -func cmpabs(x, y *Big) int { - // Same scales means we can compare straight across. - if x.exp == y.exp { - if x.isCompact() { - if y.isCompact() { - return arith.Cmp(x.compact, y.compact) - } - return -1 // y.isInflateed - } - if y.isCompact() { - return +1 // !x.isCompact - } - return x.unscaled.CmpAbs(&y.unscaled) - } - - // Signs are the same and the scales differ. Compare the - // lengths of their integral parts; if they differ in length - // one number is larger. - // E.g.: 1234.01 - // 123.011 - xl := x.adjusted() - yl := y.adjusted() - - if xl != yl { - if xl < yl { - return -1 - } - return +1 - } - - diff := int64(x.exp) - int64(y.exp) - shift := uint64(arith.Abs(diff)) - if arith.Safe(shift) && x.isCompact() && y.isCompact() { - p, _ := arith.Pow10(shift) - if diff < 0 { - return arith.CmpShift(x.compact, y.compact, p) - } - return -arith.CmpShift(y.compact, x.compact, p) - } - - xw, yw := x.unscaled.Bits(), y.unscaled.Bits() - if x.isCompact() { - xw = arith.Words(x.compact) - } - if y.isCompact() { - yw = arith.Words(y.compact) - } - - var tmp big.Int - if diff < 0 { - yw = arith.MulBigPow10(&tmp, tmp.SetBits(copybits(yw)), shift).Bits() - } else { - xw = arith.MulBigPow10(&tmp, tmp.SetBits(copybits(xw)), shift).Bits() - } - return arith.CmpBits(xw, yw) -} - -// CmpTotal compares x and y in a manner similar to the Big.Cmp, -// but allows ordering of all abstract representations. -// -// In particular, this means NaN values have a defined ordering. -// From lowest to highest the ordering is: -// -// -NaN -// -sNaN -// -Infinity -// -127 -// -1.00 -// -1 -// -0.000 -// -0 -// +0 -// +1.2300 -// +1.23 -// +1E+9 -// +Infinity -// +sNaN -// +NaN -// -func (x *Big) CmpTotal(y *Big) int { - if debug { - x.validate() - y.validate() - } - xs := x.ordTotal(false) - ys := y.ordTotal(false) - if xs != ys { - if xs > ys { - return +1 - } - return -1 - } - if xs != 0 { - return 0 - } - return x.Cmp(y) -} - -// CmpTotalAbs is like CmpTotal but instead compares the absolute -// values of x and y. -func (x *Big) CmpTotalAbs(y *Big) int { - if debug { - x.validate() - y.validate() - } - xs := x.ordTotal(true) - ys := y.ordTotal(true) - if xs != ys { - if xs > ys { - return +1 - } - return -1 - } - if xs != 0 { - return 0 - } - return x.CmpAbs(y) -} - -func (x *Big) ordTotal(abs bool) (r int) { - // -2 == -qnan - // -1 == -snan - // 0 == not nan - // +1 == snan - // +2 == qnan - if x.IsNaN(0) { - if x.IsNaN(+1) { // qnan - r = +2 - } else { - r = +1 - } - if !abs && x.Signbit() { - r = -r - } - } - return r -} - -// Copy sets z to a copy of x and returns z. -func (z *Big) Copy(x *Big) *Big { - if debug { - x.validate() - } - if z != x { - sign := x.form & signbit - z.copyAbs(x) - z.form |= sign - } - return z -} - -// copyAbs sets z to a copy of |x| and returns z. -func (z *Big) copyAbs(x *Big) *Big { - if z != x { - z.precision = x.Precision() - z.exp = x.exp - z.compact = x.compact - if x.IsFinite() && x.isInflated() { - z.unscaled.Set(&x.unscaled) - } - } - z.form = x.form & ^signbit - return z -} - -// CopyAbs is like Abs, but no flags are changed and the result -// is not rounded. -func (z *Big) CopyAbs(x *Big) *Big { - if debug { - x.validate() - } - return z.copyAbs(x) -} - -// CopyNeg is like Neg, but no flags are changed and the result -// is not rounded. -func (z *Big) CopyNeg(x *Big) *Big { - if debug { - x.validate() - } - xform := x.form // in case z == x - z.copyAbs(x) - z.form = xform ^ signbit - return z -} - -// CopySign sets z to x with the sign of y and returns z. -// -// It accepts NaN values. -func (z *Big) CopySign(x, y *Big) *Big { - if debug { - x.validate() - y.validate() - } - // Pre-emptively capture signbit in case z == y. - sign := y.form & signbit - z.copyAbs(x) - z.form |= sign - return z -} - -// Float64 returns x as a float64 and a bool indicating whether -// x can fit into a float64 without truncation, overflow, or -// underflow. -// -// Special values are considered exact; however, special values -// that occur because the magnitude of x is too large to be -// represented as a float64 are not. -func (x *Big) Float64() (f float64, ok bool) { - if debug { - x.validate() - } - - if !x.IsFinite() { - switch x.form { - case pinf, ninf: - return math.Inf(int(x.form & signbit)), true - case snan, qnan: - return math.NaN(), true - case ssnan, sqnan: - return math.Copysign(math.NaN(), -1), true - } - } - - const ( - maxMantissa = 1<<53 + 1 // largest exact mantissa - ) - - parse := false - switch xc := x.compact; { - case !x.isCompact(): - parse = true - case x.isZero(): - f = 0 - ok = true - case x.exp == 0: - f = float64(xc) - ok = xc < maxMantissa || (xc&(xc-1)) == 0 - case x.exp > 0: - f = float64(x.compact) * math.Pow10(x.exp) - ok = x.compact < maxMantissa && !math.IsInf(f, 0) && !math.IsNaN(f) - case x.exp < 0: - f = float64(x.compact) / math.Pow10(-x.exp) - ok = x.compact < maxMantissa && !math.IsInf(f, 0) && !math.IsNaN(f) - default: - parse = true - } - - if parse { - f, _ = strconv.ParseFloat(x.String(), 64) - ok = !math.IsInf(f, 0) && !math.IsNaN(f) - } - - if x.form&signbit != 0 { - f = math.Copysign(f, -1) - } - return f, ok -} - -// Float sets z, which may be nil, to x and returns z. -// -// The result is undefined if z is a NaN value. -func (x *Big) Float(z *big.Float) *big.Float { - if debug { - x.validate() - } - - if z == nil { - z = new(big.Float) - } - - switch x.form { - case finite, finite | signbit: - if x.isZero() { - z.SetUint64(0) - } else { - z.SetRat(x.Rat(nil)) - } - case pinf, ninf: - z.SetInf(x.form == pinf) - default: // snan, qnan, ssnan, sqnan: - z.SetUint64(0) - } - return z -} - -// Format implements the fmt.Formatter interface. -// -// The following verbs are supported: -// -// %s: -dddd.dd or -d.dddd±edd, depending on x -// %d: same as %s -// %v: same as %s -// %e: -d.dddd±edd -// %E: -d.dddd±Edd -// %f: -dddd.dd -// %g: same as %f -// -// While width is honored in the same manner as the fmt package (the minimum -// width of the formatted number), precision is the number of significant digits -// in the decimal number. Given %f, however, precision is the number of digits -// following the radix. -// -// Format honors all flags (such as '+' and ' ') in the same manner as the fmt -// package, except for '#'. Unless used in conjunction with %v, %q, or %p, the -// '#' flag will be ignored; decimals have no defined hexadeximal or octal -// representation. -// -// %+v, %#v, %T, %#p, and %p all honor the formats specified in the fmt -// package's documentation. -func (x *Big) Format(s fmt.State, c rune) { - if debug { - x.validate() - } - - prec, hasPrec := s.Precision() - if !hasPrec { - prec = x.Precision() - } - width, hasWidth := s.Width() - if !hasWidth { - width = noWidth - } - - var ( - hash = s.Flag('#') - dash = s.Flag('-') - lpZero = s.Flag('0') - lpSpace = width != noWidth && !dash && !lpZero - plus = s.Flag('+') - space = s.Flag(' ') - f = formatter{prec: prec, width: width} - e = sciE[x.Context.OperatingMode] - ) - - // If we need to left pad then we need to first write our - // string into an - // empty buffer. - tmpbuf := lpZero || lpSpace - if tmpbuf { - b := new(strings.Builder) - b.Grow(x.Precision()) - f.w = b - } else { - f.w = stateWrapper{s} - } - - if plus { - f.sign = '+' - } else if space { - f.sign = ' ' - } - - // noE is a placeholder for formats that do not use scientific notation - // and don't require 'e' or 'E' - const noE = 0 - switch c { - case 's', 'd': - f.format(x, normal, e) - case 'q': - // The fmt package's docs specify that the '+' flag - // "guarantee[s] ASCII-only output for %q (%+q)" - f.sign = 0 - - // Since no other escaping is needed we can do it ourselves and save - // whatever overhead running it through fmt.Fprintf would incur. - quote := byte('"') - if hash { - quote = '`' - } - f.WriteByte(quote) - f.format(x, normal, e) - f.WriteByte(quote) - case 'e', 'E': - f.format(x, sci, byte(c)) - case 'f', 'F': - if !hasPrec { - prec = 0 - } else { - // %f's precision means "number of digits after the radix" - if x.exp > 0 { - f.prec += (x.exp + x.Precision()) - } else { - if adj := x.exp + x.Precision(); adj > -f.prec { - f.prec += adj - } else { - f.prec = -f.prec - } - } - } - - f.format(x, plain, noE) - case 'g', 'G': - // %g's precision means "number of significant digits" - f.format(x, plain, noE) - - // Make sure we return from the following two cases. - case 'v': - // %v == %s - if !hash && !plus { - f.format(x, normal, e) - break - } - - // This is the easiest way of doing it. Note we can't use type Big Big, - // even though it's declared inside a function. Go thinks it's recursive. - // At least the fields are checked at compile time. - type Big struct { - Context Context - unscaled big.Int - compact uint64 - exp int - precision int - form form - } - specs := "" - if dash { - specs += "-" - } else if lpZero { - specs += "0" - } - if hash { - specs += "#" - } else if plus { - specs += "+" - } else if space { - specs += " " - } - fmt.Fprintf(s, "%"+specs+"v", (*Big)(x)) - return - default: - fmt.Fprintf(s, "%%!%c(*Big=%s)", c, x.String()) - return - } - - // Need padding out to width. - if f.n < int64(width) { - switch pad := int64(width) - f.n; { - case dash: - io.CopyN(s, spaceReader{}, pad) - case lpZero: - io.CopyN(s, zeroReader{}, pad) - case lpSpace: - io.CopyN(s, spaceReader{}, pad) - } - } - - if tmpbuf { - // fmt's internal state type implements stringWriter I think. - io.WriteString(s, f.w.(*strings.Builder).String()) - } -} - -// FMA sets z to (x * y) + u without any intermediate rounding. -func (z *Big) FMA(x, y, u *Big) *Big { - return z.Context.FMA(z, x, y, u) -} - -// Int sets z, which may be nil, to x, truncating the fractional -// portion (if any) and returns z. -// -// If x is an infinity or a NaN value the result is undefined. -func (x *Big) Int(z *big.Int) *big.Int { - if debug { - x.validate() - } - - if z == nil { - z = new(big.Int) - } - - if !x.IsFinite() { - return z - } - - if x.isCompact() { - z.SetUint64(x.compact) - } else { - z.Set(&x.unscaled) - } - if x.Signbit() { - z.Neg(z) - } - if x.exp == 0 { - return z - } - return bigScalex(z, z, x.exp) -} - -// Int64 returns x as an int64, truncating towards zero. -// -// The bool result indicates whether the conversion to an int64 -// was successful. -func (x *Big) Int64() (int64, bool) { - if debug { - x.validate() - } - - if !x.IsFinite() { - return 0, false - } - - // x might be too large to fit into an int64 *now*, but - // rescaling x might shrink it enough. See issue #20. - if !x.isCompact() { - xb := x.Int(nil) - return xb.Int64(), xb.IsInt64() - } - - u := x.compact - if x.exp != 0 { - var ok bool - if u, ok = scalex(u, x.exp); !ok { - return 0, false - } - } - su := int64(u) - if su >= 0 || x.Signbit() && su == -su { - if x.Signbit() { - su = -su - } - return su, true - } - return 0, false -} - -// Uint64 returns x as a uint64, truncating towards zero. -// -// The bool result indicates whether the conversion to a uint64 -// was successful. -func (x *Big) Uint64() (uint64, bool) { - if debug { - x.validate() - } - - if !x.IsFinite() || x.Signbit() { - return 0, false - } - - // x might be too large to fit into an uint64 *now*, but - // rescaling x might shrink it enough. See issue #20. - if !x.isCompact() { - xb := x.Int(nil) - return xb.Uint64(), xb.IsUint64() - } - - b := x.compact - if x.exp == 0 { - return b, true - } - return scalex(b, x.exp) -} - -// IsFinite reports whether x is finite. -func (x *Big) IsFinite() bool { - return x.form & ^signbit == 0 -} - -// IsNormal reports whether x is normal. -func (x *Big) IsNormal() bool { - return x.IsFinite() && x.adjusted() >= x.Context.emin() -} - -// IsSubnormal reports whether x is subnormal. -func (x *Big) IsSubnormal() bool { - return x.IsFinite() && x.adjusted() < x.Context.emin() -} - -// IsInf reports whether x is an infinity according to sign. -// If sign > 0, IsInf reports whether x is positive infinity. -// If sign < 0, IsInf reports whether x is negative infinity. -// If sign == 0, IsInf reports whether x is either infinity. -func (x *Big) IsInf(sign int) bool { - return sign >= 0 && x.form == pinf || sign <= 0 && x.form == ninf -} - -// IsNaN reports whether x is NaN. -// If sign > 0, IsNaN reports whether x is quiet NaN. -// If sign < 0, IsNaN reports whether x is signaling NaN. -// If sign == 0, IsNaN reports whether x is either NaN. -func (x *Big) IsNaN(quiet int) bool { - return quiet >= 0 && x.form&qnan == qnan || quiet <= 0 && x.form&snan == snan -} - -// IsInt reports whether x is an integer. -// -// Infinity and NaN values are not integers. -func (x *Big) IsInt() bool { - if debug { - x.validate() - } - - if !x.IsFinite() { - return false - } - - // 0, 5000, 40 - if x.isZero() || x.exp >= 0 { - return true - } - - xp := x.Precision() - exp := x.exp - - // 0.001 - // 0.5 - if -exp >= xp { - return false - } - - // 44.00 - // 1.000 - if x.isCompact() { - for v := x.compact; v%10 == 0; v /= 10 { - exp++ - } - // Avoid the overhead of copying x.unscaled if we know - // for a fact it's not an integer. - } else if x.unscaled.Bit(0) == 0 { - v := new(big.Int).Set(&x.unscaled) - r := new(big.Int) - for { - v.QuoRem(v, c.TenInt, r) - if r.Sign() != 0 { - break - } - exp++ - } - } - return exp >= 0 -} - -// Mantissa returns the mantissa of x and reports whether the -// mantissa fits into a uint64 and x is finite. -// -// This may be used to convert a decimal representing a monetary -// value to its most basic unit (e.g., $123.45 to 12345 cents). -func (x *Big) Mantissa() (uint64, bool) { - return x.compact, x.IsFinite() && x.compact != c.Inflated -} - -// MarshalText implements encoding.TextMarshaler. -func (x *Big) MarshalText() ([]byte, error) { - if debug { - x.validate() - } - if x == nil { - return []byte(""), nil - } - var ( - b = new(bytes.Buffer) - f = formatter{w: b, prec: x.Precision(), width: noWidth} - e = sciE[x.Context.OperatingMode] - ) - b.Grow(x.Precision()) - f.format(x, normal, e) - return b.Bytes(), nil -} - -// Max returns the greater of the provided values. -// -// The result is undefined if no values are are provided. -func Max(a, b *Big) *Big { - v := a.Cmp(b) - if v >= 0 { - return a - } - return b -} - -// MaxAbs returns the greater of the absolute value of the provided values. -// -// The result is undefined if no values are provided. -func MaxAbs(x ...*Big) *Big { - m := x[0] - for _, v := range x[1:] { - if v.CmpAbs(m) > 0 { - m = v - } - } - return m -} - -// Min returns the lesser of the provided values. -// -// The result is undefined if no values are are provided. -func Min(x ...*Big) *Big { - m := x[0] - for _, v := range x[1:] { - if v.Cmp(m) < 0 { - m = v - } - } - return m -} - -// MinAbs returns the lesser of the absolute value of the -// provided values. -// -// The result is undefined if no values are provided. -func MinAbs(x ...*Big) *Big { - m := x[0] - for _, v := range x[1:] { - if v.CmpAbs(m) < 0 { - m = v - } - } - return m -} - -// maxfor sets z to 999...n with the provided sign. -func maxfor(z *big.Int, n, sign int) { - arith.Sub(z, arith.BigPow10(uint64(n)), 1) - if sign < 0 { - z.Neg(z) - } -} - -// Mul sets z to x * y and returns z. -func (z *Big) Mul(x, y *Big) *Big { - return z.Context.Mul(z, x, y) -} - -// Neg sets z to -x and returns z. -// -// If x is positive infinity, z will be set to negative infinity -// and vice versa. If x == 0, z will be set to zero. It is an -// error if x is a NaN value -func (z *Big) Neg(x *Big) *Big { - return z.Context.Neg(z, x) -} - -// New creates a new Big decimal with the given value and scale. -// -// For example: -// -// New(1234, 3) // 1.234 -// New(42, 0) // 42 -// New(4321, 5) // 0.04321 -// New(-1, 0) // -1 -// New(3, -10) // 30 000 000 000 -// -func New(value int64, scale int) *Big { - return new(Big).SetMantScale(value, scale) -} - -// Payload returns the payload of x, provided x is a NaN value. -// -// If x is not a NaN value, the result is undefined. -func (x *Big) Payload() Payload { - if !x.IsNaN(0) { - return 0 - } - return Payload(x.compact) -} - -// Precision returns the number of digits in the unscaled form of -// x. -// -// x == 0 has a precision of 1. The result is undefined if x is -// not finite. -func (x *Big) Precision() int { - // Cannot call validate since validate calls this method. - if !x.IsFinite() { - return 0 - } - if x.precision == 0 { - return 1 - } - return x.precision -} - -// Quantize sets z to the number equal in value and sign to z -// with the scale, n. -// -// z is rounded according to z.Context.RoundingMode. To perform -// truncation, set z.Context.RoundingMode to ToZero. -func (z *Big) Quantize(n int) *Big { - return z.Context.Quantize(z, n) -} - -// Quo sets z to x / y and returns z. -func (z *Big) Quo(x, y *Big) *Big { - return z.Context.Quo(z, x, y) -} - -// QuoInt sets z to x / y with the remainder truncated. See QuoRem for more -// details. -func (z *Big) QuoInt(x, y *Big) *Big { - return z.Context.QuoInt(z, x, y) -} - -// QuoRem sets z to the quotient x / y and r to the remainder x % y, such that -// x = z * y + r, and returns the pair (z, r). -func (z *Big) QuoRem(x, y, r *Big) (*Big, *Big) { - return z.Context.QuoRem(z, x, y, r) -} - -// Rat sets z, which may be nil, to x and returns z. -// -// The result is undefined if x is an infinity or NaN value. -func (x *Big) Rat(z *big.Rat) *big.Rat { - if debug { - x.validate() - } - - if z == nil { - z = new(big.Rat) - } - - if !x.IsFinite() { - return z.SetInt64(0) - } - - // Fast path for decimals <= math.MaxInt64. - if x.IsInt() { - if u, ok := x.Int64(); ok { - // If profiled we can call scalex ourselves and save - // the overhead of calling Int64. But I doubt it'll - // matter much. - return z.SetInt64(u) - } - } - - num := new(big.Int) - if x.isCompact() { - num.SetUint64(x.compact) - } else { - num.Set(&x.unscaled) - } - if x.exp > 0 { - arith.MulBigPow10(num, num, uint64(x.exp)) - } - if x.Signbit() { - num.Neg(num) - } - - denom := c.OneInt - if x.exp < 0 { - denom = new(big.Int) - if shift, ok := arith.Pow10(uint64(-x.exp)); ok { - denom.SetUint64(shift) - } else { - denom.Set(arith.BigPow10(uint64(-x.exp))) - } - } - return z.SetFrac(num, denom) -} - -// Raw directly returns x's raw compact and unscaled values. -// -// Caveat emptor: neither are guaranteed to be valid. Raw is -// intended to support missing functionality outside this package -// and should generally be avoided. Additionally, Raw is the only -// part of this package's API that is not guaranteed to remain -// stable. This means the function could change or disappear at -// any time, even across minor version numbers. -func Raw(x *Big) (*uint64, *big.Int) { - return &x.compact, &x.unscaled -} - -// Reduce reduces a finite z to its most simplest form. -func (z *Big) Reduce() *Big { - return z.Context.Reduce(z) -} - -// Rem sets z to the remainder x % y. See QuoRem for more details. -func (z *Big) Rem(x, y *Big) *Big { - return z.Context.Rem(z, x, y) -} - -// Round rounds z down to n digits of precision and returns z. -// -// The result is undefined if z is not finite. No rounding will -// occur if n <= 0. The result of Round will always be in the -// interval [⌊10**p⌋, z] where p = the precision of z. -func (z *Big) Round(n int) *Big { - ctx := z.Context - ctx.Precision = n - return ctx.Round(z) -} - -// RoundToInt rounds z down to an integral value. -func (z *Big) RoundToInt() *Big { - return z.Context.RoundToInt(z) -} - -// SameQuantum reports whether x and y have the same exponent -// (scale). -func (x *Big) SameQuantum(y *Big) bool { - return x.Scale() == y.Scale() -} - -// SetSignbit sets z to -z if sign is true, otherwise to +z. -func (z *Big) SetSignbit(sign bool) *Big { - if sign { - z.form |= signbit - } else { - z.form &^= signbit - } - return z -} - -// Scale returns x's scale. -func (x *Big) Scale() int { - return -x.exp -} - -// Scan implements fmt.Scanner. -func (z *Big) Scan(state fmt.ScanState, verb rune) error { - return z.scan(byteReader{state}) -} - -// Set sets z to x and returns z. -// -// The result might be rounded depending on z.Context, even if -// z == x. -func (z *Big) Set(x *Big) *Big { - return z.Context.Set(z, x) -} - -// setShared sets z to x, but does not copy. -// -// z may possibly alias x. -func (z *Big) setShared(x *Big) *Big { - if debug { - x.validate() - } - - if z != x { - z.precision = x.Precision() - z.compact = x.compact - z.form = x.form - z.exp = x.exp - z.unscaled = x.unscaled - } - return z -} - -// SetBigMantScale sets z to the given value and scale. -func (z *Big) SetBigMantScale(value *big.Int, scale int) *Big { - // Do this first in case value == z.unscaled. Don't want to - // clobber the sign. - z.form = finite - if value.Sign() < 0 { - z.form |= signbit - } - - z.unscaled.Abs(value) - z.compact = c.Inflated - z.precision = arith.BigLength(value) - - if z.unscaled.IsUint64() { - if v := z.unscaled.Uint64(); v != c.Inflated { - z.compact = v - } - } - - z.exp = -scale - return z -} - -// SetFloat sets z to exactly x and returns z. -func (z *Big) SetFloat(x *big.Float) *Big { - if x.IsInf() { - if x.Signbit() { - z.form = ninf - } else { - z.form = pinf - } - return z - } - - neg := x.Signbit() - if x.Sign() == 0 { - if neg { - z.form |= signbit - } - z.compact = 0 - z.precision = 1 - return z - } - - z.exp = 0 - x0 := new(big.Float).Copy(x).SetPrec(big.MaxPrec) - x0.Abs(x0) - if !x.IsInt() { - for !x0.IsInt() { - x0.Mul(x0, c.TenFloat) - z.exp-- - } - } - - if mant, acc := x0.Uint64(); acc == big.Exact { - z.compact = mant - z.precision = arith.Length(mant) - } else { - z.compact = c.Inflated - x0.Int(&z.unscaled) - z.precision = arith.BigLength(&z.unscaled) - } - z.form = finite - if neg { - z.form |= signbit - } - return z -} - -// SetFloat64 sets z to exactly x. -func (z *Big) SetFloat64(x float64) *Big { - if x == 0 { - var sign form - if math.Signbit(x) { - sign = signbit - } - return z.setZero(sign, 0) - } - if math.IsNaN(x) { - var sign form - if math.Signbit(x) { - sign = signbit - } - return z.setNaN(0, qnan|sign, 0) - } - if math.IsInf(x, 0) { - if math.IsInf(x, 1) { - z.form = pinf - } else { - z.form = ninf - } - return z - } - - // The gist of the following is lifted from math/big/rat.go, - // but adapted for base-10 decimals. - - const expMask = 1<<11 - 1 - bits := math.Float64bits(x) - mantissa := bits & (1<<52 - 1) - exp := int((bits >> 52) & expMask) - if exp == 0 { // denormal - exp -= 1022 - } else { // normal - mantissa |= 1 << 52 - exp -= 1023 - } - - if mantissa == 0 { - return z.SetUint64(0) - } - - shift := 52 - exp - for mantissa&1 == 0 && shift > 0 { - mantissa >>= 1 - shift-- - } - - z.exp = 0 - z.form = finite | form(bits>>63) - - if shift > 0 { - z.unscaled.SetUint64(uint64(shift)) - z.unscaled.Exp(c.FiveInt, &z.unscaled, nil) - arith.Mul(&z.unscaled, &z.unscaled, mantissa) - z.exp = -shift - } else { - // TODO(eric): figure out why this doesn't work for - // _some_ numbers. See - // https://github.com/ericlagergren/decimal/issues/89 - // - // z.compact = mantissa << uint(-shift) - // z.precision = arith.Length(z.compact) - - z.compact = c.Inflated - z.unscaled.SetUint64(mantissa) - z.unscaled.Lsh(&z.unscaled, uint(-shift)) - } - return z.norm() -} - -// SetInf sets z to -Inf if signbit is set or +Inf is signbit is -// not set, and returns z. -func (z *Big) SetInf(signbit bool) *Big { - if signbit { - z.form = ninf - } else { - z.form = pinf - } - return z -} - -// SetMantScale sets z to the given value and scale. -func (z *Big) SetMantScale(value int64, scale int) *Big { - z.SetUint64(arith.Abs(value)) - z.exp = -scale - if value < 0 { - z.form |= signbit - } - return z -} - -// setNaN is an internal NaN-setting method that panics when the -// OperatingMode is Go. -func (z *Big) setNaN(c Condition, f form, p Payload) *Big { - z.form = f - z.compact = uint64(p) - z.Context.Conditions |= c - if z.Context.OperatingMode == Go { - panic(ErrNaN{Msg: z.Context.Conditions.String()}) - } - return z -} - -// SetNaN sets z to a signaling NaN if signal is true or quiet -// NaN otherwise and returns z. -// -// No conditions are raised. -func (z *Big) SetNaN(signal bool) *Big { - if signal { - z.form = snan - } else { - z.form = qnan - } - z.compact = 0 // payload - return z -} - -// SetRat sets z to to the possibly rounded value of x and -// returns z. -func (z *Big) SetRat(x *big.Rat) *Big { - return z.Context.SetRat(z, x) -} - -// SetScale sets z's scale to scale and returns z. -func (z *Big) SetScale(scale int) *Big { - z.exp = -scale - return z -} - -// Regexp matches any valid string representing a decimal that -// can be passed to SetString. -var Regexp = regexp.MustCompile(`(?i)(([+-]?(\d+\.\d*|\.?\d+)([eE][+-]?\d+)?)|(inf(infinity)?))|([+-]?([sq]?nan\d*))`) - -// SetString sets z to the value of s and returns z. -// -// s must have one of the following formats: -// -// 1.234 -// 1234 -// 1.234e+5 -// 1.234E-5 -// 0.000001234 -// Inf -// NaN -// qNaN -// sNaN -// -// Each format may be preceded by an optional sign, either "-" or -// "+". By default, "Inf" and "NaN" map to "+Inf" and "qNaN", -// respectively. NaN values may have optional diagnostic -// information, represented as trailing digits; for example, -// "NaN123". -// -// If s does not match one of the allowed formats, the -// ConversionSyntax condition is set. -// -// SetString will only return (nil, false) if a library error -// occurs. In general, it safe to ignore the bool result. -func (z *Big) SetString(s string) (*Big, bool) { - if err := z.scan(strings.NewReader(s)); err != nil { - return nil, false - } - return z, true -} - -func (z *Big) setTriple(compact uint64, sign form, exp int) *Big { - z.compact = compact - z.precision = arith.Length(compact) - z.exp = exp - z.form = finite | sign - return z -} - -func (z *Big) setZero(sign form, exp int) *Big { - z.compact = 0 - z.precision = 1 - z.exp = exp - z.form = finite | sign - return z -} - -// SetUint64 is shorthand for SetMantScale(x, 0) for an unsigned -// integer. -func (z *Big) SetUint64(x uint64) *Big { - z.compact = x - if x == c.Inflated { - z.unscaled.SetUint64(x) - } - z.precision = arith.Length(x) - z.exp = 0 - z.form = finite - return z -} - -// Sign returns: -// -// -1 if x < 0 -// 0 if x == 0 -// +1 if x > 0 -// -// No distinction is made between +0 and -0. The result is -// undefined if x is a NaN value. -func (x *Big) Sign() int { - if debug { - x.validate() - } - - if (x.IsFinite() && x.isZero()) || x.IsNaN(0) { - return 0 - } - if x.form&signbit != 0 { - return -1 - } - return 1 -} - -// Signbit reports whether x is negative, negative zero, negative -// infinity, or negative NaN. -func (x *Big) Signbit() bool { - if debug { - x.validate() - } - return x.form&signbit != 0 -} - -// String returns the string representation of x. -// -// It's equivalent to the %s verb discussed in the Format -// method's documentation. -// -// Special cases depend on the OperatingMode. -func (x *Big) String() string { - if x == nil { - return "" - } - var ( - b = new(strings.Builder) - f = formatter{w: b, prec: x.Precision(), width: noWidth} - e = sciE[x.Context.OperatingMode] - ) - b.Grow(x.Precision()) - f.format(x, normal, e) - return b.String() -} - -// Sub sets z to x - y and returns z. -func (z *Big) Sub(x, y *Big) *Big { - return z.Context.Sub(z, x, y) -} - -// UnmarshalJSON implements json.Unmarshaler. -func (z *Big) UnmarshalJSON(data []byte) error { - if len(data) >= 2 && data[0] == '"' && data[len(data)-1] == '"' { - data = data[1 : len(data)-1] - } - return z.UnmarshalText(data) -} - -// UnmarshalText implements encoding.TextUnmarshaler. -func (z *Big) UnmarshalText(data []byte) error { - return z.scan(bytes.NewReader(data)) -} - -// validate ensures x's internal state is correct. There's no need for it to -// have good performance since it's for debug == true only. -func (x *Big) validate() { - defer func() { - if err := recover(); err != nil { - pc, _, _, ok := runtime.Caller(4) - if caller := runtime.FuncForPC(pc); ok && caller != nil { - fmt.Println("called by:", caller.Name()) - } - type Big struct { - Context Context - unscaled big.Int - compact uint64 - exp int - precision int - form form - } - fmt.Printf("%#v\n", (*Big)(x)) - panic(err) - } - }() - switch x.form { - case finite, finite | signbit: - if x.isInflated() { - if x.unscaled.IsUint64() && x.unscaled.Uint64() != c.Inflated { - panic(fmt.Sprintf("inflated but unscaled == %d", x.unscaled.Uint64())) - } - if x.unscaled.Sign() < 0 { - panic("x.unscaled.Sign() < 0") - } - if bl, xp := arith.BigLength(&x.unscaled), x.precision; bl != xp { - panic(fmt.Sprintf("BigLength (%d) != x.Precision (%d)", bl, xp)) - } - } - if x.isCompact() { - if bl, xp := arith.Length(x.compact), x.Precision(); bl != xp { - panic(fmt.Sprintf("BigLength (%d) != x.Precision() (%d)", bl, xp)) - } - } - case snan, ssnan, qnan, sqnan, pinf, ninf: - // OK - case nan: - panic(x.form.String()) - default: - panic(fmt.Sprintf("invalid form %s", x.form)) - } -} diff --git a/vendor/github.com/ericlagergren/decimal/big_ctx.go b/vendor/github.com/ericlagergren/decimal/big_ctx.go deleted file mode 100644 index 3535589c..00000000 --- a/vendor/github.com/ericlagergren/decimal/big_ctx.go +++ /dev/null @@ -1,3193 +0,0 @@ -package decimal - -import ( - "math" - "math/big" - "math/bits" - - "github.com/ericlagergren/decimal/internal/arith" - cst "github.com/ericlagergren/decimal/internal/c" -) - -// Abs sets z to the absolute value of x and returns z. -func (c Context) Abs(z, x *Big) *Big { - if debug { - x.validate() - } - if !z.invalidContext(z.Context) && !z.checkNaNs(x, x, absvalue) { - c.finish(z.copyAbs(x)) - } - return z -} - -// Add sets z to x + y and returns z. -func (c Context) Add(z, x, y *Big) *Big { - if debug { - x.validate() - y.validate() - } - if z.invalidContext(c) { - return z - } - - if x.IsFinite() && y.IsFinite() { - z.form = c.add(z, x, x.form, y, y.form) - return c.finish(z) - } - - // NaN + NaN - // NaN + y - // x + NaN - if z.checkNaNs(x, y, addition) { - return z - } - - if x.form&inf != 0 { - if y.form&inf != 0 && x.form^y.form == signbit { - // +Inf + -Inf - // -Inf + +Inf - return z.setNaN(InvalidOperation, qnan, addinfinf) - } - // ±Inf + y - // +Inf + +Inf - // -Inf + -Inf - return c.Set(z, x) - } - // x + ±Inf - return c.Set(z, y) -} - -// add sets z to x + y, where x and y are both finite. -// -// The (*Big).form fields are ignored and must be provided as -// separate arguments in order to facilitate Context.Sub. -func (c Context) add(z, x *Big, xform form, y *Big, yform form) form { - // addCompact, addMixed, and addBig all require X be the - // "shifted" number, which means X must have the greater - // exponent. - hi, lo := x, y - hisign, losign := xform, yform - if hi.exp < lo.exp { - hi, lo = lo, hi - hisign, losign = losign, hisign - } - - if sign, ok := c.tryTinyAdd(z, hi, hisign, lo, losign); ok { - return sign - } - - var sign form - if hi.isCompact() { - if lo.isCompact() { - sign = c.addCompact(z, hi.compact, hisign, lo.compact, losign, uint64(hi.exp-lo.exp)) - } else { - sign = c.addMixed(z, &lo.unscaled, losign, lo.exp, hi.compact, hisign, hi.exp) - } - } else if lo.isCompact() { - sign = c.addMixed(z, &hi.unscaled, hisign, hi.exp, lo.compact, losign, lo.exp) - } else { - sign = c.addBig(z, &hi.unscaled, hisign, &lo.unscaled, losign, uint64(hi.exp-lo.exp)) - } - z.exp = lo.exp - return sign -} - -// tryTinyAdd attempts to set z to X + Y, but only if the -// addition requires such a large shift that the result of the -// addition would be the same if Y were replaced with a smaller -// value. -// -// For example, given -// -// X = 5 * 10^0 // 5 -// Y = 3 * 10^-99999 // 3e-99999 -// -// X would have to be shifted (multiplied) by -// -// shift = 10 ^ (0 - (-99999)) = -// 10 ^ (0 + 99999) = -// 10^99999 -// -// which is a *large* number. -// -// If the desired precision for the addition is 16, the end -// result will be -// rounded down to -// -// 5.0000000000000000 -// -// making the shift entirely useless. -// -// Instead, Y can be replaced with a smaller number that rounds -// down to the same result and avoids large shifts. -// -// tryTinyAdd reports whether the "tiny" addition was performed. -func (c Context) tryTinyAdd(z *Big, X *Big, Xsign form, Y *Big, Ysign form) (form, bool) { - if X.isZero() { - return 0, false - } - - exp := X.exp - 1 - if xp, zp := X.Precision(), c.precision(); xp <= zp { - exp += xp - zp - 1 - } - - if Y.adjusted() >= exp { - return 0, false - } - - var tiny uint64 - if Y.compact != 0 { - tiny = 1 - } - - var sign form - if X.isCompact() { - sign = c.addCompact(z, X.compact, Xsign, tiny, Ysign, uint64(X.exp-exp)) - } else { - sign = c.addMixed(z, &X.unscaled, Xsign, X.exp, tiny, Ysign, exp) - } - z.exp = exp - return sign, true -} - -// addCompact sets z to X + Y where -// -// X = X0 * 10^shift -// -// and returns the resulting signbit. -func (c Context) addCompact(z *Big, X0 uint64, Xsign form, Y uint64, Ysign form, shift uint64) form { - // Test whether X0 * 10^shift fits inside a uint64. If not, - // fall back to big.Ints. - X, ok := arith.MulPow10(X0, shift) - if !ok { - X0 := z.unscaled.SetUint64(X0) - X := arith.MulBigPow10(X0, X0, shift) - // Because hi was promoted to a big.Int, it by definition - // is larger than lo. - // - // Therefore, the resulting signbit is the same as hi's - // signbit. - // - // Furthermore, we do not need to check if the result of - // the operation is zero. - if Xsign == Ysign { - z.precision = arith.BigLength(arith.Add(&z.unscaled, X, Y)) - z.compact = cst.Inflated - } else { - arith.Sub(&z.unscaled, X, Y) - z.norm() - } - return Xsign - } - - // If the signs are the same, then X + Y = ℤ≠0. - if Ysign == Xsign { - if sum, c := bits.Add64(X, Y, 0); c == 0 { - z.compact = sum - if sum == cst.Inflated { - z.unscaled.SetUint64(cst.Inflated) - } - z.precision = arith.Length(z.compact) - } else { - arith.Set(&z.unscaled, c, sum) - z.precision = 20 - z.compact = cst.Inflated - } - return Xsign - } - - sign := Xsign - // X + (-Y) == X - Y == -(Y - X) - // (-X) + Y == Y - X == -(X - Y) - diff, b := bits.Sub64(X, Y, 0) - if b != 0 { - sign ^= signbit - diff = Y - X - } - - if diff != 0 { - z.compact = diff - z.precision = arith.Length(z.compact) - return sign - } - - sign = 0 - // On a zero result: - // - // Otherwise, the sign of a zero result is 0 unless either - // both operands were negative or the signs of the - // operands were different and the rounding is - // round-floor. - // - // http://speleotrove.com/decimal/daops.html#refaddsub - if c.RoundingMode == ToNegativeInf { - sign = Xsign ^ Ysign // either 0 or 1 - } - sign |= Xsign & Ysign - - z.compact = 0 - z.precision = 1 - return sign -} - -// addMixed sets z to X + Y where -// -// X = X * 10^shift -// -// and returns the resulting signbit. -func (c Context) addMixed(z *Big, X *big.Int, Xform form, xs int, Y uint64, Yform form, ys int) form { - if xs < ys { - shift := uint64(ys - xs) - Y0, ok := arith.MulPow10(Y, shift) - if !ok { - yb := alias(&z.unscaled, X).SetUint64(Y) - yb = arith.MulBigPow10(yb, yb, shift) - return c.addBig(z, X, Xform, yb, Yform, 0) - } - Y = Y0 - } else if xs > ys { - X = arith.MulBigPow10(&z.unscaled, X, uint64(xs-ys)) - } - - if Xform == Yform { - arith.Add(&z.unscaled, X, Y) - z.precision = arith.BigLength(&z.unscaled) - z.compact = cst.Inflated - } else { - // X > Y - arith.Sub(&z.unscaled, X, Y) - z.norm() - } - return Xform -} - -// addBig sets z to X + Y where -// -// X = X0 * 10^shift -// -// and returns the resulting signbit. -func (c Context) addBig(z *Big, X *big.Int, Xsign form, Y *big.Int, Ysign form, shift uint64) form { - // Guard the call so we don't allocate (via alias) if we don't need to. - if shift != 0 { - X = arith.MulBigPow10(alias(&z.unscaled, Y), X, shift) - } - - if Xsign == Ysign { - z.unscaled.Add(X, Y) - z.compact = cst.Inflated - z.precision = arith.BigLength(&z.unscaled) - return Xsign - } - - sign := Xsign - // X + (-Y) == X - Y == -(Y - X) - // (-X) + Y == Y - X == -(X - Y) - if X.Cmp(Y) >= 0 { - z.unscaled.Sub(X, Y) - } else { - sign ^= signbit - z.unscaled.Sub(Y, X) - } - - if z.unscaled.Sign() == 0 { - z.compact = 0 - z.precision = 1 - sign = 0 - if c.RoundingMode == ToNegativeInf { - sign = Xsign ^ Ysign // either 0 or 1 - } - return sign | Xsign&Ysign - } - - z.norm() - return sign -} - -// Acos returns the arccosine, in radians, of x. -// -// Range: -// Input: -1 <= x <= 1 -// Output: 0 <= Acos(x) <= pi -// -// Special cases: -// Acos(NaN) = NaN -// Acos(±Inf) = NaN -// Acos(x) = NaN if x < -1 or x > 1 -// Acos(-1) = pi -// Acos(1) = 0 -func (c Context) Acos(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, acos) { - return z - } - - cmp1 := cmpAbsInt(x, 1) - if x.IsInf(0) || cmp1 > 0 { - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - - if cmp1 == 0 { - if x.Signbit() { - return c.pi(z) - } - return z.SetUint64(0) - } - - ctx := c.dup() - ctx.Precision += defaultExtraPrecision - - // Acos(x) = pi/2 - arcsin(x) - - pi2 := ctx.pi2(getDec(ctx)) - ctx.Sub(z, pi2, ctx.Asin(z, x)) - putDec(pi2) - return c.finish(z) -} - -// Asin returns the arcsine, in radians, of x. -// -// Range: -// Input: -1 <= x <= 1 -// Output: -pi/2 <= Asin(x) <= pi/2 -// -// Special cases: -// Asin(NaN) = NaN -// Asin(±Inf) = NaN -// Asin(x) = NaN if x < -1 or x > 1 -// Asin(±1) = ±pi/2 -func (c Context) Asin(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, asin) { - return z - } - - cmp1 := cmpAbsInt(x, 1) - if x.IsInf(0) || cmp1 > 0 { - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - - if cmp1 == 0 { - c.pi2(z) - if x.Signbit() { - z.SetSignbit(true) - } - return z - } - - ctx := c.dup() - ctx.Precision += defaultExtraPrecision - - // Asin(x) = 2 * atan(x / (1 + sqrt(1 - x*x))) - - if z == x { - x = getDec(c).Copy(x) - defer putDec(x) - } - c.Mul(z, x, x) // x*x - ctx.Sub(z, one.get(), z) // 1 - x*x - ctx.Sqrt(z, z) // sqrt(1 - x*x) - ctx.Add(z, one.get(), z) // 1 + sqrt(1 - x*x) - ctx.Quo(z, x, z) // x / (1 + sqrt(1 - x*x)) - ctx.Atan(z, z) // atan(x / (1 + sqrt(1 - x*x))) - ctx.Mul(z, z, two.get()) // 2 * atan(x / (1 + sqrt(1 - x*x))) - - return c.finish(z) -} - -// Atan returns the arctangent, in radians, of x. -// -// Range: -// Input: all real numbers -// Output: -pi/2 <= Atan(x) <= pi/2 -// -// Special cases: -// Atan(NaN) = NaN -// Atan(±Inf) = ±x * pi/2 -func (c Context) Atan(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, atan) { - return z - } - - if x.IsInf(0) { - c.pi2(z) - z.form |= x.form & signbit - return z - } - - ctx := c.dup() - ctx.Precision += defaultExtraPrecision - - // when x <-1 we use -atan(-x) instead - if cmpInt(x, -1) < 0 { - z.CopyNeg(x) // -x - ctx.Atan(z, z) // atan(-x) - return c.Neg(z, z) // -atan(-x) - } - - y, ySq, ySqPlus1, segment, halved := ctx.prepAtan(z, x) // z == y, maybe. - result := BinarySplitDynamic(c, - func(_ uint64) *Big { return y }, - ctx.getAtanP(ySq), - func(_ uint64) *Big { return one.get() }, - ctx.getAtanQ(ySqPlus1), - ) - - // undo the double angle part - tmp := ctx.Pow(ySq, two.get(), z.SetMantScale(int64(halved), 0)) // clobber ySq - ctx.Mul(z, result, tmp) - - // to handle the argument reduction step - // check which segment the value was from - // seg 0: 0 < value <= sqrt(3)/3 // then result = result - // seg 1: sqrt(3)/3 < value <= 1 // then result = pi/6 + result - // set 2: 1 < value // then result = pi/2 - result - switch segment { - case 1: - piOver6 := c.pi(tmp) // clobber _2p - ctx.Quo(piOver6, piOver6, six.get()) - ctx.Add(z, piOver6, z) - case 2: - ctx.Sub(z, ctx.pi2(tmp), z) // clobber _2p - } - return c.finish(z) -} - -var sqrt3_3 = New(577350, 6) // sqrt(3) / 3 - -func (c Context) prepAtan(z, x *Big) (y, ySq, ySqPlus1 *Big, segment, halved int) { - c.Precision += defaultExtraPrecision - - if x == z { - x = getDec(c).Copy(x) - defer putDec(x) - } - - // since smaller values converge faster - // we'll use argument reduction - // if |x| > 1 then set x = 1/x - segment = 0 - switch { - case cmpAbsInt(x, 1) > 0: - segment = 2 - c.Quo(z, one.get(), x) - case x.CmpAbs(sqrt3_3) > 0: - // if |x| > sqrt(3)/3 (approximated to 0.577350) - segment = 1 - - // then set x = (sqrt(3)*x-1)/(sqrt(3)+x) - sqrt3 := c.sqrt3(new(Big)) - c.Mul(z, sqrt3, x) // sqrt(3) * x - c.Sub(z, z, one.get()) // sqrt(3)*x - 1 - c.Add(sqrt3, sqrt3, x) // sqrt(3) + x - c.Quo(z, z, sqrt3) // (sqrt(3)*x - 1) / (sqrt(3) + x) - default: - z.Copy(x) - } - - // next we'll use argument halving technic - // atan(y) = 2 atan(y/(1+sqrt(1+y^2))) - // we'll repeat this up to a point - // we have competing operations at some - // point the sqrt causes a problem - // note (http://fredrikj.net/blog/2014/12/faster-high-ctx-Atangents/) - // suggests that r= 8 times is a good value for - // precision with 1000s of digits to millions - // however it was easy to determine there is a - // better sliding window to use instead - // which is what we use as it turns out - // when the ctx is large, a larger r value - // compared to 8 is every effective - xf, _ := z.Float64() - xf = math.Abs(xf) - // the formula simple but works a bit better then a fixed value (8) - r := math.Max(0, math.Ceil(0.31554321636851*math.Pow(float64(c.Precision), 0.654095561044508))) - var p float64 - - // maxPrec is the largest precision value we can use bit shifts instead of - // math.Pow which is more expensive. - const maxPrec = 3286 - if c.Precision <= maxPrec { - p = 1 / float64(uint64(1)< 0 - if n == 0 { - return one.get() - } - if n < math.MaxUint64/2 { - p.SetUint64(n * 2) - } else { - c.Mul(&p, p.SetUint64(n), two.get()) - } - return c.Mul(&p, &p, x2) - } -} - -func (c Context) getAtanQ(x2p1 *Big) SplitFunc { - var q Big - return func(n uint64) *Big { - // B(n) = (2n+1) for all n >= 0 - - // atanMax is the largest number we can use to compute (2n + 1) without - // overflow. - const atanMax = (math.MaxUint64 - 1) / 2 - if n < atanMax { - q.SetUint64((2 * n) + 1) - } else { - c.FMA(&q, q.SetUint64(n), two.get(), one.get()) - } - return c.Mul(&q, &q, x2p1) - } -} - -// Atan2 calculates arctan of y/x and uses the signs of y and x to determine -// the valid quadrant -// -// Range: -// y input: all real numbers -// x input: all real numbers -// Output: -pi < Atan2(y, x) <= pi -// -// Special cases: -// Atan2(NaN, NaN) = NaN -// Atan2(y, NaN) = NaN -// Atan2(NaN, x) = NaN -// Atan2(±0, x >=0) = ±0 -// Atan2(±0, x <= -0) = ±pi -// Atan2(y > 0, 0) = +pi/2 -// Atan2(y < 0, 0) = -pi/2 -// Atan2(±Inf, +Inf) = ±pi/4 -// Atan2(±Inf, -Inf) = ±3pi/4 -// Atan2(y, +Inf) = 0 -// Atan2(y > 0, -Inf) = +pi -// Atan2(y < 0, -Inf) = -pi -// Atan2(±Inf, x) = ±pi/2 -// Atan2(y, x > 0) = Atan(y/x) -// Atan2(y >= 0, x < 0) = Atan(y/x) + pi -// Atan2(y < 0, x < 0) = Atan(y/x) - pi -func (c Context) Atan2(z, y, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, atan) { - return z - } - - ctx := c.dup() - ctx.Precision += defaultExtraPrecision - - switch { - // Special values. - case x.isSpecial(), x.isZero(), y.isSpecial(), y.isZero(): - // Save the signbit in case z == y. - sb := y.form & signbit - ctx.atan2Specials(z, x, y) - z.form |= sb - default: - ctx.Atan(z, ctx.Quo(z, y, x)) - if x.Sign() < 0 { - pi := ctx.pi(getDec(ctx)) - if z.Sign() <= 0 { - ctx.Add(z, z, pi) - } else { - ctx.Sub(z, z, pi) - } - putDec(pi) - } - } - return c.finish(z) -} - -// atan2Specials handles atan2 special cases. -// -// Rounding and sign handling are performed by Atan2. -func (c Context) atan2Specials(z, x, y *Big) *Big { - xs := x.Sign() - if y.Sign() == 0 { - if xs >= 0 && !x.Signbit() { - // Atan2(0, x >= +0) = ±0 - return z.setZero(0, 0) - } - // Atan2(0, x <= -0) = ±pi - return c.pi(z) - } - if xs == 0 { - // Atan2(y, 0) = ±pi/2 - return c.pi2(z) - } - if x.IsInf(0) { - if x.IsInf(+1) { - if y.IsInf(0) { - // Atan2(±Inf, +Inf) = ±pi/4 - return c.Quo(z, c.pi(z), four.get()) - } - // Atan2(y, +Inf) = ±0 - return z.SetUint64(0) - } - if y.IsInf(0) { - // Atan2(±Inf, -Inf) = ±3 * pi/4 - c.Quo(z, c.pi(z), four.get()) - return c.Mul(z, z, three.get()) - } - // Atan2(y, -Inf) = ±pi - return c.pi(z) - } - if y.IsInf(0) { - // Atan2(±Inf, x) = ±pi/2 - return c.pi2(z) - } - panic("unreachable") -} - -// Cos returns the cosine, in radians, of x. -// -// Range: -// Input: all real numbers -// Output: -1 <= Cos(x) <= 1 -// -// Special cases: -// Cos(NaN) = NaN -// Cos(±Inf) = NaN -func (c Context) Cos(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, sin) { - return z - } - - if x.IsInf(0) { - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - - ctx := c.dup() - ctx.Precision += defaultExtraPrecision - - negXSq, halved, ok := ctx.prepCosine(z, x) - if !ok { - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - - ctx.Precision += halved - z.Copy(BinarySplitDynamic(ctx, - func(_ uint64) *Big { return one.get() }, - getCosineP(negXSq), - func(_ uint64) *Big { return one.get() }, - ctx.getCosineQ(), - )) - - // now undo the half angle bit - for i := 0; i < halved; i++ { - ctx.Mul(z, z, z) - ctx.Mul(z, z, two.get()) - ctx.Sub(z, z, one.get()) - } - - return c.finish(z) -} - -func (c Context) prepCosine(z, x *Big) (*Big, int, bool) { - if z == x { - x = getDec(c).Copy(x) - defer putDec(x) - } - - var tmp Big - var twoPi Big - - // For better results, we need to make sure the value we're - // working with a value is closer to zero. - c.Mul(&twoPi, c.pi(&twoPi), two.get()) // 2 * Pi - if x.CmpAbs(&twoPi) >= 0 { - // For cos to work correctly the input must be in (-2Pi, - // 2Pi). - c.Quo(&tmp, x, &twoPi) - v, ok := tmp.Int64() - if !ok { - return nil, 0, false - } - uv := arith.Abs(v) - - // Adjust so we have ceil(v/10) + ctx.Precision, but check for overflows. - // 1+((v-1)/10) will be wildly incorrect for v == 0, but x/y = 0 iff - // x = 0 and y != 0. In this case, -2pi <= x >= 2pi, so we're fine. - prec, carry := bits.Add64(1+((uv-1)/10), uint64(c.Precision), 0) - if carry != 0 || prec > arith.MaxInt { - return nil, 0, false - } - pctx := Context{Precision: int(prec)} - - if uv <= math.MaxInt64/2 { - tmp.SetMantScale(v, 0) - } - - pctx.Mul(&tmp, &twoPi, &tmp) - - // so toRemove = 2*Pi*v so x - toRemove < 2*Pi - c.Sub(z, x, &tmp) - } else { - z.Copy(x) - } - - // add 1 to the precision for the up eventual squaring. - c.Precision++ - - // now preform the half angle. - // we'll repeat this up to log(precision)/log(2) and keep track - // since we'll be dividing x we need to give a bit more precision - // we'll be repeated applying the double angle formula - // we could use a higher angle formula but wouldn't buy us anything. - // Each time we half we'll have to increase the values precision by 1 - // and since we'll dividing at most 11 time that means at most 11 digits - // but we'll figure out the minimum time we'll apply the double angle - // formula - - // we'll we reduce until it's x <= p where p= 1/2^8 (approx 0.0039) - // we figure out the number of time to divide by solving for r - // in x/p = 2^r so r = log(x/p)/log(2) - - xf, _ := z.Float64() - // We only need to do the calculation if xf >= 0.0004. Anything below that - // and we're <= 0. - var halved int - if xf = math.Abs(xf); xf >= 0.0004 { - // Originally: ceil(log(xf/0.0048828125) / ln2) - halved = int(math.Ceil(1.4427*math.Log(xf) + 11)) - // The general case is halved > 0, since we only get 0 if xf is very - // close to 0.0004. - if halved > 0 { - // Increase the precision based on the number of divides. Overflow is - // unlikely, but possible. - c.Precision += halved - if c.Precision <= halved { - return nil, 0, false - } - // The maximum value for halved will be 14, given - // ceil(1.4427*log(2*pi)+11) = 14 - c.Quo(z, z, tmp.SetUint64(1< 0 - if n == 0 { - return one.get() - } - - // most of the time n will be a small number so - // use the fastest method to calculate 2n(2n-1) - const cosine4NMaxN = 2147483648 - if n < cosine4NMaxN { - // ((n*n) << 2) - (n << 1) - return q.SetUint64((2 * n) * (2*n - 1)) - } - q.SetUint64(n) - c.Mul(&tmp, &q, two.get()) - c.Mul(&q, &tmp, &tmp) - return c.Sub(&q, &q, &tmp) - } -} - -// Ceil sets z to the least integer value greater than or equal -// to x and returns z. -func (c Context) Ceil(z, x *Big) *Big { - // ceil(x) = -floor(-x) - return c.Neg(z, c.Floor(z, z.CopyNeg(x))) -} - -// E sets z to the mathematical constant e and returns z. -func (c Context) E(z *Big) *Big { - if c.Precision <= constPrec { - return c.Set(z, _E.get()) - } - - var ( - sum = z.SetUint64(2) - fac = new(Big).SetUint64(1) - term = new(Big) - prev = new(Big) - ) - - ctx := c - ctx.Precision += 5 - for i := uint64(2); sum.Cmp(prev) != 0; i++ { - // Use term as our intermediate storage for our - // factorial. SetUint64 should be marginally faster than - // ctx.Add(incr, incr, one), but either the costly call - // to Quo makes it difficult to notice. - term.SetUint64(i) - ctx.Mul(fac, fac, term) - ctx.Quo(term, one.get(), fac) - prev.Copy(sum) - ctx.Add(sum, sum, term) - } - return ctx.Set(z, sum) -} - -// Exp sets z to e**x and returns z. -func (c Context) Exp(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, exp) { - return z - } - - if x.IsInf(0) { - if x.IsInf(+1) { - // e ** +Inf = +Inf - return z.SetInf(false) - } - // e ** -Inf = 0 - return z.SetUint64(0) - } - - if x.isZero() { - // e ** 0 = 1 - return z.SetUint64(1) - } - - z = c.exp(z, x) - if z.IsFinite() && z.Sign() != 0 && z.Precision() < c.Precision { - s := c.Precision - z.Precision() - c.shiftl(z, uint64(s)) - z.exp -= s - } - return c.finish(z) -} - -func (c Context) exp(z, x *Big) *Big { - if getmsd(x, 1) == 0 { - return z.SetMantScale(1, 0) - } - - t := x.Precision() + x.exp - if t < 0 { - t = 0 - } - const expMax = 19 - if t > expMax { - z.Context.Conditions |= Inexact | Rounded - if x.Signbit() { - z.Context.Conditions |= Subnormal | Underflow | Clamped - return z.SetMantScale(0, -c.etiny()) - } - z.Context.Conditions |= Overflow - return z.SetInf(false) - } - - // |x| <= 9 * 10**-(prec + 1) - lim := z - if lim == x { - lim = getDec(c) - defer putDec(lim) - } - lim.SetMantScale(9, c.Precision+1) - if x.CmpAbs(lim) <= 0 { - z.Context.Conditions |= Rounded | Inexact - return z.SetMantScale(1, 0) - } - - if x.IsInt() { - if v, ok := x.Uint64(); ok && v == 1 { - // e ** 1 = e - return c.E(z) - } - } - - // Argument reduction: - // exp(x) = e**r ** 10**k where x = r * 10**k - z.Copy(x) - z.exp -= t - - // TODO(eric): figure out if it's possible to make Horner's - // method faster than continued fractions for small - // precisions. - if false && c.Precision <= 300 { - c.expSmall(z, t) - } else { - c.expLarge(z, t) - } - return z -} - -// expSmall returns exp(z) using Horner's scheme. -// -// The algorithm is taken from "Variable precision exponential -// function." by T. E. Hull and A. Abrham. 1986. -// https://dl.acm.org/doi/10.1145/6497.6498 -func (c Context) expSmall(z *Big, t int) *Big { - p := c.Precision + t + 2 - if p < 10 { - p = 10 - } - c.Precision = p - - pbyr := (arith.Length(uint64(p)) - 1) - (z.adjusted() + 1) - n := int(math.Ceil((1.435*float64(p) - 1.182) / float64(pbyr))) - if n < 3 { - n = 3 - } - - var tmp Big - var sum Big - sum.SetMantScale(1, 0) // sum := 1 - for i := n - 1; i >= 1; i-- { - tmp.SetMantScale(int64(i), 0) - c.Quo(&tmp, z, &tmp) // r/i - c.FMA(&sum, &sum, &tmp, one.get()) // sum = sum*(r/i) + 1 - } - w, _ := arith.Pow10(uint64(t)) // t in [0, 19] - return c.powUint64(z, &sum, w) -} - -// expLarge returns exp(z) using continued fractions. -func (c Context) expLarge(z *Big, t int) *Big { - c.Precision += t + 3 - if c.Precision < 10 { - c.Precision = 10 - } - g := expg{ - ctx: c, - z: z, - pow: c.Mul(getDec(c), z, z), - t: Term{ - A: getDec(c), - B: getDec(c), - }, - } - - c.Wallis(z, &g) - - putDec(g.pow) - putDec(g.t.A) - putDec(g.t.B) - - if t != 0 { - w, _ := arith.Pow10(uint64(t)) // t <= 19 - c.powUint64(z, z, w) - } - return z -} - -// expg is a Generator that computes exp(z). -type expg struct { - ctx Context - z *Big // Input value - pow *Big // z*z - m uint64 // Term number - t Term // Term storage. Does not need to be manually set. -} - -var _ Walliser = (*expg)(nil) - -func (e *expg) Context() Context { - return e.ctx -} - -func (e *expg) Next() bool { - return true -} - -func (e *expg) Wallis() (a, a1, b, b1, p, eps *Big) { - a = new(Big) - a1 = new(Big) - b = new(Big) - b1 = new(Big) - p = new(Big) - eps = New(1, e.ctx.Precision) - return a, a1, b, b1, p, eps -} - -func (e *expg) Term() Term { - // exp(z) can be expressed as the following continued fraction - // - // e^z = 1 + 2z - // ------------------------------ - // 2 - z + z^2 - // ---------------------- - // 6 + z^2 - // ------------------ - // 10 + z^2 - // ------------- - // 14 + z^2 - // -------- - // ... - // - // (Khov, p 114) - // - // which can be represented as - // - // 2z z^2 / 6 ∞ - // 1 + ----- --------- K ((a_m^z^2) / 1), z ∈ ℂ - // 2-z + 1 + m=3 - // - // where - // - // a_m = 1 / (4 * (2m - 3) * (2m - 1)) - // - // which can be simplified to - // - // a_m = 1 / (16 * (m-1)^2 - 4) - // - // (Cuyt, p 194). - // - // References: - // - // [Cuyt] - Cuyt, A.; Petersen, V.; Brigette, V.; Waadeland, H.; Jones, W.B. - // (2008). Handbook of Continued Fractions for Special Functions. Springer - // Netherlands. https://doi.org/10.1007/978-1-4020-6949-9 - // - // [Khov] - Merkes, E. P. (1964). The Application of Continued Fractions and - // Their Generalizations to Problems in Approximation Theory - // (A. B. Khovanskii). SIAM Review, 6(2), 188–189. - // https://doi.org/10.1137/1006052 - - switch e.m { - // [0, 1] - case 0: - e.t.A.SetUint64(0) - e.t.B.SetUint64(1) - // [2z, 2-z] - case 1: - e.ctx.Mul(e.t.A, two.get(), e.z) - e.ctx.Sub(e.t.B, two.get(), e.z) - // [z^2/6, 1] - case 2: - e.ctx.Quo(e.t.A, e.pow, six.get()) - e.t.B.SetUint64(1) - // [(1/(16((m-1)^2)-4))(z^2), 1] - default: - // maxM is the largest m value we can use to compute 4(2m - 3)(2m - 1) - // using unsigned integers. - const maxM = 1518500252 - - // 4(2m - 3)(2m - 1) ≡ 16(m - 1)^2 - 4 - if e.m <= maxM { - e.t.A.SetUint64(16*((e.m-1)*(e.m-1)) - 4) - } else { - e.t.A.SetUint64(e.m - 1) - - // (m-1)^2 - e.ctx.Mul(e.t.A, e.t.A, e.t.A) - - // 16 * (m-1)^2 - 4 = 16 * (m-1)^2 + (-4) - e.ctx.FMA(e.t.A, sixteen.get(), e.t.A, negFour.get()) - } - - // 1 / (16 * (m-1)^2 - 4) - e.ctx.Quo(e.t.A, one.get(), e.t.A) - - // (1 / (16 * (m-1)^2 - 4)) * (z^2) - e.ctx.Mul(e.t.A, e.t.A, e.pow) - - // e.t.B is set to 1 inside case 2. - } - - e.m++ - return e.t -} - -// Floor sets z to the greatest integer value less than or equal -// to x and returns z. -func (c Context) Floor(z, x *Big) *Big { - if z.CheckNaNs(x, nil) { - return z - } - c.RoundingMode = ToNegativeInf - return c.RoundToInt(z.Copy(x)) -} - -// FMA sets z to (x * y) + u without any intermediate rounding. -func (c Context) FMA(z, x, y, u *Big) *Big { - if z.invalidContext(c) { - return z - } - // Create a temporary receiver if z == u so we handle the - // z.FMA(x, y, z) without clobbering z partway through. - z0 := z - if z == u { - z0 = WithContext(c) - } - c.mul(z0, x, y) - if z0.Context.Conditions&InvalidOperation != 0 { - return z.setShared(z0) - } - c.Add(z0, z0, u) - return z.setShared(z0) -} - -// Hypot sets z to Sqrt(p*p + q*q) and returns z. -func (c Context) Hypot(z, p, q *Big) *Big { - if z.CheckNaNs(p, q) { - return z - } - - ctx := c.dup() - ctx.Precision++ - - p0 := getDec(ctx) - ctx.Mul(p0, p, p) - - if p == q { - ctx.Sqrt(z, ctx.Add(z, p0, p0)) - } else { - q0 := getDec(ctx) - ctx.Mul(q0, q, q) - ctx.Sqrt(z, ctx.Add(z, p0, q0)) - putDec(q0) - } - putDec(p0) - - return c.finish(z) -} - -// Log sets z to the natural logarithm of x and returns z. -func (c Context) Log(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, log10) { - return z - } - if logSpecials(z, x) { - return z - } - return c.finish(c.log(z, x, false)) -} - -// Log10 sets z to the common logarithm of x and returns z. -func (c Context) Log10(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, log10) { - return z - } - - if logSpecials(z, x) { - return z - } - - // If x is a power of 10 the result is the exponent and exact. - var tpow bool - if x.isCompact() { - tpow = arith.PowOfTen(x.compact) - } else { - tpow = arith.PowOfTenBig(&x.unscaled) - } - if tpow { - z.SetMantScale(int64(x.adjusted()), 0) - return c.finish(z) - } - return c.finish(c.log(z, x, true)) -} - -// logSpecials checks for special values (Inf, NaN, 0) for -// logarithms. -func logSpecials(z, x *Big) bool { - if s := x.Sign(); s <= 0 { - if s == 0 { - // log 0 = -Inf - z.SetInf(true) - } else { - // log -x is undefined. - z.Context.Conditions |= InvalidOperation - z.SetNaN(false) - } - return true - } - - if x.IsInf(+1) { - // log +Inf = +Inf - z.SetInf(false) - return true - } - return false -} - -// log set z to log(x), or log10(x) if ten. -func (c Context) log(z, x *Big, ten bool) *Big { - if x.IsInt() { - if v, ok := x.Uint64(); ok { - switch v { - case 1: - // ln 1 = 0 - return z.SetMantScale(0, 0) - case 10: - // Specialized function. - return c.ln10(z) - } - } - } - - t := int64(x.adjusted()) - if t < 0 { - t = -t - 1 - } - t *= 2 - - if arith.Length(arith.Abs(t))-1 > c.emax() { - z.Context.Conditions |= Overflow | Inexact | Rounded - return z.SetInf(t < 0) - } - - // Argument reduction: - // Given - // ln(a) = ln(b) + ln(c), where a = b * c - // Given - // x = m * 10**n, where x ∈ ℝ - // Reduce x (as y) so that - // 1 <= y < 10 - // And create p so that - // x = y * 10**p - // Compute - // log(y) + p*log(10) - - // At ~750 digits of precision, continued fractions become - // faster. - small := c.precision() < 750 - if ten || !small { - c.Precision = c.precision() + arith.Length(uint64(c.precision()+x.Precision())) + 5 - } - - var p int64 - if small { - p = c.logSmall(z, x) - } else { - p = c.logLarge(z, x) - } - - if p != 0 || ten { - wctx := c - wctx.Precision = c.precision() + 1 - t := wctx.ln10Taylor(getDec(c)) - - // Avoid doing unnecessary work. - switch p { - case 0: - // OK - case -1: - wctx.Sub(z, z, t) // (-1 * t) + z = -t + z = z - t - case 1: - wctx.Add(z, t, z) // (+1 * t) + z = t + z - default: - tmp := getDec(c) - tmp.SetMantScale(p, 0) - wctx.FMA(z, tmp, t, z) - putDec(tmp) - } - - // We're calculating log10(x): - // log10(x) = log(x) / log(10) - if ten { - wctx.Quo(z, z, t) - } - putDec(t) - } - - z.Context.Conditions |= Inexact | Rounded - return z -} - -// logSmall sets z = ln(x) for "small" precisions. -// -// The algorithm comes from libmpdec, which is under the BSD -// 2-clause license. -func (c Context) logSmall(z, x *Big) int64 { - v := getDec(c).Copy(x) - - d := getmsd(v, 3) - if d < 10 { - d *= 10 - } - if d < 100 { - d *= 10 - } - d -= 100 - - xp := x.Precision() - xs := x.exp - - z.SetMantScale(int64(lnapprox[d]), 3) - - var k int - if d <= 400 { - v.exp = -(xp - 1) - k = xs + xp - 1 - } else { - v.exp = -xp - k = xs + xp - z.CopyNeg(z) - } - - prec := c.precision() + 2 - - tmp := getDec(c) - - if k == 0 && (d <= 15 || d >= 800) { - maxCtx.Sub(tmp, v, one.get()) - if tmp.IsNaN(0) { - putDec(v) - putDec(tmp) - - z.Context.Conditions |= Inexact | Rounded - z.SetNaN(false) - return 0 - } - cmp := cmpInt(v, 1) - if cmp < 0 { - tmp.exp++ - } - if tmp.adjusted() < c.etiny() { - m := int64(1) - if cmp < 0 { - m = -1 - } - z.SetMantScale(m, c.etiny()-1) - } - tmp.exp-- - if tmp.adjusted() < 0 { - prec -= tmp.adjusted() - } - } - - s := sched(2, prec) - for i := len(s) - 1; i >= 0; i-- { - vctx := c - vctx.Precision = 2*s[i] + 3 - vctx.RoundingMode = ToZero - - z.form ^= signbit - vctx.exp(tmp, z) - z.form ^= signbit - - if tmp.Precision() > vctx.Precision { - vctx.Round(tmp) - } - vctx.Mul(tmp, tmp, v) - - maxCtx.Sub(tmp, tmp, one.get()) - maxCtx.Add(z, z, tmp) - if !z.IsFinite() { - break - } - } - - wctx := Context{Precision: prec + 1} - v = wctx.ln10Taylor(v) - tmp.SetMantScale(int64(k), 0) - maxCtx.Mul(v, v, tmp) - maxCtx.Add(z, z, v) - - putDec(v) - putDec(tmp) - return 0 -} - -var lnapprox = []uint16{ - // index 0 - 400: log((i+100)/100) * 1000 - 0, 10, 20, 30, 39, 49, 58, 68, 77, 86, 95, 104, 113, 122, 131, 140, 148, 157, - 166, 174, 182, 191, 199, 207, 215, 223, 231, 239, 247, 255, 262, 270, 278, - 285, 293, 300, 308, 315, 322, 329, 336, 344, 351, 358, 365, 372, 378, 385, - 392, 399, 406, 412, 419, 425, 432, 438, 445, 451, 457, 464, 470, 476, 482, - 489, 495, 501, 507, 513, 519, 525, 531, 536, 542, 548, 554, 560, 565, 571, - 577, 582, 588, 593, 599, 604, 610, 615, 621, 626, 631, 637, 642, 647, 652, - 658, 663, 668, 673, 678, 683, 688, 693, 698, 703, 708, 713, 718, 723, 728, - 732, 737, 742, 747, 751, 756, 761, 766, 770, 775, 779, 784, 788, 793, 798, - 802, 806, 811, 815, 820, 824, 829, 833, 837, 842, 846, 850, 854, 859, 863, - 867, 871, 876, 880, 884, 888, 892, 896, 900, 904, 908, 912, 916, 920, 924, - 928, 932, 936, 940, 944, 948, 952, 956, 959, 963, 967, 971, 975, 978, 982, - 986, 990, 993, 997, 1001, 1004, 1008, 1012, 1015, 1019, 1022, 1026, 1030, - 1033, 1037, 1040, 1044, 1047, 1051, 1054, 1058, 1061, 1065, 1068, 1072, 1075, - 1078, 1082, 1085, 1089, 1092, 1095, 1099, 1102, 1105, 1109, 1112, 1115, 1118, - 1122, 1125, 1128, 1131, 1135, 1138, 1141, 1144, 1147, 1151, 1154, 1157, 1160, - 1163, 1166, 1169, 1172, 1176, 1179, 1182, 1185, 1188, 1191, 1194, 1197, 1200, - 1203, 1206, 1209, 1212, 1215, 1218, 1221, 1224, 1227, 1230, 1233, 1235, 1238, - 1241, 1244, 1247, 1250, 1253, 1256, 1258, 1261, 1264, 1267, 1270, 1273, 1275, - 1278, 1281, 1284, 1286, 1289, 1292, 1295, 1297, 1300, 1303, 1306, 1308, 1311, - 1314, 1316, 1319, 1322, 1324, 1327, 1330, 1332, 1335, 1338, 1340, 1343, 1345, - 1348, 1351, 1353, 1356, 1358, 1361, 1364, 1366, 1369, 1371, 1374, 1376, 1379, - 1381, 1384, 1386, 1389, 1391, 1394, 1396, 1399, 1401, 1404, 1406, 1409, 1411, - 1413, 1416, 1418, 1421, 1423, 1426, 1428, 1430, 1433, 1435, 1437, 1440, 1442, - 1445, 1447, 1449, 1452, 1454, 1456, 1459, 1461, 1463, 1466, 1468, 1470, 1472, - 1475, 1477, 1479, 1482, 1484, 1486, 1488, 1491, 1493, 1495, 1497, 1500, 1502, - 1504, 1506, 1509, 1511, 1513, 1515, 1517, 1520, 1522, 1524, 1526, 1528, 1530, - 1533, 1535, 1537, 1539, 1541, 1543, 1545, 1548, 1550, 1552, 1554, 1556, 1558, - 1560, 1562, 1564, 1567, 1569, 1571, 1573, 1575, 1577, 1579, 1581, 1583, 1585, - 1587, 1589, 1591, 1593, 1595, 1597, 1599, 1601, 1603, 1605, 1607, 1609, - // index 401 - 899: -log((i+100)/1000) * 1000 - 691, 689, 687, 685, 683, 681, 679, 677, 675, 673, 671, 669, 668, 666, 664, - 662, 660, 658, 656, 654, 652, 650, 648, 646, 644, 642, 641, 639, 637, 635, - 633, 631, 629, 627, 626, 624, 622, 620, 618, 616, 614, 612, 611, 609, 607, - 605, 603, 602, 600, 598, 596, 594, 592, 591, 589, 587, 585, 583, 582, 580, - 578, 576, 574, 573, 571, 569, 567, 566, 564, 562, 560, 559, 557, 555, 553, - 552, 550, 548, 546, 545, 543, 541, 540, 538, 536, 534, 533, 531, 529, 528, - 526, 524, 523, 521, 519, 518, 516, 514, 512, 511, 509, 508, 506, 504, 502, - 501, 499, 498, 496, 494, 493, 491, 489, 488, 486, 484, 483, 481, 480, 478, - 476, 475, 473, 472, 470, 468, 467, 465, 464, 462, 460, 459, 457, 456, 454, - 453, 451, 449, 448, 446, 445, 443, 442, 440, 438, 437, 435, 434, 432, 431, - 429, 428, 426, 425, 423, 422, 420, 419, 417, 416, 414, 412, 411, 410, 408, - 406, 405, 404, 402, 400, 399, 398, 396, 394, 393, 392, 390, 389, 387, 386, - 384, 383, 381, 380, 378, 377, 375, 374, 372, 371, 370, 368, 367, 365, 364, - 362, 361, 360, 358, 357, 355, 354, 352, 351, 350, 348, 347, 345, 344, 342, - 341, 340, 338, 337, 336, 334, 333, 331, 330, 328, 327, 326, 324, 323, 322, - 320, 319, 318, 316, 315, 313, 312, 311, 309, 308, 306, 305, 304, 302, 301, - 300, 298, 297, 296, 294, 293, 292, 290, 289, 288, 286, 285, 284, 282, 281, - 280, 278, 277, 276, 274, 273, 272, 270, 269, 268, 267, 265, 264, 263, 261, - 260, 259, 258, 256, 255, 254, 252, 251, 250, 248, 247, 246, 245, 243, 242, - 241, 240, 238, 237, 236, 234, 233, 232, 231, 229, 228, 227, 226, 224, 223, - 222, 221, 219, 218, 217, 216, 214, 213, 212, 211, 210, 208, 207, 206, 205, - 203, 202, 201, 200, 198, 197, 196, 195, 194, 192, 191, 190, 189, 188, 186, - 185, 184, 183, 182, 180, 179, 178, 177, 176, 174, 173, 172, 171, 170, 168, - 167, 166, 165, 164, 162, 161, 160, 159, 158, 157, 156, 154, 153, 152, 151, - 150, 148, 147, 146, 145, 144, 143, 142, 140, 139, 138, 137, 136, 135, 134, - 132, 131, 130, 129, 128, 127, 126, 124, 123, 122, 121, 120, 119, 118, 116, - 115, 114, 113, 112, 111, 110, 109, 108, 106, 105, 104, 103, 102, 101, 100, - 99, 98, 97, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 84, 83, 82, 81, 80, 79, - 78, 77, 76, 75, 74, 73, 72, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, - 58, 57, 56, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, - 38, 37, 36, 35, 34, 33, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, - 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, -} - -func sched(init, max int) []int { - if max < 2 || init < 2 { - panic("bad input") - } - if max <= init { - return nil - } - list := make([]int, 64) - k := max - for i := range list { - k = (k + 2) / 2 - list[i] = k - i++ - if k <= init { - list = list[:i] - break - } - } - return list -} - -func (c Context) logLarge(z, x *Big) int64 { - var p int64 - switch { - // 1e+1000 - case x.Scale() <= 0: - p = int64(x.Precision() - x.Scale() - 1) - // 0.0001 - case x.Scale() >= x.Precision(): - p = -int64(-x.exp - x.Precision() + 1) - c.Precision = int(float64(c.precision()) * 1.5) - // 12.345 - default: - p = int64(-x.Scale() + x.Precision() - 1) - } - - // Rescale to 1 <= x < 10 - y := new(Big).Copy(x) - y.exp = -(x.Precision() - 1) - - // Continued fraction algorithm is for log(1+x) - c.Sub(y, y, one.get()) - g := lgen{ - ctx: c, - pow: c.Mul(new(Big), y, y), - z2: c.Add(new(Big), y, two.get()), - k: -1, - t: Term{A: new(Big), B: new(Big)}, - } - c.Quo(z, c.Mul(y, y, two.get()), c.Wallis(z, &g)) - return p -} - -type lgen struct { - ctx Context - pow *Big // z*z - z2 *Big // z+2 - k int64 - t Term -} - -func (l *lgen) Context() Context { - return l.ctx -} - -func (l *lgen) Wallis() (a, a1, b, b1, p, eps *Big) { - a = WithContext(l.ctx) - a1 = WithContext(l.ctx) - b = WithContext(l.ctx) - b1 = WithContext(l.ctx) - p = WithContext(l.ctx) - eps = New(1, l.ctx.Precision) - return a, a1, b, b1, p, eps -} - -func (a *lgen) Next() bool { - return true -} - -func (a *lgen) Term() Term { - // log(z) can be expressed as the following continued fraction: - // - // 2z 1^2 * z^2 2^2 * z^2 3^2 * z^2 4^2 * z^2 - // ----------- ----------- ----------- ----------- ----------- - // 1 * (2+z) - 3 * (2+z) - 5 * (2+z) - 7 * (2+z) - 9 * (2+z) - ··· - // - // (Cuyt, p 271). - // - // References: - // - // [Cuyt] - Cuyt, A.; Petersen, V.; Brigette, V.; Waadeland, H.; Jones, W.B. - // (2008). Handbook of Continued Fractions for Special Functions. Springer - // Netherlands. https://doi.org/10.1007/978-1-4020-6949-9 - - a.k += 2 - if a.k != 1 { - a.t.A.SetMantScale(-((a.k / 2) * (a.k / 2)), 0) - a.ctx.Mul(a.t.A, a.t.A, a.pow) - } - a.t.B.SetMantScale(a.k, 0) - a.ctx.Mul(a.t.B, a.t.B, a.z2) - return a.t -} - -// ln10 sets z to log(10) and returns z. -func (c Context) ln10(z *Big) *Big { - prec := c.precision() - if prec <= constPrec { - // Copy takes 1/2 the time as ctx.Set since there's no rounding and in - // most of our algorithms we just need >= prec. - return z.Copy(_Ln10.get()) - } - - ctx := Context{Precision: prec + 10} - g := lgen{ - ctx: ctx, - pow: eightyOne.get(), // 9 * 9 - z2: eleven.get(), // 9 + 2 - k: -1, - t: Term{A: new(Big), B: new(Big)}, - } - ctx.Quo(z, eighteen.get() /* 9 * 2 */, ctx.Wallis(z, &g)) - - return c.finish(z) -} - -func (c Context) ln10Taylor(z *Big) *Big { - prec := c.precision() - - z.Copy(_Ln10.get()) - if prec <= constPrec { - return z - } - var ( - tmp Big - wctx Context - uctx = ContextUnlimited - ) - // N[ln(10), 25] = N[ln(10), 5] + (exp(-N[ln(10), 5]) * 10 - 1) - // ln(10) + (exp(-ln(10)) * 10 - 1) - for p := bits.Len(uint(prec+2)) + 99; ; p *= 2 { - wctx.Precision = p + 5 - z.SetSignbit(true) - wctx.Exp(&tmp, z) - z.SetSignbit(false) - uctx.Add(z, z, wctx.FMA(&tmp, ten.get(), &tmp, negOne.get())) - if !z.IsFinite() || p >= prec+2 { - break - } - } - return z -} - -// Mul sets z to x * y and returns z. -func (c Context) Mul(z, x, y *Big) *Big { - if z.invalidContext(c) { - return z - } - return c.finish(c.mul(z, x, y)) -} - -// mul is the implementation of Mul. -func (c Context) mul(z, x, y *Big) *Big { - if debug { - x.validate() - y.validate() - } - - sign := x.form&signbit ^ y.form&signbit - - if x.IsFinite() && y.IsFinite() { - z.form = finite | sign - z.exp = x.exp + y.exp - - // Multiplication is simple, so inline it. - if x.isCompact() { - if y.isCompact() { - hi, lo := bits.Mul64(x.compact, y.compact) - if hi == 0 { - z.compact = lo - if lo == cst.Inflated { - z.unscaled.SetUint64(cst.Inflated) - } - z.precision = arith.Length(lo) - return z - } - arith.Set(&z.unscaled, hi, lo) - } else { // y.isInflated - arith.Mul(&z.unscaled, &y.unscaled, x.compact) - } - } else if y.isCompact() { // x.isInflated - arith.Mul(&z.unscaled, &x.unscaled, y.compact) - } else { - z.unscaled.Mul(&x.unscaled, &y.unscaled) - } - return z.norm() - } - - // NaN * NaN - // NaN * y - // x * NaN - if z.checkNaNs(x, y, multiplication) { - return z - } - - if (x.IsInf(0) && !y.isZero()) || - (y.IsInf(0) && !x.isZero()) || - (y.IsInf(0) && x.IsInf(0)) { - // ±Inf * y - // x * ±Inf - // ±Inf * ±Inf - return z.SetInf(sign != 0) - } - - // 0 * ±Inf - // ±Inf * 0 - return z.setNaN(InvalidOperation, qnan, mul0inf) -} - -// Neg sets z to -x and returns z. -// -// If x is positive infinity, z will be set to negative infinity -// and vice versa. If x == 0, z will be set to zero. It is an -// error if x is a NaN value -func (c Context) Neg(z, x *Big) *Big { - if debug { - x.validate() - } - if !z.invalidContext(c) && !z.checkNaNs(x, x, negation) { - xform := x.form // copy in case z == x - z.copyAbs(x) - if !z.IsFinite() || z.compact != 0 || c.RoundingMode == ToNegativeInf { - z.form = xform ^ signbit - } - } - return c.finish(z) -} - -// NextMinus sets z to the smallest representable number that's -// smaller than x and returns z. -// -// If x is negative infinity the result will be negative -// infinity. If the result is zero its sign will be negative and -// its scale will be MinScale. -func (c Context) NextMinus(z, x *Big) *Big { - if debug { - x.validate() - } - if z.checkNaNs(x, x, nextminus) { - return z - } - - if x.IsInf(0) { - if x.IsInf(-1) { - return z.SetInf(true) - } - m := &z.unscaled - maxfor(m, c.precision(), +1) - return z.SetBigMantScale(m, -c.etop()) - } - - c.RoundingMode = ToNegativeInf - c.Set(z, x) - c.Sub(z, x, new(Big).SetMantScale(1, -c.etiny()+1)) - z.Context.Conditions &= c.Conditions - return z -} - -// NextPlus sets z to the largest representable number that's -// larger than x and returns z. -// -// If x is positive infinity the result will be positive -// infinity. If the result is zero it will be positive and its -// scale will be MaxScale. -func (c Context) NextPlus(z, x *Big) *Big { - if debug { - x.validate() - } - if z.checkNaNs(x, x, nextminus) { - return z - } - - if x.IsInf(0) { - if x.IsInf(+1) { - return z.SetInf(false) - } - m := &z.unscaled - maxfor(m, c.precision(), -1) - return z.SetBigMantScale(m, -c.etop()) - } - - c.RoundingMode = ToPositiveInf - c.Set(z, x) - c.Add(z, x, new(Big).SetMantScale(1, -c.etiny()+1)) - z.Context.Conditions &= c.Conditions - return z -} - -// pi2 sets z to the mathematical constant pi / 2 and returns z. -func (c Context) pi2(z *Big) *Big { - if c.Precision <= constPrec { - return c.Set(z, _Pi2.get()) - } - return c.Quo(z, c.pi(z), two.get()) -} - -// pi sets z to the mathematical constant pi and returns z. -func (c Context) pi(z *Big) *Big { - if c.Precision <= constPrec { - return c.Set(z, _Pi.get()) - } - return c.piChudnovskyBrothers(z) -} - -// Pi sets z to the mathematical constant pi and returns z. -func (c Context) Pi(z *Big) *Big { - return c.pi(z) -} - -func (c Context) getPiA() func(n uint64) *Big { - return func(n uint64) *Big { - // returns A + Bn - var tmp Big - tmp.SetUint64(n) - c.Mul(&tmp, _545140134.get(), &tmp) - c.Add(&tmp, _13591409.get(), &tmp) - return &tmp - } -} - -func (c Context) getPiP() func(n uint64) *Big { - var tmp0, tmp1, tmp2, cn, c6n, c2n Big - return func(n uint64) *Big { - // returns (5-6n)(2n-1)(6n-1) - - if n == 0 { - return one.get() - } - - // we'll choose to do normal integer math when small enough - if n < 504103 { - return New((5-6*int64(n))*(2*int64(n)-1)*(6*int64(n)-1), 0) - } - - cn.SetUint64(n) - c.Mul(&c6n, &cn, six.get()) - c.Mul(&c2n, &cn, two.get()) - - c.Sub(&tmp0, five.get(), &c6n) - c.Sub(&tmp1, &c2n, one.get()) - c.Sub(&tmp2, &c6n, one.get()) - - var tmp Big - c.Mul(&tmp, &tmp0, &tmp1) - c.Mul(&tmp, &tmp, &tmp2) - - return &tmp - } -} - -func getPiB() func(n uint64) *Big { - return func(n uint64) *Big { - return one.get() - } -} - -func (c Context) getPiQ() func(n uint64) *Big { - // returns (0) = 1, q(n) = (n^3)(C^3)/24 for n > 0 - // (C^3)/24 = 10939058860032000 - return func(n uint64) *Big { - if n == 0 { - return WithContext(c).SetUint64(1) - } - - var nn, tmp Big - // When n is super small we can be super fast. - if n < 12 { - tmp.SetUint64(n * n * n * 10939058860032000) - return &tmp - } - - // And until bit larger we can still speed up a portion. - if n < 2642246 { - tmp.SetUint64(n * n * n) - } else { - nn.SetUint64(n) - c.Mul(&tmp, &nn, &nn) - c.Mul(&tmp, &tmp, &nn) - } - c.Mul(&tmp, &tmp, _10939058860032000.get()) - - return &tmp - } -} - -// piChudnovskyBrothers calculates PI using binary splitting on the series -// definition of the Chudnovsky Brothers' algorithm for computing pi. -// -// 426880*sqrt(10005) -// Pi = -------------------------------- -// 13591409*aSum + 545140134*bSum -// -// where -// 24(6n-5)(2n-1)(6n-1) -// a_n = ---------------------- -// (640320^3)*n^3 -// -// and -// aSum = sum_(n=0)^n a_n -// bSum = sum_(n=0)^n a_n*n -// -// a(n) = 1, -// b(n) = 1, -// p(0) = 1, p(n) = (13591409 + 545140134n)(5 − 6n)(2n − 1)(6n − 1), -// q(0) = 1, q(n) = (n^3)(640320^3)/24 for n > 0 -// -func (c Context) piChudnovskyBrothers(z *Big) *Big { - // Since this algorithm's rate of convergence is static, calculating the - // number of iteration required will always be faster than the dynamic - // method of binarysplit. - - calcPrec := c.Precision + 16 - niters := uint64(math.Ceil(float64(calcPrec)/14)) + 1 - ctx2 := Context{Precision: calcPrec} - - var value Big - BinarySplit(&value, ctx2, 0, niters, - ctx2.getPiA(), ctx2.getPiP(), getPiB(), ctx2.getPiQ()) - - var tmp Big - ctx2.Sqrt(&tmp, _10005.get()) - ctx2.Mul(&tmp, _426880.get(), &tmp) - ctx2.Quo(z, &tmp, &value) - - return c.finish(z) -} - -// TODO(eric): (c Context) Pow(z, x, y, m *Big) *Big - -// Pow sets z to x**y and returns z. -func (c Context) Pow(z, x, y *Big) *Big { - if z.CheckNaNs(x, y) { - return z - } - - if s := x.Sign(); s <= 0 { - if s == 0 { - if y.Sign() == 0 { - // 0 ** 0 is undefined - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - if y.Signbit() { - // 0 ** -y = +Inf - return z.SetInf(true) - } - // 0 ** y = 0 - return z.SetUint64(0) - } - if s < 0 && (!y.IsInt() || y.IsInf(0)) { - // -x ** y.vvv is undefined - // -x ** ±Inf is undefined - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - } - - if x.IsInf(0) { - switch y.Sign() { - case +1: - // ±Inf ** y = +Inf - return z.SetInf(false) - case -1: - // ±Inf ** -y = 0 - return z.SetUint64(0) - case 0: - // ±Inf ** 0 = 1 - return z.SetUint64(1) - } - } - - if y.Sign() == 0 { - // x ** 0 = 1 - return z.SetUint64(1) - } - - if y.Cmp(ptFive.get()) == 0 { - // x ** 0.5 = sqrt(x) - return c.Sqrt(z, x) - } - - if y.IsInt() { - c.powInt(z, x, y) - } else { - c.powDec(z, x, y) - } - return c.finish(z) -} - -// powInt sets z = x**y for the integer y. -func (c Context) powInt(z, x, y *Big) *Big { - ctx := Context{ - Precision: c.precision() + y.Precision() - y.Scale() + 2, - } - - if yy, ok := y.Uint64(); ok { - return ctx.powUint64(z, x, yy) - } - - x0 := getDec(ctx) - if y.Signbit() { - ctx.Precision++ - ctx.Quo(x0, one.get(), x) - } else { - x0.Copy(x) - } - z.SetUint64(1) - sign := x.Signbit() - - y0 := y.Int(nil) - sign = sign && y0.Bit(0) == 1 - y0.Abs(y0) - for y0.Sign() != 0 { - if y0.Bit(0) != 0 { - ctx.Mul(z, z, x0) - if !z.IsFinite() || z.Sign() == 0 || - z.Context.Conditions&Clamped != 0 { - z.Context.Conditions |= Underflow | Subnormal - sign = false - break - } - } - y0.Rsh(y0, 1) - ctx.Mul(x0, x0, x0) - if x0.IsNaN(0) { - putDec(x0) - z.Context.Conditions |= x0.Context.Conditions - return z.SetNaN(false) - } - } - putDec(x0) - return z.SetSignbit(sign) -} - -// powUint64 sets z = x**y. -func (c Context) powUint64(z, x *Big, y uint64) *Big { - x0 := getDec(c).Copy(x) - - z.SetUint64(1) - sign := x.Signbit() && y&1 == 1 - for y != 0 { - if y&1 != 0 { - c.Mul(z, z, x0) - if !z.IsFinite() || z.Sign() == 0 || - z.Context.Conditions&Clamped != 0 { - z.Context.Conditions |= Underflow | Subnormal - sign = false - break - } - } - y >>= 1 - c.Mul(x0, x0, x0) - if x0.IsNaN(0) { - putDec(x0) - z.Context.Conditions |= x0.Context.Conditions - return z.SetNaN(false) - } - } - putDec(x0) - - z.SetSignbit(sign) - return z -} - -// powDec sets z = x**y for a decimal y. -func (c Context) powDec(z, x, y *Big) *Big { - if z == y { - y = getDec(c).Copy(y) - defer putDec(y) - } - neg := x.Signbit() - if neg { - x = getDec(c).CopyAbs(x) - defer putDec(x) - } - - work := c - work.Precision = max(x.Precision(), c.precision()) + 4 + 19 - work.Exp(z, work.Mul(z, y, work.Log(z, x))) - if neg && z.IsFinite() { - z.CopyNeg(z) - } - return z -} - -// Quantize sets z to the number equal in value and sign to z with the scale, n. -// -// In order to perform truncation, set the Context's RoundingMode to ToZero. -func (c Context) Quantize(z *Big, n int) *Big { - if debug { - z.validate() - } - if z.invalidContext(c) { - return z - } - - n = -n - if z.isSpecial() { - if z.form&inf != 0 { - return z.setNaN(InvalidOperation, qnan, quantinf) - } - z.checkNaNs(z, z, quantization) - return z - } - - if n > c.emax() || n < c.etiny() { - return z.setNaN(InvalidOperation, qnan, quantminmax) - } - - if z.isZero() { - z.exp = n - return z - } - - shift := z.exp - n - if z.Precision()+shift > c.precision() { - return z.setNaN(InvalidOperation, qnan, quantprec) - } - - z.exp = n - if shift == 0 { - return z - } - - if shift < 0 { - z.Context.Conditions |= Rounded - } - - m := c.RoundingMode - neg := z.form & signbit - if z.isCompact() { - if shift > 0 { - if zc, ok := arith.MulPow10(z.compact, uint64(shift)); ok { - return z.setTriple(zc, neg, n) - } - // shift < 0 - } else if yc, ok := arith.Pow10(uint64(-shift)); ok { - z.quo(m, z.compact, neg, yc, 0) - return z - } - z.unscaled.SetUint64(z.compact) - z.compact = cst.Inflated - } - - if shift > 0 { - arith.MulBigPow10(&z.unscaled, &z.unscaled, uint64(shift)) - z.precision = arith.BigLength(&z.unscaled) - } else { - var r big.Int - z.quoBig(m, &z.unscaled, neg, arith.BigPow10(uint64(-shift)), 0, &r) - } - return z -} - -// Quo sets z to x / y and returns z. -func (c Context) Quo(z, x, y *Big) *Big { - if debug { - x.validate() - y.validate() - } - if z.invalidContext(c) { - return z - } - - sign := (x.form & signbit) ^ (y.form & signbit) - if x.isSpecial() || y.isSpecial() { - // NaN / NaN - // NaN / y - // x / NaN - if z.checkNaNs(x, y, division) { - return z - } - - if x.form&inf != 0 { - if y.form&inf != 0 { - // ±Inf / ±Inf - return z.setNaN(InvalidOperation, qnan, quoinfinf) - } - // ±Inf / y - return z.SetInf(sign != 0) - } - // x / ±Inf - z.Context.Conditions |= Clamped - return z.setZero(sign, c.etiny()) - } - - if y.isZero() { - if x.isZero() { - // 0 / 0 - return z.setNaN(InvalidOperation|DivisionUndefined, qnan, quo00) - } - // x / 0 - z.Context.Conditions |= DivisionByZero - return z.SetInf(sign != 0) - } - if x.isZero() { - // 0 / y - return c.fix(z.setZero(sign, x.exp-y.exp)) - } - - var ( - ideal = x.exp - y.exp // preferred exponent. - m = c.RoundingMode - yp = y.Precision() // stored since we might decrement it. - zp = c.precision() // stored because of overhead. - ) - if zp == UnlimitedPrecision { - m = unnecessary - zp = x.Precision() + int(math.Ceil(10*float64(yp)/3)) - } - - if x.isCompact() && y.isCompact() { - if cmpNorm(x.compact, x.Precision(), y.compact, yp) { - yp-- - } - - shift := zp + yp - x.Precision() - z.exp = (x.exp - y.exp) - shift - expadj := ideal - z.exp - if shift > 0 { - if sx, ok := arith.MulPow10(x.compact, uint64(shift)); ok { - if z.quo(m, sx, x.form, y.compact, y.form) && expadj > 0 { - c.simpleReduce(z) - } - return z - } - xb := z.unscaled.SetUint64(x.compact) - xb = arith.MulBigPow10(xb, xb, uint64(shift)) - yb := new(big.Int).SetUint64(y.compact) - rb := new(big.Int) - if z.quoBig(m, xb, x.form, yb, y.form, rb) && expadj > 0 { - c.simpleReduce(z) - } - return z - } - if shift < 0 { - if sy, ok := arith.MulPow10(y.compact, uint64(-shift)); ok { - if z.quo(m, x.compact, x.form, sy, y.form) && expadj > 0 { - c.simpleReduce(z) - } - return z - } - yb := z.unscaled.SetUint64(y.compact) - yb = arith.MulBigPow10(yb, yb, uint64(-shift)) - xb := new(big.Int).SetUint64(x.compact) - rb := new(big.Int) - if z.quoBig(m, xb, x.form, yb, y.form, rb) && expadj > 0 { - c.simpleReduce(z) - } - return z - } - if z.quo(m, x.compact, x.form, y.compact, y.form) && expadj > 0 { - c.simpleReduce(z) - } - return z - } - - xb, yb := &x.unscaled, &y.unscaled - if x.isCompact() { - xb = new(big.Int).SetUint64(x.compact) - } else if y.isCompact() { - yb = new(big.Int).SetUint64(y.compact) - } - - if cmpNormBig(&z.unscaled, xb, x.Precision(), yb, yp) { - yp-- - } - - shift := zp + yp - x.Precision() - z.exp = (x.exp - y.exp) - shift - - var tmp *big.Int - if shift > 0 { - tmp = alias(&z.unscaled, yb) - xb = arith.MulBigPow10(tmp, xb, uint64(shift)) - } else if shift < 0 { - tmp = alias(&z.unscaled, xb) - yb = arith.MulBigPow10(tmp, yb, uint64(-shift)) - } else { - tmp = new(big.Int) - } - - expadj := ideal - z.exp - if z.quoBig(m, xb, x.form, yb, y.form, alias(tmp, &z.unscaled)) && expadj > 0 { - c.simpleReduce(z) - } - return z -} - -func (z *Big) quo(m RoundingMode, x uint64, xneg form, y uint64, yneg form) bool { - z.form = xneg ^ yneg - z.compact = x / y - z.precision = arith.Length(z.compact) - - r := x % y - if r == 0 { - return true - } - - z.Context.Conditions |= Inexact | Rounded - if m == ToZero { - return false - } - - rc := 1 - if hi, lo := bits.Mul64(r, 2); hi == 0 { - rc = arith.Cmp(lo, y) - } - - if m == unnecessary { - z.setNaN(InvalidOperation|InvalidContext|InsufficientStorage, qnan, quotermexp) - return false - } - - if m.needsInc(z.compact&1 != 0, rc, xneg == yneg) { - z.Context.Conditions |= Rounded - z.compact++ - - // Test to see if we accidentally increased precision because of rounding. - // For example, given n = 17 and RoundingMode = ToNearestEven, rounding - // - // 0.9999999999999999994284 - // - // results in - // - // 0.99999999999999999 (precision = 17) - // - // which is rounded up to - // - // 1.00000000000000000 (precision = 18) - if arith.Length(z.compact) != z.precision { - z.compact /= 10 - z.exp++ - } - } - return false -} - -func (z *Big) quoBig( - m RoundingMode, - x *big.Int, xneg form, - y *big.Int, yneg form, - r *big.Int, -) bool { - z.compact = cst.Inflated - z.form = xneg ^ yneg - - q, r := z.unscaled.QuoRem(x, y, r) - if r.Sign() == 0 { - z.norm() - return true - } - - z.Context.Conditions |= Inexact | Rounded - if m == ToZero { - z.norm() - return false - } - - var rc int - rv := r.Uint64() - // Drop into integers if possible. - if r.IsUint64() && y.IsUint64() && rv <= math.MaxUint64/2 { - rc = arith.Cmp(rv*2, y.Uint64()) - } else { - rc = r.Mul(r, cst.TwoInt).CmpAbs(y) - } - - if m == unnecessary { - z.setNaN(InvalidOperation|InvalidContext|InsufficientStorage, qnan, quotermexp) - return false - } - - if m.needsInc(q.Bit(0) != 0, rc, xneg == yneg) { - z.Context.Conditions |= Rounded - z.precision = arith.BigLength(q) - arith.Add(q, q, 1) - if arith.BigLength(q) != z.precision { - q.Quo(q, cst.TenInt) - z.exp++ - } - } - z.norm() - return false -} - -// QuoInt sets z to x / y with the remainder truncated. See QuoRem for more -// details. -func (c Context) QuoInt(z, x, y *Big) *Big { - if debug { - x.validate() - y.validate() - } - if z.invalidContext(c) { - return z - } - - sign := (x.form & signbit) ^ (y.form & signbit) - if x.IsFinite() && y.IsFinite() { - if y.isZero() { - if x.isZero() { - // 0 / 0 - return z.setNaN(InvalidOperation|DivisionUndefined, qnan, quo00) - } - // x / 0 - z.Context.Conditions |= DivisionByZero - return z.SetInf(sign != 0) - } - if x.isZero() { - // 0 / y - return c.fix(z.setZero(sign, 0)) - } - z, _ = c.quorem(z, nil, x, y) - z.exp = 0 - if z.Precision() > c.precision() { - return z.setNaN(DivisionImpossible, qnan, quointprec) - } - return z - } - - // NaN / NaN - // NaN / y - // x / NaN - if z.checkNaNs(x, y, division) { - return z - } - - if x.form&inf != 0 { - if y.form&inf != 0 { - // ±Inf / ±Inf - return z.setNaN(InvalidOperation, qnan, quoinfinf) - } - // ±Inf / y - return z.SetInf(sign != 0) - } - // x / ±Inf - return z.setZero(sign, 0) -} - -// QuoRem sets z to the quotient x / y and r to the remainder x % y, such that -// x = z * y + r, and returns the pair (z, r). -func (c Context) QuoRem(z, x, y, r *Big) (*Big, *Big) { - if debug { - x.validate() - y.validate() - } - if z.invalidContext(c) { - r.invalidContext(c) - return z, r - } - - sign := (x.form & signbit) ^ (y.form & signbit) - if x.IsFinite() && y.IsFinite() { - if y.isZero() { - if x.isZero() { - // 0 / 0 - z.setNaN(InvalidOperation|DivisionUndefined, qnan, quo00) - r.setNaN(InvalidOperation|DivisionUndefined, qnan, quo00) - } - // x / 0 - z.Context.Conditions |= DivisionByZero - r.Context.Conditions |= DivisionByZero - return z.SetInf(sign != 0), r.SetInf(x.Signbit()) - } - if x.isZero() { - // 0 / y - z.setZero((x.form^y.form)&signbit, 0) - r.setZero(x.form, y.exp-x.exp) - return c.fix(z), c.fix(r) - } - return c.quorem(z, r, x, y) - } - - // NaN / NaN - // NaN / y - // x / NaN - if z.checkNaNs(x, y, division) { - return z, r.Set(z) - } - - if x.form&inf != 0 { - if y.form&inf != 0 { - // ±Inf / ±Inf - z.setNaN(InvalidOperation, qnan, quoinfinf) - return z, r.Set(z) - } - // ±Inf / y - return z.SetInf(sign != 0), r.SetInf(x.form&signbit != 0) - } - // x / ±Inf - z.Context.Conditions |= Clamped - z.setZero(sign, c.etiny()) - r.setZero(x.form&signbit, 0) - return z, r -} - -func (c Context) quorem(z0, z1, x, y *Big) (*Big, *Big) { - m := c.RoundingMode - zp := c.precision() - - if x.adjusted()-y.adjusted() > zp { - if z0 != nil { - z0.setNaN(DivisionImpossible, qnan, quorem_) - } - if z1 != nil { - z1.setNaN(DivisionImpossible, qnan, quorem_) - } - return z0, z1 - } - - z := z0 - if z == nil { - z = z1 - } - - if x.isCompact() && y.isCompact() { - shift := x.exp - y.exp - if shift > 0 { - if sx, ok := arith.MulPow10(x.compact, uint64(shift)); ok { - return m.quorem(z0, z1, sx, x.form, y.compact, y.form) - } - xb := z.unscaled.SetUint64(x.compact) - xb = arith.MulBigPow10(xb, xb, uint64(shift)) - yb := new(big.Int).SetUint64(y.compact) - return m.quoremBig(z0, z1, xb, x.form, yb, y.form) - } - if shift < 0 { - if sy, ok := arith.MulPow10(y.compact, uint64(-shift)); ok { - return m.quorem(z0, z1, x.compact, x.form, sy, y.form) - } - yb := z.unscaled.SetUint64(y.compact) - yb = arith.MulBigPow10(yb, yb, uint64(-shift)) - xb := new(big.Int).SetUint64(x.compact) - return m.quoremBig(z0, z1, xb, x.form, yb, y.form) - } - return m.quorem(z0, z1, x.compact, x.form, y.compact, y.form) - } - - xb, yb := &x.unscaled, &y.unscaled - if x.isCompact() { - xb = new(big.Int).SetUint64(x.compact) - } else if y.isCompact() { - yb = new(big.Int).SetUint64(y.compact) - } - - shift := x.exp - y.exp - if shift > 0 { - tmp := alias(&z.unscaled, yb) - xb = arith.MulBigPow10(tmp, xb, uint64(shift)) - } else { - tmp := alias(&z.unscaled, xb) - yb = arith.MulBigPow10(tmp, yb, uint64(-shift)) - } - return m.quoremBig(z0, z1, xb, x.form, yb, y.form) -} - -// TODO(eric): quorem and quoremBig should not be methods on RoundingMode - -func (m RoundingMode) quorem( - z0, z1 *Big, - x uint64, xneg form, y uint64, yneg form, -) (*Big, *Big) { - if z0 != nil { - z0.setTriple(x/y, xneg^yneg, 0) - } - if z1 != nil { - z1.setTriple(x%y, xneg, 0) - } - return z0, z1 -} - -func (m RoundingMode) quoremBig( - z0, z1 *Big, - x *big.Int, xneg form, - y *big.Int, yneg form, -) (*Big, *Big) { - if z0 == nil { - z1.unscaled.Rem(x, y) - z1.form = xneg - return z0, z1.norm() - } - - if z1 != nil { - z0.unscaled.QuoRem(x, y, &z1.unscaled) - z1.form = xneg - z1.norm() - } else { - z0.unscaled.QuoRem(x, y, new(big.Int)) - } - z0.form = xneg ^ yneg - return z0.norm(), z1 -} - -// Reduce reduces a finite z to its most simplest form. -func (c Context) Reduce(z *Big) *Big { - if debug { - z.validate() - } - c.Round(z) - return c.simpleReduce(z) -} - -// simpleReduce is the same as Reduce, but it does not round -// prior to reducing. -func (c Context) simpleReduce(z *Big) *Big { - if z.isSpecial() { - // Same semantics as plus(z), i.e. z+0. - z.checkNaNs(z, z, reduction) - return z - } - - if z.isZero() { - z.exp = 0 - z.precision = 1 - return z - } - - if !z.isCompact() { - if z.unscaled.Bit(0) != 0 { - return z - } - - var r big.Int - for z.precision >= 20 { - z.unscaled.QuoRem(&z.unscaled, cst.OneMillionInt, &r) - if r.Sign() != 0 { - // TODO(eric): which is less expensive? Copying - // z.unscaled into a temporary or reconstructing - // if we can't divide by N? - z.unscaled.Mul(&z.unscaled, cst.OneMillionInt) - z.unscaled.Add(&z.unscaled, &r) - break - } - z.exp += 6 - z.precision -= 6 - - // Try to avoid reconstruction for odd numbers. - if z.unscaled.Bit(0) != 0 { - break - } - } - - for z.precision >= 20 { - z.unscaled.QuoRem(&z.unscaled, cst.TenInt, &r) - if r.Sign() != 0 { - z.unscaled.Mul(&z.unscaled, cst.TenInt) - z.unscaled.Add(&z.unscaled, &r) - break - } - z.exp++ - z.precision-- - if z.unscaled.Bit(0) != 0 { - break - } - } - - if z.precision >= 20 { - return z.norm() - } - z.compact = z.unscaled.Uint64() - } - - for ; z.compact >= 10000 && z.compact%10000 == 0; z.precision -= 4 { - z.compact /= 10000 - z.exp += 4 - } - for ; z.compact%10 == 0; z.precision-- { - z.compact /= 10 - z.exp++ - } - return z -} - -// Rem sets z to the remainder x % y. -// -// See QuoRem for more details. -func (c Context) Rem(z, x, y *Big) *Big { - if debug { - x.validate() - y.validate() - } - if z.invalidContext(c) { - return z - } - - if x.IsFinite() && y.IsFinite() { - if y.isZero() { - if x.isZero() { - // 0 / 0 - return z.setNaN(InvalidOperation|DivisionUndefined, qnan, quo00) - } - // x / 0 - return z.setNaN(InvalidOperation|DivisionByZero, qnan, remx0) - } - if x.isZero() { - // 0 / y - return z.setZero(x.form&signbit, min(x.exp, y.exp)) - } - // TODO(eric): See if we can get rid of tmp. See issue - // #72. - var tmp Big - _, z = c.quorem(&tmp, z, x, y) - z.exp = min(x.exp, y.exp) - tmp.exp = 0 - if tmp.Precision() > c.precision() { - return z.setNaN(DivisionImpossible, qnan, quointprec) - } - return c.finish(z) - } - - // NaN / NaN - // NaN / y - // x / NaN - if z.checkNaNs(x, y, division) { - return z - } - - if x.form&inf != 0 { - if y.form&inf != 0 { - // ±Inf / ±Inf - return z.setNaN(InvalidOperation, qnan, quoinfinf) - } - // ±Inf / y - return z.setNaN(InvalidOperation, qnan, reminfy) - } - // x / ±Inf - return c.Set(z, x) -} - -// Round rounds z down to the Context's precision and returns z. -// -// For a finite z, result of Round will always be within the -// interval [⌊10**p⌋, z] where p = the precision of z. The result -// is undefined if z is not finite. -func (c Context) Round(z *Big) *Big { - if debug { - z.validate() - } - if z.invalidContext(c) { - return z - } - return c.round(c.fix(z)) -} - -func (c Context) finish(z *Big) *Big { - c.fix(z) - if c.OperatingMode != GDA { - return z - } - return c.round(z) -} - -// round rounds z to the Context's precision, if necessary. -func (c Context) round(z *Big) *Big { - n := c.precision() - if n == UnlimitedPrecision || z.isSpecial() { - return z - } - - p := z.Precision() - if p <= n { - // Does not need to be rounded. - return z - } - - shift := p - n - c.shiftr(z, uint64(shift)) - z.exp += shift - z.Context.Conditions |= Rounded - return z -} - -// RoundToInt rounds z down to an integral value. -func (c Context) RoundToInt(z *Big) *Big { - if z.isSpecial() || z.exp >= 0 { - return z - } - c.Precision = z.Precision() - return c.Quantize(z, 0) -} - -func (c Context) shiftl(z *Big, n uint64) { - if z.isZero() { - return - } - if z.isCompact() { - if zc, ok := arith.MulPow10(z.compact, n); ok { - z.setTriple(zc, z.form, z.exp) - return - } - z.unscaled.SetUint64(z.compact) - z.compact = cst.Inflated - } - arith.MulBigPow10(&z.unscaled, &z.unscaled, n) - z.precision = arith.BigLength(&z.unscaled) -} - -func (c Context) shiftr(z *Big, n uint64) bool { - if zp := uint64(z.Precision()); n >= zp { - z.compact = 0 - z.precision = 1 - return n == zp - } - - if z.isZero() { - return false - } - - m := c.RoundingMode - if z.isCompact() { - if y, ok := arith.Pow10(n); ok { - return z.quo(m, z.compact, z.form, y, 0) - } - z.unscaled.SetUint64(z.compact) - z.compact = cst.Inflated - } - var r big.Int - return z.quoBig(m, &z.unscaled, z.form, arith.BigPow10(n), 0, &r) -} - -// Sqrt sets z to the square root of x and returns z. -func (c Context) Sqrt(z, x *Big) *Big { - if z.CheckNaNs(x, nil) { - return z - } - - ideal := -((-x.Scale() - (-x.Scale() & 1)) / 2) - if xs := x.Sign(); xs <= 0 { - if xs == 0 { - return z.SetMantScale(0, ideal).CopySign(z, x) - } - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - - // Already checked for negative numbers. - if x.IsInf(+1) { - return z.SetInf(false) - } - - var ( - prec = c.precision() - ctx = Context{Precision: prec} - rnd = z.Context.Conditions&Rounded != 0 - ixt = z.Context.Conditions&Inexact != 0 - ) - - // Source for the following algorithm: - // - // T. E. Hull and A. Abrham. 1985. Properly rounded variable - // precision square root. ACM Trans. Math. Softw. 11, - // 3 (September 1985), 229-237. - // DOI: https://doi.org/10.1145/214408.214413 - - xprec := x.Precision() - - // The algorithm requires a normalized "f in [0.1, 1)" - // Of the two ways to normalize f, adjusting its scale is - // the quickest. However, it then requires us to - // increment approx's scale by e/2 instead of simply - // setting it to e/2. - f := new(Big).Copy(x) - f.exp = -xprec - e := x.exp + xprec - - var tmp Big // scratch space - - if e&1 == 0 { - ctx.FMA(z, approx2.get(), f, approx1.get()) // approx := .259 + .819f - } else { - f.exp-- // f := f/10 - e++ // e := e + 1 - ctx.FMA(z, approx4.get(), f, approx3.get()) // approx := .0819 + 2.59f - } - - maxp := prec + 5 // extra prec to skip weird +/- 0.5 adjustments - ctx.Precision = 3 - pt5 := ptFive.get() - for { - // p := min(2*p - 2, maxp) - ctx.Precision = min(2*ctx.Precision-2, maxp) - - // approx := .5*(approx + f/approx) - ctx.Mul(z, pt5, ctx.Add(&tmp, z, ctx.Quo(&tmp, f, z))) - if ctx.Precision == maxp { - break - } - } - - // The paper also specifies an additional code block for - // adjusting approx. This code never went into the branches - // that modified approx, and rounding to half even does the - // same thing. The GDA spec requires us to use rounding mode - // half even (speleotrove.com/decimal/daops.html#refsqrt) - // anyway. - - z.exp += e / 2 - ctx.Reduce(z) - if z.Precision() <= prec { - if !rnd { - z.Context.Conditions &= ^Rounded - } - if !ixt { - z.Context.Conditions &= ^Inexact - } - } - return c.finish(z) -} - -// sqrt3 sets z to sqrt(3) and returns z. -func (c Context) sqrt3(z *Big) *Big { - if c.Precision <= constPrec { - return c.Set(z, _Sqrt3.get()) - } - return c.Set(z, c.Sqrt(z, three.get())) -} - -// Set sets z to x and returns z. -// -// The result might be rounded, even if z == x. -func (c Context) Set(z, x *Big) *Big { - return c.finish(z.Copy(x)) -} - -// SetRat sets z to to the possibly rounded value of x and -// returns z. -func (c Context) SetRat(z *Big, x *big.Rat) *Big { - if x.IsInt() { - return c.finish(z.SetBigMantScale(x.Num(), 0)) - } - var num, denom Big - num.SetBigMantScale(x.Num(), 0) - denom.SetBigMantScale(x.Denom(), 0) - return c.Quo(z, &num, &denom) -} - -// SetString sets z to the value of s, returning z and a bool -// indicating success. -// -// See Big.SetString for valid formats. -func (c Context) SetString(z *Big, s string) (*Big, bool) { - if _, ok := z.SetString(s); !ok { - return nil, false - } - return c.finish(z), true -} - -// Sin returns the sine, in radians, of x. -// -// Range: -// Input: all real numbers -// Output: -1 <= Sin(x) <= 1 -// -// Special cases: -// Sin(NaN) = NaN -// Sin(Inf) = NaN -func (c Context) Sin(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, sin) { - return z - } - - if !x.IsFinite() { - // sin(inf) = NaN - // sin(NaN) = NaN - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - - if x.isZero() { - // sin(0) = 0 - return z.setZero(0, 0) - } - - // Sin(x) = Cos(pi/2 - x) - ctx := c.dup() - ctx.Precision += defaultExtraPrecision - pi2 := ctx.pi2(getDec(ctx)) - ctx.Cos(z, ctx.Sub(z, pi2, x)) - putDec(pi2) - - return c.finish(z) -} - -// Sub sets z to x - y and returns z. -func (c Context) Sub(z, x, y *Big) *Big { - if debug { - x.validate() - y.validate() - } - if z.invalidContext(c) { - return z - } - - if x.IsFinite() && y.IsFinite() { - z.form = c.add(z, x, x.form, y, y.form^signbit) - return c.finish(z) - } - - // NaN - NaN - // NaN - y - // x - NaN - if z.checkNaNs(x, y, subtraction) { - return z - } - - if x.form&inf != 0 { - if y.form&inf != 0 && (x.form&signbit == y.form&signbit) { - // -Inf - -Inf - // -Inf - -Inf - return z.setNaN(InvalidOperation, qnan, subinfinf) - } - // ±Inf - y - // -Inf - +Inf - // +Inf - -Inf - return c.Set(z, x) - } - // x - ±Inf - return z.Neg(y) -} - -// Tan returns the tangent, in radians, of x. -// -// Range: -// Input: -pi/2 <= x <= pi/2 -// Output: all real numbers -// -// Special cases: -// Tan(NaN) = NaN -// Tan(±Inf) = NaN -func (c Context) Tan(z, x *Big) *Big { - if debug { - x.validate() - } - if z.invalidContext(c) { - return z - } - if z.checkNaNs(x, x, sin) { - return z - } - - if !x.IsFinite() { - // tan(NaN) = NaN - // tan(inf) = NaN - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - - ctx := c.dup() - ctx.Precision += defaultExtraPrecision - - x0, ok := ctx.prepTan(z, x) - if !ok { - z.Context.Conditions |= InvalidOperation - return z.SetNaN(false) - } - - // tan(x) = sign(x)*sqrt(1/cos(x)^2-1) - - // tangent has an asymptote at pi/2 and we'll need more - // precision as we get closer the reason we need it is as we - // approach pi/2 is due to the squaring portion, it will - // cause the small value of Cosine to be come extremely - // small. we COULD fix it by simply doubling the precision, - // however, when the precision gets larger it will be - // a significant impact to performance, instead we'll only - // add the extra precision when we need it by using the - // difference to see how much extra precision we need we'll - // speed things up by only using a quick compare to see if we - // need to do a deeper inspection. - tctx := ctx.dup() - tmp := getDec(tctx) - defer putDec(tmp) - - if x.CmpAbs(onePtFour.get()) >= 0 { - if x.Signbit() { - ctx.Add(tmp, x, ctx.pi2(tmp)) - } else { - ctx.Sub(tmp, x, ctx.pi2(tmp)) - } - tctx.Precision += tmp.Scale() - tmp.Precision() - } - - tctx.Cos(tmp, x0) - ctx.Mul(tmp, tmp, tmp) - ctx.Quo(tmp, one.get(), tmp) - ctx.Sub(tmp, tmp, one.get()) - tctx.Sqrt(tmp, tmp) - if x0.Signbit() { - tmp.CopyNeg(tmp) - } - ctx.Precision -= defaultExtraPrecision - return ctx.Set(z, tmp) -} - -func (c Context) prepTan(z, x *Big) (*Big, bool) { - if z == x { - x = getDec(c) - defer putDec(x) - } - - if pi2 := c.pi2(z); x.CmpAbs(pi2) >= 0 { - // For tan to work correctly the input must be in (-2pi, - // 2pi) - if x.Signbit() { - c.Add(z, x, pi2) - } else { - c.Sub(z, x, pi2) - } - - var tmp Big - c.QuoInt(z, z, c.pi(&tmp)) - if x.Signbit() { - c.Sub(z, z, one.get()) - } else { - c.Add(z, z, one.get()) - } - - v, ok := z.Int64() - if !ok { - return nil, false - } - uv := arith.Abs(v) - - // Adjust so we have ceil(v/10) + ctx.Precision, but check for overflows. - // 1+((v-1)/10) will be widly incorrect for v == 0, but x/y = 0 iff - // x = 0 and y != 0. In this case, -2pi <= x >= 2pi, so we're fine. - prec, carry := bits.Add64(1+((uv-1)/10), uint64(c.Precision), 0) - if carry != 0 || prec > arith.MaxInt { - return nil, false - } - pctx := Context{Precision: int(prec)} - - pctx.Mul(z, pctx.pi(&tmp), z) - - c.Precision = c.precision() + 1 - // so toRemove = m*Pi so |x-toRemove| < Pi/2 - c.Sub(z, x, z) - } else { - z.Copy(x) - } - return z, true -} diff --git a/vendor/github.com/ericlagergren/decimal/binary_spliting.go b/vendor/github.com/ericlagergren/decimal/binary_spliting.go deleted file mode 100644 index 5e5856ff..00000000 --- a/vendor/github.com/ericlagergren/decimal/binary_spliting.go +++ /dev/null @@ -1,461 +0,0 @@ -package decimal - -import ( - "github.com/ericlagergren/decimal/internal/arith" -) - -// The binary splitting algorithm is made of four functions -// a(n), b(n), q(n), and p(n) -// -// a(n)p(0)...p(n) -// S = sum_(n=0)^infinity ----------------- -// b(n)q(0)...q(n) -// -// We split it up into [n1, n2) slices and calculate using the following -// -// B = b(n1)...b(n2-1) -// P = p(n1)...p(n2-1) -// Q = q(n1)...q(n2-1) -// -// then assign -// -// T = BQS -// -// to solve for S -// -// S = T/BQ -// -// ---- -// -// The "trick" is that we plan to "binary-ly" split up the the range [0, n) such -// that for a given range [n1, n2) we will split it into two smaller ranges -// [n1, m) and [m, n2) where m = floor((n1+n2)/2). When n2 - n1 is either -// 1, 2, 3, or 4 we plan to calculate manually, but for anything else larger -// we then define a given range [n1, n2), split it into [n1, m) and [m, n2), -// noting a "Left" and "Right" side. Then, for each side with a B, P, Q, and T -// we'll note the subscript via a L or R. We then have the following formulation: -// -// B = B_l*B_r -// P = P_l*P_r -// Q = Q_l*Q_r -// T = B_l*P_l*T_r + B_r*Q_r*T_l -// -// (Take care in noticing Q_l and P_r aren't used in calculating T.) -// Then solve for S the same as above S = T/BQ. - -// apbqBinarySplitState is used to hold intermediate values for each step in the -// calculation. -type apbqBinarySplitState struct { - B *Big - P *Big - Q *Big - T *Big -} - -func newState() *apbqBinarySplitState { - return &apbqBinarySplitState{ - B: new(Big), - P: new(Big), - Q: new(Big), - T: new(Big), - } -} - -func (s *apbqBinarySplitState) term(z *Big, ctx Context) *Big { - return ctx.Quo(z, s.T, ctx.Mul(z, s.B, s.Q)) // z = T / B*Q -} - -// SplitFunc returns the intermediate value for a given n. The returned decimal -// must not be modified by the caller and may only be valid until the next -// invocation of said function. This allows the implementation to conserve -// memory usage. -type SplitFunc func(n uint64) *Big - -// BinarySplit sets z to the result of the binary splitting formula and returns -// z. The formula is defined as: -// -// ∞ a(n)p(0) ... p(n) -// S = Σ ------------------- -// n=0 b(n)q(0) ... q(n) -// -// It should only be used when the number of terms is known ahead of time. If -// start is not in [start, stop) or stop is not in (start, stop], BinarySplit -// will panic. -func BinarySplit(z *Big, ctx Context, start, stop uint64, A, P, B, Q SplitFunc) *Big { - switch { - case stop == start: - panic("math: the start and stop of BinarySplit cannot be not be the same") - case stop < start: - panic("math: the stop of BinarySplit must be larger than the start") - } - - state := newState() - state.calculate(ctx, start, stop, A, P, B, Q) - return state.term(z, ctx) -} - -// BinarySplitDynamic sets z to the result of the binary splitting formula. It -// should be used when the number of terms is not known ahead of time. For more -// information, See BinarySplit. -func BinarySplitDynamic(ctx Context, A, P, B, Q SplitFunc) *Big { - // TODO(eric): get a handle on this function's memory usage. - - // BinarySplitDynamic does not take a receiver since binary splitting uses - // too much memory for a receiver to be useful. It's also difficult to keep - // track of the receiver. - - // For this algorithm we start with a standard 16 terms to mark the first - // return value's status, then we calculate the next 4 terms and mark the - // difference (if ZERO return as is else repeat +4 terms until at least - // 1 digit of ctx is gained). We then use that to linearly determine the - // "last term," then repeat when calculating each of the parts the following - // will be used: - // - // B = B_l*B_r - // P = P_l*P_r - // Q = Q_l*Q_r - // T = B_l*P_l*T_r + B_r*Q_r*T_l - - currentLastTerm := uint64(16) - current := newState() - current.calculate(ctx, 0, currentLastTerm, A, P, B, Q) - - // the marked value is what should be returned which is T/(BQ) - markValue1 := current.term(new(Big), ctx) - markValue2 := new(Big) - - diff := new(Big) // markValue1 - markValue2 - - // now get the next marked value, if the difference isn't already ZERO we need - // at least one digit of ctx to continue - nextLastTerm := currentLastTerm - next := &apbqBinarySplitState{ - B: new(Big).Copy(current.B), - P: new(Big).Copy(current.P), - Q: new(Big).Copy(current.Q), - T: new(Big).Copy(current.T), - } - var expectedLastTerm uint64 - deltaTerm := uint64(4) - eps := New(1, ctx.Precision) - - tmp := newState() - - for { - for { - tmp.calculate(ctx, nextLastTerm, nextLastTerm+deltaTerm, A, P, B, Q) - next.combine(ctx, next, tmp) - nextLastTerm += deltaTerm - - // markValue2 = T / (B * Q) - next.term(markValue2, ctx) - - // Terms have converged. - if markValue1.Cmp(markValue2) == 0 { - return markValue2 - } - - // if not equal one of two things could be happening - // 1) markValue2 approaching a value away from markValue1 (something - // not close to markValue1) - // 2) markValue2 approaching a value toward markValue1 (something - // close to markValue1) - // - // in the 1) case precision should stay the same but scale will change - // in the 2) case scale & precision should stay the same but the difference - // should see a reduction is the precision - // we'll check for the first case since it doesn't require any "real" - // calculations - if markValue1.Scale() != markValue2.Scale() { - // there was a change so save the current state - current = next - - // next calculate the expectedLastTerm and add 4 to ensure it is always >0 - scaleDiff := arith.Abs(int64(markValue1.Scale()) - int64(markValue2.Scale())) - expectedLastTerm = nextLastTerm + uint64(float64(nextLastTerm-currentLastTerm)*float64(ctx.Precision)/float64(scaleDiff)) + 4 - currentLastTerm = nextLastTerm - break - } - - // if not equal take the difference and figure out if we - // have at least one digit of ctx gained - ctx.Sub(diff, markValue1, markValue2) - - // here's the one case where we need to do a check for - // something 1E-ctx if equal to or less than - if diff.CmpAbs(eps) < 0 { - return markValue2 - } - - // we want to have at least 1 digit which really means we - // need a change in ctx of diff of 2 or greater - - precChange := arith.Abs(int64(markValue1.Precision()) - int64(diff.Precision())) - if precChange > 1 { - // we have something that we can use to - // calculate the true expected last term - // combine the currentState with this additional state - // update the currentLastTerm and then calculate expectedLastTerm - current = next - - // we'll calculate expectedLastTerm but also add 4 to ensure it is always >0 - expectedLastTerm = nextLastTerm + uint64(float64(nextLastTerm-currentLastTerm)*float64(ctx.Precision)/float64(precChange)) + 4 - currentLastTerm = nextLastTerm - break - } - - // if for some reason we haven't seen the expected change - // it could be because the markValue1 and markValue2 are extremely different - // so we'll breakout and hope the next iteration is better - // worse case it's not and these continues until the value converges - // in which case markValue1 and markValue2 will at some point be equal - if nextLastTerm-currentLastTerm > 16 { - // save the current state - current = next - - // and set the expected and current to nextLastTerm - expectedLastTerm = nextLastTerm - currentLastTerm = nextLastTerm - break - } - } - - // now we have what we expect to be way closer to the true n - if currentLastTerm != expectedLastTerm { - tmp.calculate(ctx, currentLastTerm, expectedLastTerm, A, P, B, Q) - current.combine(ctx, current, tmp) - } - - current.term(markValue1, ctx) - - currentLastTerm = expectedLastTerm - nextLastTerm = currentLastTerm - next = current - } -} - -func (s *apbqBinarySplitState) calculate(ctx Context, start, end uint64, A, P, B, Q SplitFunc) { - switch n1 := start; end - start { - case 1: - s.B.Copy(B(n1)) - s.P.Copy(P(n1)) - s.Q.Copy(Q(n1)) - ctx.Mul(s.T, A(n1), s.P /* P1 */) - case 2: - n2 := n1 + 1 - - // B = B1 * B2 - // P = P1 * P2 - // Q = Q1 * Q2 - // T = - // t0 = (A1 * * B2 * P1 * Q2) + - // t1 = (A2 * B1 * * P1 * P2 * ) - - s.P.Copy(P(n1)) - s.B.Copy(B(n2)) - s.Q.Copy(Q(n2)) - - // T = A1*P1*B2*Q2 + B1*A2*P12 - // Compute the first half of T. - ctx.Mul(s.T, A(n1), s.P /* P1 */) - ctx.Mul(s.T, s.T, s.B /* B2 */) - ctx.Mul(s.T, s.T, s.Q /* Q2 */) - - // We no longer need Q, so compute Q. - ctx.Mul(s.Q, s.Q, Q(n1)) - - // We no longer need B2, so grab B1 and then compute B. - B1 := B(n1) - ctx.Mul(s.B, s.B, B1) - - // We no longer need P1 or P2, so calculate P12 which is needed for the - // second half of T. - ctx.Mul(s.P, s.P, P(n2)) - - // Finish computing T. - t1 := new(Big) - ctx.Mul(t1, B1, A(n2)) - ctx.FMA(s.T, t1, s.P /* P12 */, s.T) // combine the final multiply with t0 + t1 - case 3: - n2 := n1 + 1 - n3 := n2 + 1 - - // B = B1 * B2 * B3 - // P = P1 * P2 * P3 - // Q = Q1 * Q2 * Q3 - // T = - // t0 = (A1 * B2 * B3 * P1 * __ * Q2 * Q3) + - // t1 = (A2 * B1 * B3 * P1 * P2 * Q3) + - // t2 = (A3 * B1 * B2 * P1 * P2 * P3 ) - - // A{1,2,3} are transient, so we don't need to store them. - A1 := A(n1) - - s.P.Copy(P(n1)) // P = P1 - - // T_0 = A1 * __ * __ * P1 * __ * __ - // B2 B3 Q2 Q3 - ctx.Mul(s.T, A1, s.P) - - // P = P1 * P2 since we need it for t1. - ctx.Mul(s.P, s.P, P(n2)) - - t1 := new(Big) - // T_1 = A2 * __ * __ * P1 * P2 * __ - // B1 B3 Q3 - ctx.Mul(t1, A(n2), s.P) - - // P = P1 * P2 * P3; P is finished. - ctx.Mul(s.P, s.P, P(n3)) - - t2 := new(Big) - // T_2 = A3 * __ * __ * P1 * P2 * P3 - // B1 B2 - ctx.Mul(t2, A(n3), s.P) - - B1 := B(n1) - s.B.Copy(B1) - // T_1 = A2 * B1 * __ * P1 * P2 * __ - // B3 Q3 - ctx.Mul(t1, t1, s.B /* B1 */) - - B2 := B(n2) - // T_0 = A1 * B2 * __ * P1 * __ * __ - // B3 Q2 Q3 - ctx.Mul(s.T, s.T, B2) - - // B = B1 * B2 - ctx.Mul(s.B, s.B, B(n2)) - - // T_2 = A3 * B1 * B2 * P1 * P2 * P3; T_2 is finished. - ctx.Mul(t2, t2, s.B /* B12 */) - - // T_1 = A2 * B1 * __ P1 * P2 * __ - // B3 Q3 - ctx.Mul(t1, t1, B2) - - B3 := B(n3) - // T_0 = A1 * B2 * B3 * P1 * __ * __ - // Q2 Q3 - ctx.Mul(s.T, s.T, B3) - // T_1 = A3 * B1 * B3 * P1 * P2 * P3 * __ - // Q3 - ctx.Mul(t1, t1, B3) - - // B = B1 * B2 * B3; B is finished. - ctx.Mul(s.B, s.B, B3) - - // Q = Q3. - s.Q.Copy(Q(n3)) - - // T_1 = A2 * B1 * B3 * P1 * P2 * Q3; T_1 is finished. - ctx.Mul(t1, t1, s.Q) - // Q = Q2 * Q3. - ctx.Mul(s.Q, s.Q, Q(n2)) - // T_0 = A1 * B2 * B3 * P1 * Q2 * Q3; T_0 is finished. - ctx.Mul(s.T, s.T, s.Q) - // Q = Q1 * Q2 * Q3; Q is finished. - ctx.Mul(s.Q, s.Q, Q(n1)) - - // T = T_0 + T_1 + T_2; T is finsihed. - ctx.Add(s.T, s.T, t1) - ctx.Add(s.T, s.T, t2) - case 4: - n2 := n1 + 1 - n3 := n2 + 1 - n4 := n3 + 1 - - // B = B1 * B2 * B3 * B3 - // P = P1 * P2 * P3 * P4 - // Q = Q1 * Q2 * Q3 * Q3 - // T = - // t0 = (A1 * P1 * B2 * B3 * B4 * __ * Q2 * Q3 * Q4) + - // t1 = (A2 * P1 * P2 * B1 * B3 * B4 * Q3 * Q4) + - // t2 = (A3 * P1 * P2 * P3 * B1 * B2 * B4 * Q4) + - // t3 = (A4 * P1 * P2 * P3 * P4 * B1 * B2 * B3 ) - - // A{1,2,3,4} are transient, so we don't need to store them. - - t1 := new(Big) - t2 := new(Big) - t3 := new(Big).Copy(A(n4)) // T_3 needs: P1234, B123 - - s.Q.Copy(Q(n4)) // Q = Q4. - ctx.Mul(t2, A(n3), s.Q) // T_2 needs: P123, B124. - ctx.Mul(s.Q, s.Q, Q(n3)) // Q = Q34. - ctx.Mul(t1, A(n2), s.Q) // T_1 needs: P12, B134. - ctx.Mul(s.Q, s.Q, Q(n2)) // Q = Q234. - ctx.Mul(s.T, A(n1), s.Q) // T_0 needs: P1, B234. - ctx.Mul(s.Q, s.Q, Q(n1)) // Q = Q1234; Q is finished. - - s.P.Copy(P(n1)) // P = P1. - ctx.Mul(s.T, s.T, s.P) // T_0 needs: B234. - ctx.Mul(s.P, s.P, P(n2)) // P = P12. - ctx.Mul(t1, t1, s.P) // T_1 needs: B134. - ctx.Mul(s.P, s.P, P(n3)) // P = P123. - ctx.Mul(t2, t2, s.P) // T_2 needs: B12. - ctx.Mul(s.P, s.P, P(n4)) // P = P1234; P is finished. - ctx.Mul(t3, t3, s.P) // T_3 needs: B123. - - b1 := new(Big).Copy(B(n1)) - ctx.Mul(t3, t3, b1) // T_3 needs: B23. - ctx.Mul(t2, t2, b1) // T_2 needs: B2. - ctx.Mul(t1, t1, b1) // T_1 is finished. - s.B.Copy(B(n2)) // B = B2. - ctx.Mul(t2, t2, s.B /* B2 */) // T_2 is finished. - ctx.Mul(s.B, s.B, B(n3)) // B = B23. - ctx.Mul(t3, t3, s.B /* B23 */) // T_3 is finished. - ctx.Mul(s.T, s.T, s.B) // T_0 is finished. - ctx.Mul(s.B, s.B, b1) // B = B123. - ctx.Mul(s.B, s.B, B(n4)) // B = B1234. - - ctx.Add(s.T, s.T, t1) // T = T_0 + T_1 - ctx.Add(s.T, s.T, t2) // T = T_0 + T_1 + T_2 - ctx.Add(s.T, s.T, t3) // T = T_0 + T_1 + T_2 + T_3 - default: - // here we have something bigger so we'll do a binary split - // first find the mid point between the points and create the two side - // then do the calculations and return the value - m := uint64((start + end) / 2) - - // We can reuse s as one of the states. - s.calculate(ctx, start, m, A, P, B, Q) - - r := newState() - r.calculate(ctx, m, end, A, P, B, Q) - - // Generically, the following is done - // - // B = B_l*B_r - // P = P_l*P_r - // Q = Q_l*Q_r - // T = B_l*P_l*T_r + B_r*Q_r*T_l - // - s.combine(ctx, s, r) - } -} - -// combine computes the following: -// -// B = B_l*B_r -// P = P_l*P_r -// Q = Q_l*Q_r -// T = B_l*P_l*T_r + B_r*Q_r*T_l -// -func (s *apbqBinarySplitState) combine(ctx Context, L, R *apbqBinarySplitState) { - // T = L.B*L.P*R.T, t1 = R.B*R.Q*L.T - t0 := getDec(ctx) - ctx.Mul(t0, L.B, L.P) - ctx.Mul(t0, t0, R.T) - - t1 := getDec(ctx) - ctx.Mul(t1, R.B, R.Q) - ctx.FMA(s.T, t1, L.T, t0) // combine the final multiply and t0 + t1 - - ctx.Mul(s.B, L.B, R.B) - ctx.Mul(s.P, L.P, R.P) - ctx.Mul(s.Q, L.Q, R.Q) - - putDec(t0) - putDec(t1) -} diff --git a/vendor/github.com/ericlagergren/decimal/const.go b/vendor/github.com/ericlagergren/decimal/const.go deleted file mode 100644 index 5c39b556..00000000 --- a/vendor/github.com/ericlagergren/decimal/const.go +++ /dev/null @@ -1,66 +0,0 @@ -package decimal - -import ( - "sync" -) - -type lazyDecimal struct { - once sync.Once - s string - x *Big -} - -func (l *lazyDecimal) get() *Big { - l.once.Do(func() { - l.x, _ = new(Big).SetString(l.s) - }) - return l.x -} - -func newLazyDecimal(s string) *lazyDecimal { - return &lazyDecimal{s: s} -} - -const ( - // constPrec is the precision for mathematical constants like - // e, pi, etc. - constPrec = 300 - defaultExtraPrecision = 3 -) - -var ( - _E = newLazyDecimal("2.71828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642742746639193200305992181741359662904357290033429526059563073813232862794349076323382988075319525101901157383418793070215408914993488416750924476146066808226480016847741185374234544243710753907774499207") - _Ln10 = newLazyDecimal("2.30258509299404568401799145468436420760110148862877297603332790096757260967735248023599720508959829834196778404228624863340952546508280675666628736909878168948290720832555468084379989482623319852839350530896537773262884616336622228769821988674654366747440424327436515504893431493939147961940440022211") - _Pi = newLazyDecimal("3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127") - _Pi2 = newLazyDecimal("1.57079632679489661923132169163975144209858469968755291048747229615390820314310449931401741267105853399107404325664115332354692230477529111586267970406424055872514205135096926055277982231147447746519098221440548783296672306423782411689339158263560095457282428346173017430522716332410669680363012457064") - _Sqrt3 = newLazyDecimal("1.73205080756887729352744634150587236694280525381038062805580697945193301690880003708114618675724857567562614141540670302996994509499895247881165551209437364852809323190230558206797482010108467492326501531234326690332288665067225466892183797122704713166036786158801904998653737985938946765034750657605") - - approx1 = newLazyDecimal("0.259") - approx2 = newLazyDecimal("0.819") - approx3 = newLazyDecimal("0.0819") - approx4 = newLazyDecimal("2.59") - ptFive = newLazyDecimal("0.5") - - _10005 = newLazyDecimal("10005") - _426880 = newLazyDecimal("426880") - _13591409 = newLazyDecimal("13591409") - _545140134 = newLazyDecimal("545140134") - _10939058860032000 = newLazyDecimal("10939058860032000") - - negFour = newLazyDecimal("-4") - negOne = newLazyDecimal("-1") - one = newLazyDecimal("1") - onePtFour = newLazyDecimal("1.4") - two = newLazyDecimal("2") - three = newLazyDecimal("3") - four = newLazyDecimal("4") - five = newLazyDecimal("5") - six = newLazyDecimal("6") - eight = newLazyDecimal("8") - ten = newLazyDecimal("10") - eleven = newLazyDecimal("11") - sixteen = newLazyDecimal("16") - eighteen = newLazyDecimal("18") - thirtyTwo = newLazyDecimal("32") - eightyOne = newLazyDecimal("81") -) diff --git a/vendor/github.com/ericlagergren/decimal/context.go b/vendor/github.com/ericlagergren/decimal/context.go deleted file mode 100644 index 3b7ce960..00000000 --- a/vendor/github.com/ericlagergren/decimal/context.go +++ /dev/null @@ -1,365 +0,0 @@ -package decimal - -import ( - "fmt" - "strings" - - "github.com/ericlagergren/decimal/internal/c" -) - -// Precision and scale limits. -const ( - MaxScale = c.MaxScale // largest allowed scale. - MinScale = -MaxScale // smallest allowed scale. - MaxPrecision = MaxScale // largest allowed Context precision. - MinPrecision = 1 // smallest allowed Context precision. - UnlimitedPrecision = MaxPrecision + 1 // no precision, but may error. - DefaultPrecision = 16 // default precision for literals. -) - -// Context is a per-decimal contextual object that governs -// specific operations. -type Context struct { - // MaxScale overrides the MaxScale constant so long as it's - // in the range (0, MaxScale]. - MaxScale int - - // MinScale overrides the MaxScale constant so long as it's - // in the range [MinScale, 0). - MinScale int - - // Precision is the Context's precision; that is, the maximum - // number of significant digits that may result from any - // arithmetic operation. Excluding any package-defined - // constants (e.g., "UnlimitedPrecision"), if precision is - // not in the range [1, MaxPrecision] operations might result - // in an error. A precision of 0 will be interpreted as - // DefaultPrecision. For example, - // - // precision == 4 // 4 - // precision == -4 // error - // precision == 0 // DefaultPrecision - // precision == 12 // 12 - // - Precision int - - // Traps are a set of exceptional conditions that should - // result in an error. - Traps Condition - - // Conditions are a set of the most recent exceptional - // conditions to occur during an operation. - Conditions Condition - - // RoundingMode determines how a decimal is rounded. - RoundingMode RoundingMode - - // OperatingMode which dictates how the decimal operates under certain - // conditions. See OperatingMode for more information. - OperatingMode OperatingMode -} - -// dup returns the Context, but with a non-zero Precision. -func (c Context) dup() Context { - ctx := c - ctx.Precision = c.precision() - return ctx -} - -func (c Context) precision() int { - if c.Precision != 0 { - return c.Precision - } - return DefaultPrecision -} - -func (c Context) emax() int { - if c.MaxScale != 0 { - return c.MaxScale - } - return MaxScale -} - -func (c Context) emin() int { - if c.MinScale != 0 { - return c.MinScale - } - return MinScale -} - -// Err returns non-nil if there are any trapped exceptional -// conditions. -func (c Context) Err() error { - if m := c.Conditions & c.Traps; m != 0 { - return m - } - return nil -} - -// WithContext is shorthand to create a Big decimal from a Context. -func WithContext(c Context) *Big { - z := new(Big) - z.Context = c - return z -} - -// WithPrecision is shorthand to create a Big decimal with a given precision. -func WithPrecision(p int) *Big { - z := new(Big) - switch { - case p > 0 && p <= UnlimitedPrecision: - z.Context.Precision = p - case p == 0: - z.Context.Precision = DefaultPrecision - default: - z.setNaN(InvalidContext, qnan, invctxpgtu) - } - return z -} - -// The following are called ContextXX instead of DecimalXX -// to reserve the DecimalXX namespace for future decimal types. - -// The following Contexts are based on IEEE 754R. Each Context's -// RoundingMode is ToNearestEven, OperatingMode is GDA, and traps -// are set to every exception other than Inexact, Rounded, and -// Subnormal. -var ( - // Context32 is the IEEE 754R Decimal32 format. - Context32 = Context{ - Precision: 7, - RoundingMode: ToNearestEven, - OperatingMode: GDA, - Traps: ^(Inexact | Rounded | Subnormal), - MaxScale: 96, - MinScale: -95, - } - - // Context64 is the IEEE 754R Decimal64 format. - Context64 = Context{ - Precision: 16, - RoundingMode: ToNearestEven, - OperatingMode: GDA, - Traps: ^(Inexact | Rounded | Subnormal), - MaxScale: 384, - MinScale: -383, - } - - // Context128 is the IEEE 754R Decimal128 format. - Context128 = Context{ - Precision: 34, - RoundingMode: ToNearestEven, - OperatingMode: GDA, - Traps: ^(Inexact | Rounded | Subnormal), - MaxScale: 6144, - MinScale: -6143, - } - - // ContextUnlimited provides unlimited precision decimals. - ContextUnlimited = Context{ - Precision: UnlimitedPrecision, - RoundingMode: ToNearestEven, - OperatingMode: GDA, - Traps: ^(Inexact | Rounded | Subnormal), - MaxScale: MaxScale, - MinScale: MinScale, - } - - maxCtx = Context{ - Precision: MaxPrecision, - RoundingMode: ToNearestEven, - OperatingMode: GDA, - Traps: ^(Inexact | Rounded | Subnormal), - MaxScale: MaxScale, - MinScale: MinScale, - } -) - -// RoundingMode determines how a decimal will be rounded. -type RoundingMode uint8 - -// The following rounding modes are supported. -const ( - ToNearestEven RoundingMode = iota // == IEEE 754-2008 roundTiesToEven - ToNearestAway // == IEEE 754-2008 roundTiesToAway - ToZero // == IEEE 754-2008 roundTowardZero - AwayFromZero // no IEEE 754-2008 equivalent - ToNegativeInf // == IEEE 754-2008 roundTowardNegative - ToPositiveInf // == IEEE 754-2008 roundTowardPositive - ToNearestTowardZero // no IEEE 754-2008 equivalent - - unnecessary // placeholder for x / y with UnlimitedPrecision. -) - -//go:generate stringer -type RoundingMode - -func (m RoundingMode) needsInc(odd bool, r int, pos bool) bool { - switch m { - case AwayFromZero: - return true // always up - case ToZero: - return false // always down - case ToPositiveInf: - return pos // up if positive - case ToNegativeInf: - return !pos // down if negative - - // r < 0: closer to higher - // r == 0: halfway - // r > 0: closer to lower - case ToNearestEven: - if r != 0 { - return r > 0 - } - return odd - case ToNearestAway: - return r >= 0 - case ToNearestTowardZero: - return r > 0 - default: - return false - } -} - -// OperatingMode dictates how the decimal approaches specific non-numeric -// operations like conversions to strings and panicking on NaNs. -type OperatingMode uint8 - -const ( - // GDA strictly adheres to the General Decimal Arithmetic Specification - // Version 1.70. In particular: - // - // - at does not panic - // - all arithmetic operations will be rounded down to the proper precision - // if necessary - // - it utilizes traps to set both Context.Err and Context.Conditions - // - its string forms of qNaN, sNaN, +Inf, and -Inf are "NaN", "sNaN", - // "Infinity", and "-Infinity", respectively - // - GDA OperatingMode = iota - // Go adheres to typical Go idioms. In particular: - // - // - it panics on NaN values - // - has lossless (i.e., without rounding) addition, subtraction, and - // multiplication - // - traps are ignored; it does not set Context.Err or Context.Conditions - // - its string forms of qNaN, sNaN, +Inf, and -Inf are "NaN", "NaN", - // "+Inf", and "-Inf", respectively - // - Go -) - -//go:generate stringer -type OperatingMode - -// Condition is a bitmask value raised after or during specific operations. For -// example, dividing by zero is undefined so a DivisionByZero Condition flag -// will be set in the decimal's Context. -type Condition uint32 - -const ( - // Clamped occurs if the scale has been modified to fit the constraints of - // the decimal representation. - Clamped Condition = 1 << iota - // ConversionSyntax occurs when a string is converted to a decimal and does - // not have a valid syntax. - ConversionSyntax - // DivisionByZero occurs when division is attempted with a finite, - // non-zero dividend and a divisor with a value of zero. - DivisionByZero - // DivisionImpossible occurs when the result of integer division would - // contain too many digits (i.e. be longer than the specified precision). - DivisionImpossible - // DivisionUndefined occurs when division is attempted with in which both - // the divided and divisor are zero. - DivisionUndefined - // Inexact occurs when the result of an operation (e.g. division) is not - // exact, or when the Overflow/Underflow Conditions occur. - Inexact - // InsufficientStorage occurs when the system doesn't have enough storage - // (i.e. memory) to store the - InsufficientStorage - // InvalidContext occurs when an invalid context was detected during an - // operation. This might occur if, for example, an invalid RoundingMode was - // passed to a Context. - InvalidContext - // InvalidOperation occurs when: - // - // - an operand to an operation is a signaling NaN - // - an attempt is made to add or subtract infinities of opposite signs - // - an attempt is made to multiply zero by an infinity of either sign - // - an attempt is made to divide an infinity by an infinity - // - the divisor for a remainder operation is zero - // - the dividend for a remainder operation is an infinity - // - either operand of the quantize operation is an infinity, or the result - // of a quantize operation would require greater precision than is - // available - // - the operand of the ln or the log10 operation is less than zero - // - the operand of the square-root operation has a sign of 1 and a - // non-zero coefficient - // - both operands of the power operation are zero, or if the left-hand - // operand is less than zero and the right-hand operand does not have an - // integral value or is an infinity - // - InvalidOperation - // Overflow occurs when the adjusted scale, after rounding, would be - // greater than MaxScale. (Inexact and Rounded will also be raised.) - Overflow - // Rounded occurs when the result of an operation is rounded, or if an - // Overflow/Underflow occurs. - Rounded - // Subnormal ocurs when the result of a conversion or operation is subnormal - // (i.e. the adjusted scale is less than MinScale before any rounding). - Subnormal - // Underflow occurs when the result is inexact and the adjusted scale would - // be smaller (more negative) than MinScale. - Underflow -) - -func (c Condition) Error() string { return c.String() } - -func (c Condition) String() string { - if c == 0 { - return "" - } - - var b strings.Builder - for i := Condition(1); c != 0; i <<= 1 { - if c&i == 0 { - continue - } - switch c ^= i; i { - case Clamped: - b.WriteString("clamped, ") - case ConversionSyntax: - b.WriteString("conversion syntax, ") - case DivisionByZero: - b.WriteString("division by zero, ") - case DivisionImpossible: - b.WriteString("division impossible, ") - case DivisionUndefined: - b.WriteString("division undefined, ") - case Inexact: - b.WriteString("inexact, ") - case InsufficientStorage: - b.WriteString("insufficient storage, ") - case InvalidContext: - b.WriteString("invalid context, ") - case InvalidOperation: - b.WriteString("invalid operation, ") - case Overflow: - b.WriteString("overflow, ") - case Rounded: - b.WriteString("rounded, ") - case Subnormal: - b.WriteString("subnormal, ") - case Underflow: - b.WriteString("underflow, ") - default: - fmt.Fprintf(&b, "unknown(%d), ", i) - } - } - // Omit trailing comma and space. - return b.String()[:b.Len()-2] -} - -var _ error = Condition(0) diff --git a/vendor/github.com/ericlagergren/decimal/continued_frac.go b/vendor/github.com/ericlagergren/decimal/continued_frac.go deleted file mode 100644 index b996b49f..00000000 --- a/vendor/github.com/ericlagergren/decimal/continued_frac.go +++ /dev/null @@ -1,273 +0,0 @@ -package decimal - -import ( - "fmt" -) - -// Term is a specific term in a continued fraction. A and B correspond with the -// a and b variables of the typical representation of a continued fraction. An -// example can be seen in the book, ``Numerical Recipes in C: The Art of -// Scientific Computing'' (ISBN 0-521-43105-5) in figure 5.2.1 on page 169. -type Term struct { - A, B *Big -} - -func (t Term) String() string { - return fmt.Sprintf("[%s / %s]", t.A, t.B) -} - -// Generator represents a continued fraction. -type Generator interface { - // Next returns true if there are future terms. Every call to Term—even the - // first—must be preceded by a call to Next. In general, Generators should - // always return true unless an exceptional condition occurs. - Next() bool - - // Term returns the next term in the fraction. The caller must not modify - // any of the Term's fields. - Term() Term -} - -// Contexter allows Generators to provide a different Context than z's. It's -// intended to be analogous to the relationship between, for example, -// Context.Mul and Big.Mul. -type Contexter interface { - Context() Context -} - -// Okay, I _am_ sorry about the name of this interface. It's stupid. - -// Walliser is analogous to Lentzer, except it's for the Wallis function. -type Walliser interface { - // Wallis provides the backing storage for a Generator passed to the Wallis - // function. See the Lentzer interface for more information. - Wallis() (a, a1, b, b1, p, eps *Big) -} - -type walliser struct { - prec int -} - -func (w walliser) Wallis() (a, a1, b, b1, p, eps *Big) { - a = WithPrecision(w.prec) - a1 = WithPrecision(w.prec) - b = WithPrecision(w.prec) - b1 = WithPrecision(w.prec) - p = WithPrecision(w.prec) - eps = New(1, w.prec) - return a, a1, b, b1, p, eps -} - -// Wallis sets z to the result of the continued fraction provided -// by the Generator and returns z. -// -// The fraction is evaluated in a top-down manner, using the -// recurrence algorithm discovered by John Wallis. For more -// information on continued fraction representations, see the -// Lentz function. -func (c Context) Wallis(z *Big, g Generator) *Big { - if !g.Next() { - return z - } - - ws, ok := g.(Walliser) - if !ok { - ws = walliser{prec: c.precision() + 5} - } - a, a_1, b, b_1, p, eps := ws.Wallis() - - t := g.Term() - - a_1.SetUint64(1) - a.Copy(t.B) - b.SetUint64(1) - - ctx := z.Context - if c, ok := g.(Contexter); ok { - ctx = c.Context() - } - - for g.Next() && p.IsFinite() { - t = g.Term() - - z.Copy(a) - ctx.FMA(a, a, t.B, ctx.Mul(a_1, a_1, t.A)) - a_1.Copy(z) - - z.Copy(b) - ctx.FMA(b, b, t.B, ctx.Mul(b_1, b_1, t.A)) - b_1.Copy(z) - - ctx.Quo(z, a, b) - if ctx.Sub(p, z, p).CmpAbs(eps) <= 0 { - break - } - p.Copy(z) - } - return z -} - -// Lentzer, if implemented, allows Generators to provide their own backing -// storage for the Lentz function. -type Lentzer interface { - // Lentz provides the backing storage for a Generator passed to the Lentz - // function. - // - // In Contexter isn't implemented, f, Δ, C, and D should have large enough - // precision to provide a correct result, (See note for the Lentz function.) - // - // eps should be a sufficiently small decimal, likely 1e-15 or smaller. - // - // For more information, refer to "Numerical Recipes in C: The Art of - // Scientific Computing" (ISBN 0-521-43105-5), pg 171. - Lentz() (f, Δ, C, D, eps *Big) -} - -// lentzer implements the Lentzer interface. -type lentzer struct{ prec int } - -func (l lentzer) Lentz() (f, Δ, C, D, eps *Big) { - f = WithPrecision(l.prec) - Δ = WithPrecision(l.prec) - C = WithPrecision(l.prec) - D = WithPrecision(l.prec) - eps = New(1, l.prec) - return f, Δ, C, D, eps -} - -var tiny = New(10, 60) - -// Lentz sets z to the result of the continued fraction provided -// by the Generator and returns z. -// -// The continued fraction should be represented as such: -// -// a1 -// f(x) = b0 + -------------------- -// a2 -// b1 + --------------- -// a3 -// b2 + ---------- -// a4 -// b3 + ----- -// ... -// -// Or, equivalently: -// -// a1 a2 a3 -// f(x) = b0 + ---- ---- ---- -// b1 + b2 + b3 + ··· -// -// If terms need to be subtracted, the a_N terms should be -// negative. To compute a continued fraction without b_0, divide -// the result by a_1. -// -// If the first call to the Generator's Next method returns -// false, the result of Lentz is undefined. -// -// Note: the accuracy of the result may be affected by the -// precision of intermediate results. If larger precision is -// desired, it may be necessary for the Generator to implement -// the Lentzer interface and set a higher precision for f, Δ, C, -// and D. -func (c Context) Lentz(z *Big, g Generator) *Big { - // We use the modified Lentz algorithm from - // "Numerical Recipes in C: The Art of Scientific Computing" (ISBN - // 0-521-43105-5), pg 171. - // - // Set f0 = b0; if b0 = 0 set f0 = tiny. - // Set C0 = f0. - // Set D0 = 0. - // For j = 1, 2,... - // Set D_j = b_j+a_j*D{_j−1}. - // If D_j = 0, set D_j = tiny. - // Set C_j = b_j+a_j/C{_j−1}. - // If C_j = 0, set C_j = tiny. - // Set D_j = 1/D_j. - // Set ∆_j = C_j*D_j. - // Set f_j = f{_j-1}∆j. - // If |∆_j - 1| < eps then exit. - - if !g.Next() { - return z - } - - // See if our Generator provides us with backing storage. - lz, ok := g.(Lentzer) - if !ok { - // TODO(eric): what is a sensible default precision? - lz = lentzer{prec: c.precision() + 5} - } - f, Δ, C, D, eps := lz.Lentz() - - // tiny should be less than typical values of eps. - tiny := tiny - if eps.Scale() > tiny.Scale() { - tiny = New(10, min(eps.Scale()*2, c.emax())) - } - - t := g.Term() - - if t.B.Sign() != 0 { - f.Copy(t.B) - } else { - f.Copy(tiny) - } - C.Copy(f) - D.SetUint64(0) - - ctx := z.Context - if c, ok := g.(Contexter); ok { - ctx = c.Context() - } - - for g.Next() && f.IsFinite() { - t = g.Term() - - // Set D_j = b_j + a_j*D{_j-1} - // Reuse D for the multiplication. - ctx.FMA(D, t.A, D, t.B) // D.Add(t.B, D.Mul(t.A, D)) - - // If D_j = 0, set D_j = tiny - if D.Sign() == 0 { - D.Copy(tiny) - } - - // Set C_j = b_j + a_j/C{_j-1} - // Reuse C for the division. - ctx.Add(C, t.B, ctx.Quo(C, t.A, C)) - - // If C_j = 0, set C_j = tiny - if C.Sign() == 0 { - C.Copy(tiny) - } - - // Set D_j = 1/D_j - ctx.Quo(D, one.get(), D) - - // Set Δ_j = C_j*D_j - ctx.Mul(Δ, C, D) - - // Set f_j = f{_j-1}*Δ_j - ctx.Mul(f, f, Δ) - - // If |Δ_j - 1| < eps then exit - if ctx.Sub(Δ, Δ, one.get()).CmpAbs(eps) < 0 { - break - } - } - z.Context.Conditions |= f.Context.Conditions - return ctx.Set(z, f) -} - -/* -func dump(f, Δ, D, C, eps *Big) { - fmt.Printf(` -f : %s -Δ : %s -D : %s -C : %s -eps: %s -`, f, Δ, D, C, eps) -} -*/ diff --git a/vendor/github.com/ericlagergren/decimal/decomposer.go b/vendor/github.com/ericlagergren/decimal/decomposer.go deleted file mode 100644 index d2b1d486..00000000 --- a/vendor/github.com/ericlagergren/decimal/decomposer.go +++ /dev/null @@ -1,96 +0,0 @@ -package decimal - -import ( - "encoding/binary" - "fmt" - "math" - "math/big" -) - -// decomposer composes or decomposes a decimal value to and from individual parts. -// There are four separate parts: a boolean negative flag, a form byte with three possible states -// (finite=0, infinite=1, NaN=2), a base-2 big-endian integer -// coefficient (also known as a significand) as a []byte, and an int32 exponent. -// These are composed into a final value as "decimal = (neg) (form=finite) coefficient * 10 ^ exponent". -// A zero length coefficient is a zero value. -// If the form is not finite the coefficient and scale should be ignored. -// The negative parameter may be set to true for any form, although implementations are not required -// to respect the negative parameter in the non-finite form. -// -// Implementations may choose to signal a negative zero or negative NaN, but implementations -// that do not support these may also ignore the negative zero or negative NaN without error. -// If an implementation does not support Infinity it may be converted into a NaN without error. -// If a value is set that is larger then what is supported by an implementation is attempted to -// be set, an error must be returned. -// Implementations must return an error if a NaN or Infinity is attempted to be set while neither -// are supported. -type decomposer interface { - // Decompose returns the internal decimal state into parts. - // If the provided buf has sufficient capacity, buf may be returned as the coefficient with - // the value set and length set as appropriate. - Decompose(buf []byte) (form byte, negative bool, coefficient []byte, exponent int32) - - // Compose sets the internal decimal value from parts. If the value cannot be - // represented then an error should be returned. - // The coefficent should not be modified. Successive calls to compose with - // the same arguments should result in the same decimal value. - Compose(form byte, negative bool, coefficient []byte, exponent int32) error -} - -// Decompose returns the internal decimal state into parts. -// If the provided buf has sufficient capacity, buf may be returned as the coefficient with -// the value set and length set as appropriate. -func (z *Big) Decompose(buf []byte) (form byte, negative bool, coefficient []byte, exponent int32) { - negative = z.Sign() < 0 - switch { - case z.IsInf(0): - form = 1 - return - case z.IsNaN(0): - form = 2 - return - } - if !z.IsFinite() { - panic("expected number to be finite") - } - if z.exp > math.MaxInt32 { - panic("exponent exceeds max size") - } - exponent = int32(z.exp) - - if z.isCompact() { - if cap(buf) >= 8 { - coefficient = buf[:8] - } else { - coefficient = make([]byte, 8) - } - binary.BigEndian.PutUint64(coefficient, z.compact) - } else { - coefficient = z.unscaled.Bytes() // This returns a big-endian slice. - } - return -} - -// Compose sets the internal decimal value from parts. If the value cannot be -// represented then an error should be returned. -func (z *Big) Compose(form byte, negative bool, coefficient []byte, exponent int32) error { - switch form { - default: - return fmt.Errorf("unknown form: %v", form) - case 0: - // Finite form below. - case 1: - z.SetInf(negative) - return nil - case 2: - z.SetNaN(false) - return nil - } - bigc := &big.Int{} - bigc.SetBytes(coefficient) - z.SetBigMantScale(bigc, -int(exponent)) - if negative { - z.Neg(z) - } - return nil -} diff --git a/vendor/github.com/ericlagergren/decimal/doc.go b/vendor/github.com/ericlagergren/decimal/doc.go deleted file mode 100644 index 82a3a9a2..00000000 --- a/vendor/github.com/ericlagergren/decimal/doc.go +++ /dev/null @@ -1,108 +0,0 @@ -// Package decimal provides a high-performance, arbitrary precision, -// floating-point decimal library. -// -// Overview -// -// This package provides floating-point decimal numbers, useful for financial -// programming or calculations where a larger, more accurate representation of -// a number is required. -// -// In addition to basic arithmetic operations (addition, subtraction, -// multiplication, and division) this package offers various mathematical -// functions, including the exponential function, various logarithms, and the -// ability to compute continued fractions. -// -// While lean, this package is full of features. It implements interfaces like -// ``fmt.Formatter'' and intuitively utilizes verbs and flags as described in -// the ``fmt'' package. (Also included: ``fmt.Scanner'', ``fmt.Stringer'', -// ``encoding.TextUnmarshaler'', and ``encoding.TextMarshaler''.) -// -// It allows users to specific explicit contexts for arithmetic operations, but -// doesn't require it. It provides access to NaN payloads and is more lenient -// when parsing a decimal from a string than the GDA specification requires. -// -// API interfaces have been changed slightly to work more seamlessly with -// existing Go programs. For example, many ``Quantize'' implementations require -// a decimal as both the receiver and argument which isn't very user friendly. -// Instead, this library accepts a simple ``int'' which can be derived from an -// existing decimal if required. -// -// It contains two modes of operation designed to make transitioning to various -// GDA "quirks" (like always rounding lossless operations) easier. -// -// GDA: strictly adhere to the GDA specification (default) -// Go: utilize Go idioms, more flexibility -// -// Goals -// -// There are three primary goals of this library: -// -// 1. Correctness -// -// By adhering to the General Decimal Arithmetic specification, this package -// has a well-defined structure for its arithmetic operations. -// -// 2. Performance -// -// Decimal libraries are inherently slow; this library works diligently to -// minimize memory allocations and utilize efficient algorithms. Performance -// regularly benchmarks as fast or faster than many other popular decimal -// libraries. -// -// 3. Ease of use -// -// Libraries should be intuitive and work out of the box without having to -// configure too many settings; however, precise settings should still be -// available. -// -// Usage -// -// The following type is supported: -// -// Big decimal numbers -// -// The zero value for a Big corresponds with 0, meaning all the following are -// valid: -// -// var x Big -// y := new(Big) -// z := &Big{} -// -// Method naming is the same as math/big's, meaning: -// -// func (z *T) SetV(v V) *T // z = v -// func (z *T) Unary(x *T) *T // z = unary x -// func (z *T) Binary(x, y *T) *T // z = x binary y -// func (x *T) Pred() P // p = pred(x) -// -// In general, its conventions mirror math/big's. It is suggested to read the -// math/big package comments to gain an understanding of this package's -// conventions. -// -// Arguments to Binary and Unary methods are allowed to alias, so the following -// is valid: -// -// x := New(1, 0) -// x.Add(x, x) // x == 2 -// -// y := New(1, 0) -// y.FMA(y, x, y) // y == 3 -// -// Unless otherwise specified, the only argument that will be modified is the -// result (``z''). This means the following is valid and race-free: -// -// x := New(1, 0) -// var g1, g2 Big -// -// go func() { g1.Add(x, x) }() -// go func() { g2.Add(x, x) }() -// -// But this is not: -// -// x := New(1, 0) -// var g Big -// -// go func() { g.Add(x, x) }() // BAD! RACE CONDITION! -// go func() { g.Add(x, x) }() // BAD! RACE CONDITION! -// -package decimal diff --git a/vendor/github.com/ericlagergren/decimal/format.go b/vendor/github.com/ericlagergren/decimal/format.go deleted file mode 100644 index 8a34100b..00000000 --- a/vendor/github.com/ericlagergren/decimal/format.go +++ /dev/null @@ -1,347 +0,0 @@ -package decimal - -import ( - "bytes" - "fmt" - "io" - "math/big" - "strconv" -) - -// allZeros returns true if every character in b is '0'. -func allZeros(b []byte) bool { - for _, c := range b { - if c != '0' { - return false - } - } - return true -} - -var zero = []byte{'0'} - -// roundString rounds the plain numeric string (e.g., "1234") b. -func roundString(b []byte, mode RoundingMode, pos bool, prec int) []byte { - if prec >= len(b) { - return append(b, bytes.Repeat(zero, prec-len(b))...) - } - - // Trim zeros until prec. This is useful when we can round exactly by simply - // chopping zeros off the end of the number. - if allZeros(b[prec:]) { - return b[:prec] - } - - b = b[:prec+1] - i := prec - 1 - - // Blindly increment b[i] and handle possible carries later. - switch mode { - case AwayFromZero: - b[i]++ - case ToZero: - // OK - case ToPositiveInf: - if pos { - b[i]++ - } - case ToNegativeInf: - if !pos { - b[i]++ - } - case ToNearestEven: - if b[i+1] > '5' || b[i+1] == '5' && b[i]%2 != 0 { - b[i]++ - } - case ToNearestAway: - if b[i+1] >= '5' { - b[i]++ - } - case ToNearestTowardZero: - if b[i+1] > '5' { - b[i]++ - } - } - - if b[i] != '9'+1 { - return b[:prec] - } - - // We had to carry. - b[i] = '0' - - for i--; i >= 0; i-- { - if b[i] != '9' { - b[i]++ - break - } - b[i] = '0' - } - - // Carried all the way over to the first column, so slide the buffer down - // and instead of reallocating. - if b[0] == '0' { - copy(b[1:], b) - b[0] = '1' - // We might end up with an extra digit of precision. E.g., given the - // decimal 9.9 with a requested precision of 1, we'd convert 99 -> 10. - // Let the calling code handle that case. - prec++ - } - return b[:prec] -} - -// formatCompact formats the compact decimal, x, as an unsigned integer. -func formatCompact(x uint64) []byte { - var b [20]byte - return strconv.AppendUint(b[0:0], uint64(x), 10) -} - -// formatUnscaled formats the unscaled (non-compact) decimal, unscaled, as an -// unsigned integer. -func formatUnscaled(unscaled *big.Int) []byte { - // math/big.MarshalText never returns an error, only nil, so there's no need - // to check for an error. Use MarshalText instead of Append because it limits - // us to one allocation. - b, _ := unscaled.MarshalText() - if b[0] == '-' { - b = b[1:] - } - return b -} - -// noWidth indicates the width of a formatted number wasn't set. -const noWidth = -1 - -type format byte - -const ( - normal format = iota // either sci or plain, depending on x - plain // forced plain - sci // forced sci -) - -//go:generate stringer -type=format - -type formatter struct { - w interface { - io.Writer - io.ByteWriter - WriteString(string) (int, error) - } - sign byte // leading '+' or ' ' flag - prec int // total precision - width int // min width - n int64 // cumulative number of bytes written to w -} - -func (f *formatter) WriteByte(c byte) error { - f.n++ - return f.w.WriteByte(c) -} - -func (f *formatter) WriteString(s string) (int, error) { - m, err := f.w.WriteString(s) - f.n += int64(m) - return m, err -} - -func (f *formatter) Write(p []byte) (n int, err error) { - n, err = f.w.Write(p) - f.n += int64(n) - return n, err -} - -var sciE = [2]byte{GDA: 'E', Go: 'e'} - -func (f *formatter) format(x *Big, format format, e byte) { - if x == nil { - f.WriteString("") - return - } - - o := x.Context.OperatingMode - if x.isSpecial() { - switch o { - case GDA: - f.WriteString(x.form.String()) - if x.IsNaN(0) && x.compact != 0 { - f.WriteString(strconv.FormatUint(x.compact, 10)) - } - case Go: - if x.IsNaN(0) { - f.WriteString("NaN") - } else if x.IsInf(+1) { - f.WriteString("+Inf") - } else { - f.WriteString("-Inf") - } - } - return - } - - if x.isZero() && o == Go { - // Go mode prints zeros different than GDA. - if f.width == noWidth { - f.WriteByte('0') - } else { - f.WriteString("0.") - io.CopyN(f, zeroReader{}, int64(f.width)) - } - return - } - - neg := x.Signbit() - if neg { - f.WriteByte('-') - } else if f.sign != 0 { - f.WriteByte(f.sign) - } - - var ( - b []byte - exp int - ) - if f.prec > 0 { - if x.isCompact() { - b = formatCompact(x.compact) - } else { - b = formatUnscaled(&x.unscaled) - } - orig := len(b) - b = roundString(b, x.Context.RoundingMode, !neg, f.prec) - exp = int(x.exp) + orig - len(b) - } else if f.prec < 0 { - f.prec = -f.prec - exp = -f.prec - } else { - b = []byte{'0'} - } - - // "Next, the adjusted exponent is calculated; this is the exponent, plus - // the number of characters in the converted coefficient, less one. That - // is, exponent+(clength-1), where clength is the length of the coefficient - // in decimal digits. - adj := exp + (len(b) - 1) - if format != sci { - if exp <= 0 && (format == plain || adj >= -6) { - // "If the exponent is less than or equal to zero and the adjusted - // exponent is greater than or equal to -6 the number will be - // converted to a character form without using exponential notation." - // - // - http://speleotrove.com/decimal/daconvs.html#reftostr - f.formatPlain(b, exp) - return - } - - // No decimal places, write b and fill with zeros. - if format == plain && exp > 0 { - f.Write(b) - io.CopyN(f, zeroReader{}, int64(exp)) - return - } - } - f.formatSci(b, adj, e) -} - -// formatSci returns the scientific version of b. -func (f *formatter) formatSci(b []byte, adj int, e byte) { - f.WriteByte(b[0]) - - if len(b) > 1 { - f.WriteByte('.') - f.Write(b[1:]) - } - - // If negative, the call to strconv.Itoa will add the minus sign for us. - f.WriteByte(e) - if adj > 0 { - f.WriteByte('+') - } - f.WriteString(strconv.Itoa(adj)) -} - -// formatPlain returns the plain string version of b. -func (f *formatter) formatPlain(b []byte, exp int) { - const zeroRadix = "0." - - switch radix := len(b) + exp; { - // log10(b) == scale, so immediately before b: 0.123456 - case radix == 0: - f.WriteString(zeroRadix) - f.Write(b) - - // log10(b) > scale, so somewhere inside b: 123.456 - case radix > 0: - f.Write(b[:radix]) - if radix < len(b) { - f.WriteByte('.') - f.Write(b[radix:]) - } - - // log10(b) < scale, so before p "0s" and before b: 0.00000123456 - default: - f.WriteString(zeroRadix) - io.CopyN(f, zeroReader{}, -int64(radix)) - - end := len(b) - if f.prec < end { - end = f.prec - } - f.Write(b[:end]) - } -} - -// TODO(eric): can we merge zeroReader and spaceReader into a "singleReader" or -// something and still maintain the same performance? - -// zeroReader is an io.Reader that, when read from, only provides the character -// '0'. -type zeroReader struct{} - -// Read implements io.Reader. -func (z zeroReader) Read(p []byte) (n int, err error) { - // zeroLiterals is 16 '0' bytes. It's used to speed up zeroReader's Read - // method. - const zeroLiterals = "0000000000000000" - for n < len(p) { - m := copy(p[n:], zeroLiterals) - if m == 0 { - break - } - n += m - } - return n, nil -} - -// spaceReader is an io.Reader that, when read from, only provides the -// character ' '. -type spaceReader struct{} - -// Read implements io.Reader. -func (s spaceReader) Read(p []byte) (n int, err error) { - // spaceLiterals is 16 ' ' bytes. It's used to speed up spaceReader's Read - // method. - const spaceLiterals = " " - for n < len(p) { - m := copy(p[n:], spaceLiterals) - if m == 0 { - break - } - n += m - } - return n, nil -} - -// stateWrapper is a wrapper around an io.Writer to add WriteByte and -// WriteString methods. -type stateWrapper struct{ fmt.State } - -func (w stateWrapper) WriteByte(c byte) error { - _, err := w.Write([]byte{c}) - return err -} - -func (w stateWrapper) WriteString(s string) (int, error) { - return io.WriteString(w.State, s) -} diff --git a/vendor/github.com/ericlagergren/decimal/format_string.go b/vendor/github.com/ericlagergren/decimal/format_string.go deleted file mode 100644 index bb84925b..00000000 --- a/vendor/github.com/ericlagergren/decimal/format_string.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by "stringer -type=format"; DO NOT EDIT. - -package decimal - -import "strconv" - -func _() { - // An "invalid array index" compiler error signifies that the constant values have changed. - // Re-run the stringer command to generate them again. - var x [1]struct{} - _ = x[normal-0] - _ = x[plain-1] - _ = x[sci-2] -} - -const _format_name = "normalplainsci" - -var _format_index = [...]uint8{0, 6, 11, 14} - -func (i format) String() string { - if i >= format(len(_format_index)-1) { - return "format(" + strconv.FormatInt(int64(i), 10) + ")" - } - return _format_name[_format_index[i]:_format_index[i+1]] -} diff --git a/vendor/github.com/ericlagergren/decimal/internal/arith/abs.go b/vendor/github.com/ericlagergren/decimal/internal/arith/abs.go deleted file mode 100644 index e82f794c..00000000 --- a/vendor/github.com/ericlagergren/decimal/internal/arith/abs.go +++ /dev/null @@ -1,66 +0,0 @@ -package arith - -import ( - "math/big" - "math/bits" -) - -// Abs returns the absolute value of x. -func Abs(x int64) uint64 { - m := x >> 63 - return uint64((x ^ m) - m) -} - -// Cmp compares x and y and returns -// -// -1 if x < 0 -// 0 if x == 0 -// +1 if x > 0 -// -func Cmp(x, y uint64) int { - if x != y { - if x > y { - return +1 - } - return -1 - } - return 0 -} - -// CmpShift compares x and y*shift. -func CmpShift(x, y, shift uint64) int { - y1, y0 := bits.Mul64(y, shift) - if y1 != 0 { - return -1 - } - return Cmp(x, y0) -} - -// CmpBits compares x and y. -func CmpBits(x, y []big.Word) (r int) { - // Copied from math/big.nat.go - m := len(x) - n := len(y) - if m != n || m == 0 { - switch { - case m < n: - r = -1 - case m > n: - r = 1 - } - return - } - - i := m - 1 - for i > 0 && x[i] == y[i] { - i-- - } - - switch { - case x[i] < y[i]: - r = -1 - case x[i] > y[i]: - r = 1 - } - return -} diff --git a/vendor/github.com/ericlagergren/decimal/internal/arith/arith.go b/vendor/github.com/ericlagergren/decimal/internal/arith/arith.go deleted file mode 100644 index ee02aa4a..00000000 --- a/vendor/github.com/ericlagergren/decimal/internal/arith/arith.go +++ /dev/null @@ -1,244 +0,0 @@ -// Package arith provides performance-sensitive arithmetic -// operations. -package arith - -import ( - "math/big" - "math/bits" -) - -const ( - intSize = 32 << (^uint(0) >> 63) // 32 or 64 - MaxInt = 1<<(intSize-1) - 1 -) - -// Words returns a little-endian slice of big.Words representing -// the uint64. -func Words(x uint64) []big.Word { - if bits.UintSize == 32 { - return []big.Word{big.Word(x), big.Word(x >> 32)} - } - return []big.Word{big.Word(x)} -} - -// Add sets z to x + y and returns z. -// -// x is assumed to be unsigned. -func Add(z, x *big.Int, y uint64) *big.Int { - zw := z.Bits() - switch xw := x.Bits(); { - default: - zw = add(zw, xw, big.Word(y)) - case len(xw) == 0: - zw = setW(zw, big.Word(y)) - case y == 0: - zw = set(zw, xw) - } - return z.SetBits(zw) -} - -// Sub sets z to x - y and returns z. -// -// x is assumed to be unsigned. -func Sub(z, x *big.Int, y uint64) *big.Int { - zw := z.Bits() - switch xw := x.Bits(); { - default: - zw = sub(zw, xw, big.Word(y)) - case y == 0: - zw = set(zw, xw) - case len(xw) == 0: - panic("underflow") - } - return z.SetBits(zw) -} - -// Mul sets z to x * y and returns z. -// -// x is assumed to be unsigned. -func Mul(z, x *big.Int, y uint64) *big.Int { - if y == 0 || x.Sign() == 0 { - return z.SetUint64(0) - } - return z.SetBits(mulAddWW(z.Bits(), x.Bits(), big.Word(y), 0)) -} - -// MulPow10 computes x * 10**n and a bool indicating whether the -// multiplcation was successful. -func MulPow10(x uint64, n uint64) (uint64, bool) { - p, ok := Pow10(n) - if !ok { - // 0 * 10^n = 0. - return 0, x == 0 - } - hi, lo := bits.Mul64(x, p) - return lo, hi == 0 -} - -// MulBigPow10 sets z to x * 10**n and returns z. -func MulBigPow10(z, x *big.Int, n uint64) *big.Int { - switch { - case x.Sign() == 0: - return z.SetUint64(0) - case n == 0: - return z.Set(x) - default: - return z.Mul(x, BigPow10(n)) - } -} - -// Set sets z to the 128-bit integer represented by z1 and z0. -func Set(z *big.Int, z1, z0 uint64) *big.Int { - ww := makeWord(z.Bits(), 128/bits.UintSize) - if bits.UintSize == 32 { - ww[3] = big.Word(z1 >> 32) - ww[2] = big.Word(z1) - ww[1] = big.Word(z0 >> 32) - ww[0] = big.Word(z0) - } else { - ww[1] = big.Word(z1) - ww[0] = big.Word(z0) - } - return z.SetBits(ww) -} - -// The following is (mostly) copied from math/big/arith.go, licensed under the -// BSD 3-clause license: https://github.com/golang/go/blob/master/LICENSE - -const ( - _S = _W / 8 // word size in bytes - - _W = bits.UintSize // word size in bits - _B = 1 << _W // digit base - _M = _B - 1 // digit mask - - _W2 = _W / 2 // half word size in bits - _B2 = 1 << _W2 // half digit base - _M2 = _B2 - 1 // half digit mask -) - -func makeWord(z []big.Word, n int) []big.Word { - if n <= cap(z) { - return z[:n] - } - const e = 4 - return make([]big.Word, n, n+e) -} - -func norm(z []big.Word) []big.Word { - i := len(z) - for i > 0 && z[i-1] == 0 { - i-- - } - return z[0:i] -} - -func mulWW(x, y big.Word) (z1, z0 big.Word) { - zz1, zz0 := bits.Mul(uint(x), uint(y)) - return big.Word(zz1), big.Word(zz0) -} - -func addWW(x, y, c big.Word) (z1, z0 big.Word) { - zz1, zz0 := bits.Add(uint(x), uint(y), uint(c)) - return big.Word(zz0), big.Word(zz1) -} - -func subWW(x, y, c big.Word) (z1, z0 big.Word) { - zz1, zz0 := bits.Sub(uint(x), uint(y), uint(c)) - return big.Word(zz0), big.Word(zz1) -} - -func mulAddWW(z, x []big.Word, y, r big.Word) []big.Word { - m := len(x) - z = makeWord(z, m+1) - z[m] = mulAddVWW(z[0:m], x, y, r) - return norm(z) -} - -func mulAddVWW(z, x []big.Word, y, r big.Word) (c big.Word) { - c = r - for i := range z { - c, z[i] = mulAddWWW(x[i], y, c) - } - return c -} - -func mulAddWWW(x, y, c big.Word) (z1, z0 big.Word) { - z1, zz0 := mulWW(x, y) - if z0 = zz0 + c; z0 < zz0 { - z1++ - } - return z1, z0 -} - -func set(z, x []big.Word) []big.Word { - z = makeWord(z, len(x)) - copy(z, x) - return z -} - -func setW(z []big.Word, x big.Word) []big.Word { - z = makeWord(z, 1) - z[0] = x - return z -} - -// add sets z to x + y and returns z. -func add(z, x []big.Word, y big.Word) []big.Word { - m := len(x) - const n = 1 - - // m > 0 && y > 0 - - z = makeWord(z, m+1) - var c big.Word - // addVV(z[0:m], x, y) but WW since len(y) == 1 - c, z[0] = addWW(x[0], y, 0) - if m > n { - c = addVW(z[n:m], x[n:], c) - } - z[m] = c - return norm(z) -} - -// sub sets z to x - y and returns z. -func sub(z, x []big.Word, y big.Word) []big.Word { - m := len(x) - const n = 1 - - // m > 0 && y > 0 - - z = makeWord(z, m) - // subVV(z[0:m], x, y) but WW since len(y) == 1 - var c big.Word - c, z[0] = subWW(x[0], y, 0) - if m > n { - c = subVW(z[n:], x[n:], c) - } - if c != 0 { - panic("underflow") - } - return norm(z) -} - -// addVW sets z to x + y and returns the carry. -func addVW(z, x []big.Word, y big.Word) (c big.Word) { - c = y - for i, xi := range x[:len(z)] { - zi := xi + c - z[i] = zi - c = xi &^ zi >> (bits.UintSize - 1) - } - return c -} - -// subVW sets z to x - y and returns the carry. -func subVW(z, x []big.Word, y big.Word) (c big.Word) { - c = y - for i, xi := range x[:len(z)] { - zi := xi - c - z[i] = zi - c = zi &^ xi >> (bits.UintSize - 1) - } - return c -} diff --git a/vendor/github.com/ericlagergren/decimal/internal/arith/intlen.go b/vendor/github.com/ericlagergren/decimal/internal/arith/intlen.go deleted file mode 100644 index 0b14a271..00000000 --- a/vendor/github.com/ericlagergren/decimal/internal/arith/intlen.go +++ /dev/null @@ -1,54 +0,0 @@ -package arith - -import ( - "math/big" - "math/bits" -) - -const MaxLength = 20 - -// Length returns the number of digits in x. -func Length(x uint64) int { - if x < 10 { - return 1 - } - // From https://graphics.stanford.edu/~seander/bithacks.html#IntegerLog10 - r := int((bits.Len64(x) * 1233) >> 12) - if p, _ := Pow10(uint64(r)); x < p { - return r - } - return r + 1 -} - -// BigLength returns the number of digits in x. -func BigLength(x *big.Int) int { - if x.Sign() == 0 { - return 1 - } - - var ( - m uint64 - nb = uint64(x.BitLen()) - ) - - // overflowCutoff is the largest number where N * 0x268826A1 <= 1<<63 - 1 - const overflowCutoff = 14267572532 - if nb > overflowCutoff { - // Given the identity ``log_n a + log_n b = log_n a*b'' - // and ``(1<<63 - 1) / overflowCutoff < overFlowCutoff'' - // we can break nb into two factors: overflowCutoff and X. - - // overflowCutoff / log10(2) - m = 1<<32 - 1 - nb = (nb / overflowCutoff) + (nb % overflowCutoff) - } - - // 0x268826A1/2^31 is an approximation of log10(2). See ilog10. - // The more accurate approximation 0x268826A13EF3FE08/2^63 overflows. - m += ((nb + 1) * 0x268826A1) >> 31 - - if x.CmpAbs(BigPow10(m)) < 0 { - return int(m) - } - return int(m + 1) -} diff --git a/vendor/github.com/ericlagergren/decimal/internal/arith/pow.go b/vendor/github.com/ericlagergren/decimal/internal/arith/pow.go deleted file mode 100644 index 0c175d6d..00000000 --- a/vendor/github.com/ericlagergren/decimal/internal/arith/pow.go +++ /dev/null @@ -1,206 +0,0 @@ -package arith - -import ( - "math/big" - "sync" - "sync/atomic" - - "github.com/ericlagergren/decimal/internal/c" -) - -const ( - // PowTabLen is the largest cached power for integers. - PowTabLen = 20 - - // BigPowTabLen is the largest cached power for *big.Ints. - BigPowTabLen = 1e5 -) - -var ( - pow10tab = [PowTabLen]uint64{ - 0: 1, - 1: 10, - 2: 100, - 3: 1000, - 4: 10000, - 5: 100000, - 6: 1000000, - 7: 10000000, - 8: 100000000, - 9: 1000000000, - 10: 10000000000, - 11: 100000000000, - 12: 1000000000000, - 13: 10000000000000, - 14: 100000000000000, - 15: 1000000000000000, - 16: 10000000000000000, - 17: 100000000000000000, - 18: 1000000000000000000, - 19: 10000000000000000000, - } - bigMu sync.Mutex // protects writes to bigPow10Tab - bigPow10Tab atomic.Value -) - -func loadBigTable() []*big.Int { - return *(bigPow10Tab.Load().(*[]*big.Int)) -} - -func storeBigTable(x *[]*big.Int) { - bigPow10Tab.Store(x) -} - -// PowOfTenBig reports whether x is a power of 10. -func PowOfTenBig(x *big.Int) bool { - if x.Bit(0) != 0 { - return x.Cmp(c.OneInt) == 0 - } - if x.Sign() == 0 { - return true - } - q := new(big.Int).Set(x) - r := new(big.Int) - for len := BigLength(x); len > 20; len-- { - q.QuoRem(q, c.TenInt, r) - if r.Sign() != 0 { - return false - } - } - return PowOfTen(q.Uint64()) -} - -// PowOfTen reports whether x is a power of 10. -func PowOfTen(x uint64) bool { - if x&1 != 0 { - return x == 1 - } - switch x { - case 10, - 100, - 1000, - 10000, - 100000, - 1000000, - 10000000, - 100000000, - 1000000000, - 10000000000, - 100000000000, - 1000000000000, - 10000000000000, - 100000000000000, - 1000000000000000, - 10000000000000000, - 100000000000000000, - 1000000000000000000, - 10000000000000000000: - return true - default: - return false - } -} - -// BigPow10 computes 10**n. -// -// The returned *big.Int must not be modified. -func BigPow10(n uint64) *big.Int { - tab := loadBigTable() - - tabLen := uint64(len(tab)) - if n < tabLen { - return tab[n] - } - - // Too large for our table. - if n >= BigPowTabLen { - // As an optimization, we don't need to start from - // scratch each time. Start from the largest term we've - // found so far. - partial := tab[tabLen-1] - p := new(big.Int).SetUint64(n - (tabLen - 1)) - return p.Mul(partial, p.Exp(c.TenInt, p, nil)) - } - return growBigTen(n) -} - -func growBigTen(n uint64) *big.Int { - // We need to expand our table to contain the value for - // 10**n. - bigMu.Lock() - - tab := loadBigTable() - - // Look again in case the table was rebuilt before we grabbed - // the lock. - tableLen := uint64(len(tab)) - if n < tableLen { - bigMu.Unlock() - return tab[n] - } - - // n < BigTabLen - - newLen := tableLen * 2 - for newLen <= n { - newLen *= 2 - } - if newLen > BigPowTabLen { - newLen = BigPowTabLen - } - for i := tableLen; i < newLen; i++ { - tab = append(tab, new(big.Int).Mul(tab[i-1], c.TenInt)) - } - - storeBigTable(&tab) - bigMu.Unlock() - return tab[n] -} - -func Safe(e uint64) bool { - return e < PowTabLen -} - -// Pow10 returns 10**e and a boolean indicating whether the -// result fits into a uint64. -func Pow10(e uint64) (uint64, bool) { - if e < PowTabLen { - return pow10tab[e], true - } - return 0, false -} - -// Pow10Int returns 10**e and a boolean indicating whether the -// result fits into an int64. -func Pow10Int(e uint64) (int64, bool) { - if e < PowTabLen-1 { - return int64(pow10tab[e]), true - } - return 0, false -} - -func init() { - // Can we move this into a var decl without copylock freaking out? - storeBigTable(&[]*big.Int{ - 0: new(big.Int).SetUint64(1), - 1: c.TenInt, - 2: new(big.Int).SetUint64(100), - 3: new(big.Int).SetUint64(1000), - 4: new(big.Int).SetUint64(10000), - 5: new(big.Int).SetUint64(100000), - 6: new(big.Int).SetUint64(1000000), - 7: new(big.Int).SetUint64(10000000), - 8: new(big.Int).SetUint64(100000000), - 9: new(big.Int).SetUint64(1000000000), - 10: new(big.Int).SetUint64(10000000000), - 11: new(big.Int).SetUint64(100000000000), - 12: new(big.Int).SetUint64(1000000000000), - 13: new(big.Int).SetUint64(10000000000000), - 14: new(big.Int).SetUint64(100000000000000), - 15: new(big.Int).SetUint64(1000000000000000), - 16: new(big.Int).SetUint64(10000000000000000), - 17: new(big.Int).SetUint64(100000000000000000), - 18: new(big.Int).SetUint64(1000000000000000000), - 19: new(big.Int).SetUint64(10000000000000000000), - }) -} diff --git a/vendor/github.com/ericlagergren/decimal/internal/c/const.go b/vendor/github.com/ericlagergren/decimal/internal/c/const.go deleted file mode 100644 index 26777bce..00000000 --- a/vendor/github.com/ericlagergren/decimal/internal/c/const.go +++ /dev/null @@ -1,39 +0,0 @@ -// Package c provides internal constants. -package c - -import ( - "math" - "math/big" -) - -const ( - is64bit = 1 << (^uintptr(0) >> 63) / 2 // 0 or 1 - is32bit = is64bit &^ 1 // 0 or 1 - - maxScale32 = 425000000 - maxScaleInf32 = 1000000001 - - maxScale64 = 999999999999999999 - maxScaleInf64 = 2000000000000000001 - - MaxScale = maxScale32*is32bit + maxScale64*is64bit - MaxScaleInf = maxScaleInf32*is32bit + maxScaleInf64*is64bit -) - -const Inflated uint64 = math.MaxUint64 - -var ( - OneInt = big.NewInt(1) - TwoInt = big.NewInt(2) - FiveInt = big.NewInt(5) - TenInt = big.NewInt(10) - OneMillionInt = big.NewInt(1000000) - - TenFloat = big.NewFloat(10) - - MaxInt64 = big.NewInt(math.MaxInt64) - MinInt64 = big.NewInt(math.MinInt64) - - MaxInt32 = big.NewInt(math.MaxInt32) - MinInt32 = big.NewInt(math.MinInt32) -) diff --git a/vendor/github.com/ericlagergren/decimal/operatingmode_string.go b/vendor/github.com/ericlagergren/decimal/operatingmode_string.go deleted file mode 100644 index f3cbe4e9..00000000 --- a/vendor/github.com/ericlagergren/decimal/operatingmode_string.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by "stringer -type OperatingMode"; DO NOT EDIT. - -package decimal - -import "strconv" - -func _() { - // An "invalid array index" compiler error signifies that the constant values have changed. - // Re-run the stringer command to generate them again. - var x [1]struct{} - _ = x[GDA-0] - _ = x[Go-1] -} - -const _OperatingMode_name = "GDAGo" - -var _OperatingMode_index = [...]uint8{0, 3, 5} - -func (i OperatingMode) String() string { - if i >= OperatingMode(len(_OperatingMode_index)-1) { - return "OperatingMode(" + strconv.FormatInt(int64(i), 10) + ")" - } - return _OperatingMode_name[_OperatingMode_index[i]:_OperatingMode_index[i+1]] -} diff --git a/vendor/github.com/ericlagergren/decimal/parity.md b/vendor/github.com/ericlagergren/decimal/parity.md deleted file mode 100644 index b7e93c8a..00000000 --- a/vendor/github.com/ericlagergren/decimal/parity.md +++ /dev/null @@ -1,66 +0,0 @@ -### Note: not all operations necessarily have identical names. For example, -`plus` is implemented via `Set`. The operations are spread throughout the -different packages. - -## Arithmetic operations - -- [x] abs -- [x] add -- [x] compare -- [ ] compare-signal -- [x] divide -- [x] divide-integer -- [x] exp -- [x] fused-multiply-add -- [x] ln -- [x] log10 -- [x] max -- [x] max-magnitude -- [x] min -- [x] min-magnitude -- [x] minus # Neg -- [x] multiply -- [x] next-minus -- [x] next-plus -- [ ] next-toward -- [x] plus # Set -- [x] power -- [x] quantize -- [x] reduce -- [x] remainder -- [ ] remainder-near -- [x] round-to-integral-exact -- [ ] round-to-integral-value -- [x] square-root -- [x] subtract - -## Miscellaneous operations - -- [ ] and -- [x] canonical -- [x] class -- [x] compare-total -- [x] compare-total-magnitude -- [x] copy -- [x] copy-abs -- [x] copy-negate -- [x] copy-sign -- [ ] invert -- [x] is-canonical -- [x] is-finite -- [x] is-infinite -- [x] is-NaN -- [x] is-normal -- [x] is-qNaN -- [x] is-signed -- [x] is-sNaN -- [x] is-subnormal -- [x] is-zero -- [ ] logb -- [ ] or -- [x] radix -- [ ] rotate -- [x] same-quantum -- [ ] scaleb -- [x] shift -- [ ] xor diff --git a/vendor/github.com/ericlagergren/decimal/payload_string.go b/vendor/github.com/ericlagergren/decimal/payload_string.go deleted file mode 100644 index 57486a13..00000000 --- a/vendor/github.com/ericlagergren/decimal/payload_string.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by "stringer -type Payload -linecomment"; DO NOT EDIT. - -package decimal - -import "strconv" - -func _() { - // An "invalid array index" compiler error signifies that the constant values have changed. - // Re-run the stringer command to generate them again. - var x [1]struct{} - _ = x[absvalue-1] - _ = x[acos-2] - _ = x[addinfinf-3] - _ = x[addition-4] - _ = x[asin-5] - _ = x[atan-6] - _ = x[atan2-7] - _ = x[comparison-8] - _ = x[cos-9] - _ = x[division-10] - _ = x[exp-11] - _ = x[invctxomode-12] - _ = x[invctxpgtu-13] - _ = x[invctxpltz-14] - _ = x[invctxrmode-15] - _ = x[invctxsgtu-16] - _ = x[invctxsltu-17] - _ = x[log-18] - _ = x[log10-19] - _ = x[mul0inf-20] - _ = x[multiplication-21] - _ = x[negation-22] - _ = x[nextminus-23] - _ = x[nextplus-24] - _ = x[quantinf-25] - _ = x[quantization-26] - _ = x[quantminmax-27] - _ = x[quantprec-28] - _ = x[quo00-29] - _ = x[quoinfinf-30] - _ = x[quointprec-31] - _ = x[quorem_-32] - _ = x[quotermexp-33] - _ = x[reduction-34] - _ = x[reminfy-35] - _ = x[remprec-36] - _ = x[remx0-37] - _ = x[sin-38] - _ = x[subinfinf-39] - _ = x[subtraction-40] -} - -const _Payload_name = "absolute value of NaNacos with NaN as an operandaddition of infinities with opposing signsaddition with NaN as an operandasin with NaN as an operandatan with NaN as an operandatan2 with NaN as an operandcomparison with NaN as an operandcos with NaN as an operanddivision with NaN as an operandexp with NaN as an operandoperation with an invalid OperatingModeoperation with a precision greater than MaxPrecisionoperation with a precision less than zerooperation with an invalid RoundingModeoperation with a scale greater than MaxScaleoperation with a scale lesser than MinScalelog with NaN as an operandlog10 with NaN as an operandmultiplication of zero with infinitymultiplication with NaN as an operandnegation with NaN as an operandnext-minus with NaN as an operandnext-plus with NaN as an operandquantization of an infinityquantization with NaN as an operandquantization exceeds minimum or maximum scalequantization exceeds working precisiondivision of zero by zerodivision of infinity by infinityresult of integer division was larger than the desired precisioninteger division or remainder has too many digitsdivision with unlimited precision has a non-terminating decimal expansionreduction with NaN as an operandremainder of infinityresult of remainder operation was larger than the desired precisionremainder by zerosin with NaN as an operandsubtraction of infinities with opposing signssubtraction with NaN as an operand" - -var _Payload_index = [...]uint16{0, 21, 48, 90, 121, 148, 175, 203, 236, 262, 293, 319, 358, 410, 451, 489, 533, 576, 602, 630, 666, 703, 734, 767, 799, 826, 861, 906, 944, 968, 1000, 1064, 1113, 1186, 1218, 1239, 1306, 1323, 1349, 1394, 1428} - -func (i Payload) String() string { - i -= 1 - if i >= Payload(len(_Payload_index)-1) { - return "Payload(" + strconv.FormatInt(int64(i+1), 10) + ")" - } - return _Payload_name[_Payload_index[i]:_Payload_index[i+1]] -} diff --git a/vendor/github.com/ericlagergren/decimal/roundingmode_string.go b/vendor/github.com/ericlagergren/decimal/roundingmode_string.go deleted file mode 100644 index 9bf09b5e..00000000 --- a/vendor/github.com/ericlagergren/decimal/roundingmode_string.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by "stringer -type RoundingMode"; DO NOT EDIT. - -package decimal - -import "strconv" - -func _() { - // An "invalid array index" compiler error signifies that the constant values have changed. - // Re-run the stringer command to generate them again. - var x [1]struct{} - _ = x[ToNearestEven-0] - _ = x[ToNearestAway-1] - _ = x[ToZero-2] - _ = x[AwayFromZero-3] - _ = x[ToNegativeInf-4] - _ = x[ToPositiveInf-5] - _ = x[ToNearestTowardZero-6] - _ = x[unnecessary-7] -} - -const _RoundingMode_name = "ToNearestEvenToNearestAwayToZeroAwayFromZeroToNegativeInfToPositiveInfToNearestTowardZerounnecessary" - -var _RoundingMode_index = [...]uint8{0, 13, 26, 32, 44, 57, 70, 89, 100} - -func (i RoundingMode) String() string { - if i >= RoundingMode(len(_RoundingMode_index)-1) { - return "RoundingMode(" + strconv.FormatInt(int64(i), 10) + ")" - } - return _RoundingMode_name[_RoundingMode_index[i]:_RoundingMode_index[i+1]] -} diff --git a/vendor/github.com/ericlagergren/decimal/scan.go b/vendor/github.com/ericlagergren/decimal/scan.go deleted file mode 100644 index 69f9a259..00000000 --- a/vendor/github.com/ericlagergren/decimal/scan.go +++ /dev/null @@ -1,378 +0,0 @@ -package decimal - -import ( - "fmt" - "io" - "math" - - "github.com/ericlagergren/decimal/internal/arith" - "github.com/ericlagergren/decimal/internal/c" -) - -func (z *Big) scan(r io.ByteScanner) error { - if debug { - defer func() { z.validate() }() - } - - // http://speleotrove.com/decimal/daconvs.html#refnumsyn - // - // sign ::= '+' | '-' - // digit ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | - // '8' | '9' - // indicator ::= 'e' | 'E' - // digits ::= digit [digit]... - // decimal-part ::= digits '.' [digits] | ['.'] digits - // exponent-part ::= indicator [sign] digits - // infinity ::= 'Infinity' | 'Inf' - // nan ::= 'NaN' [digits] | 'sNaN' [digits] - // numeric-value ::= decimal-part [exponent-part] | infinity - // numeric-string ::= [sign] numeric-value | [sign] nan - // - // We deviate a little by being a tad bit more forgiving. For instance, - // we allow case-insensitive nan and infinity values. - - // Before scanning, reset it to zero - z.SetUint64(0) - - // Sign - neg, err := scanSign(r) - if err != nil { - return err - } - - z.form, err = z.scanForm(r) - if err != nil { - switch err { - case ConversionSyntax: - z.form = qnan - z.Context.Conditions |= ConversionSyntax - default: - return err - } - return nil - } - - if z.isSpecial() { - if neg { - z.form |= signbit - } - return nil - } - - // Mantissa (as a unsigned integer) - if err := z.scanMant(r); err != nil { - switch err { - case io.EOF: - z.form = qnan - return io.ErrUnexpectedEOF - case ConversionSyntax: - z.form = qnan - z.Context.Conditions |= ConversionSyntax - default: - return err - } - return nil - } - - // Exponent - if err := z.scanExponent(r); err != nil && err != io.EOF { - switch err { - case Underflow: - z.xflow(MinScale, false, neg) - case Overflow: - z.xflow(MinScale, true, neg) - case ConversionSyntax: - z.form = qnan - z.Context.Conditions |= ConversionSyntax - default: - return err - } - return nil - } - - // Adjust for negative values. - if neg { - z.form |= signbit - } - return nil -} - -func scanSign(r io.ByteScanner) (bool, error) { - ch, err := r.ReadByte() - if err != nil { - return false, err - } - switch ch { - case '+': - return false, nil - case '-': - return true, nil - default: - return false, r.UnreadByte() - } -} - -func (z *Big) scanForm(r io.ByteScanner) (form, error) { - ch, err := r.ReadByte() - if err != nil { - return 0, err - } - - if (ch >= '0' && ch <= '9') || ch == '.' { - return finite, r.UnreadByte() - } - - signal := false - switch ch { - case 'i', 'I': - return z.scanInfinity(r) - case 'q', 'Q': - // OK - case 's', 'S': - signal = true - case 'n', 'N': - r.UnreadByte() - default: - return 0, ConversionSyntax - } - - const ( - s = "nan" - ) - for i := 0; i < len(s); i++ { - ch, err := r.ReadByte() - if err != nil { - if err == io.EOF { - return 0, io.ErrUnexpectedEOF - } - return 0, err - } - if ch != s[i] && ch != s[i]-('a'-'A') { - return 0, ConversionSyntax - } - } - - // Parse payload - for { - ch, err := r.ReadByte() - if err != nil { - if err == io.EOF { - break - } - return 0, err - } - if ch < '0' || ch > '9' { - return 0, ConversionSyntax - } - d := ch - '0' - if d >= 10 { - return 0, ConversionSyntax - } - const cutoff = math.MaxUint64/10 + 1 - if z.compact >= cutoff { - return 0, ConversionSyntax - } - z.compact *= 10 - - if z.compact+uint64(d) < z.compact { - return 0, ConversionSyntax - } - z.compact += uint64(d) - } - - if signal { - return snan, nil - } - return qnan, nil -} - -func (z *Big) scanInfinity(r io.ByteScanner) (form, error) { - const ( - s = "infinity" - ) - for i := 1; i < len(s); i++ { - ch, err := r.ReadByte() - if err != nil { - if err != io.EOF { - return 0, err - } - if i == len("inf") { - return inf, nil - } - return 0, io.ErrUnexpectedEOF - } - if ch != s[i] && ch != s[i]-('a'-'A') { - return 0, ConversionSyntax - } - } - return inf, nil -} - -func (z *Big) scanMant(r io.ByteScanner) (err error) { - buf := make([]byte, 0, 20) - seenDot := false - dot := 0 - big := false - -Loop: - for { - ch, err := r.ReadByte() - if err != nil { - if err == io.EOF { - break Loop - } - return err - } - - // Common case. - if ch >= '0' && ch <= '9' { - buf = append(buf, ch) - - if !big { - d := ch - '0' - if d >= 10 { - return ConversionSyntax - } - const cutoff = math.MaxUint64/10 + 1 - if z.compact >= cutoff { - big = true - continue - } - z.compact *= 10 - - if z.compact+uint64(d) < z.compact { - big = true - continue - } - z.compact += uint64(d) - } - continue - } - - switch ch { - case '.': - if seenDot { - // Found two dots. - return ConversionSyntax - } - seenDot = true - dot = len(buf) - case 'e', 'E': - // Hit the exponent: we're done here. - if err := r.UnreadByte(); err != nil { - return err - } - break Loop - default: - return ConversionSyntax - } - } - - if big || z.compact == c.Inflated { - z.unscaled.SetString(string(buf), 10) - z.compact = c.Inflated - z.precision = arith.BigLength(&z.unscaled) - } else { - z.precision = arith.Length(z.compact) - } - - if seenDot { - z.exp = -(len(buf) - dot) - } - return nil -} - -func (z *Big) scanExponent(r io.ByteScanner) error { - ch, err := r.ReadByte() - if err != nil { - if err == io.EOF { - return nil - } - return err - } - - switch ch { - case 'e', 'E': - // OK - default: - return ConversionSyntax - } - - ch, err = r.ReadByte() - if err != nil { - return err - } - var neg bool - switch ch { - case '+': - // OK - case '-': - neg = true - default: - r.UnreadByte() - } - - max := uint64(arith.MaxInt) - if neg { - max++ // -math.MinInt - } - - var exp uint64 - for { - ch, err := r.ReadByte() - if err != nil { - if err == io.EOF { - break - } - return err - } - if ch < '0' || ch > '9' { - return ConversionSyntax - } - d := ch - '0' - if d >= 10 { - return ConversionSyntax - } - const cutoff = math.MaxUint64/10 + 1 - if exp >= cutoff { - return ConversionSyntax - } - exp *= 10 - - v := exp + uint64(d) - if v < exp || v > max { - if neg { - return Underflow - } - return Overflow - } - exp = v - } - - if neg { - z.exp -= int(exp) - } else { - z.exp += int(exp) - } - return nil -} - -// byteReader implementation borrowed from math/big/intconv.go - -// byteReader is a local wrapper around fmt.ScanState; it implements the -// io.ByteReader interface. -type byteReader struct { - fmt.ScanState -} - -func (r byteReader) ReadByte() (byte, error) { - ch, size, err := r.ReadRune() - if size != 1 && err == nil { - err = fmt.Errorf("invalid rune %#U", ch) - } - return byte(ch), err -} - -func (r byteReader) UnreadByte() error { - return r.UnreadRune() -} diff --git a/vendor/github.com/ericlagergren/decimal/util.go b/vendor/github.com/ericlagergren/decimal/util.go deleted file mode 100644 index 0b780712..00000000 --- a/vendor/github.com/ericlagergren/decimal/util.go +++ /dev/null @@ -1,248 +0,0 @@ -package decimal - -import ( - "math/big" - "strconv" - "sync" - - "github.com/ericlagergren/decimal/internal/arith" - cst "github.com/ericlagergren/decimal/internal/c" -) - -// norm normalizes z to enforce the invariant that z.unscaled is -// only used if the decimal has over 20 digits. -func (z *Big) norm() *Big { - if z.unscaled.IsUint64() { - if v := z.unscaled.Uint64(); v != cst.Inflated { - z.compact = v - z.precision = arith.Length(v) - return z - } - } - z.precision = arith.BigLength(&z.unscaled) - z.compact = cst.Inflated - return z -} - -// fix check for overflow, underflow, and clamping. -func (c Context) fix(z *Big) *Big { - adj := z.adjusted() - - if adj > c.emax() { - prec := c.precision() - - if z.isZero() { - z.exp = c.emax() - z.Context.Conditions |= Clamped - return z - } - - switch m := c.RoundingMode; m { - case ToNearestAway, ToNearestEven, ToNearestTowardZero: - z.SetInf(z.Signbit()) - case AwayFromZero: - // OK - case ToZero: - z.exp = c.emax() - prec + 1 - case ToPositiveInf, ToNegativeInf: - if m == ToPositiveInf == z.Signbit() { - z.exp = c.emax() - prec + 1 - } else { - z.SetInf(false) - } - } - z.Context.Conditions |= Overflow | Inexact | Rounded - return z - } - - if adj < c.emin() { - tiny := c.etiny() - - if z.isZero() { - if z.exp < tiny { - z.setZero(z.form, tiny) - z.Context.Conditions |= Clamped - } - return z - } - - z.Context.Conditions |= Subnormal - if z.exp < tiny { - if c.shiftr(z, uint64(tiny-z.exp)) { - z.compact = 1 - } - z.exp = tiny - z.Context.Conditions |= Underflow - if z.isZero() { - z.Context.Conditions |= Clamped - } - } - } - return z -} - -// alias returns z if z != x, otherwise a newly-allocated big.Int. -func alias(z, x *big.Int) *big.Int { - if z != x { - // We have to check the first element of their internal slices since - // Big doesn't store a pointer to a big.Int. - zb, xb := z.Bits(), x.Bits() - if cap(zb) > 0 && cap(xb) > 0 && &zb[0:cap(zb)][cap(zb)-1] != &xb[0:cap(xb)][cap(xb)-1] { - return z - } - } - return new(big.Int) -} - -// invalidContext reports whether the Context is invalid. -// -// If so, it modifies z appropriately. -func (z *Big) invalidContext(c Context) bool { - switch { - case c.Precision < 0: - z.setNaN(InvalidContext, qnan, invctxpltz) - case c.Precision > UnlimitedPrecision: - z.setNaN(InvalidContext, qnan, invctxpgtu) - case c.RoundingMode >= unnecessary: - z.setNaN(InvalidContext, qnan, invctxrmode) - case c.OperatingMode > Go: - z.setNaN(InvalidContext, qnan, invctxomode) - case c.MaxScale > MaxScale: - z.setNaN(InvalidContext, qnan, invctxsgtu) - case c.MinScale < MinScale: - z.setNaN(InvalidContext, qnan, invctxsltu) - default: - return false - } - return true -} - -// copybits can be useful when we want to allocate a big.Int without calling -// new or big.Int.Set. For example: -// -// var x big.Int -// if foo { -// x.SetBits(copybits(y.Bits())) -// } -// ... -// -func copybits(x []big.Word) []big.Word { - z := make([]big.Word, len(x)) - copy(z, x) - return z -} - -// cmpNorm compares x and y in the range [0.1, 0.999...] and -// reports whether x > y. -func cmpNorm(x uint64, xs int, y uint64, ys int) (ok bool) { - goodx, goody := true, true - - // xs, ys > 0, so no overflow - if diff := xs - ys; diff != 0 { - if diff < 0 { - x, goodx = arith.MulPow10(x, uint64(-diff)) - } else { - y, goody = arith.MulPow10(y, uint64(diff)) - } - } - if goodx { - if goody { - return arith.Cmp(x, y) > 0 - } - return false - } - return true -} - -// cmpNormBig compares x and y in the range [0.1, 0.999...] and returns true if -// x > y. It uses z as backing storage, provided it does not alias x or y. -func cmpNormBig(z, x *big.Int, xs int, y *big.Int, ys int) (ok bool) { - if xs != ys { - z = alias(alias(z, x), y) - if xs < ys { - x = arith.MulBigPow10(z, x, uint64(ys-xs)) - } else { - y = arith.MulBigPow10(z, y, uint64(xs-ys)) - } - } - // x and y are non-negative - return x.Cmp(y) > 0 -} - -// scalex adjusts x by scale. -// -// If scale > 0, x = x * 10^scale, otherwise x = x / 10^-scale. -func scalex(x uint64, scale int) (sx uint64, ok bool) { - if scale > 0 { - if sx, ok = arith.MulPow10(x, uint64(scale)); !ok { - return 0, false - } - return sx, true - } - p, ok := arith.Pow10(uint64(-scale)) - if !ok { - return 0, false - } - return x / p, true -} - -// bigScalex sets z to the big.Int equivalient of scalex. -func bigScalex(z, x *big.Int, scale int) *big.Int { - if scale > 0 { - return arith.MulBigPow10(z, x, uint64(scale)) - } - return z.Quo(x, arith.BigPow10(uint64(-scale))) -} - -func min(x, y int) int { - if x < y { - return x - } - return y -} - -func max(x, y int) int { - if x > y { - return x - } - return y -} - -// getmsd returns the n most significant digits in x. -func getmsd(x *Big, n int) uint64 { - if n < 0 || n > arith.MaxLength { - panic("getmsd: out of range: " + strconv.Itoa(n)) - } - - r := x.Precision() - n - if r < 0 { - r = 0 - } - - if x.isCompact() { - p, _ := arith.Pow10(uint64(r)) - return x.compact / p - } - - // Here, x.Precision >= n since n is in [0, 19] and an - // inflated decimal is >= 1<<64-1. - var w big.Int - w.Quo(&x.unscaled, arith.BigPow10(uint64(r))) - return w.Uint64() -} - -var decPool = sync.Pool{ - New: func() interface{} { - return new(Big) - }, -} - -func getDec(ctx Context) *Big { - x := decPool.Get().(*Big) - x.Context = ctx - return x -} - -func putDec(x *Big) { - decPool.Put(x) -} diff --git a/vendor/github.com/ericlagergren/decimal/zdebug.go b/vendor/github.com/ericlagergren/decimal/zdebug.go deleted file mode 100644 index c7745e5c..00000000 --- a/vendor/github.com/ericlagergren/decimal/zdebug.go +++ /dev/null @@ -1,6 +0,0 @@ -//go:build ddebug -// +build ddebug - -package decimal - -const debug = true diff --git a/vendor/github.com/ericlagergren/decimal/zdebug0.go b/vendor/github.com/ericlagergren/decimal/zdebug0.go deleted file mode 100644 index febd1250..00000000 --- a/vendor/github.com/ericlagergren/decimal/zdebug0.go +++ /dev/null @@ -1,6 +0,0 @@ -//go:build !ddebug -// +build !ddebug - -package decimal - -const debug = false diff --git a/vendor/golang.org/x/exp/maps/maps.go b/vendor/golang.org/x/exp/maps/maps.go deleted file mode 100644 index 4a9747ef..00000000 --- a/vendor/golang.org/x/exp/maps/maps.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package maps defines various functions useful with maps of any type. -package maps - -import "maps" - -// Keys returns the keys of the map m. -// The keys will be in an indeterminate order. -// -// The simplest true equivalent using the standard library is: -// -// slices.AppendSeq(make([]K, 0, len(m)), maps.Keys(m)) -func Keys[M ~map[K]V, K comparable, V any](m M) []K { - - r := make([]K, 0, len(m)) - for k := range m { - r = append(r, k) - } - return r -} - -// Values returns the values of the map m. -// The values will be in an indeterminate order. -// -// The simplest true equivalent using the standard library is: -// -// slices.AppendSeq(make([]V, 0, len(m)), maps.Values(m)) -func Values[M ~map[K]V, K comparable, V any](m M) []V { - - r := make([]V, 0, len(m)) - for _, v := range m { - r = append(r, v) - } - return r -} - -// Equal reports whether two maps contain the same key/value pairs. -// Values are compared using ==. -// -//go:fix inline -func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool { - return maps.Equal(m1, m2) -} - -// EqualFunc is like Equal, but compares values using eq. -// Keys are still compared with ==. -// -//go:fix inline -func EqualFunc[M1 ~map[K]V1, M2 ~map[K]V2, K comparable, V1, V2 any](m1 M1, m2 M2, eq func(V1, V2) bool) bool { - return maps.EqualFunc(m1, m2, eq) -} - -// Clear removes all entries from m, leaving it empty. -// -//go:fix inline -func Clear[M ~map[K]V, K comparable, V any](m M) { - clear(m) -} - -// Clone returns a copy of m. This is a shallow clone: -// the new keys and values are set using ordinary assignment. -// -//go:fix inline -func Clone[M ~map[K]V, K comparable, V any](m M) M { - return maps.Clone(m) -} - -// Copy copies all key/value pairs in src adding them to dst. -// When a key in src is already present in dst, -// the value in dst will be overwritten by the value associated -// with the key in src. -// -//go:fix inline -func Copy[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2) { - maps.Copy(dst, src) -} - -// DeleteFunc deletes any key/value pairs from m for which del returns true. -// -//go:fix inline -func DeleteFunc[M ~map[K]V, K comparable, V any](m M, del func(K, V) bool) { - maps.DeleteFunc(m, del) -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 2c83ede3..ad61b7fd 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -26,7 +26,7 @@ github.com/conductorone/baton-sdk/pb/c1/config/v1 github.com/conductorone/baton-sdk/pb/c1/connector/v2 github.com/conductorone/baton-sdk/pkg/crypto/providers github.com/conductorone/baton-sdk/pkg/crypto/providers/jwk -# github.com/conductorone/conductorone-sdk-go v1.26.0 +# github.com/conductorone/conductorone-sdk-go v1.27.1 ## explicit; go 1.21 github.com/conductorone/conductorone-sdk-go github.com/conductorone/conductorone-sdk-go/internal/config @@ -34,6 +34,7 @@ github.com/conductorone/conductorone-sdk-go/internal/hooks github.com/conductorone/conductorone-sdk-go/pkg/models/operations github.com/conductorone/conductorone-sdk-go/pkg/models/sdkerrors github.com/conductorone/conductorone-sdk-go/pkg/models/shared +github.com/conductorone/conductorone-sdk-go/pkg/optionalnullable github.com/conductorone/conductorone-sdk-go/pkg/retry github.com/conductorone/conductorone-sdk-go/pkg/types github.com/conductorone/conductorone-sdk-go/pkg/utils @@ -46,9 +47,6 @@ github.com/containerd/console github.com/envoyproxy/protoc-gen-validate/validate # github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731 ## explicit; go 1.16 -github.com/ericlagergren/decimal -github.com/ericlagergren/decimal/internal/arith -github.com/ericlagergren/decimal/internal/c # github.com/fsnotify/fsnotify v1.9.0 ## explicit; go 1.17 github.com/fsnotify/fsnotify @@ -174,7 +172,6 @@ golang.org/x/crypto/ssh golang.org/x/crypto/ssh/internal/bcrypt_pbkdf # golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b ## explicit; go 1.23.0 -golang.org/x/exp/maps golang.org/x/exp/slices # golang.org/x/net v0.41.0 ## explicit; go 1.23.0