Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'feat/adilsitos/eng-4966-stack-1' into feat/adilsitos/eng-4966-stack-2

adilsonb4114f061b89
diff --cc tests/clients/api/api.gen.go
index 9ad0da0753,efc3ed730f..9a295b42c0
--- a/tests/clients/api/api.gen.go
+++ b/tests/clients/api/api.gen.go
@@@ -10536,30 -9612,18 +10563,33 @@@ func (e CreateSecretApprovalPolicyJSONB
}
}
- // Defines values for CompleteAccountSignupV3403JSONResponseBodyStatusCode.
++// Defines values for CreateSecretApprovalPolicyJSONBodyDelegatedApprovalType.
+const (
- CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403 CompleteAccountSignupV3403JSONResponseBodyStatusCode = 403
++ CreateSecretApprovalPolicyJSONBodyDelegatedApprovalTypeServicenow CreateSecretApprovalPolicyJSONBodyDelegatedApprovalType = "servicenow"
+)
+
- // Valid indicates whether the value is a known member of the CompleteAccountSignupV3403JSONResponseBodyStatusCode enum.
- func (e CompleteAccountSignupV3403JSONResponseBodyStatusCode) Valid() bool {
++// Valid indicates whether the value is a known member of the CreateSecretApprovalPolicyJSONBodyDelegatedApprovalType enum.
++func (e CreateSecretApprovalPolicyJSONBodyDelegatedApprovalType) Valid() bool {
+ switch e {
- case CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403:
++ case CreateSecretApprovalPolicyJSONBodyDelegatedApprovalTypeServicenow:
+ return true
+ default:
+ return false
+ }
+}
+
- // Defines values for CompleteAccountSignupV3404JSONResponseBodyStatusCode.
+ // Defines values for CreateSecretApprovalPolicyJSONBodyEnforcementLevel.
const (
- CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404 CompleteAccountSignupV3404JSONResponseBodyStatusCode = 404
+ CreateSecretApprovalPolicyJSONBodyEnforcementLevelHard CreateSecretApprovalPolicyJSONBodyEnforcementLevel = "hard"
+ CreateSecretApprovalPolicyJSONBodyEnforcementLevelSoft CreateSecretApprovalPolicyJSONBodyEnforcementLevel = "soft"
)
- // Valid indicates whether the value is a known member of the CompleteAccountSignupV3404JSONResponseBodyStatusCode enum.
- func (e CompleteAccountSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+ // Valid indicates whether the value is a known member of the CreateSecretApprovalPolicyJSONBodyEnforcementLevel enum.
+ func (e CreateSecretApprovalPolicyJSONBodyEnforcementLevel) Valid() bool {
switch e {
- case CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404:
+ case CreateSecretApprovalPolicyJSONBodyEnforcementLevelHard:
+ return true
+ case CreateSecretApprovalPolicyJSONBodyEnforcementLevelSoft:
return true
default:
return false
@@@ -11034,30 -10086,18 +11052,33 @@@ func (e UpdateSecretApprovalPolicyJSONB
}
}
- // Defines values for DeleteManySecretsV4422JSONResponseBodyStatusCode.
++// Defines values for UpdateSecretApprovalPolicyJSONBodyDelegatedApprovalType.
+const (
- DeleteManySecretsV4422JSONResponseBodyStatusCodeN422 DeleteManySecretsV4422JSONResponseBodyStatusCode = 422
++ UpdateSecretApprovalPolicyJSONBodyDelegatedApprovalTypeServicenow UpdateSecretApprovalPolicyJSONBodyDelegatedApprovalType = "servicenow"
+)
+
- // Valid indicates whether the value is a known member of the DeleteManySecretsV4422JSONResponseBodyStatusCode enum.
- func (e DeleteManySecretsV4422JSONResponseBodyStatusCode) Valid() bool {
++// Valid indicates whether the value is a known member of the UpdateSecretApprovalPolicyJSONBodyDelegatedApprovalType enum.
++func (e UpdateSecretApprovalPolicyJSONBodyDelegatedApprovalType) Valid() bool {
+ switch e {
- case DeleteManySecretsV4422JSONResponseBodyStatusCodeN422:
++ case UpdateSecretApprovalPolicyJSONBodyDelegatedApprovalTypeServicenow:
+ return true
+ default:
+ return false
+ }
+}
+
- // Defines values for DeleteManySecretsV4500JSONResponseBodyStatusCode.
+ // Defines values for UpdateSecretApprovalPolicyJSONBodyEnforcementLevel.
const (
- DeleteManySecretsV4500JSONResponseBodyStatusCodeN500 DeleteManySecretsV4500JSONResponseBodyStatusCode = 500
+ UpdateSecretApprovalPolicyJSONBodyEnforcementLevelHard UpdateSecretApprovalPolicyJSONBodyEnforcementLevel = "hard"
+ UpdateSecretApprovalPolicyJSONBodyEnforcementLevelSoft UpdateSecretApprovalPolicyJSONBodyEnforcementLevel = "soft"
)
- // Valid indicates whether the value is a known member of the DeleteManySecretsV4500JSONResponseBodyStatusCode enum.
- func (e DeleteManySecretsV4500JSONResponseBodyStatusCode) Valid() bool {
+ // Valid indicates whether the value is a known member of the UpdateSecretApprovalPolicyJSONBodyEnforcementLevel enum.
+ func (e UpdateSecretApprovalPolicyJSONBodyEnforcementLevel) Valid() bool {
switch e {
- case DeleteManySecretsV4500JSONResponseBodyStatusCodeN500:
+ case UpdateSecretApprovalPolicyJSONBodyEnforcementLevelHard:
+ return true
+ case UpdateSecretApprovalPolicyJSONBodyEnforcementLevelSoft:
return true
default:
return false
@@@ -12201,2275 -11229,2284 +12210,2766 @@@ func (e ListSecretsV4500JSONResponseBod
}
}
- // GetInstanceStatus400JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
- type GetInstanceStatus400JSONResponseBodyStatusCode float32
-
- // GetInstanceStatus401JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
- type GetInstanceStatus401JSONResponseBodyStatusCode float32
+ // Defines values for DeleteManySecretsV4JSONBodySecretsType.
+ const (
+ DeleteManySecretsV4JSONBodySecretsTypePersonal DeleteManySecretsV4JSONBodySecretsType = "personal"
+ DeleteManySecretsV4JSONBodySecretsTypeShared DeleteManySecretsV4JSONBodySecretsType = "shared"
+ )
- // GetInstanceStatus403JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
- type GetInstanceStatus403JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteManySecretsV4JSONBodySecretsType enum.
+ func (e DeleteManySecretsV4JSONBodySecretsType) Valid() bool {
+ switch e {
+ case DeleteManySecretsV4JSONBodySecretsTypePersonal:
+ return true
+ case DeleteManySecretsV4JSONBodySecretsTypeShared:
+ return true
+ default:
+ return false
+ }
+ }
- // GetInstanceStatus404JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
- type GetInstanceStatus404JSONResponseBodyStatusCode float32
+ // Defines values for DeleteManySecretsV4400JSONResponseBodyStatusCode.
+ const (
+ DeleteManySecretsV4400JSONResponseBodyStatusCodeN400 DeleteManySecretsV4400JSONResponseBodyStatusCode = 400
+ )
- // GetInstanceStatus422JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
- type GetInstanceStatus422JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteManySecretsV4400JSONResponseBodyStatusCode enum.
+ func (e DeleteManySecretsV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteManySecretsV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+ }
- // GetInstanceStatus500JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
- type GetInstanceStatus500JSONResponseBodyStatusCode float32
+ // Defines values for DeleteManySecretsV4401JSONResponseBodyStatusCode.
+ const (
+ DeleteManySecretsV4401JSONResponseBodyStatusCodeN401 DeleteManySecretsV4401JSONResponseBodyStatusCode = 401
+ )
- // ListAccessApprovalPoliciesParams defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPoliciesParams struct {
- ProjectSlug string `form:"projectSlug" json:"projectSlug"`
+ // Valid indicates whether the value is a known member of the DeleteManySecretsV4401JSONResponseBodyStatusCode enum.
+ func (e DeleteManySecretsV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteManySecretsV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
- // ListAccessApprovalPolicies200JSONResponseBodyApprovalsApproversType defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies200JSONResponseBodyApprovalsApproversType string
+ // Defines values for DeleteManySecretsV4403JSONResponseBodyStatusCode.
+ const (
+ DeleteManySecretsV4403JSONResponseBodyStatusCodeN403 DeleteManySecretsV4403JSONResponseBodyStatusCode = 403
+ )
- // ListAccessApprovalPolicies200JSONResponseBodyApprovalsBypassersType defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies200JSONResponseBodyApprovalsBypassersType string
+ // Valid indicates whether the value is a known member of the DeleteManySecretsV4403JSONResponseBodyStatusCode enum.
+ func (e DeleteManySecretsV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteManySecretsV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+ }
- // ListAccessApprovalPolicies200JSONResponseBodyApprovalsDelegatedApprovalType defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies200JSONResponseBodyApprovalsDelegatedApprovalType string
+ // Defines values for DeleteManySecretsV4404JSONResponseBodyStatusCode.
+ const (
+ DeleteManySecretsV4404JSONResponseBodyStatusCodeN404 DeleteManySecretsV4404JSONResponseBodyStatusCode = 404
+ )
- // ListAccessApprovalPolicies400JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies400JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteManySecretsV4404JSONResponseBodyStatusCode enum.
+ func (e DeleteManySecretsV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteManySecretsV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+ }
- // ListAccessApprovalPolicies401JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies401JSONResponseBodyStatusCode float32
+ // Defines values for DeleteManySecretsV4422JSONResponseBodyStatusCode.
+ const (
+ DeleteManySecretsV4422JSONResponseBodyStatusCodeN422 DeleteManySecretsV4422JSONResponseBodyStatusCode = 422
+ )
- // ListAccessApprovalPolicies403JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies403JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteManySecretsV4422JSONResponseBodyStatusCode enum.
+ func (e DeleteManySecretsV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteManySecretsV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+ }
- // ListAccessApprovalPolicies404JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies404JSONResponseBodyStatusCode float32
+ // Defines values for DeleteManySecretsV4500JSONResponseBodyStatusCode.
+ const (
+ DeleteManySecretsV4500JSONResponseBodyStatusCodeN500 DeleteManySecretsV4500JSONResponseBodyStatusCode = 500
+ )
- // ListAccessApprovalPolicies422JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies422JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteManySecretsV4500JSONResponseBodyStatusCode enum.
+ func (e DeleteManySecretsV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteManySecretsV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+ }
- // ListAccessApprovalPolicies500JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
- type ListAccessApprovalPolicies500JSONResponseBodyStatusCode float32
+ // Defines values for UpdateManySecretsV4JSONBodyMode.
+ const (
+ FailOnNotFound UpdateManySecretsV4JSONBodyMode = "failOnNotFound"
+ Ignore UpdateManySecretsV4JSONBodyMode = "ignore"
+ Upsert UpdateManySecretsV4JSONBodyMode = "upsert"
+ )
- // CreateAccessApprovalPolicyJSONBody defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBody struct {
- // AllowedSelfApprovals Defaults to true, or to false when delegatedApproval is set.
- AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
- Approvals *float32 `json:"approvals,omitempty"`
- ApprovalsRequired *[]struct {
- NumberOfApprovals int `json:"numberOfApprovals"`
- StepNumber int `json:"stepNumber"`
- } `json:"approvalsRequired,omitempty"`
+ // Valid indicates whether the value is a known member of the UpdateManySecretsV4JSONBodyMode enum.
+ func (e UpdateManySecretsV4JSONBodyMode) Valid() bool {
+ switch e {
+ case FailOnNotFound:
+ return true
+ case Ignore:
+ return true
+ case Upsert:
+ return true
+ default:
+ return false
+ }
+ }
- // Approvers Required unless delegatedApproval is set, and must be omitted when it is.
- Approvers *[]CreateAccessApprovalPolicyJSONBody_Approvers_Item `json:"approvers,omitempty"`
- Bypassers *[]CreateAccessApprovalPolicyJSONBody_Bypassers_Item `json:"bypassers,omitempty"`
+ // Defines values for UpdateManySecretsV4400JSONResponseBodyStatusCode.
+ const (
+ UpdateManySecretsV4400JSONResponseBodyStatusCodeN400 UpdateManySecretsV4400JSONResponseBodyStatusCode = 400
+ )
- // DelegatedApproval Hand requests made against this policy to a delegated approval system.
- DelegatedApproval *struct {
- // ConnectionId The ID of the App Connection used to reach the delegated approval system.
- ConnectionId openapi_types.UUID `json:"connectionId"`
-
- // Type The delegated approval system that reviews requests made against this policy.
- Type CreateAccessApprovalPolicyJSONBodyDelegatedApprovalType `json:"type"`
- } `json:"delegatedApproval,omitempty"`
- EnforcementLevel *CreateAccessApprovalPolicyJSONBodyEnforcementLevel `json:"enforcementLevel,omitempty"`
- Environment *string `json:"environment,omitempty"`
- Environments *[]string `json:"environments,omitempty"`
- MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
- Name *string `json:"name,omitempty"`
- ProjectSlug string `json:"projectSlug"`
- RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
- SecretPath string `json:"secretPath"`
+ // Valid indicates whether the value is a known member of the UpdateManySecretsV4400JSONResponseBodyStatusCode enum.
+ func (e UpdateManySecretsV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateManySecretsV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
- // CreateAccessApprovalPolicyJSONBodyApprovers0 defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyApprovers0 struct {
- Id string `json:"id"`
- Sequence *int `json:"sequence,omitempty"`
- Type CreateAccessApprovalPolicyJSONBodyApprovers0Type `json:"type"`
+ // Defines values for UpdateManySecretsV4401JSONResponseBodyStatusCode.
+ const (
+ UpdateManySecretsV4401JSONResponseBodyStatusCodeN401 UpdateManySecretsV4401JSONResponseBodyStatusCode = 401
+ )
+
+ // Valid indicates whether the value is a known member of the UpdateManySecretsV4401JSONResponseBodyStatusCode enum.
+ func (e UpdateManySecretsV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateManySecretsV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
- // CreateAccessApprovalPolicyJSONBodyApprovers0Type defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyApprovers0Type string
+ // Defines values for UpdateManySecretsV4403JSONResponseBodyStatusCode.
+ const (
+ UpdateManySecretsV4403JSONResponseBodyStatusCodeN403 UpdateManySecretsV4403JSONResponseBodyStatusCode = 403
+ )
- // CreateAccessApprovalPolicyJSONBodyApprovers1 defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyApprovers1 struct {
- Id *string `json:"id,omitempty"`
- Sequence *int `json:"sequence,omitempty"`
- Type CreateAccessApprovalPolicyJSONBodyApprovers1Type `json:"type"`
- Username *string `json:"username,omitempty"`
+ // Valid indicates whether the value is a known member of the UpdateManySecretsV4403JSONResponseBodyStatusCode enum.
+ func (e UpdateManySecretsV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateManySecretsV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
- // CreateAccessApprovalPolicyJSONBodyApprovers1Type defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyApprovers1Type string
+ // Defines values for UpdateManySecretsV4404JSONResponseBodyStatusCode.
+ const (
+ UpdateManySecretsV4404JSONResponseBodyStatusCodeN404 UpdateManySecretsV4404JSONResponseBodyStatusCode = 404
+ )
- // CreateAccessApprovalPolicyJSONBody_Approvers_Item defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBody_Approvers_Item struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the UpdateManySecretsV4404JSONResponseBodyStatusCode enum.
+ func (e UpdateManySecretsV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateManySecretsV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
- // CreateAccessApprovalPolicyJSONBodyBypassers0 defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyBypassers0 struct {
- Id string `json:"id"`
- Type CreateAccessApprovalPolicyJSONBodyBypassers0Type `json:"type"`
+ // Defines values for UpdateManySecretsV4422JSONResponseBodyStatusCode.
+ const (
+ UpdateManySecretsV4422JSONResponseBodyStatusCodeN422 UpdateManySecretsV4422JSONResponseBodyStatusCode = 422
+ )
+
+ // Valid indicates whether the value is a known member of the UpdateManySecretsV4422JSONResponseBodyStatusCode enum.
+ func (e UpdateManySecretsV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateManySecretsV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
- // CreateAccessApprovalPolicyJSONBodyBypassers0Type defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyBypassers0Type string
+ // Defines values for UpdateManySecretsV4500JSONResponseBodyStatusCode.
+ const (
+ UpdateManySecretsV4500JSONResponseBodyStatusCodeN500 UpdateManySecretsV4500JSONResponseBodyStatusCode = 500
+ )
- // CreateAccessApprovalPolicyJSONBodyBypassers1 defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyBypassers1 struct {
- Id *string `json:"id,omitempty"`
- Type CreateAccessApprovalPolicyJSONBodyBypassers1Type `json:"type"`
- Username *string `json:"username,omitempty"`
+ // Valid indicates whether the value is a known member of the UpdateManySecretsV4500JSONResponseBodyStatusCode enum.
+ func (e UpdateManySecretsV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateManySecretsV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
- // CreateAccessApprovalPolicyJSONBodyBypassers1Type defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyBypassers1Type string
+ // Defines values for CreateManySecretsV4400JSONResponseBodyStatusCode.
+ const (
+ CreateManySecretsV4400JSONResponseBodyStatusCodeN400 CreateManySecretsV4400JSONResponseBodyStatusCode = 400
+ )
- // CreateAccessApprovalPolicyJSONBody_Bypassers_Item defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBody_Bypassers_Item struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the CreateManySecretsV4400JSONResponseBodyStatusCode enum.
+ func (e CreateManySecretsV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateManySecretsV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
- // CreateAccessApprovalPolicyJSONBodyDelegatedApprovalType defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyDelegatedApprovalType string
+ // Defines values for CreateManySecretsV4401JSONResponseBodyStatusCode.
+ const (
+ CreateManySecretsV4401JSONResponseBodyStatusCodeN401 CreateManySecretsV4401JSONResponseBodyStatusCode = 401
+ )
- // CreateAccessApprovalPolicyJSONBodyEnforcementLevel defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicyJSONBodyEnforcementLevel string
+ // Valid indicates whether the value is a known member of the CreateManySecretsV4401JSONResponseBodyStatusCode enum.
+ func (e CreateManySecretsV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateManySecretsV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType string
+ // Defines values for CreateManySecretsV4403JSONResponseBodyStatusCode.
+ const (
+ CreateManySecretsV4403JSONResponseBodyStatusCodeN403 CreateManySecretsV4403JSONResponseBodyStatusCode = 403
+ )
- // CreateAccessApprovalPolicy400JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicy400JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the CreateManySecretsV4403JSONResponseBodyStatusCode enum.
+ func (e CreateManySecretsV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateManySecretsV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateAccessApprovalPolicy401JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicy401JSONResponseBodyStatusCode float32
+ // Defines values for CreateManySecretsV4404JSONResponseBodyStatusCode.
+ const (
+ CreateManySecretsV4404JSONResponseBodyStatusCodeN404 CreateManySecretsV4404JSONResponseBodyStatusCode = 404
+ )
- // CreateAccessApprovalPolicy403JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicy403JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the CreateManySecretsV4404JSONResponseBodyStatusCode enum.
+ func (e CreateManySecretsV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateManySecretsV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateAccessApprovalPolicy404JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicy404JSONResponseBodyStatusCode float32
+ // Defines values for CreateManySecretsV4422JSONResponseBodyStatusCode.
+ const (
+ CreateManySecretsV4422JSONResponseBodyStatusCodeN422 CreateManySecretsV4422JSONResponseBodyStatusCode = 422
+ )
- // CreateAccessApprovalPolicy422JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicy422JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the CreateManySecretsV4422JSONResponseBodyStatusCode enum.
+ func (e CreateManySecretsV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateManySecretsV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateAccessApprovalPolicy500JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
- type CreateAccessApprovalPolicy500JSONResponseBodyStatusCode float32
+ // Defines values for CreateManySecretsV4500JSONResponseBodyStatusCode.
+ const (
+ CreateManySecretsV4500JSONResponseBodyStatusCodeN500 CreateManySecretsV4500JSONResponseBodyStatusCode = 500
+ )
- // GetAccessApprovalPolicy200JSONResponseBodyApprovalApproversType defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy200JSONResponseBodyApprovalApproversType string
+ // Valid indicates whether the value is a known member of the CreateManySecretsV4500JSONResponseBodyStatusCode enum.
+ func (e CreateManySecretsV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateManySecretsV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+ }
- // GetAccessApprovalPolicy200JSONResponseBodyApprovalBypassersType defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy200JSONResponseBodyApprovalBypassersType string
+ // Defines values for DuplicateSecretV4400JSONResponseBodyStatusCode.
+ const (
+ DuplicateSecretV4400JSONResponseBodyStatusCodeN400 DuplicateSecretV4400JSONResponseBodyStatusCode = 400
+ )
- // GetAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType string
+ // Valid indicates whether the value is a known member of the DuplicateSecretV4400JSONResponseBodyStatusCode enum.
+ func (e DuplicateSecretV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DuplicateSecretV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+ }
- // GetAccessApprovalPolicy400JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy400JSONResponseBodyStatusCode float32
+ // Defines values for DuplicateSecretV4401JSONResponseBodyStatusCode.
+ const (
+ DuplicateSecretV4401JSONResponseBodyStatusCodeN401 DuplicateSecretV4401JSONResponseBodyStatusCode = 401
+ )
- // GetAccessApprovalPolicy401JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy401JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DuplicateSecretV4401JSONResponseBodyStatusCode enum.
+ func (e DuplicateSecretV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DuplicateSecretV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+ }
- // GetAccessApprovalPolicy403JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy403JSONResponseBodyStatusCode float32
+ // Defines values for DuplicateSecretV4403JSONResponseBodyStatusCode.
+ const (
+ DuplicateSecretV4403JSONResponseBodyStatusCodeN403 DuplicateSecretV4403JSONResponseBodyStatusCode = 403
+ )
- // GetAccessApprovalPolicy404JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy404JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DuplicateSecretV4403JSONResponseBodyStatusCode enum.
+ func (e DuplicateSecretV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DuplicateSecretV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+ }
- // GetAccessApprovalPolicy422JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy422JSONResponseBodyStatusCode float32
+ // Defines values for DuplicateSecretV4404JSONResponseBodyStatusCode.
+ const (
+ DuplicateSecretV4404JSONResponseBodyStatusCodeN404 DuplicateSecretV4404JSONResponseBodyStatusCode = 404
+ )
- // GetAccessApprovalPolicy500JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
- type GetAccessApprovalPolicy500JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DuplicateSecretV4404JSONResponseBodyStatusCode enum.
+ func (e DuplicateSecretV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DuplicateSecretV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+ }
- // UpdateAccessApprovalPolicyJSONBody defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBody struct {
- // AllowedSelfApprovals Defaults to true, or to false when the policy is handled by a delegated approval system.
- AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
- Approvals *float32 `json:"approvals,omitempty"`
- ApprovalsRequired *[]struct {
- NumberOfApprovals int `json:"numberOfApprovals"`
- StepNumber int `json:"stepNumber"`
- } `json:"approvalsRequired,omitempty"`
+ // Defines values for DuplicateSecretV4422JSONResponseBodyStatusCode.
+ const (
+ DuplicateSecretV4422JSONResponseBodyStatusCodeN422 DuplicateSecretV4422JSONResponseBodyStatusCode = 422
+ )
- // Approvers Required unless the policy is handled by a delegated approval system, and must be omitted when it is.
- Approvers *[]UpdateAccessApprovalPolicyJSONBody_Approvers_Item `json:"approvers,omitempty"`
- Bypassers *[]UpdateAccessApprovalPolicyJSONBody_Bypassers_Item `json:"bypassers,omitempty"`
+ // Valid indicates whether the value is a known member of the DuplicateSecretV4422JSONResponseBodyStatusCode enum.
+ func (e DuplicateSecretV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DuplicateSecretV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+ }
- // DelegatedApproval Hand requests made against this policy to a delegated approval system. Send null to stop using one.
- DelegatedApproval *struct {
- // ConnectionId The ID of the App Connection used to reach the delegated approval system.
- ConnectionId openapi_types.UUID `json:"connectionId"`
+ // Defines values for DuplicateSecretV4500JSONResponseBodyStatusCode.
+ const (
+ DuplicateSecretV4500JSONResponseBodyStatusCodeN500 DuplicateSecretV4500JSONResponseBodyStatusCode = 500
+ )
- // Type The delegated approval system that reviews requests made against this policy.
- Type UpdateAccessApprovalPolicyJSONBodyDelegatedApprovalType `json:"type"`
- } `json:"delegatedApproval,omitempty"`
- EnforcementLevel *UpdateAccessApprovalPolicyJSONBodyEnforcementLevel `json:"enforcementLevel,omitempty"`
- Environments *[]string `json:"environments,omitempty"`
- MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
- Name *string `json:"name,omitempty"`
- RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
- SecretPath *string `json:"secretPath,omitempty"`
+ // Valid indicates whether the value is a known member of the DuplicateSecretV4500JSONResponseBodyStatusCode enum.
+ func (e DuplicateSecretV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DuplicateSecretV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
- // UpdateAccessApprovalPolicyJSONBodyApprovers0 defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyApprovers0 struct {
- Id string `json:"id"`
- Sequence *int `json:"sequence,omitempty"`
- Type UpdateAccessApprovalPolicyJSONBodyApprovers0Type `json:"type"`
+ // Defines values for GetSecretByIdV4400JSONResponseBodyStatusCode.
+ const (
+ GetSecretByIdV4400JSONResponseBodyStatusCodeN400 GetSecretByIdV4400JSONResponseBodyStatusCode = 400
+ )
+
+ // Valid indicates whether the value is a known member of the GetSecretByIdV4400JSONResponseBodyStatusCode enum.
+ func (e GetSecretByIdV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByIdV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
- // UpdateAccessApprovalPolicyJSONBodyApprovers0Type defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyApprovers0Type string
+ // Defines values for GetSecretByIdV4401JSONResponseBodyStatusCode.
+ const (
+ GetSecretByIdV4401JSONResponseBodyStatusCodeN401 GetSecretByIdV4401JSONResponseBodyStatusCode = 401
+ )
- // UpdateAccessApprovalPolicyJSONBodyApprovers1 defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyApprovers1 struct {
- Id *string `json:"id,omitempty"`
- Sequence *int `json:"sequence,omitempty"`
- Type UpdateAccessApprovalPolicyJSONBodyApprovers1Type `json:"type"`
- Username *string `json:"username,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretByIdV4401JSONResponseBodyStatusCode enum.
+ func (e GetSecretByIdV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByIdV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
- // UpdateAccessApprovalPolicyJSONBodyApprovers1Type defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyApprovers1Type string
+ // Defines values for GetSecretByIdV4403JSONResponseBodyStatusCode.
+ const (
+ GetSecretByIdV4403JSONResponseBodyStatusCodeN403 GetSecretByIdV4403JSONResponseBodyStatusCode = 403
+ )
- // UpdateAccessApprovalPolicyJSONBody_Approvers_Item defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBody_Approvers_Item struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the GetSecretByIdV4403JSONResponseBodyStatusCode enum.
+ func (e GetSecretByIdV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByIdV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
- // UpdateAccessApprovalPolicyJSONBodyBypassers0 defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyBypassers0 struct {
- Id string `json:"id"`
- Type UpdateAccessApprovalPolicyJSONBodyBypassers0Type `json:"type"`
+ // Defines values for GetSecretByIdV4404JSONResponseBodyStatusCode.
+ const (
+ GetSecretByIdV4404JSONResponseBodyStatusCodeN404 GetSecretByIdV4404JSONResponseBodyStatusCode = 404
+ )
+
+ // Valid indicates whether the value is a known member of the GetSecretByIdV4404JSONResponseBodyStatusCode enum.
+ func (e GetSecretByIdV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByIdV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
- // UpdateAccessApprovalPolicyJSONBodyBypassers0Type defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyBypassers0Type string
+ // Defines values for GetSecretByIdV4422JSONResponseBodyStatusCode.
+ const (
+ GetSecretByIdV4422JSONResponseBodyStatusCodeN422 GetSecretByIdV4422JSONResponseBodyStatusCode = 422
+ )
- // UpdateAccessApprovalPolicyJSONBodyBypassers1 defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyBypassers1 struct {
- Id *string `json:"id,omitempty"`
- Type UpdateAccessApprovalPolicyJSONBodyBypassers1Type `json:"type"`
- Username *string `json:"username,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretByIdV4422JSONResponseBodyStatusCode enum.
+ func (e GetSecretByIdV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByIdV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
- // UpdateAccessApprovalPolicyJSONBodyBypassers1Type defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyBypassers1Type string
+ // Defines values for GetSecretByIdV4500JSONResponseBodyStatusCode.
+ const (
+ GetSecretByIdV4500JSONResponseBodyStatusCodeN500 GetSecretByIdV4500JSONResponseBodyStatusCode = 500
+ )
- // UpdateAccessApprovalPolicyJSONBody_Bypassers_Item defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBody_Bypassers_Item struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the GetSecretByIdV4500JSONResponseBodyStatusCode enum.
+ func (e GetSecretByIdV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByIdV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
- // UpdateAccessApprovalPolicyJSONBodyDelegatedApprovalType defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyDelegatedApprovalType string
-
- // UpdateAccessApprovalPolicyJSONBodyEnforcementLevel defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicyJSONBodyEnforcementLevel string
+ // Defines values for MoveSecretsV4400JSONResponseBodyStatusCode.
+ const (
+ MoveSecretsV4400JSONResponseBodyStatusCodeN400 MoveSecretsV4400JSONResponseBodyStatusCode = 400
+ )
- // UpdateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType string
+ // Valid indicates whether the value is a known member of the MoveSecretsV4400JSONResponseBodyStatusCode enum.
+ func (e MoveSecretsV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case MoveSecretsV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+ }
- // UpdateAccessApprovalPolicy400JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicy400JSONResponseBodyStatusCode float32
+ // Defines values for MoveSecretsV4401JSONResponseBodyStatusCode.
+ const (
+ MoveSecretsV4401JSONResponseBodyStatusCodeN401 MoveSecretsV4401JSONResponseBodyStatusCode = 401
+ )
- // UpdateAccessApprovalPolicy401JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicy401JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the MoveSecretsV4401JSONResponseBodyStatusCode enum.
+ func (e MoveSecretsV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case MoveSecretsV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+ }
- // UpdateAccessApprovalPolicy403JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicy403JSONResponseBodyStatusCode float32
+ // Defines values for MoveSecretsV4403JSONResponseBodyStatusCode.
+ const (
+ MoveSecretsV4403JSONResponseBodyStatusCodeN403 MoveSecretsV4403JSONResponseBodyStatusCode = 403
+ )
- // UpdateAccessApprovalPolicy404JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicy404JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the MoveSecretsV4403JSONResponseBodyStatusCode enum.
+ func (e MoveSecretsV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case MoveSecretsV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+ }
- // UpdateAccessApprovalPolicy422JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicy422JSONResponseBodyStatusCode float32
+ // Defines values for MoveSecretsV4404JSONResponseBodyStatusCode.
+ const (
+ MoveSecretsV4404JSONResponseBodyStatusCodeN404 MoveSecretsV4404JSONResponseBodyStatusCode = 404
+ )
- // UpdateAccessApprovalPolicy500JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
- type UpdateAccessApprovalPolicy500JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the MoveSecretsV4404JSONResponseBodyStatusCode enum.
+ func (e MoveSecretsV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case MoveSecretsV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateAccessApprovalRequestJSONBody defines parameters for CreateAccessApprovalRequest.
- type CreateAccessApprovalRequestJSONBody struct {
- IsTemporary bool `json:"isTemporary"`
- Note *string `json:"note,omitempty"`
- Permissions [][]string `json:"permissions"`
- TemporaryRange *string `json:"temporaryRange,omitempty"`
- }
+ // Defines values for MoveSecretsV4422JSONResponseBodyStatusCode.
+ const (
+ MoveSecretsV4422JSONResponseBodyStatusCodeN422 MoveSecretsV4422JSONResponseBodyStatusCode = 422
+ )
- // CreateAccessApprovalRequestParams defines parameters for CreateAccessApprovalRequest.
- type CreateAccessApprovalRequestParams struct {
- ProjectSlug string `form:"projectSlug" json:"projectSlug"`
+ // Valid indicates whether the value is a known member of the MoveSecretsV4422JSONResponseBodyStatusCode enum.
+ func (e MoveSecretsV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case MoveSecretsV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
- // CreateAccessApprovalRequest400JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
- type CreateAccessApprovalRequest400JSONResponseBodyStatusCode float32
-
- // CreateAccessApprovalRequest401JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
- type CreateAccessApprovalRequest401JSONResponseBodyStatusCode float32
-
- // CreateAccessApprovalRequest403JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
- type CreateAccessApprovalRequest403JSONResponseBodyStatusCode float32
-
- // CreateAccessApprovalRequest404JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
- type CreateAccessApprovalRequest404JSONResponseBodyStatusCode float32
+ // Defines values for MoveSecretsV4500JSONResponseBodyStatusCode.
+ const (
+ MoveSecretsV4500JSONResponseBodyStatusCodeN500 MoveSecretsV4500JSONResponseBodyStatusCode = 500
+ )
- // CreateAccessApprovalRequest422JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
- type CreateAccessApprovalRequest422JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the MoveSecretsV4500JSONResponseBodyStatusCode enum.
+ func (e MoveSecretsV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case MoveSecretsV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateAccessApprovalRequest500JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
- type CreateAccessApprovalRequest500JSONResponseBodyStatusCode float32
+ // Defines values for DeleteSecretV4JSONBodyType.
+ const (
+ DeleteSecretV4JSONBodyTypePersonal DeleteSecretV4JSONBodyType = "personal"
+ DeleteSecretV4JSONBodyTypeShared DeleteSecretV4JSONBodyType = "shared"
+ )
- // AdminBootstrapJSONBody defines parameters for AdminBootstrap.
- type AdminBootstrapJSONBody struct {
- Email openapi_types.Email `json:"email"`
- Organization string `json:"organization"`
- Password string `json:"password"`
+ // Valid indicates whether the value is a known member of the DeleteSecretV4JSONBodyType enum.
+ func (e DeleteSecretV4JSONBodyType) Valid() bool {
+ switch e {
+ case DeleteSecretV4JSONBodyTypePersonal:
+ return true
+ case DeleteSecretV4JSONBodyTypeShared:
+ return true
+ default:
+ return false
+ }
}
- // AdminBootstrap400JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
- type AdminBootstrap400JSONResponseBodyStatusCode float32
-
- // AdminBootstrap401JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
- type AdminBootstrap401JSONResponseBodyStatusCode float32
+ // Defines values for DeleteSecretV4400JSONResponseBodyStatusCode.
+ const (
+ DeleteSecretV4400JSONResponseBodyStatusCodeN400 DeleteSecretV4400JSONResponseBodyStatusCode = 400
+ )
- // AdminBootstrap403JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
- type AdminBootstrap403JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteSecretV4400JSONResponseBodyStatusCode enum.
+ func (e DeleteSecretV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+ }
- // AdminBootstrap404JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
- type AdminBootstrap404JSONResponseBodyStatusCode float32
+ // Defines values for DeleteSecretV4401JSONResponseBodyStatusCode.
+ const (
+ DeleteSecretV4401JSONResponseBodyStatusCodeN401 DeleteSecretV4401JSONResponseBodyStatusCode = 401
+ )
- // AdminBootstrap422JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
- type AdminBootstrap422JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteSecretV4401JSONResponseBodyStatusCode enum.
+ func (e DeleteSecretV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+ }
- // AdminBootstrap500JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
- type AdminBootstrap500JSONResponseBodyStatusCode float32
+ // Defines values for DeleteSecretV4403JSONResponseBodyStatusCode.
+ const (
+ DeleteSecretV4403JSONResponseBodyStatusCodeN403 DeleteSecretV4403JSONResponseBodyStatusCode = 403
+ )
- // UpdateAdminConfigJSONBody defines parameters for UpdateAdminConfig.
- type UpdateAdminConfigJSONBody struct {
- AllowSignUp *bool `json:"allowSignUp,omitempty"`
- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
- AllowedStorageHostnames *[]string `json:"allowedStorageHostnames,omitempty"`
- AuthConsentContent *string `json:"authConsentContent,omitempty"`
- DefaultAuthOrgId *string `json:"defaultAuthOrgId,omitempty"`
- EnabledLoginMethods *[]UpdateAdminConfigJSONBodyEnabledLoginMethods `json:"enabledLoginMethods,omitempty"`
- EnvOverrides *struct {
- CLIENTGITLABLOGINURL string `json:"CLIENT_GITLAB_LOGIN_URL"`
- CLIENTIDGITHUBLOGIN string `json:"CLIENT_ID_GITHUB_LOGIN"`
- CLIENTIDGITLABLOGIN string `json:"CLIENT_ID_GITLAB_LOGIN"`
- CLIENTIDGOOGLELOGIN string `json:"CLIENT_ID_GOOGLE_LOGIN"`
- CLIENTSECRETGITHUBLOGIN string `json:"CLIENT_SECRET_GITHUB_LOGIN"`
- CLIENTSECRETGITLABLOGIN string `json:"CLIENT_SECRET_GITLAB_LOGIN"`
- CLIENTSECRETGOOGLELOGIN string `json:"CLIENT_SECRET_GOOGLE_LOGIN"`
- DISABLEAUDITLOGSTORAGE string `json:"DISABLE_AUDIT_LOG_STORAGE"`
- DISABLEPOSTGRESAUDITLOGSTORAGE string `json:"DISABLE_POSTGRES_AUDIT_LOG_STORAGE"`
- DISABLEPUBLICSECRETSHARING string `json:"DISABLE_PUBLIC_SECRET_SHARING"`
- INFAPPCONNECTIONAWSACCESSKEYID string `json:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`
- INFAPPCONNECTIONAWSSECRETACCESSKEY string `json:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`
- INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTID string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`
- INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`
- INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`
- INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`
- INFAPPCONNECTIONAZUREDEVOPSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`
- INFAPPCONNECTIONAZUREDEVOPSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`
- INFAPPCONNECTIONAZUREKEYVAULTCLIENTID string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`
- INFAPPCONNECTIONAZUREKEYVAULTCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`
- INFAPPCONNECTIONGCPSERVICEACCOUNTCREDENTIAL string `json:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`
- INFAPPCONNECTIONGITHUBAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBAPPHOST string `json:"INF_APP_CONNECTION_GITHUB_APP_HOST"`
- INFAPPCONNECTIONGITHUBAPPID string `json:"INF_APP_CONNECTION_GITHUB_APP_ID"`
- INFAPPCONNECTIONGITHUBAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`
- INFAPPCONNECTIONGITHUBAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`
- INFAPPCONNECTIONGITHUBOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBRADARAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBRADARAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBRADARAPPID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`
- INFAPPCONNECTIONGITHUBRADARAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`
- INFAPPCONNECTIONGITHUBRADARAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`
- INFAPPCONNECTIONGITHUBRADARAPPWEBHOOKSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`
- INFAPPCONNECTIONGITLABOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONGITLABOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`
- INFAPPCONNECTIONHEROKUOAUTHCLIENTID string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONHEROKUOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`
- INFAPPCONNECTIONSTRIPEOAUTHAUTHORIZEURL string `json:"INF_APP_CONNECTION_STRIPE_OAUTH_AUTHORIZE_URL"`
- INFAPPCONNECTIONSTRIPEOAUTHCLIENTID string `json:"INF_APP_CONNECTION_STRIPE_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONSTRIPESECRETKEY string `json:"INF_APP_CONNECTION_STRIPE_SECRET_KEY"`
- } `json:"envOverrides,omitempty"`
- GitHubAppConnectionClientId *string `json:"gitHubAppConnectionClientId,omitempty"`
- GitHubAppConnectionClientSecret *string `json:"gitHubAppConnectionClientSecret,omitempty"`
- GitHubAppConnectionId *string `json:"gitHubAppConnectionId,omitempty"`
- GitHubAppConnectionPrivateKey *string `json:"gitHubAppConnectionPrivateKey,omitempty"`
- GitHubAppConnectionSlug *string `json:"gitHubAppConnectionSlug,omitempty"`
- MicrosoftTeamsAppId *string `json:"microsoftTeamsAppId,omitempty"`
- MicrosoftTeamsBotId *string `json:"microsoftTeamsBotId,omitempty"`
- MicrosoftTeamsClientSecret *string `json:"microsoftTeamsClientSecret,omitempty"`
- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
- PageFrameContent *string `json:"pageFrameContent,omitempty"`
- SlackClientId *string `json:"slackClientId,omitempty"`
- SlackClientSecret *string `json:"slackClientSecret,omitempty"`
- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+ // Valid indicates whether the value is a known member of the DeleteSecretV4403JSONResponseBodyStatusCode enum.
+ func (e DeleteSecretV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
- // UpdateAdminConfigJSONBodyEnabledLoginMethods defines parameters for UpdateAdminConfig.
- type UpdateAdminConfigJSONBodyEnabledLoginMethods string
-
- // UpdateAdminConfig400JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
- type UpdateAdminConfig400JSONResponseBodyStatusCode float32
+ // Defines values for DeleteSecretV4404JSONResponseBodyStatusCode.
+ const (
+ DeleteSecretV4404JSONResponseBodyStatusCodeN404 DeleteSecretV4404JSONResponseBodyStatusCode = 404
+ )
- // UpdateAdminConfig401JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
- type UpdateAdminConfig401JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteSecretV4404JSONResponseBodyStatusCode enum.
+ func (e DeleteSecretV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+ }
- // UpdateAdminConfig403JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
- type UpdateAdminConfig403JSONResponseBodyStatusCode float32
+ // Defines values for DeleteSecretV4422JSONResponseBodyStatusCode.
+ const (
+ DeleteSecretV4422JSONResponseBodyStatusCodeN422 DeleteSecretV4422JSONResponseBodyStatusCode = 422
+ )
- // UpdateAdminConfig404JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
- type UpdateAdminConfig404JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteSecretV4422JSONResponseBodyStatusCode enum.
+ func (e DeleteSecretV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+ }
- // UpdateAdminConfig422JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
- type UpdateAdminConfig422JSONResponseBodyStatusCode float32
+ // Defines values for DeleteSecretV4500JSONResponseBodyStatusCode.
+ const (
+ DeleteSecretV4500JSONResponseBodyStatusCodeN500 DeleteSecretV4500JSONResponseBodyStatusCode = 500
+ )
- // UpdateAdminConfig500JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
- type UpdateAdminConfig500JSONResponseBodyStatusCode float32
+ // Valid indicates whether the value is a known member of the DeleteSecretV4500JSONResponseBodyStatusCode enum.
+ func (e DeleteSecretV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateGitHubAppConnectionJSONBody defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody struct {
- // Description An optional description for the GitHub Connection.
- Description *string `json:"description,omitempty"`
+ // Defines values for GetSecretByNameV4ParamsType.
+ const (
+ GetSecretByNameV4ParamsTypePersonal GetSecretByNameV4ParamsType = "personal"
+ GetSecretByNameV4ParamsTypeShared GetSecretByNameV4ParamsType = "shared"
+ )
- // GatewayId The Gateway ID to use for this connection.
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsType enum.
+ func (e GetSecretByNameV4ParamsType) Valid() bool {
+ switch e {
+ case GetSecretByNameV4ParamsTypePersonal:
+ return true
+ case GetSecretByNameV4ParamsTypeShared:
+ return true
+ default:
+ return false
+ }
+ }
- // GatewayPoolId The Gateway Pool ID to use for this connection.
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ // Defines values for GetSecretByNameV4ParamsViewSecretValue.
+ const (
+ GetSecretByNameV4ParamsViewSecretValueFalse GetSecretByNameV4ParamsViewSecretValue = "false"
+ GetSecretByNameV4ParamsViewSecretValueTrue GetSecretByNameV4ParamsViewSecretValue = "true"
+ )
- // IsAutoRotationEnabled Not supported for GitHub Connections.
- IsAutoRotationEnabled *CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled `json:"isAutoRotationEnabled,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsViewSecretValue enum.
+ func (e GetSecretByNameV4ParamsViewSecretValue) Valid() bool {
+ switch e {
+ case GetSecretByNameV4ParamsViewSecretValueFalse:
+ return true
+ case GetSecretByNameV4ParamsViewSecretValueTrue:
+ return true
+ default:
+ return false
+ }
+ }
- // IsPlatformManagedCredentials Not supported for GitHub Connections.
- IsPlatformManagedCredentials *CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials `json:"isPlatformManagedCredentials,omitempty"`
+ // Defines values for GetSecretByNameV4ParamsExpandSecretReferences.
+ const (
+ GetSecretByNameV4ParamsExpandSecretReferencesFalse GetSecretByNameV4ParamsExpandSecretReferences = "false"
+ GetSecretByNameV4ParamsExpandSecretReferencesTrue GetSecretByNameV4ParamsExpandSecretReferences = "true"
+ )
- // Name The name of the GitHub Connection to create. Must be slug-friendly.
- Name string `json:"name"`
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsExpandSecretReferences enum.
+ func (e GetSecretByNameV4ParamsExpandSecretReferences) Valid() bool {
+ switch e {
+ case GetSecretByNameV4ParamsExpandSecretReferencesFalse:
+ return true
+ case GetSecretByNameV4ParamsExpandSecretReferencesTrue:
+ return true
+ default:
+ return false
+ }
+ }
- // ProjectId The ID of the project to create the GitHub Connection in.
- ProjectId *string `json:"projectId,omitempty"`
+ // Defines values for GetSecretByNameV4ParamsIncludeImports.
+ const (
+ GetSecretByNameV4ParamsIncludeImportsFalse GetSecretByNameV4ParamsIncludeImports = "false"
+ GetSecretByNameV4ParamsIncludeImportsTrue GetSecretByNameV4ParamsIncludeImports = "true"
+ )
- // Rotation Not supported for GitHub Connections.
- Rotation *CreateGitHubAppConnectionJSONBody_Rotation `json:"rotation,omitempty"`
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsIncludeImports enum.
+ func (e GetSecretByNameV4ParamsIncludeImports) Valid() bool {
+ switch e {
+ case GetSecretByNameV4ParamsIncludeImportsFalse:
+ return true
+ case GetSecretByNameV4ParamsIncludeImportsTrue:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled bool
-
- // CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials bool
+ // Defines values for GetSecretByNameV4400JSONResponseBodyStatusCode.
+ const (
+ GetSecretByNameV4400JSONResponseBodyStatusCodeN400 GetSecretByNameV4400JSONResponseBodyStatusCode = 400
+ )
- // CreateGitHubAppConnectionJSONBodyRotation0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBodyRotation0 = interface{}
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4400JSONResponseBodyStatusCode enum.
+ func (e GetSecretByNameV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateGitHubAppConnectionJSONBodyRotation1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBodyRotation1 = interface{}
+ // Defines values for GetSecretByNameV4401JSONResponseBodyStatusCode.
+ const (
+ GetSecretByNameV4401JSONResponseBodyStatusCodeN401 GetSecretByNameV4401JSONResponseBodyStatusCode = 401
+ )
- // CreateGitHubAppConnectionJSONBody_Rotation defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody_Rotation struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4401JSONResponseBodyStatusCode enum.
+ func (e GetSecretByNameV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody0 struct {
- // Credentials The credentials used to connect with GitHub.
- Credentials CreateGitHubAppConnectionJSONBody_0_Credentials `json:"credentials"`
+ // Defines values for GetSecretByNameV4403JSONResponseBodyStatusCode.
+ const (
+ GetSecretByNameV4403JSONResponseBodyStatusCodeN403 GetSecretByNameV4403JSONResponseBodyStatusCode = 403
+ )
- // Method The method used to authenticate with GitHub.
- Method CreateGitHubAppConnectionJSONBody0Method `json:"method"`
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4403JSONResponseBodyStatusCode enum.
+ func (e GetSecretByNameV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody0Credentials0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody0Credentials0 struct {
- Code string `json:"code"`
- GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
- Host string `json:"host"`
- InstallationId string `json:"installationId"`
- InstanceType CreateGitHubAppConnectionJSONBody0Credentials0InstanceType `json:"instanceType"`
+ // Defines values for GetSecretByNameV4404JSONResponseBodyStatusCode.
+ const (
+ GetSecretByNameV4404JSONResponseBodyStatusCodeN404 GetSecretByNameV4404JSONResponseBodyStatusCode = 404
+ )
+
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4404JSONResponseBodyStatusCode enum.
+ func (e GetSecretByNameV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody0Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody0Credentials0InstanceType string
+ // Defines values for GetSecretByNameV4422JSONResponseBodyStatusCode.
+ const (
+ GetSecretByNameV4422JSONResponseBodyStatusCodeN422 GetSecretByNameV4422JSONResponseBodyStatusCode = 422
+ )
- // CreateGitHubAppConnectionJSONBody0Credentials1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody0Credentials1 struct {
- Code string `json:"code"`
- GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
- Host *string `json:"host,omitempty"`
- InstallationId string `json:"installationId"`
- InstanceType *CreateGitHubAppConnectionJSONBody0Credentials1InstanceType `json:"instanceType,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4422JSONResponseBodyStatusCode enum.
+ func (e GetSecretByNameV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody0Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody0Credentials1InstanceType string
+ // Defines values for GetSecretByNameV4500JSONResponseBodyStatusCode.
+ const (
+ GetSecretByNameV4500JSONResponseBodyStatusCodeN500 GetSecretByNameV4500JSONResponseBodyStatusCode = 500
+ )
- // CreateGitHubAppConnectionJSONBody_0_Credentials defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody_0_Credentials struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the GetSecretByNameV4500JSONResponseBodyStatusCode enum.
+ func (e GetSecretByNameV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody0Method defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody0Method string
-
- // CreateGitHubAppConnectionJSONBody1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody1 struct {
- // Credentials The credentials used to connect with GitHub.
- Credentials CreateGitHubAppConnectionJSONBody_1_Credentials `json:"credentials"`
+ // Defines values for UpdateSecretV4JSONBodyType.
+ const (
+ UpdateSecretV4JSONBodyTypePersonal UpdateSecretV4JSONBodyType = "personal"
+ UpdateSecretV4JSONBodyTypeShared UpdateSecretV4JSONBodyType = "shared"
+ )
- // Method The method used to authenticate with GitHub.
- Method CreateGitHubAppConnectionJSONBody1Method `json:"method"`
+ // Valid indicates whether the value is a known member of the UpdateSecretV4JSONBodyType enum.
+ func (e UpdateSecretV4JSONBodyType) Valid() bool {
+ switch e {
+ case UpdateSecretV4JSONBodyTypePersonal:
+ return true
+ case UpdateSecretV4JSONBodyTypeShared:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody1Credentials0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody1Credentials0 struct {
- Code string `json:"code"`
- Host string `json:"host"`
- InstanceType CreateGitHubAppConnectionJSONBody1Credentials0InstanceType `json:"instanceType"`
+ // Defines values for UpdateSecretV4400JSONResponseBodyStatusCode.
+ const (
+ UpdateSecretV4400JSONResponseBodyStatusCodeN400 UpdateSecretV4400JSONResponseBodyStatusCode = 400
+ )
+
+ // Valid indicates whether the value is a known member of the UpdateSecretV4400JSONResponseBodyStatusCode enum.
+ func (e UpdateSecretV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateSecretV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody1Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody1Credentials0InstanceType string
+ // Defines values for UpdateSecretV4401JSONResponseBodyStatusCode.
+ const (
+ UpdateSecretV4401JSONResponseBodyStatusCodeN401 UpdateSecretV4401JSONResponseBodyStatusCode = 401
+ )
- // CreateGitHubAppConnectionJSONBody1Credentials1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody1Credentials1 struct {
- Code string `json:"code"`
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnectionJSONBody1Credentials1InstanceType `json:"instanceType,omitempty"`
+ // Valid indicates whether the value is a known member of the UpdateSecretV4401JSONResponseBodyStatusCode enum.
+ func (e UpdateSecretV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateSecretV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody1Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody1Credentials1InstanceType string
+ // Defines values for UpdateSecretV4403JSONResponseBodyStatusCode.
+ const (
+ UpdateSecretV4403JSONResponseBodyStatusCodeN403 UpdateSecretV4403JSONResponseBodyStatusCode = 403
+ )
- // CreateGitHubAppConnectionJSONBody_1_Credentials defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody_1_Credentials struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the UpdateSecretV4403JSONResponseBodyStatusCode enum.
+ func (e UpdateSecretV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateSecretV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody1Method defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody1Method string
-
- // CreateGitHubAppConnectionJSONBody2 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody2 struct {
- // Credentials The credentials used to connect with GitHub.
- Credentials CreateGitHubAppConnectionJSONBody_2_Credentials `json:"credentials"`
-
- // Method The method used to authenticate with GitHub.
- Method CreateGitHubAppConnectionJSONBody2Method `json:"method"`
- }
+ // Defines values for UpdateSecretV4404JSONResponseBodyStatusCode.
+ const (
+ UpdateSecretV4404JSONResponseBodyStatusCodeN404 UpdateSecretV4404JSONResponseBodyStatusCode = 404
+ )
- // CreateGitHubAppConnectionJSONBody2Credentials0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody2Credentials0 struct {
- Host string `json:"host"`
- InstanceType CreateGitHubAppConnectionJSONBody2Credentials0InstanceType `json:"instanceType"`
- PersonalAccessToken string `json:"personalAccessToken"`
+ // Valid indicates whether the value is a known member of the UpdateSecretV4404JSONResponseBodyStatusCode enum.
+ func (e UpdateSecretV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateSecretV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody2Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody2Credentials0InstanceType string
+ // Defines values for UpdateSecretV4422JSONResponseBodyStatusCode.
+ const (
+ UpdateSecretV4422JSONResponseBodyStatusCodeN422 UpdateSecretV4422JSONResponseBodyStatusCode = 422
+ )
- // CreateGitHubAppConnectionJSONBody2Credentials1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody2Credentials1 struct {
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnectionJSONBody2Credentials1InstanceType `json:"instanceType,omitempty"`
- PersonalAccessToken string `json:"personalAccessToken"`
+ // Valid indicates whether the value is a known member of the UpdateSecretV4422JSONResponseBodyStatusCode enum.
+ func (e UpdateSecretV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateSecretV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody2Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody2Credentials1InstanceType string
+ // Defines values for UpdateSecretV4500JSONResponseBodyStatusCode.
+ const (
+ UpdateSecretV4500JSONResponseBodyStatusCodeN500 UpdateSecretV4500JSONResponseBodyStatusCode = 500
+ )
- // CreateGitHubAppConnectionJSONBody_2_Credentials defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody_2_Credentials struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the UpdateSecretV4500JSONResponseBodyStatusCode enum.
+ func (e UpdateSecretV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case UpdateSecretV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnectionJSONBody2Method defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnectionJSONBody2Method string
+ // Defines values for CreateSecretV4JSONBodyType.
+ const (
+ CreateSecretV4JSONBodyTypePersonal CreateSecretV4JSONBodyType = "personal"
+ CreateSecretV4JSONBodyTypeShared CreateSecretV4JSONBodyType = "shared"
+ )
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
- App CreateGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
+ // Valid indicates whether the value is a known member of the CreateSecretV4JSONBodyType enum.
+ func (e CreateSecretV4JSONBodyType) Valid() bool {
+ switch e {
+ case CreateSecretV4JSONBodyTypePersonal:
+ return true
+ case CreateSecretV4JSONBodyTypeShared:
+ return true
+ default:
+ return false
+ }
+ }
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+ // Defines values for CreateSecretV4400JSONResponseBodyStatusCode.
+ const (
+ CreateSecretV4400JSONResponseBodyStatusCodeN400 CreateSecretV4400JSONResponseBodyStatusCode = 400
+ )
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+ // Valid indicates whether the value is a known member of the CreateSecretV4400JSONResponseBodyStatusCode enum.
+ func (e CreateSecretV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+ }
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+ // Defines values for CreateSecretV4401JSONResponseBodyStatusCode.
+ const (
+ CreateSecretV4401JSONResponseBodyStatusCodeN401 CreateSecretV4401JSONResponseBodyStatusCode = 401
+ )
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+ // Valid indicates whether the value is a known member of the CreateSecretV4401JSONResponseBodyStatusCode enum.
+ func (e CreateSecretV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+ }
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+ // Defines values for CreateSecretV4403JSONResponseBodyStatusCode.
+ const (
+ CreateSecretV4403JSONResponseBodyStatusCodeN403 CreateSecretV4403JSONResponseBodyStatusCode = 403
+ )
- // RotationStatus The status of the last rotation attempt.
- RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+ // Valid indicates whether the value is a known member of the CreateSecretV4403JSONResponseBodyStatusCode enum.
+ func (e CreateSecretV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection0App string
+ // Defines values for CreateSecretV4404JSONResponseBodyStatusCode.
+ const (
+ CreateSecretV4404JSONResponseBodyStatusCodeN404 CreateSecretV4404JSONResponseBodyStatusCode = 404
+ )
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
+ // Valid indicates whether the value is a known member of the CreateSecretV4404JSONResponseBodyStatusCode enum.
+ func (e CreateSecretV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
+ // Defines values for CreateSecretV4422JSONResponseBodyStatusCode.
+ const (
+ CreateSecretV4422JSONResponseBodyStatusCodeN422 CreateSecretV4422JSONResponseBodyStatusCode = 422
+ )
- // CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the CreateSecretV4422JSONResponseBodyStatusCode enum.
+ func (e CreateSecretV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method string
-
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
+ // Defines values for CreateSecretV4500JSONResponseBodyStatusCode.
+ const (
+ CreateSecretV4500JSONResponseBodyStatusCodeN500 CreateSecretV4500JSONResponseBodyStatusCode = 500
+ )
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
- App CreateGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
+ // Valid indicates whether the value is a known member of the CreateSecretV4500JSONResponseBodyStatusCode enum.
+ func (e CreateSecretV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+ }
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+ // Defines values for GetSecretReferencesV4400JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferencesV4400JSONResponseBodyStatusCodeN400 GetSecretReferencesV4400JSONResponseBodyStatusCode = 400
+ )
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretReferencesV4400JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferencesV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferencesV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+ }
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+ // Defines values for GetSecretReferencesV4401JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferencesV4401JSONResponseBodyStatusCodeN401 GetSecretReferencesV4401JSONResponseBodyStatusCode = 401
+ )
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+ // Valid indicates whether the value is a known member of the GetSecretReferencesV4401JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferencesV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferencesV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+ }
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+ // Defines values for GetSecretReferencesV4403JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferencesV4403JSONResponseBodyStatusCodeN403 GetSecretReferencesV4403JSONResponseBodyStatusCode = 403
+ )
- // RotationStatus The status of the last rotation attempt.
- RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretReferencesV4403JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferencesV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferencesV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection1App string
+ // Defines values for GetSecretReferencesV4404JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferencesV4404JSONResponseBodyStatusCodeN404 GetSecretReferencesV4404JSONResponseBodyStatusCode = 404
+ )
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
+ // Valid indicates whether the value is a known member of the GetSecretReferencesV4404JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferencesV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferencesV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
+ // Defines values for GetSecretReferencesV4422JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferencesV4422JSONResponseBodyStatusCodeN422 GetSecretReferencesV4422JSONResponseBodyStatusCode = 422
+ )
- // CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the GetSecretReferencesV4422JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferencesV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferencesV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method string
-
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
+ // Defines values for GetSecretReferencesV4500JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferencesV4500JSONResponseBodyStatusCodeN500 GetSecretReferencesV4500JSONResponseBodyStatusCode = 500
+ )
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
- App CreateGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretReferencesV4500JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferencesV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferencesV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+ }
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+ // Defines values for GetSecretReferenceTreeV4400JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferenceTreeV4400JSONResponseBodyStatusCodeN400 GetSecretReferenceTreeV4400JSONResponseBodyStatusCode = 400
+ )
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretReferenceTreeV4400JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferenceTreeV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferenceTreeV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+ }
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+ // Defines values for GetSecretReferenceTreeV4401JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferenceTreeV4401JSONResponseBodyStatusCodeN401 GetSecretReferenceTreeV4401JSONResponseBodyStatusCode = 401
+ )
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+ // Valid indicates whether the value is a known member of the GetSecretReferenceTreeV4401JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferenceTreeV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferenceTreeV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+ }
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+ // Defines values for GetSecretReferenceTreeV4403JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferenceTreeV4403JSONResponseBodyStatusCodeN403 GetSecretReferenceTreeV4403JSONResponseBodyStatusCode = 403
+ )
- // RotationStatus The status of the last rotation attempt.
- RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+ // Valid indicates whether the value is a known member of the GetSecretReferenceTreeV4403JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferenceTreeV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferenceTreeV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection2App string
+ // Defines values for GetSecretReferenceTreeV4404JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferenceTreeV4404JSONResponseBodyStatusCodeN404 GetSecretReferenceTreeV4404JSONResponseBodyStatusCode = 404
+ )
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
+ // Valid indicates whether the value is a known member of the GetSecretReferenceTreeV4404JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferenceTreeV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferenceTreeV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+ }
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
+ // Defines values for GetSecretReferenceTreeV4422JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferenceTreeV4422JSONResponseBodyStatusCodeN422 GetSecretReferenceTreeV4422JSONResponseBodyStatusCode = 422
+ )
- // CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the GetSecretReferenceTreeV4422JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferenceTreeV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferenceTreeV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method string
-
- // CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
+ // Defines values for GetSecretReferenceTreeV4500JSONResponseBodyStatusCode.
+ const (
+ GetSecretReferenceTreeV4500JSONResponseBodyStatusCodeN500 GetSecretReferenceTreeV4500JSONResponseBodyStatusCode = 500
+ )
- // CreateGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection200JSONResponseBody_AppConnection struct {
- union json.RawMessage
+ // Valid indicates whether the value is a known member of the GetSecretReferenceTreeV4500JSONResponseBodyStatusCode enum.
+ func (e GetSecretReferenceTreeV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretReferenceTreeV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
- // CreateGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection400JSONResponseBodyStatusCode float32
+ // GetInstanceStatus400JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
+ type GetInstanceStatus400JSONResponseBodyStatusCode float32
- // CreateGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection401JSONResponseBodyStatusCode float32
+ // GetInstanceStatus401JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
+ type GetInstanceStatus401JSONResponseBodyStatusCode float32
- // CreateGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection403JSONResponseBodyStatusCode float32
+ // GetInstanceStatus403JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
+ type GetInstanceStatus403JSONResponseBodyStatusCode float32
- // CreateGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection404JSONResponseBodyStatusCode float32
+ // GetInstanceStatus404JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
+ type GetInstanceStatus404JSONResponseBodyStatusCode float32
- // CreateGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection422JSONResponseBodyStatusCode float32
+ // GetInstanceStatus422JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
+ type GetInstanceStatus422JSONResponseBodyStatusCode float32
- // CreateGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
- type CreateGitHubAppConnection500JSONResponseBodyStatusCode float32
+ // GetInstanceStatus500JSONResponseBodyStatusCode defines parameters for GetInstanceStatus.
+ type GetInstanceStatus500JSONResponseBodyStatusCode float32
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
- App DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
- Host *string `json:"host,omitempty"`
- InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
++// ListAccessApprovalPoliciesParams defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPoliciesParams struct {
++ ProjectSlug string `form:"projectSlug" json:"projectSlug"`
++}
+
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
++// ListAccessApprovalPolicies200JSONResponseBodyApprovalsApproversType defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies200JSONResponseBodyApprovalsApproversType string
+
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
++// ListAccessApprovalPolicies200JSONResponseBodyApprovalsBypassersType defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies200JSONResponseBodyApprovalsBypassersType string
+
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
++// ListAccessApprovalPolicies200JSONResponseBodyApprovalsDelegatedApprovalType defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies200JSONResponseBodyApprovalsDelegatedApprovalType string
+
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
++// ListAccessApprovalPolicies400JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies400JSONResponseBodyStatusCode float32
+
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
++// ListAccessApprovalPolicies401JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies401JSONResponseBodyStatusCode float32
+
- // RotationStatus The status of the last rotation attempt.
- RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
- }
++// ListAccessApprovalPolicies403JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies403JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App string
++// ListAccessApprovalPolicies404JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies404JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
++// ListAccessApprovalPolicies422JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies422JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
++// ListAccessApprovalPolicies500JSONResponseBodyStatusCode defines parameters for ListAccessApprovalPolicies.
++type ListAccessApprovalPolicies500JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
- union json.RawMessage
- }
++// CreateAccessApprovalPolicyJSONBody defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBody struct {
++ // AllowedSelfApprovals Defaults to true, or to false when delegatedApproval is set.
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ ApprovalsRequired *[]struct {
++ NumberOfApprovals int `json:"numberOfApprovals"`
++ StepNumber int `json:"stepNumber"`
++ } `json:"approvalsRequired,omitempty"`
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method string
++ // Approvers Required unless delegatedApproval is set, and must be omitted when it is.
++ Approvers *[]CreateAccessApprovalPolicyJSONBody_Approvers_Item `json:"approvers,omitempty"`
++ Bypassers *[]CreateAccessApprovalPolicyJSONBody_Bypassers_Item `json:"bypassers,omitempty"`
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
++ // DelegatedApproval Hand requests made against this policy to a delegated approval system.
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
- App DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- Host *string `json:"host,omitempty"`
- InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type CreateAccessApprovalPolicyJSONBodyDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ EnforcementLevel *CreateAccessApprovalPolicyJSONBodyEnforcementLevel `json:"enforcementLevel,omitempty"`
++ Environment *string `json:"environment,omitempty"`
++ Environments *[]string `json:"environments,omitempty"`
++ MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
++ Name *string `json:"name,omitempty"`
++ ProjectSlug string `json:"projectSlug"`
++ RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
++ SecretPath string `json:"secretPath"`
++}
+
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
++// CreateAccessApprovalPolicyJSONBodyApprovers0 defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyApprovers0 struct {
++ Id string `json:"id"`
++ Sequence *int `json:"sequence,omitempty"`
++ Type CreateAccessApprovalPolicyJSONBodyApprovers0Type `json:"type"`
++}
+
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
++// CreateAccessApprovalPolicyJSONBodyApprovers0Type defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyApprovers0Type string
+
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
++// CreateAccessApprovalPolicyJSONBodyApprovers1 defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyApprovers1 struct {
++ Id *string `json:"id,omitempty"`
++ Sequence *int `json:"sequence,omitempty"`
++ Type CreateAccessApprovalPolicyJSONBodyApprovers1Type `json:"type"`
++ Username *string `json:"username,omitempty"`
++}
+
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
++// CreateAccessApprovalPolicyJSONBodyApprovers1Type defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyApprovers1Type string
+
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
++// CreateAccessApprovalPolicyJSONBody_Approvers_Item defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBody_Approvers_Item struct {
++ union json.RawMessage
++}
+
- // RotationStatus The status of the last rotation attempt.
- RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
++// CreateAccessApprovalPolicyJSONBodyBypassers0 defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyBypassers0 struct {
++ Id string `json:"id"`
++ Type CreateAccessApprovalPolicyJSONBodyBypassers0Type `json:"type"`
+}
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App string
++// CreateAccessApprovalPolicyJSONBodyBypassers0Type defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyBypassers0Type string
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
++// CreateAccessApprovalPolicyJSONBodyBypassers1 defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyBypassers1 struct {
++ Id *string `json:"id,omitempty"`
++ Type CreateAccessApprovalPolicyJSONBodyBypassers1Type `json:"type"`
++ Username *string `json:"username,omitempty"`
++}
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
++// CreateAccessApprovalPolicyJSONBodyBypassers1Type defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyBypassers1Type string
+
- // DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
++// CreateAccessApprovalPolicyJSONBody_Bypassers_Item defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBody_Bypassers_Item struct {
+ union json.RawMessage
+}
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method string
++// CreateAccessApprovalPolicyJSONBodyDelegatedApprovalType defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyDelegatedApprovalType string
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
++// CreateAccessApprovalPolicyJSONBodyEnforcementLevel defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicyJSONBodyEnforcementLevel string
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
- App DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- Host *string `json:"host,omitempty"`
- InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
++// CreateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType string
+
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
++// CreateAccessApprovalPolicy400JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicy400JSONResponseBodyStatusCode float32
+
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
++// CreateAccessApprovalPolicy401JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicy401JSONResponseBodyStatusCode float32
+
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
++// CreateAccessApprovalPolicy403JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicy403JSONResponseBodyStatusCode float32
+
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
++// CreateAccessApprovalPolicy404JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicy404JSONResponseBodyStatusCode float32
+
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
++// CreateAccessApprovalPolicy422JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicy422JSONResponseBodyStatusCode float32
+
- // RotationStatus The status of the last rotation attempt.
- RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
- }
++// CreateAccessApprovalPolicy500JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalPolicy.
++type CreateAccessApprovalPolicy500JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App string
++// GetAccessApprovalPolicy200JSONResponseBodyApprovalApproversType defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy200JSONResponseBodyApprovalApproversType string
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
++// GetAccessApprovalPolicy200JSONResponseBodyApprovalBypassersType defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy200JSONResponseBodyApprovalBypassersType string
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
++// GetAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType string
+
- // DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
- union json.RawMessage
- }
++// GetAccessApprovalPolicy400JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy400JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method string
++// GetAccessApprovalPolicy401JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy401JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
++// GetAccessApprovalPolicy403JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy403JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection200JSONResponseBody_AppConnection struct {
- union json.RawMessage
- }
++// GetAccessApprovalPolicy404JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy404JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection400JSONResponseBodyStatusCode float32
++// GetAccessApprovalPolicy422JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy422JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection401JSONResponseBodyStatusCode float32
++// GetAccessApprovalPolicy500JSONResponseBodyStatusCode defines parameters for GetAccessApprovalPolicy.
++type GetAccessApprovalPolicy500JSONResponseBodyStatusCode float32
+
- // DeleteGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection403JSONResponseBodyStatusCode float32
++// UpdateAccessApprovalPolicyJSONBody defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBody struct {
++ // AllowedSelfApprovals Defaults to true, or to false when the policy is handled by a delegated approval system.
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ ApprovalsRequired *[]struct {
++ NumberOfApprovals int `json:"numberOfApprovals"`
++ StepNumber int `json:"stepNumber"`
++ } `json:"approvalsRequired,omitempty"`
+
- // DeleteGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection404JSONResponseBodyStatusCode float32
++ // Approvers Required unless the policy is handled by a delegated approval system, and must be omitted when it is.
++ Approvers *[]UpdateAccessApprovalPolicyJSONBody_Approvers_Item `json:"approvers,omitempty"`
++ Bypassers *[]UpdateAccessApprovalPolicyJSONBody_Bypassers_Item `json:"bypassers,omitempty"`
+
- // DeleteGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection422JSONResponseBodyStatusCode float32
++ // DelegatedApproval Hand requests made against this policy to a delegated approval system. Send null to stop using one.
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
+
- // DeleteGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
- type DeleteGitHubAppConnection500JSONResponseBodyStatusCode float32
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type UpdateAccessApprovalPolicyJSONBodyDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ EnforcementLevel *UpdateAccessApprovalPolicyJSONBodyEnforcementLevel `json:"enforcementLevel,omitempty"`
++ Environments *[]string `json:"environments,omitempty"`
++ MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
++ Name *string `json:"name,omitempty"`
++ RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
++ SecretPath *string `json:"secretPath,omitempty"`
++}
+
- // CreateServiceNowAppConnectionJSONBody defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBody struct {
- // Description An optional description for the ServiceNow Connection.
- Description *string `json:"description,omitempty"`
++// UpdateAccessApprovalPolicyJSONBodyApprovers0 defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyApprovers0 struct {
++ Id string `json:"id"`
++ Sequence *int `json:"sequence,omitempty"`
++ Type UpdateAccessApprovalPolicyJSONBodyApprovers0Type `json:"type"`
++}
+
- // GatewayId Not supported for ServiceNow Connections.
- GatewayId *CreateServiceNowAppConnectionJSONBody_GatewayId `json:"gatewayId,omitempty"`
++// UpdateAccessApprovalPolicyJSONBodyApprovers0Type defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyApprovers0Type string
+
- // GatewayPoolId Not supported for ServiceNow Connections.
- GatewayPoolId *CreateServiceNowAppConnectionJSONBody_GatewayPoolId `json:"gatewayPoolId,omitempty"`
++// UpdateAccessApprovalPolicyJSONBodyApprovers1 defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyApprovers1 struct {
++ Id *string `json:"id,omitempty"`
++ Sequence *int `json:"sequence,omitempty"`
++ Type UpdateAccessApprovalPolicyJSONBodyApprovers1Type `json:"type"`
++ Username *string `json:"username,omitempty"`
++}
+
- // IsAutoRotationEnabled Not supported for ServiceNow Connections.
- IsAutoRotationEnabled *CreateServiceNowAppConnectionJSONBodyIsAutoRotationEnabled `json:"isAutoRotationEnabled,omitempty"`
++// UpdateAccessApprovalPolicyJSONBodyApprovers1Type defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyApprovers1Type string
+
- // IsPlatformManagedCredentials Not supported for ServiceNow Connections.
- IsPlatformManagedCredentials *CreateServiceNowAppConnectionJSONBodyIsPlatformManagedCredentials `json:"isPlatformManagedCredentials,omitempty"`
++// UpdateAccessApprovalPolicyJSONBody_Approvers_Item defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBody_Approvers_Item struct {
++ union json.RawMessage
++}
+
- // Name The name of the ServiceNow Connection to create. Must be slug-friendly.
- Name string `json:"name"`
++// UpdateAccessApprovalPolicyJSONBodyBypassers0 defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyBypassers0 struct {
++ Id string `json:"id"`
++ Type UpdateAccessApprovalPolicyJSONBodyBypassers0Type `json:"type"`
++}
+
- // ProjectId The ID of the project to create the ServiceNow Connection in.
- ProjectId *string `json:"projectId,omitempty"`
++// UpdateAccessApprovalPolicyJSONBodyBypassers0Type defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyBypassers0Type string
+
- // Rotation Not supported for ServiceNow Connections.
- Rotation *CreateServiceNowAppConnectionJSONBody_Rotation `json:"rotation,omitempty"`
- union json.RawMessage
++// UpdateAccessApprovalPolicyJSONBodyBypassers1 defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyBypassers1 struct {
++ Id *string `json:"id,omitempty"`
++ Type UpdateAccessApprovalPolicyJSONBodyBypassers1Type `json:"type"`
++ Username *string `json:"username,omitempty"`
+}
+
- // CreateServiceNowAppConnectionJSONBodyGatewayId0 defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBodyGatewayId0 = interface{}
-
- // CreateServiceNowAppConnectionJSONBodyGatewayId1 defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBodyGatewayId1 = interface{}
++// UpdateAccessApprovalPolicyJSONBodyBypassers1Type defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyBypassers1Type string
+
- // CreateServiceNowAppConnectionJSONBody_GatewayId defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBody_GatewayId struct {
++// UpdateAccessApprovalPolicyJSONBody_Bypassers_Item defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBody_Bypassers_Item struct {
+ union json.RawMessage
+}
+
- // CreateServiceNowAppConnectionJSONBodyGatewayPoolId0 defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBodyGatewayPoolId0 = interface{}
-
- // CreateServiceNowAppConnectionJSONBodyGatewayPoolId1 defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBodyGatewayPoolId1 = interface{}
++// UpdateAccessApprovalPolicyJSONBodyDelegatedApprovalType defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyDelegatedApprovalType string
+
- // CreateServiceNowAppConnectionJSONBody_GatewayPoolId defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBody_GatewayPoolId struct {
- union json.RawMessage
- }
++// UpdateAccessApprovalPolicyJSONBodyEnforcementLevel defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicyJSONBodyEnforcementLevel string
+
- // CreateServiceNowAppConnectionJSONBodyIsAutoRotationEnabled defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBodyIsAutoRotationEnabled bool
++// UpdateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType string
+
- // CreateServiceNowAppConnectionJSONBodyIsPlatformManagedCredentials defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBodyIsPlatformManagedCredentials bool
++// UpdateAccessApprovalPolicy400JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicy400JSONResponseBodyStatusCode float32
+
- // CreateServiceNowAppConnectionJSONBodyRotation0 defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBodyRotation0 = interface{}
++// UpdateAccessApprovalPolicy401JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicy401JSONResponseBodyStatusCode float32
+
- // CreateServiceNowAppConnectionJSONBodyRotation1 defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBodyRotation1 = interface{}
++// UpdateAccessApprovalPolicy403JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicy403JSONResponseBodyStatusCode float32
+
- // CreateServiceNowAppConnectionJSONBody_Rotation defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBody_Rotation struct {
- union json.RawMessage
- }
++// UpdateAccessApprovalPolicy404JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicy404JSONResponseBodyStatusCode float32
+
- // CreateServiceNowAppConnectionJSONBody0 defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBody0 struct {
- // Credentials The credentials used to connect with ServiceNow.
- Credentials struct {
- // InstanceUrl The base URL of the ServiceNow instance to connect with, without a path or trailing slash.
- InstanceUrl string `json:"instanceUrl"`
++// UpdateAccessApprovalPolicy422JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicy422JSONResponseBodyStatusCode float32
+
- // Password The password of the ServiceNow integration user.
- Password string `json:"password"`
++// UpdateAccessApprovalPolicy500JSONResponseBodyStatusCode defines parameters for UpdateAccessApprovalPolicy.
++type UpdateAccessApprovalPolicy500JSONResponseBodyStatusCode float32
+
- // Username The User ID of the ServiceNow integration user.
- Username string `json:"username"`
- } `json:"credentials"`
++// CreateAccessApprovalRequestJSONBody defines parameters for CreateAccessApprovalRequest.
++type CreateAccessApprovalRequestJSONBody struct {
++ IsTemporary bool `json:"isTemporary"`
++ Note *string `json:"note,omitempty"`
++ Permissions [][]string `json:"permissions"`
++ TemporaryRange *string `json:"temporaryRange,omitempty"`
++}
+
- // Method The method used to authenticate with ServiceNow.
- Method CreateServiceNowAppConnectionJSONBody0Method `json:"method"`
++// CreateAccessApprovalRequestParams defines parameters for CreateAccessApprovalRequest.
++type CreateAccessApprovalRequestParams struct {
++ ProjectSlug string `form:"projectSlug" json:"projectSlug"`
+}
+
- // CreateServiceNowAppConnectionJSONBody0Method defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnectionJSONBody0Method string
++// CreateAccessApprovalRequest400JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
++type CreateAccessApprovalRequest400JSONResponseBodyStatusCode float32
+
- // CreateServiceNowAppConnection200JSONResponseBodyAppConnection0 defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection200JSONResponseBodyAppConnection0 struct {
- App CreateServiceNowAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- // InstanceUrl The base URL of the ServiceNow instance to connect with, without a path or trailing slash.
- InstanceUrl string `json:"instanceUrl"`
++// CreateAccessApprovalRequest401JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
++type CreateAccessApprovalRequest401JSONResponseBodyStatusCode float32
+
- // Username The User ID of the ServiceNow integration user.
- Username string `json:"username"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method CreateServiceNowAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
++// CreateAccessApprovalRequest403JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
++type CreateAccessApprovalRequest403JSONResponseBodyStatusCode float32
+
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
++// CreateAccessApprovalRequest404JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
++type CreateAccessApprovalRequest404JSONResponseBodyStatusCode float32
+
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
++// CreateAccessApprovalRequest422JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
++type CreateAccessApprovalRequest422JSONResponseBodyStatusCode float32
+
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
++// CreateAccessApprovalRequest500JSONResponseBodyStatusCode defines parameters for CreateAccessApprovalRequest.
++type CreateAccessApprovalRequest500JSONResponseBodyStatusCode float32
+
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+ // AdminBootstrapJSONBody defines parameters for AdminBootstrap.
+ type AdminBootstrapJSONBody struct {
+ Email openapi_types.Email `json:"email"`
+ Organization string `json:"organization"`
+ Password string `json:"password"`
+ }
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+ // AdminBootstrap400JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+ type AdminBootstrap400JSONResponseBodyStatusCode float32
- // RotationStatus The status of the last rotation attempt.
- RotationStatus CreateServiceNowAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
- }
+ // AdminBootstrap401JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+ type AdminBootstrap401JSONResponseBodyStatusCode float32
- // CreateServiceNowAppConnection200JSONResponseBodyAppConnection0App defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection200JSONResponseBodyAppConnection0App string
+ // AdminBootstrap403JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+ type AdminBootstrap403JSONResponseBodyStatusCode float32
- // CreateServiceNowAppConnection200JSONResponseBodyAppConnection0Method defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection200JSONResponseBodyAppConnection0Method string
+ // AdminBootstrap404JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+ type AdminBootstrap404JSONResponseBodyStatusCode float32
- // CreateServiceNowAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
+ // AdminBootstrap422JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+ type AdminBootstrap422JSONResponseBodyStatusCode float32
- // CreateServiceNowAppConnection200JSONResponseBody_AppConnection defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection200JSONResponseBody_AppConnection struct {
- union json.RawMessage
+ // AdminBootstrap500JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+ type AdminBootstrap500JSONResponseBodyStatusCode float32
+
+ // UpdateAdminConfigJSONBody defines parameters for UpdateAdminConfig.
+ type UpdateAdminConfigJSONBody struct {
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AllowedStorageHostnames *[]string `json:"allowedStorageHostnames,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ DefaultAuthOrgId *string `json:"defaultAuthOrgId,omitempty"`
+ EnabledLoginMethods *[]UpdateAdminConfigJSONBodyEnabledLoginMethods `json:"enabledLoginMethods,omitempty"`
+ EnvOverrides *struct {
+ CLIENTGITLABLOGINURL string `json:"CLIENT_GITLAB_LOGIN_URL"`
+ CLIENTIDGITHUBLOGIN string `json:"CLIENT_ID_GITHUB_LOGIN"`
+ CLIENTIDGITLABLOGIN string `json:"CLIENT_ID_GITLAB_LOGIN"`
+ CLIENTIDGOOGLELOGIN string `json:"CLIENT_ID_GOOGLE_LOGIN"`
+ CLIENTSECRETGITHUBLOGIN string `json:"CLIENT_SECRET_GITHUB_LOGIN"`
+ CLIENTSECRETGITLABLOGIN string `json:"CLIENT_SECRET_GITLAB_LOGIN"`
+ CLIENTSECRETGOOGLELOGIN string `json:"CLIENT_SECRET_GOOGLE_LOGIN"`
+ DISABLEAUDITLOGSTORAGE string `json:"DISABLE_AUDIT_LOG_STORAGE"`
+ DISABLEPOSTGRESAUDITLOGSTORAGE string `json:"DISABLE_POSTGRES_AUDIT_LOG_STORAGE"`
+ DISABLEPUBLICSECRETSHARING string `json:"DISABLE_PUBLIC_SECRET_SHARING"`
+ INFAPPCONNECTIONAWSACCESSKEYID string `json:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`
+ INFAPPCONNECTIONAWSSECRETACCESSKEY string `json:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`
+ INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTID string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`
+ INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZUREDEVOPSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREDEVOPSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZUREKEYVAULTCLIENTID string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREKEYVAULTCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`
+ INFAPPCONNECTIONGCPSERVICEACCOUNTCREDENTIAL string `json:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`
+ INFAPPCONNECTIONGITHUBAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBAPPHOST string `json:"INF_APP_CONNECTION_GITHUB_APP_HOST"`
+ INFAPPCONNECTIONGITHUBAPPID string `json:"INF_APP_CONNECTION_GITHUB_APP_ID"`
+ INFAPPCONNECTIONGITHUBAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`
+ INFAPPCONNECTIONGITHUBAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`
+ INFAPPCONNECTIONGITHUBOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBRADARAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBRADARAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBRADARAPPID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`
+ INFAPPCONNECTIONGITHUBRADARAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`
+ INFAPPCONNECTIONGITHUBRADARAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`
+ INFAPPCONNECTIONGITHUBRADARAPPWEBHOOKSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`
+ INFAPPCONNECTIONGITLABOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONGITLABOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`
+ INFAPPCONNECTIONHEROKUOAUTHCLIENTID string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONHEROKUOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`
+ INFAPPCONNECTIONSTRIPEOAUTHAUTHORIZEURL string `json:"INF_APP_CONNECTION_STRIPE_OAUTH_AUTHORIZE_URL"`
+ INFAPPCONNECTIONSTRIPEOAUTHCLIENTID string `json:"INF_APP_CONNECTION_STRIPE_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONSTRIPESECRETKEY string `json:"INF_APP_CONNECTION_STRIPE_SECRET_KEY"`
+ } `json:"envOverrides,omitempty"`
+ GitHubAppConnectionClientId *string `json:"gitHubAppConnectionClientId,omitempty"`
+ GitHubAppConnectionClientSecret *string `json:"gitHubAppConnectionClientSecret,omitempty"`
+ GitHubAppConnectionId *string `json:"gitHubAppConnectionId,omitempty"`
+ GitHubAppConnectionPrivateKey *string `json:"gitHubAppConnectionPrivateKey,omitempty"`
+ GitHubAppConnectionSlug *string `json:"gitHubAppConnectionSlug,omitempty"`
+ MicrosoftTeamsAppId *string `json:"microsoftTeamsAppId,omitempty"`
+ MicrosoftTeamsBotId *string `json:"microsoftTeamsBotId,omitempty"`
+ MicrosoftTeamsClientSecret *string `json:"microsoftTeamsClientSecret,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ SlackClientId *string `json:"slackClientId,omitempty"`
+ SlackClientSecret *string `json:"slackClientSecret,omitempty"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
}
- // CreateServiceNowAppConnection400JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection400JSONResponseBodyStatusCode float32
+ // UpdateAdminConfigJSONBodyEnabledLoginMethods defines parameters for UpdateAdminConfig.
+ type UpdateAdminConfigJSONBodyEnabledLoginMethods string
- // CreateServiceNowAppConnection401JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection401JSONResponseBodyStatusCode float32
+ // UpdateAdminConfig400JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+ type UpdateAdminConfig400JSONResponseBodyStatusCode float32
- // CreateServiceNowAppConnection403JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection403JSONResponseBodyStatusCode float32
+ // UpdateAdminConfig401JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+ type UpdateAdminConfig401JSONResponseBodyStatusCode float32
- // CreateServiceNowAppConnection404JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection404JSONResponseBodyStatusCode float32
+ // UpdateAdminConfig403JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+ type UpdateAdminConfig403JSONResponseBodyStatusCode float32
- // CreateServiceNowAppConnection422JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection422JSONResponseBodyStatusCode float32
+ // UpdateAdminConfig404JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+ type UpdateAdminConfig404JSONResponseBodyStatusCode float32
- // CreateServiceNowAppConnection500JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
- type CreateServiceNowAppConnection500JSONResponseBodyStatusCode float32
+ // UpdateAdminConfig422JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+ type UpdateAdminConfig422JSONResponseBodyStatusCode float32
- // RefreshAuthToken400JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
- type RefreshAuthToken400JSONResponseBodyStatusCode float32
+ // UpdateAdminConfig500JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+ type UpdateAdminConfig500JSONResponseBodyStatusCode float32
- // RefreshAuthToken401JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
- type RefreshAuthToken401JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody struct {
+ // Description An optional description for the GitHub Connection.
+ Description *string `json:"description,omitempty"`
- // RefreshAuthToken403JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
- type RefreshAuthToken403JSONResponseBodyStatusCode float32
+ // GatewayId The Gateway ID to use for this connection.
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- // RefreshAuthToken404JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
- type RefreshAuthToken404JSONResponseBodyStatusCode float32
+ // GatewayPoolId The Gateway Pool ID to use for this connection.
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- // RefreshAuthToken422JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
- type RefreshAuthToken422JSONResponseBodyStatusCode float32
+ // IsAutoRotationEnabled Not supported for GitHub Connections.
+ IsAutoRotationEnabled *CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled `json:"isAutoRotationEnabled,omitempty"`
- // RefreshAuthToken500JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
- type RefreshAuthToken500JSONResponseBodyStatusCode float32
+ // IsPlatformManagedCredentials Not supported for GitHub Connections.
+ IsPlatformManagedCredentials *CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials `json:"isPlatformManagedCredentials,omitempty"`
- // AttachUniversalAuthJSONBody defines parameters for AttachUniversalAuth.
- type AttachUniversalAuthJSONBody struct {
- // AccessTokenMaxTTL The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.
- AccessTokenMaxTTL *int `json:"accessTokenMaxTTL,omitempty"`
+ // Name The name of the GitHub Connection to create. Must be slug-friendly.
+ Name string `json:"name"`
- // AccessTokenNumUsesLimit The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.
- AccessTokenNumUsesLimit *int `json:"accessTokenNumUsesLimit,omitempty"`
+ // ProjectId The ID of the project to create the GitHub Connection in.
+ ProjectId *string `json:"projectId,omitempty"`
- // AccessTokenPeriod The period for an access token in seconds. This value will be referenced at renewal time. Default value is 0.
- AccessTokenPeriod *int `json:"accessTokenPeriod,omitempty"`
+ // Rotation Not supported for GitHub Connections.
+ Rotation *CreateGitHubAppConnectionJSONBody_Rotation `json:"rotation,omitempty"`
+ union json.RawMessage
+ }
- // AccessTokenTTL The lifetime for an access token in seconds. This value will be referenced at renewal time.
- AccessTokenTTL *int `json:"accessTokenTTL,omitempty"`
+ // CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled bool
- // AccessTokenTrustedIps A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.
- AccessTokenTrustedIps *[]struct {
- IpAddress string `json:"ipAddress"`
- } `json:"accessTokenTrustedIps,omitempty"`
+ // CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials bool
- // ClientSecretTrustedIps A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.
- ClientSecretTrustedIps *[]struct {
- IpAddress string `json:"ipAddress"`
- } `json:"clientSecretTrustedIps,omitempty"`
+ // CreateGitHubAppConnectionJSONBodyRotation0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBodyRotation0 = interface{}
- // LockoutCounterResetSeconds How long to wait from the most recent failed login until resetting the lockout counter.
- LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+ // CreateGitHubAppConnectionJSONBodyRotation1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBodyRotation1 = interface{}
- // LockoutDurationSeconds How long an identity auth method lockout lasts.
- LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+ // CreateGitHubAppConnectionJSONBody_Rotation defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody_Rotation struct {
+ union json.RawMessage
+ }
- // LockoutEnabled Whether the lockout feature is enabled.
- LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+ // CreateGitHubAppConnectionJSONBody0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody0 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_0_Credentials `json:"credentials"`
- // LockoutThreshold The amount of times login must fail before locking the identity auth method.
- LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody0Method `json:"method"`
}
- // AttachUniversalAuth400JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
- type AttachUniversalAuth400JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody0Credentials0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody0Credentials0 struct {
+ Code string `json:"code"`
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host string `json:"host"`
+ InstallationId string `json:"installationId"`
+ InstanceType CreateGitHubAppConnectionJSONBody0Credentials0InstanceType `json:"instanceType"`
+ }
- // AttachUniversalAuth401JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
- type AttachUniversalAuth401JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody0Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody0Credentials0InstanceType string
- // AttachUniversalAuth403JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
- type AttachUniversalAuth403JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody0Credentials1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody0Credentials1 struct {
+ Code string `json:"code"`
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstallationId string `json:"installationId"`
+ InstanceType *CreateGitHubAppConnectionJSONBody0Credentials1InstanceType `json:"instanceType,omitempty"`
+ }
- // AttachUniversalAuth404JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
- type AttachUniversalAuth404JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody0Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody0Credentials1InstanceType string
- // AttachUniversalAuth422JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
- type AttachUniversalAuth422JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody_0_Credentials defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody_0_Credentials struct {
+ union json.RawMessage
+ }
- // AttachUniversalAuth500JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
- type AttachUniversalAuth500JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody0Method defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody0Method string
- // CreateUniversalAuthClientSecretJSONBody defines parameters for CreateUniversalAuthClientSecret.
- type CreateUniversalAuthClientSecretJSONBody struct {
- // Description The description of the client secret.
- Description *string `json:"description,omitempty"`
+ // CreateGitHubAppConnectionJSONBody1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody1 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_1_Credentials `json:"credentials"`
- // NumUsesLimit The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.
- NumUsesLimit *float32 `json:"numUsesLimit,omitempty"`
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody1Method `json:"method"`
+ }
- // Ttl The lifetime for the client secret in seconds.
- Ttl *float32 `json:"ttl,omitempty"`
+ // CreateGitHubAppConnectionJSONBody1Credentials0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody1Credentials0 struct {
+ Code string `json:"code"`
+ Host string `json:"host"`
+ InstanceType CreateGitHubAppConnectionJSONBody1Credentials0InstanceType `json:"instanceType"`
}
- // CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
- type CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody1Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody1Credentials0InstanceType string
- // CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
- type CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody1Credentials1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody1Credentials1 struct {
+ Code string `json:"code"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnectionJSONBody1Credentials1InstanceType `json:"instanceType,omitempty"`
+ }
- // CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
- type CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody1Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody1Credentials1InstanceType string
- // CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
- type CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody_1_Credentials defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody_1_Credentials struct {
+ union json.RawMessage
+ }
- // CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
- type CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody1Method defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody1Method string
- // CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
- type CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody2 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody2 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_2_Credentials `json:"credentials"`
- // LoginWithUniversalAuthJSONBody defines parameters for LoginWithUniversalAuth.
- type LoginWithUniversalAuthJSONBody struct {
- // ClientId Your Machine Identity Client ID.
- ClientId string `json:"clientId"`
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody2Method `json:"method"`
+ }
- // ClientSecret Your Machine Identity Client Secret.
- ClientSecret string `json:"clientSecret"`
+ // CreateGitHubAppConnectionJSONBody2Credentials0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody2Credentials0 struct {
+ Host string `json:"host"`
+ InstanceType CreateGitHubAppConnectionJSONBody2Credentials0InstanceType `json:"instanceType"`
+ PersonalAccessToken string `json:"personalAccessToken"`
+ }
- // OrganizationSlug When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.
- OrganizationSlug *string `json:"organizationSlug,omitempty"`
+ // CreateGitHubAppConnectionJSONBody2Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody2Credentials0InstanceType string
+
+ // CreateGitHubAppConnectionJSONBody2Credentials1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody2Credentials1 struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnectionJSONBody2Credentials1InstanceType `json:"instanceType,omitempty"`
+ PersonalAccessToken string `json:"personalAccessToken"`
}
- // LoginWithUniversalAuth200JSONResponseBodyTokenType defines parameters for LoginWithUniversalAuth.
- type LoginWithUniversalAuth200JSONResponseBodyTokenType string
+ // CreateGitHubAppConnectionJSONBody2Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody2Credentials1InstanceType string
- // LoginWithUniversalAuth400JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
- type LoginWithUniversalAuth400JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody_2_Credentials defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody_2_Credentials struct {
+ union json.RawMessage
+ }
- // LoginWithUniversalAuth401JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
- type LoginWithUniversalAuth401JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnectionJSONBody2Method defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnectionJSONBody2Method string
- // LoginWithUniversalAuth403JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
- type LoginWithUniversalAuth403JSONResponseBodyStatusCode float32
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
- // LoginWithUniversalAuth404JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
- type LoginWithUniversalAuth404JSONResponseBodyStatusCode float32
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- // LoginWithUniversalAuth422JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
- type LoginWithUniversalAuth422JSONResponseBodyStatusCode float32
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- // LoginWithUniversalAuth500JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
- type LoginWithUniversalAuth500JSONResponseBodyStatusCode float32
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
- // ListProjectSecretsDetailsParams defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParams struct {
- // ProjectId The ID of the project to list secrets/folders from.
- ProjectId string `form:"projectId" json:"projectId"`
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
- // Environment The slug of the environment to list secrets/folders from.
- Environment string `form:"environment" json:"environment"`
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
- // SecretPath The secret path to list secrets/folders from.
- SecretPath *string `form:"secretPath,omitempty" json:"secretPath,omitempty"`
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ }
- // Offset The offset to start from. If you enter 10, it will start from the 10th secret/folder.
- Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection0App string
- // Limit The number of secrets/folders to return.
- Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
- // OrderBy The column to order secrets/folders by.
- OrderBy *ListProjectSecretsDetailsParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
- // OrderDirection The direction to order secrets/folders in.
- OrderDirection *ListProjectSecretsDetailsParamsOrderDirection `form:"orderDirection,omitempty" json:"orderDirection,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
+ union json.RawMessage
+ }
- // Search The text string to filter secret keys and folder names by.
- Search *string `form:"search,omitempty" json:"search,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method string
- // Tags The tags to filter secrets by (comma separated, ie 'tags=billing,engineering').
- Tags *string `form:"tags,omitempty" json:"tags,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
- // IncludeSecrets Whether to include project secrets in the response.
- IncludeSecrets *struct {
- union json.RawMessage
- } `form:"includeSecrets,omitempty" json:"includeSecrets,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
- // IncludeFolders Whether to include project folders in the response.
- IncludeFolders *struct {
- union json.RawMessage
- } `form:"includeFolders,omitempty" json:"includeFolders,omitempty"`
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- // IncludeDynamicSecrets Whether to include dynamic project secrets in the response.
- IncludeDynamicSecrets *struct {
- union json.RawMessage
- } `form:"includeDynamicSecrets,omitempty" json:"includeDynamicSecrets,omitempty"`
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- // IncludeImports Whether to include project secret imports in the response.
- IncludeImports *struct {
- union json.RawMessage
- } `form:"includeImports,omitempty" json:"includeImports,omitempty"`
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
- // IncludeSecretRotations Whether to include secret rotations in the response.
- IncludeSecretRotations *struct {
- union json.RawMessage
- } `form:"includeSecretRotations,omitempty" json:"includeSecretRotations,omitempty"`
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
- // IncludeHoneyTokens Whether to include honey tokens in the response.
- IncludeHoneyTokens *struct {
- union json.RawMessage
- } `form:"includeHoneyTokens,omitempty" json:"includeHoneyTokens,omitempty"`
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
- // IncludeProxiedServices Whether to include proxied services in the response.
- IncludeProxiedServices *struct {
- union json.RawMessage
- } `form:"includeProxiedServices,omitempty" json:"includeProxiedServices,omitempty"`
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
}
- // ListProjectSecretsDetailsParamsOrderBy defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsOrderBy string
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection1App string
- // ListProjectSecretsDetailsParamsOrderDirection defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsOrderDirection string
-
- // ListProjectSecretsDetailsParamsIncludeSecrets0 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeSecrets0 = bool
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
- // ListProjectSecretsDetailsParamsIncludeSecrets1 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeSecrets1 = string
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
- // ListProjectSecretsDetailsParamsIncludeFolders0 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeFolders0 = bool
+ // CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
+ union json.RawMessage
+ }
- // ListProjectSecretsDetailsParamsIncludeFolders1 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeFolders1 = string
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method string
- // ListProjectSecretsDetailsParamsIncludeDynamicSecrets0 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeDynamicSecrets0 = bool
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
- // ListProjectSecretsDetailsParamsIncludeDynamicSecrets1 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeDynamicSecrets1 = string
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
- // ListProjectSecretsDetailsParamsIncludeImports0 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeImports0 = bool
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- // ListProjectSecretsDetailsParamsIncludeImports1 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeImports1 = string
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- // ListProjectSecretsDetailsParamsIncludeSecretRotations0 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeSecretRotations0 = bool
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
- // ListProjectSecretsDetailsParamsIncludeSecretRotations1 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeSecretRotations1 = string
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
- // ListProjectSecretsDetailsParamsIncludeHoneyTokens0 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeHoneyTokens0 = bool
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
- // ListProjectSecretsDetailsParamsIncludeHoneyTokens1 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeHoneyTokens1 = string
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ }
- // ListProjectSecretsDetailsParamsIncludeProxiedServices0 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeProxiedServices0 = bool
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection2App string
- // ListProjectSecretsDetailsParamsIncludeProxiedServices1 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetailsParamsIncludeProxiedServices1 = string
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations0 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations0 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations0ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // PasswordRequirements The password requirements to use when generating the new password.
- PasswordRequirements *struct {
- // AllowedSymbols The allowed symbols to use in the generated password (defaults to "-_.~!*").
- AllowedSymbols *string `json:"allowedSymbols,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
- // Length The length of the password to generate.
- Length float32 `json:"length"`
- Required struct {
- // Digits The amount of digits to require in the generated password.
- Digits float32 `json:"digits"`
+ // CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
+ union json.RawMessage
+ }
- // Lowercase The amount of lowercase characters to require in the generated password.
- Lowercase float32 `json:"lowercase"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method string
- // Symbols The amount of symbols to require in the generated password.
- Symbols float32 `json:"symbols"`
+ // CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
- // Uppercase The amount of uppercase characters to require in the generated password.
- Uppercase float32 `json:"uppercase"`
- } `json:"required"`
- } `json:"passwordRequirements,omitempty"`
+ // CreateGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection200JSONResponseBody_AppConnection struct {
+ union json.RawMessage
+ }
- // RotationStatement The SQL template query used for rotation.
- RotationStatement *string `json:"rotationStatement,omitempty"`
+ // CreateGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection400JSONResponseBodyStatusCode float32
- // Username1 The username of the first login to rotate passwords for. This user must already exists in your database.
- Username1 string `json:"username1"`
+ // CreateGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection401JSONResponseBodyStatusCode float32
- // Username2 The username of the second login to rotate passwords for. This user must already exists in your database.
- Username2 string `json:"username2"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // Password The name of the secret that the generated password will be mapped to.
- Password string `json:"password"`
+ // CreateGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection403JSONResponseBodyStatusCode float32
- // Username The name of the secret that the active username will be mapped to.
- Username string `json:"username"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations0Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- }
+ // CreateGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection404JSONResponseBodyStatusCode float32
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations0ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations0ConnectionApp string
+ // CreateGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection422JSONResponseBodyStatusCode float32
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations0Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations0Type string
+ // CreateGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+ type CreateGitHubAppConnection500JSONResponseBodyStatusCode float32
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations1 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations1 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations1ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // PasswordRequirements The password requirements to use when generating the new password.
- PasswordRequirements *struct {
- // AllowedSymbols The allowed symbols to use in the generated password (defaults to "-_.~!*").
- AllowedSymbols *string `json:"allowedSymbols,omitempty"`
-
- // Length The length of the password to generate.
- Length float32 `json:"length"`
- Required struct {
- // Digits The amount of digits to require in the generated password.
- Digits float32 `json:"digits"`
-
- // Lowercase The amount of lowercase characters to require in the generated password.
- Lowercase float32 `json:"lowercase"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
- // Symbols The amount of symbols to require in the generated password.
- Symbols float32 `json:"symbols"`
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- // Uppercase The amount of uppercase characters to require in the generated password.
- Uppercase float32 `json:"uppercase"`
- } `json:"required"`
- } `json:"passwordRequirements,omitempty"`
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- // RotationStatement The SQL template query used for rotation.
- RotationStatement *string `json:"rotationStatement,omitempty"`
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
- // Username1 The username of the first login to rotate passwords for. This user must already exists in your database.
- Username1 string `json:"username1"`
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
- // Username2 The username of the second login to rotate passwords for. This user must already exists in your database.
- Username2 string `json:"username2"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // Password The name of the secret that the generated password will be mapped to.
- Password string `json:"password"`
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
- // Username The name of the secret that the active username will be mapped to.
- Username string `json:"username"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations1Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
}
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations1ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations1ConnectionApp string
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App string
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations1Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations1Type string
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations2 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations2 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations2ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // PasswordRequirements The password requirements to use when generating the new password.
- PasswordRequirements *struct {
- // AllowedSymbols The allowed symbols to use in the generated password (defaults to "-_.~!*").
- AllowedSymbols *string `json:"allowedSymbols,omitempty"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
- // Length The length of the password to generate.
- Length float32 `json:"length"`
- Required struct {
- // Digits The amount of digits to require in the generated password.
- Digits float32 `json:"digits"`
+ // DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
+ union json.RawMessage
+ }
- // Lowercase The amount of lowercase characters to require in the generated password.
- Lowercase float32 `json:"lowercase"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method string
- // Symbols The amount of symbols to require in the generated password.
- Symbols float32 `json:"symbols"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
- // Uppercase The amount of uppercase characters to require in the generated password.
- Uppercase float32 `json:"uppercase"`
- } `json:"required"`
- } `json:"passwordRequirements,omitempty"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
- // RotationStatement The SQL template query used for rotation.
- RotationStatement *string `json:"rotationStatement,omitempty"`
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- // Username1 The username of the first login to rotate passwords for. This user must already exists in your database.
- Username1 string `json:"username1"`
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- // Username2 The username of the second login to rotate passwords for. This user must already exists in your database.
- Username2 string `json:"username2"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // Password The name of the secret that the generated password will be mapped to.
- Password string `json:"password"`
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
- // Username The name of the secret that the active username will be mapped to.
- Username string `json:"username"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations2Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- }
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations2ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations2ConnectionApp string
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations2Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations2Type string
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ }
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations3 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations3 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations3ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // PasswordRequirements The password requirements to use when generating the new password.
- PasswordRequirements *struct {
- // AllowedSymbols The allowed symbols to use in the generated password (defaults to "-_.~!*").
- AllowedSymbols *string `json:"allowedSymbols,omitempty"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App string
- // Length The length of the password to generate.
- Length float32 `json:"length"`
- Required struct {
- // Digits The amount of digits to require in the generated password.
- Digits float32 `json:"digits"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
- // Lowercase The amount of lowercase characters to require in the generated password.
- Lowercase float32 `json:"lowercase"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
- // Symbols The amount of symbols to require in the generated password.
- Symbols float32 `json:"symbols"`
+ // DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
+ union json.RawMessage
+ }
- // Uppercase The amount of uppercase characters to require in the generated password.
- Uppercase float32 `json:"uppercase"`
- } `json:"required"`
- } `json:"passwordRequirements,omitempty"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method string
- // RotationStatement The SQL template query used for rotation.
- RotationStatement *string `json:"rotationStatement,omitempty"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
- // Username1 The username of the first login to rotate passwords for. This user must already exists in your database.
- Username1 string `json:"username1"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
- // Username2 The username of the second login to rotate passwords for. This user must already exists in your database.
- Username2 string `json:"username2"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // Password The name of the secret that the generated password will be mapped to.
- Password string `json:"password"`
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- // Username The name of the secret that the active username will be mapped to.
- Username string `json:"username"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations3Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- }
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations3ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations3ConnectionApp string
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations3Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations3Type string
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations4 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations4 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations4ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // ClientId The client ID of the Auth0 Application to rotate the client secret for.
- ClientId string `json:"clientId"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // ClientId The name of the secret that the client ID will be mapped to.
- ClientId string `json:"clientId"`
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
- // ClientSecret The name of the secret that the rotated client secret will be mapped to.
- ClientSecret string `json:"clientSecret"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations4Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
}
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations4ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations4ConnectionApp string
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App string
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations4Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations4Type string
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations5 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations5 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations5ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // AppName The name of the Azure Application to rotate the client secret for.
- AppName *string `json:"appName,omitempty"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
- // ClientId The client ID of the Azure Application to rotate the client secret for.
- ClientId string `json:"clientId"`
+ // DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
+ union json.RawMessage
+ }
- // ObjectId The ID of the Azure Application to rotate the client secret for.
- ObjectId string `json:"objectId"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // ClientId The name of the secret that the client ID will be mapped to.
- ClientId string `json:"clientId"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method string
- // ClientSecret The name of the secret that the rotated client secret will be mapped to.
- ClientSecret string `json:"clientSecret"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations5Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
+ // DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
+
+ // DeleteGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection200JSONResponseBody_AppConnection struct {
+ union json.RawMessage
}
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations5ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations5ConnectionApp string
+ // DeleteGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection400JSONResponseBodyStatusCode float32
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations5Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations5Type string
+ // DeleteGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection401JSONResponseBodyStatusCode float32
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations6 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations6 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations6ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // Dn The Distinguished Name (DN) or User Principal Name (UPN) of the principal to rotate the password for.
- Dn string `json:"dn"`
+ // DeleteGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection403JSONResponseBodyStatusCode float32
- // PasswordRequirements The password requirements to use when generating the new password.
- PasswordRequirements *struct {
- // AllowedSymbols The allowed symbols to use in the generated password (defaults to "-_.~!*").
- AllowedSymbols *string `json:"allowedSymbols,omitempty"`
+ // DeleteGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection404JSONResponseBodyStatusCode float32
- // Length The length of the password to generate.
- Length float32 `json:"length"`
- Required struct {
- // Digits The amount of digits to require in the generated password.
- Digits float32 `json:"digits"`
+ // DeleteGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection422JSONResponseBodyStatusCode float32
- // Lowercase The amount of lowercase characters to require in the generated password.
- Lowercase float32 `json:"lowercase"`
+ // DeleteGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+ type DeleteGitHubAppConnection500JSONResponseBodyStatusCode float32
- // Symbols The amount of symbols to require in the generated password.
- Symbols float32 `json:"symbols"`
++// CreateServiceNowAppConnectionJSONBody defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBody struct {
++ // Description An optional description for the ServiceNow Connection.
++ Description *string `json:"description,omitempty"`
+
- // Uppercase The amount of uppercase characters to require in the generated password.
- Uppercase float32 `json:"uppercase"`
- } `json:"required"`
- } `json:"passwordRequirements,omitempty"`
++ // GatewayId Not supported for ServiceNow Connections.
++ GatewayId *CreateServiceNowAppConnectionJSONBody_GatewayId `json:"gatewayId,omitempty"`
+
- // RotationMethod Whether the rotation should be performed by the LDAP "connection-principal" or the "target-principal" (defaults to 'connection-principal').
- RotationMethod *ListProjectSecretsDetails200JSONResponseBodySecretRotations6ParametersRotationMethod `json:"rotationMethod,omitempty"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // Dn The name of the secret that the Distinguished Name (DN) or User Principal Name (UPN) of the principal will be mapped to.
- Dn string `json:"dn"`
++ // GatewayPoolId Not supported for ServiceNow Connections.
++ GatewayPoolId *CreateServiceNowAppConnectionJSONBody_GatewayPoolId `json:"gatewayPoolId,omitempty"`
+
- // Password The name of the secret that the rotated password will be mapped to.
- Password string `json:"password"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations6Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
++ // IsAutoRotationEnabled Not supported for ServiceNow Connections.
++ IsAutoRotationEnabled *CreateServiceNowAppConnectionJSONBodyIsAutoRotationEnabled `json:"isAutoRotationEnabled,omitempty"`
++
++ // IsPlatformManagedCredentials Not supported for ServiceNow Connections.
++ IsPlatformManagedCredentials *CreateServiceNowAppConnectionJSONBodyIsPlatformManagedCredentials `json:"isPlatformManagedCredentials,omitempty"`
++
++ // Name The name of the ServiceNow Connection to create. Must be slug-friendly.
++ Name string `json:"name"`
++
++ // ProjectId The ID of the project to create the ServiceNow Connection in.
++ ProjectId *string `json:"projectId,omitempty"`
++
++ // Rotation Not supported for ServiceNow Connections.
++ Rotation *CreateServiceNowAppConnectionJSONBody_Rotation `json:"rotation,omitempty"`
++ union json.RawMessage
+}
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations6ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations6ConnectionApp string
++// CreateServiceNowAppConnectionJSONBodyGatewayId0 defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBodyGatewayId0 = interface{}
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations6ParametersRotationMethod defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations6ParametersRotationMethod string
++// CreateServiceNowAppConnectionJSONBodyGatewayId1 defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBodyGatewayId1 = interface{}
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations6Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations6Type string
++// CreateServiceNowAppConnectionJSONBody_GatewayId defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBody_GatewayId struct {
++ union json.RawMessage
++}
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations7 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations7 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations7ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // Region The AWS region the client is present in.
- Region *ListProjectSecretsDetails200JSONResponseBodySecretRotations7ParametersRegion `json:"region,omitempty"`
++// CreateServiceNowAppConnectionJSONBodyGatewayPoolId0 defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBodyGatewayPoolId0 = interface{}
+
- // UserName The name of the client to rotate credentials for.
- UserName string `json:"userName"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // AccessKeyId The name of the secret that the access key ID will be mapped to.
- AccessKeyId string `json:"accessKeyId"`
++// CreateServiceNowAppConnectionJSONBodyGatewayPoolId1 defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBodyGatewayPoolId1 = interface{}
+
- // SecretAccessKey The name of the secret that the rotated secret access key will be mapped to.
- SecretAccessKey string `json:"secretAccessKey"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations7Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
++// CreateServiceNowAppConnectionJSONBody_GatewayPoolId defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBody_GatewayPoolId struct {
++ union json.RawMessage
+}
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations7ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations7ConnectionApp string
++// CreateServiceNowAppConnectionJSONBodyIsAutoRotationEnabled defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBodyIsAutoRotationEnabled bool
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations7ParametersRegion defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations7ParametersRegion string
++// CreateServiceNowAppConnectionJSONBodyIsPlatformManagedCredentials defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBodyIsPlatformManagedCredentials bool
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations7Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations7Type string
++// CreateServiceNowAppConnectionJSONBodyRotation0 defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBodyRotation0 = interface{}
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations8 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations8 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations8ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // ClientId The ID of the Okta Application to rotate the client secret for.
- ClientId string `json:"clientId"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // ClientId The name of the secret that the client ID will be mapped to.
- ClientId string `json:"clientId"`
++// CreateServiceNowAppConnectionJSONBodyRotation1 defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBodyRotation1 = interface{}
+
- // ClientSecret The name of the secret that the rotated client secret will be mapped to.
- ClientSecret string `json:"clientSecret"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations8Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
++// CreateServiceNowAppConnectionJSONBody_Rotation defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBody_Rotation struct {
++ union json.RawMessage
+}
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations8ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations8ConnectionApp string
++// CreateServiceNowAppConnectionJSONBody0 defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBody0 struct {
++ // Credentials The credentials used to connect with ServiceNow.
++ Credentials struct {
++ // InstanceUrl The base URL of the ServiceNow instance to connect with, without a path or trailing slash.
++ InstanceUrl string `json:"instanceUrl"`
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations8Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations8Type string
++ // Password The password of the ServiceNow integration user.
++ Password string `json:"password"`
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations9 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations9 struct {
- ActiveIndex *float32 `json:"activeIndex,omitempty"`
- Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations9ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"connection"`
- ConnectionId openapi_types.UUID `json:"connectionId"`
- CreatedAt time.Time `json:"createdAt"`
- Description *string `json:"description,omitempty"`
- Environment struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Folder struct {
- Id string `json:"id"`
- Path string `json:"path"`
- } `json:"folder"`
- FolderId openapi_types.UUID `json:"folderId"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsLastRotationManual *bool `json:"isLastRotationManual,omitempty"`
- LastRotatedAt time.Time `json:"lastRotatedAt"`
- LastRotationAttemptedAt time.Time `json:"lastRotationAttemptedAt"`
- LastRotationJobId *string `json:"lastRotationJobId,omitempty"`
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
- Name string `json:"name"`
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
- Parameters struct {
- // PasswordRequirements The password requirements to use when generating the new password.
- PasswordRequirements *struct {
- // AllowedSymbols The allowed symbols to use in the generated password (defaults to "-_.~!*").
- AllowedSymbols *string `json:"allowedSymbols,omitempty"`
++ // Username The User ID of the ServiceNow integration user.
++ Username string `json:"username"`
++ } `json:"credentials"`
+
- // Length The length of the password to generate.
- Length float32 `json:"length"`
- Required struct {
- // Digits The amount of digits to require in the generated password.
- Digits float32 `json:"digits"`
++ // Method The method used to authenticate with ServiceNow.
++ Method CreateServiceNowAppConnectionJSONBody0Method `json:"method"`
++}
+
- // Lowercase The amount of lowercase characters to require in the generated password.
- Lowercase float32 `json:"lowercase"`
++// CreateServiceNowAppConnectionJSONBody0Method defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnectionJSONBody0Method string
+
- // Symbols The amount of symbols to require in the generated password.
- Symbols float32 `json:"symbols"`
++// CreateServiceNowAppConnection200JSONResponseBodyAppConnection0 defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection200JSONResponseBodyAppConnection0 struct {
++ App CreateServiceNowAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
++ CreatedAt time.Time `json:"createdAt"`
++ Credentials struct {
++ // InstanceUrl The base URL of the ServiceNow instance to connect with, without a path or trailing slash.
++ InstanceUrl string `json:"instanceUrl"`
+
- // Uppercase The amount of uppercase characters to require in the generated password.
- Uppercase float32 `json:"uppercase"`
- } `json:"required"`
- } `json:"passwordRequirements,omitempty"`
++ // Username The User ID of the ServiceNow integration user.
++ Username string `json:"username"`
++ } `json:"credentials"`
++ CredentialsHash *string `json:"credentialsHash,omitempty"`
++ Description *string `json:"description,omitempty"`
++ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
++ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
++ Id openapi_types.UUID `json:"id"`
++ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
++ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
++ Method CreateServiceNowAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
++ Name string `json:"name"`
++ OrgId openapi_types.UUID `json:"orgId"`
++ Project *struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ Type string `json:"type"`
++ } `json:"project,omitempty"`
++ ProjectId *string `json:"projectId,omitempty"`
+
- // PermissionScope The ACL permission scope to assign to the issued Redis users.
- PermissionScope string `json:"permissionScope"`
- } `json:"parameters"`
- ProjectId string `json:"projectId"`
- RotateAtUtc struct {
- Hours float32 `json:"hours"`
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
- RotationInterval float32 `json:"rotationInterval"`
- RotationStatus string `json:"rotationStatus"`
- SecretsMapping struct {
- // Password The name of the secret that the rotated password will be mapped to.
- Password string `json:"password"`
++ // Rotation The credential rotation configuration, if configured.
++ Rotation *struct {
++ // LastRotationMessage The message from the last rotation attempt.
++ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+
- // Username The name of the secret that the username will be mapped to.
- Username string `json:"username"`
- } `json:"secretsMapping"`
- Type ListProjectSecretsDetails200JSONResponseBodySecretRotations9Type `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
++ // NextRotationAt The next scheduled rotation time.
++ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
++
++ // RotateAtUtc The UTC time of day at which rotation should occur.
++ RotateAtUtc struct {
++ // Hours The hour (0-23) at which to rotate.
++ Hours float32 `json:"hours"`
++
++ // Minutes The minute (0-59) at which to rotate.
++ Minutes float32 `json:"minutes"`
++ } `json:"rotateAtUtc"`
++
++ // RotationInterval The interval in days between credential rotations.
++ RotationInterval float32 `json:"rotationInterval"`
++
++ // RotationStatus The status of the last rotation attempt.
++ RotationStatus CreateServiceNowAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
++ } `json:"rotation,omitempty"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ Version *float32 `json:"version,omitempty"`
+}
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations9ConnectionApp defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations9ConnectionApp string
++// CreateServiceNowAppConnection200JSONResponseBodyAppConnection0App defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection200JSONResponseBodyAppConnection0App string
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations9Type defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations9Type string
++// CreateServiceNowAppConnection200JSONResponseBodyAppConnection0Method defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection200JSONResponseBodyAppConnection0Method string
+
- // ListProjectSecretsDetails200JSONResponseBodySecretRotations10 defines parameters for ListProjectSecretsDetails.
- type ListProjectSecretsDetails200JSONResponseBodySecretRotations10 struct {
++// CreateServiceNowAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
++
++// CreateServiceNowAppConnection200JSONResponseBody_AppConnection defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection200JSONResponseBody_AppConnection struct {
++ union json.RawMessage
++}
++
++// CreateServiceNowAppConnection400JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection400JSONResponseBodyStatusCode float32
++
++// CreateServiceNowAppConnection401JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection401JSONResponseBodyStatusCode float32
++
++// CreateServiceNowAppConnection403JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection403JSONResponseBodyStatusCode float32
++
++// CreateServiceNowAppConnection404JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection404JSONResponseBodyStatusCode float32
++
++// CreateServiceNowAppConnection422JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection422JSONResponseBodyStatusCode float32
++
++// CreateServiceNowAppConnection500JSONResponseBodyStatusCode defines parameters for CreateServiceNowAppConnection.
++type CreateServiceNowAppConnection500JSONResponseBodyStatusCode float32
++
+ // RefreshAuthToken400JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+ type RefreshAuthToken400JSONResponseBodyStatusCode float32
+
+ // RefreshAuthToken401JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+ type RefreshAuthToken401JSONResponseBodyStatusCode float32
+
+ // RefreshAuthToken403JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+ type RefreshAuthToken403JSONResponseBodyStatusCode float32
+
+ // RefreshAuthToken404JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+ type RefreshAuthToken404JSONResponseBodyStatusCode float32
+
+ // RefreshAuthToken422JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+ type RefreshAuthToken422JSONResponseBodyStatusCode float32
+
+ // RefreshAuthToken500JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+ type RefreshAuthToken500JSONResponseBodyStatusCode float32
+
+ // AttachUniversalAuthJSONBody defines parameters for AttachUniversalAuth.
+ type AttachUniversalAuthJSONBody struct {
+ // AccessTokenMaxTTL The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.
+ AccessTokenMaxTTL *int `json:"accessTokenMaxTTL,omitempty"`
+
+ // AccessTokenNumUsesLimit The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.
+ AccessTokenNumUsesLimit *int `json:"accessTokenNumUsesLimit,omitempty"`
+
+ // AccessTokenPeriod The period for an access token in seconds. This value will be referenced at renewal time. Default value is 0.
+ AccessTokenPeriod *int `json:"accessTokenPeriod,omitempty"`
+
+ // AccessTokenTTL The lifetime for an access token in seconds. This value will be referenced at renewal time.
+ AccessTokenTTL *int `json:"accessTokenTTL,omitempty"`
+
+ // AccessTokenTrustedIps A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.
+ AccessTokenTrustedIps *[]struct {
+ IpAddress string `json:"ipAddress"`
+ } `json:"accessTokenTrustedIps,omitempty"`
+
+ // ClientSecretTrustedIps A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.
+ ClientSecretTrustedIps *[]struct {
+ IpAddress string `json:"ipAddress"`
+ } `json:"clientSecretTrustedIps,omitempty"`
+
+ // LockoutCounterResetSeconds How long to wait from the most recent failed login until resetting the lockout counter.
+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+
+ // LockoutDurationSeconds How long an identity auth method lockout lasts.
+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+
+ // LockoutEnabled Whether the lockout feature is enabled.
+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+
+ // LockoutThreshold The amount of times login must fail before locking the identity auth method.
+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+ }
+
+ // AttachUniversalAuth400JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+ type AttachUniversalAuth400JSONResponseBodyStatusCode float32
+
+ // AttachUniversalAuth401JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+ type AttachUniversalAuth401JSONResponseBodyStatusCode float32
+
+ // AttachUniversalAuth403JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+ type AttachUniversalAuth403JSONResponseBodyStatusCode float32
+
+ // AttachUniversalAuth404JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+ type AttachUniversalAuth404JSONResponseBodyStatusCode float32
+
+ // AttachUniversalAuth422JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+ type AttachUniversalAuth422JSONResponseBodyStatusCode float32
+
+ // AttachUniversalAuth500JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+ type AttachUniversalAuth500JSONResponseBodyStatusCode float32
+
+ // CreateUniversalAuthClientSecretJSONBody defines parameters for CreateUniversalAuthClientSecret.
+ type CreateUniversalAuthClientSecretJSONBody struct {
+ // Description The description of the client secret.
+ Description *string `json:"description,omitempty"`
+
+ // NumUsesLimit The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.
+ NumUsesLimit *float32 `json:"numUsesLimit,omitempty"`
+
+ // Ttl The lifetime for the client secret in seconds.
+ Ttl *float32 `json:"ttl,omitempty"`
+ }
+
+ // CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+ type CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode float32
+
+ // CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+ type CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode float32
+
+ // CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+ type CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode float32
+
+ // CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+ type CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode float32
+
+ // CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+ type CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode float32
+
+ // CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+ type CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode float32
+
+ // LoginWithUniversalAuthJSONBody defines parameters for LoginWithUniversalAuth.
+ type LoginWithUniversalAuthJSONBody struct {
+ // ClientId Your Machine Identity Client ID.
+ ClientId string `json:"clientId"`
+
+ // ClientSecret Your Machine Identity Client Secret.
+ ClientSecret string `json:"clientSecret"`
+
+ // OrganizationSlug When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.
+ OrganizationSlug *string `json:"organizationSlug,omitempty"`
+ }
+
+ // LoginWithUniversalAuth200JSONResponseBodyTokenType defines parameters for LoginWithUniversalAuth.
+ type LoginWithUniversalAuth200JSONResponseBodyTokenType string
+
+ // LoginWithUniversalAuth400JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+ type LoginWithUniversalAuth400JSONResponseBodyStatusCode float32
+
+ // LoginWithUniversalAuth401JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+ type LoginWithUniversalAuth401JSONResponseBodyStatusCode float32
+
+ // LoginWithUniversalAuth403JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+ type LoginWithUniversalAuth403JSONResponseBodyStatusCode float32
+
+ // LoginWithUniversalAuth404JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+ type LoginWithUniversalAuth404JSONResponseBodyStatusCode float32
+
+ // LoginWithUniversalAuth422JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+ type LoginWithUniversalAuth422JSONResponseBodyStatusCode float32
+
+ // LoginWithUniversalAuth500JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+ type LoginWithUniversalAuth500JSONResponseBodyStatusCode float32
+
+ // ListProjectSecretsDetailsParams defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParams struct {
+ // ProjectId The ID of the project to list secrets/folders from.
+ ProjectId string `form:"projectId" json:"projectId"`
+
+ // Environment The slug of the environment to list secrets/folders from.
+ Environment string `form:"environment" json:"environment"`
+
+ // SecretPath The secret path to list secrets/folders from.
+ SecretPath *string `form:"secretPath,omitempty" json:"secretPath,omitempty"`
+
+ // Offset The offset to start from. If you enter 10, it will start from the 10th secret/folder.
+ Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`
+
+ // Limit The number of secrets/folders to return.
+ Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`
+
+ // OrderBy The column to order secrets/folders by.
+ OrderBy *ListProjectSecretsDetailsParamsOrderBy `form:"orderBy,omitempty" json:"orderBy,omitempty"`
+
+ // OrderDirection The direction to order secrets/folders in.
+ OrderDirection *ListProjectSecretsDetailsParamsOrderDirection `form:"orderDirection,omitempty" json:"orderDirection,omitempty"`
+
+ // Search The text string to filter secret keys and folder names by.
+ Search *string `form:"search,omitempty" json:"search,omitempty"`
+
+ // Tags The tags to filter secrets by (comma separated, ie 'tags=billing,engineering').
+ Tags *string `form:"tags,omitempty" json:"tags,omitempty"`
+
+ // IncludeSecrets Whether to include project secrets in the response.
+ IncludeSecrets *struct {
+ union json.RawMessage
+ } `form:"includeSecrets,omitempty" json:"includeSecrets,omitempty"`
+
+ // IncludeFolders Whether to include project folders in the response.
+ IncludeFolders *struct {
+ union json.RawMessage
+ } `form:"includeFolders,omitempty" json:"includeFolders,omitempty"`
+
+ // IncludeDynamicSecrets Whether to include dynamic project secrets in the response.
+ IncludeDynamicSecrets *struct {
+ union json.RawMessage
+ } `form:"includeDynamicSecrets,omitempty" json:"includeDynamicSecrets,omitempty"`
+
+ // IncludeImports Whether to include project secret imports in the response.
+ IncludeImports *struct {
+ union json.RawMessage
+ } `form:"includeImports,omitempty" json:"includeImports,omitempty"`
+
+ // IncludeSecretRotations Whether to include secret rotations in the response.
+ IncludeSecretRotations *struct {
+ union json.RawMessage
+ } `form:"includeSecretRotations,omitempty" json:"includeSecretRotations,omitempty"`
+
+ // IncludeHoneyTokens Whether to include honey tokens in the response.
+ IncludeHoneyTokens *struct {
+ union json.RawMessage
+ } `form:"includeHoneyTokens,omitempty" json:"includeHoneyTokens,omitempty"`
+
+ // IncludeProxiedServices Whether to include proxied services in the response.
+ IncludeProxiedServices *struct {
+ union json.RawMessage
+ } `form:"includeProxiedServices,omitempty" json:"includeProxiedServices,omitempty"`
+ }
+
+ // ListProjectSecretsDetailsParamsOrderBy defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsOrderBy string
+
+ // ListProjectSecretsDetailsParamsOrderDirection defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsOrderDirection string
+
+ // ListProjectSecretsDetailsParamsIncludeSecrets0 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeSecrets0 = bool
+
+ // ListProjectSecretsDetailsParamsIncludeSecrets1 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeSecrets1 = string
+
+ // ListProjectSecretsDetailsParamsIncludeFolders0 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeFolders0 = bool
+
+ // ListProjectSecretsDetailsParamsIncludeFolders1 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeFolders1 = string
+
+ // ListProjectSecretsDetailsParamsIncludeDynamicSecrets0 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeDynamicSecrets0 = bool
+
+ // ListProjectSecretsDetailsParamsIncludeDynamicSecrets1 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeDynamicSecrets1 = string
+
+ // ListProjectSecretsDetailsParamsIncludeImports0 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeImports0 = bool
+
+ // ListProjectSecretsDetailsParamsIncludeImports1 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeImports1 = string
+
+ // ListProjectSecretsDetailsParamsIncludeSecretRotations0 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeSecretRotations0 = bool
+
+ // ListProjectSecretsDetailsParamsIncludeSecretRotations1 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeSecretRotations1 = string
+
+ // ListProjectSecretsDetailsParamsIncludeHoneyTokens0 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeHoneyTokens0 = bool
+
+ // ListProjectSecretsDetailsParamsIncludeHoneyTokens1 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeHoneyTokens1 = string
+
+ // ListProjectSecretsDetailsParamsIncludeProxiedServices0 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeProxiedServices0 = bool
+
+ // ListProjectSecretsDetailsParamsIncludeProxiedServices1 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetailsParamsIncludeProxiedServices1 = string
+
+ // ListProjectSecretsDetails200JSONResponseBodySecretRotations0 defines parameters for ListProjectSecretsDetails.
+ type ListProjectSecretsDetails200JSONResponseBodySecretRotations0 struct {
ActiveIndex *float32 `json:"activeIndex,omitempty"`
Connection struct {
- App ListProjectSecretsDetails200JSONResponseBodySecretRotations10ConnectionApp `json:"app"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
+ App ListProjectSecretsDetails200JSONResponseBodySecretRotations0ConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
} `json:"connection"`
ConnectionId openapi_types.UUID `json:"connectionId"`
CreatedAt time.Time `json:"createdAt"`
@@@ -23792,1167 -23627,1462 +25762,1504 @@@ func (t *UpdateSecretApprovalPolicyJSON
return err
}
- // RequestEditorFn is the function signature for the RequestEditor callback function
- type RequestEditorFn func(ctx context.Context, req *http.Request) error
+ // AsCreateProjectRole200JSONResponseBodyRolePermissionsAction0 returns the union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Action as a CreateProjectRole200JSONResponseBodyRolePermissionsAction0
+ func (t CreateProjectRole200JSONResponseBody_Role_Permissions_Action) AsCreateProjectRole200JSONResponseBodyRolePermissionsAction0() (CreateProjectRole200JSONResponseBodyRolePermissionsAction0, error) {
+ var body CreateProjectRole200JSONResponseBodyRolePermissionsAction0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // Doer performs HTTP requests.
- //
- // The standard http.Client implements this interface.
- type HttpRequestDoer interface {
- Do(req *http.Request) (*http.Response, error)
+ // FromCreateProjectRole200JSONResponseBodyRolePermissionsAction0 overwrites any union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Action as the provided CreateProjectRole200JSONResponseBodyRolePermissionsAction0
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Action) FromCreateProjectRole200JSONResponseBodyRolePermissionsAction0(v CreateProjectRole200JSONResponseBodyRolePermissionsAction0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
- // Client which conforms to the OpenAPI3 specification for this service.
- type Client struct {
- // The endpoint of the server conforming to this interface, with scheme,
- // https://api.deepmap.com for example. This can contain a path relative
- // to the server, such as https://api.deepmap.com/dev-test, and all the
- // paths in the swagger spec will be appended to the server.
- Server string
+ // MergeCreateProjectRole200JSONResponseBodyRolePermissionsAction0 performs a merge with any union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Action, using the provided CreateProjectRole200JSONResponseBodyRolePermissionsAction0
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Action) MergeCreateProjectRole200JSONResponseBodyRolePermissionsAction0(v CreateProjectRole200JSONResponseBodyRolePermissionsAction0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // Doer for performing requests, typically a *http.Client with any
- // customized settings, such as certificate chains.
- Client HttpRequestDoer
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // A list of callbacks for modifying requests which are generated before sending over
- // the network.
- RequestEditors []RequestEditorFn
+ // AsCreateProjectRole200JSONResponseBodyRolePermissionsAction1 returns the union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Action as a CreateProjectRole200JSONResponseBodyRolePermissionsAction1
+ func (t CreateProjectRole200JSONResponseBody_Role_Permissions_Action) AsCreateProjectRole200JSONResponseBodyRolePermissionsAction1() (CreateProjectRole200JSONResponseBodyRolePermissionsAction1, error) {
+ var body CreateProjectRole200JSONResponseBodyRolePermissionsAction1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
- // ClientOption allows setting custom parameters during construction
- type ClientOption func(*Client) error
+ // FromCreateProjectRole200JSONResponseBodyRolePermissionsAction1 overwrites any union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Action as the provided CreateProjectRole200JSONResponseBodyRolePermissionsAction1
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Action) FromCreateProjectRole200JSONResponseBodyRolePermissionsAction1(v CreateProjectRole200JSONResponseBodyRolePermissionsAction1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // Creates a new Client, with reasonable defaults
- func NewClient(server string, opts ...ClientOption) (*Client, error) {
- // create a client with sane default values
- client := Client{
- Server: server,
- }
- // mutate client and add all optional params
- for _, o := range opts {
- if err := o(&client); err != nil {
- return nil, err
- }
- }
- // ensure the server URL always has a trailing slash
- if !strings.HasSuffix(client.Server, "/") {
- client.Server += "/"
- }
- // create httpClient, if not already present
- if client.Client == nil {
- client.Client = &http.Client{}
+ // MergeCreateProjectRole200JSONResponseBodyRolePermissionsAction1 performs a merge with any union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Action, using the provided CreateProjectRole200JSONResponseBodyRolePermissionsAction1
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Action) MergeCreateProjectRole200JSONResponseBodyRolePermissionsAction1(v CreateProjectRole200JSONResponseBodyRolePermissionsAction1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
}
- return &client, nil
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
- // WithHTTPClient allows overriding the default Doer, which is
- // automatically created using http.Client. This is useful for tests.
- func WithHTTPClient(doer HttpRequestDoer) ClientOption {
- return func(c *Client) error {
- c.Client = doer
- return nil
- }
+ func (t CreateProjectRole200JSONResponseBody_Role_Permissions_Action) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
- // WithRequestEditorFn allows setting up a callback function, which will be
- // called right before sending the request. This can be used to mutate the request.
- func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
- return func(c *Client) error {
- c.RequestEditors = append(c.RequestEditors, fn)
- return nil
- }
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Action) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
- // The interface specification for the client above.
- type ClientInterface interface {
+ // AsCreateProjectRole200JSONResponseBodyRolePermissionsSubject0 returns the union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Subject as a CreateProjectRole200JSONResponseBodyRolePermissionsSubject0
+ func (t CreateProjectRole200JSONResponseBody_Role_Permissions_Subject) AsCreateProjectRole200JSONResponseBodyRolePermissionsSubject0() (CreateProjectRole200JSONResponseBodyRolePermissionsSubject0, error) {
+ var body CreateProjectRole200JSONResponseBodyRolePermissionsSubject0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // GetInstanceStatus performs a GET /api/status (the `GetInstanceStatus` operationId) request.
- //
- // Get the status of the Infisical instance and the features configured on it. Public and unauthenticated; used by liveness and readiness probes and exempt from the API-wide rate limit.
- GetInstanceStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromCreateProjectRole200JSONResponseBodyRolePermissionsSubject0 overwrites any union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Subject as the provided CreateProjectRole200JSONResponseBodyRolePermissionsSubject0
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Subject) FromCreateProjectRole200JSONResponseBodyRolePermissionsSubject0(v CreateProjectRole200JSONResponseBodyRolePermissionsSubject0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // ListAccessApprovalPolicies performs a GET /api/v1/access-approvals/policies (the `ListAccessApprovalPolicies` operationId) request.
- ListAccessApprovalPolicies(ctx context.Context, params *ListAccessApprovalPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeCreateProjectRole200JSONResponseBodyRolePermissionsSubject0 performs a merge with any union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Subject, using the provided CreateProjectRole200JSONResponseBodyRolePermissionsSubject0
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Subject) MergeCreateProjectRole200JSONResponseBodyRolePermissionsSubject0(v CreateProjectRole200JSONResponseBodyRolePermissionsSubject0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // CreateAccessApprovalPolicyWithBody performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- CreateAccessApprovalPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateAccessApprovalPolicy performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateAccessApprovalPolicy(ctx context.Context, body CreateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsCreateProjectRole200JSONResponseBodyRolePermissionsSubject1 returns the union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Subject as a CreateProjectRole200JSONResponseBodyRolePermissionsSubject1
+ func (t CreateProjectRole200JSONResponseBody_Role_Permissions_Subject) AsCreateProjectRole200JSONResponseBodyRolePermissionsSubject1() (CreateProjectRole200JSONResponseBodyRolePermissionsSubject1, error) {
+ var body CreateProjectRole200JSONResponseBodyRolePermissionsSubject1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // GetAccessApprovalPolicy performs a GET /api/v1/access-approvals/policies/{policyId} (the `GetAccessApprovalPolicy` operationId) request.
- GetAccessApprovalPolicy(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromCreateProjectRole200JSONResponseBodyRolePermissionsSubject1 overwrites any union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Subject as the provided CreateProjectRole200JSONResponseBodyRolePermissionsSubject1
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Subject) FromCreateProjectRole200JSONResponseBodyRolePermissionsSubject1(v CreateProjectRole200JSONResponseBodyRolePermissionsSubject1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // UpdateAccessApprovalPolicyWithBody performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- UpdateAccessApprovalPolicyWithBody(ctx context.Context, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeCreateProjectRole200JSONResponseBodyRolePermissionsSubject1 performs a merge with any union data inside the CreateProjectRole200JSONResponseBody_Role_Permissions_Subject, using the provided CreateProjectRole200JSONResponseBodyRolePermissionsSubject1
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Subject) MergeCreateProjectRole200JSONResponseBodyRolePermissionsSubject1(v CreateProjectRole200JSONResponseBodyRolePermissionsSubject1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // UpdateAccessApprovalPolicy performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type.
- UpdateAccessApprovalPolicy(ctx context.Context, policyId string, body UpdateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateAccessApprovalRequestWithBody performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request,
- // with any type of body and a specified content type.
- CreateAccessApprovalRequestWithBody(ctx context.Context, params *CreateAccessApprovalRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t CreateProjectRole200JSONResponseBody_Role_Permissions_Subject) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // CreateAccessApprovalRequest performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateAccessApprovalRequest(ctx context.Context, params *CreateAccessApprovalRequestParams, body CreateAccessApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *CreateProjectRole200JSONResponseBody_Role_Permissions_Subject) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
- // with any type of body and a specified content type.
- AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
- // Takes a body of the `application/json` content type.
- AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsCompleteAccountSignupV3JSONBody0 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody0
+ func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody0() (CompleteAccountSignupV3JSONBody0, error) {
+ var body CompleteAccountSignupV3JSONBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
- // with any type of body and a specified content type.
- UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromCompleteAccountSignupV3JSONBody0 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody0
+ func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
- // Takes a body of the `application/json` content type.
- UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeCompleteAccountSignupV3JSONBody0 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody0
+ func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a GitHub Connection.
- CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a GitHub Connection.
- CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsCompleteAccountSignupV3JSONBody1 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody1
+ func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody1() (CompleteAccountSignupV3JSONBody1, error) {
+ var body CompleteAccountSignupV3JSONBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
- //
- // Delete the specified GitHub Connection.
- DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromCompleteAccountSignupV3JSONBody1 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody1
+ func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // CreateServiceNowAppConnectionWithBody performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a ServiceNow Connection.
- CreateServiceNowAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeCompleteAccountSignupV3JSONBody1 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody1
+ func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // CreateServiceNowAppConnection performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a ServiceNow Connection.
- CreateServiceNowAppConnection(ctx context.Context, body CreateServiceNowAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
- RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t CompleteAccountSignupV3JSONBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *CompleteAccountSignupV3JSONBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsDeleteManySecretsV4200JSONResponseBody0 returns the union data inside the DeleteManySecretsV4200JSONResponseBody as a DeleteManySecretsV4200JSONResponseBody0
+ func (t DeleteManySecretsV4200JSONResponseBody) AsDeleteManySecretsV4200JSONResponseBody0() (DeleteManySecretsV4200JSONResponseBody0, error) {
+ var body DeleteManySecretsV4200JSONResponseBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromDeleteManySecretsV4200JSONResponseBody0 overwrites any union data inside the DeleteManySecretsV4200JSONResponseBody as the provided DeleteManySecretsV4200JSONResponseBody0
+ func (t *DeleteManySecretsV4200JSONResponseBody) FromDeleteManySecretsV4200JSONResponseBody0(v DeleteManySecretsV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeDeleteManySecretsV4200JSONResponseBody0 performs a merge with any union data inside the DeleteManySecretsV4200JSONResponseBody, using the provided DeleteManySecretsV4200JSONResponseBody0
+ func (t *DeleteManySecretsV4200JSONResponseBody) MergeDeleteManySecretsV4200JSONResponseBody0(v DeleteManySecretsV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsDeleteManySecretsV4200JSONResponseBody1 returns the union data inside the DeleteManySecretsV4200JSONResponseBody as a DeleteManySecretsV4200JSONResponseBody1
+ func (t DeleteManySecretsV4200JSONResponseBody) AsDeleteManySecretsV4200JSONResponseBody1() (DeleteManySecretsV4200JSONResponseBody1, error) {
+ var body DeleteManySecretsV4200JSONResponseBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // ListProjectSecretsDetails performs a GET /api/v1/dashboard/secrets-details (the `ListProjectSecretsDetails` operationId) request.
- //
- // List project secrets details.
- ListProjectSecretsDetails(ctx context.Context, params *ListProjectSecretsDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromDeleteManySecretsV4200JSONResponseBody1 overwrites any union data inside the DeleteManySecretsV4200JSONResponseBody as the provided DeleteManySecretsV4200JSONResponseBody1
+ func (t *DeleteManySecretsV4200JSONResponseBody) FromDeleteManySecretsV4200JSONResponseBody1(v DeleteManySecretsV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // ListEmailDomains performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.
- ListEmailDomains(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeDeleteManySecretsV4200JSONResponseBody1 performs a merge with any union data inside the DeleteManySecretsV4200JSONResponseBody, using the provided DeleteManySecretsV4200JSONResponseBody1
+ func (t *DeleteManySecretsV4200JSONResponseBody) MergeDeleteManySecretsV4200JSONResponseBody1(v DeleteManySecretsV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // CreateEmailDomainWithBody performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,
- // with any type of body and a specified content type.
- CreateEmailDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateEmailDomain performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateEmailDomain(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t DeleteManySecretsV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // VerifyEmailDomain performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.
- VerifyEmailDomain(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *DeleteManySecretsV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // CreateGroupWithBody performs a POST /api/v1/groups (the `CreateGroup` operationId) request,
- // with any type of body and a specified content type.
- CreateGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsUpdateManySecretsV4200JSONResponseBody0 returns the union data inside the UpdateManySecretsV4200JSONResponseBody as a UpdateManySecretsV4200JSONResponseBody0
+ func (t UpdateManySecretsV4200JSONResponseBody) AsUpdateManySecretsV4200JSONResponseBody0() (UpdateManySecretsV4200JSONResponseBody0, error) {
+ var body UpdateManySecretsV4200JSONResponseBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateGroup performs a POST /api/v1/groups (the `CreateGroup` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateGroup(ctx context.Context, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromUpdateManySecretsV4200JSONResponseBody0 overwrites any union data inside the UpdateManySecretsV4200JSONResponseBody as the provided UpdateManySecretsV4200JSONResponseBody0
+ func (t *UpdateManySecretsV4200JSONResponseBody) FromUpdateManySecretsV4200JSONResponseBody0(v UpdateManySecretsV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // RemoveUserFromGroup performs a DELETE /api/v1/groups/{id}/users/{username} (the `RemoveUserFromGroup` operationId) request.
- RemoveUserFromGroup(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeUpdateManySecretsV4200JSONResponseBody0 performs a merge with any union data inside the UpdateManySecretsV4200JSONResponseBody, using the provided UpdateManySecretsV4200JSONResponseBody0
+ func (t *UpdateManySecretsV4200JSONResponseBody) MergeUpdateManySecretsV4200JSONResponseBody0(v UpdateManySecretsV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // AddUserToGroup performs a POST /api/v1/groups/{id}/users/{username} (the `AddUserToGroup` operationId) request.
- AddUserToGroup(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create machine identity.
- CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsUpdateManySecretsV4200JSONResponseBody1 returns the union data inside the UpdateManySecretsV4200JSONResponseBody as a UpdateManySecretsV4200JSONResponseBody1
+ func (t UpdateManySecretsV4200JSONResponseBody) AsUpdateManySecretsV4200JSONResponseBody1() (UpdateManySecretsV4200JSONResponseBody1, error) {
+ var body UpdateManySecretsV4200JSONResponseBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create machine identity.
- CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromUpdateManySecretsV4200JSONResponseBody1 overwrites any union data inside the UpdateManySecretsV4200JSONResponseBody as the provided UpdateManySecretsV4200JSONResponseBody1
+ func (t *UpdateManySecretsV4200JSONResponseBody) FromUpdateManySecretsV4200JSONResponseBody1(v UpdateManySecretsV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
- // with any type of body and a specified content type.
- InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeUpdateManySecretsV4200JSONResponseBody1 performs a merge with any union data inside the UpdateManySecretsV4200JSONResponseBody, using the provided UpdateManySecretsV4200JSONResponseBody1
+ func (t *UpdateManySecretsV4200JSONResponseBody) MergeUpdateManySecretsV4200JSONResponseBody1(v UpdateManySecretsV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
- // with any type of body and a specified content type.
- VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t UpdateManySecretsV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *UpdateManySecretsV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // GetOrganizationById performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.
- GetOrganizationById(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsCreateManySecretsV4200JSONResponseBody0 returns the union data inside the CreateManySecretsV4200JSONResponseBody as a CreateManySecretsV4200JSONResponseBody0
+ func (t CreateManySecretsV4200JSONResponseBody) AsCreateManySecretsV4200JSONResponseBody0() (CreateManySecretsV4200JSONResponseBody0, error) {
+ var body CreateManySecretsV4200JSONResponseBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // UpdateOrganizationWithBody performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,
- // with any type of body and a specified content type.
- UpdateOrganizationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromCreateManySecretsV4200JSONResponseBody0 overwrites any union data inside the CreateManySecretsV4200JSONResponseBody as the provided CreateManySecretsV4200JSONResponseBody0
+ func (t *CreateManySecretsV4200JSONResponseBody) FromCreateManySecretsV4200JSONResponseBody0(v CreateManySecretsV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // UpdateOrganization performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- UpdateOrganization(ctx context.Context, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeCreateManySecretsV4200JSONResponseBody0 performs a merge with any union data inside the CreateManySecretsV4200JSONResponseBody, using the provided CreateManySecretsV4200JSONResponseBody0
+ func (t *CreateManySecretsV4200JSONResponseBody) MergeCreateManySecretsV4200JSONResponseBody0(v CreateManySecretsV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
- GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateProjectFolderGrantWithBody performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request,
- // with any type of body and a specified content type.
- CreateProjectFolderGrantWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsCreateManySecretsV4200JSONResponseBody1 returns the union data inside the CreateManySecretsV4200JSONResponseBody as a CreateManySecretsV4200JSONResponseBody1
+ func (t CreateManySecretsV4200JSONResponseBody) AsCreateManySecretsV4200JSONResponseBody1() (CreateManySecretsV4200JSONResponseBody1, error) {
+ var body CreateManySecretsV4200JSONResponseBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateProjectFolderGrant performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateProjectFolderGrant(ctx context.Context, body CreateProjectFolderGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromCreateManySecretsV4200JSONResponseBody1 overwrites any union data inside the CreateManySecretsV4200JSONResponseBody as the provided CreateManySecretsV4200JSONResponseBody1
+ func (t *CreateManySecretsV4200JSONResponseBody) FromCreateManySecretsV4200JSONResponseBody1(v CreateManySecretsV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // DeleteProjectFolderGrant performs a DELETE /api/v1/project-folder-grants/{grantId} (the `DeleteProjectFolderGrant` operationId) request.
- DeleteProjectFolderGrant(ctx context.Context, grantId openapi_types.UUID, params *DeleteProjectFolderGrantParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeCreateManySecretsV4200JSONResponseBody1 performs a merge with any union data inside the CreateManySecretsV4200JSONResponseBody, using the provided CreateManySecretsV4200JSONResponseBody1
+ func (t *CreateManySecretsV4200JSONResponseBody) MergeCreateManySecretsV4200JSONResponseBody1(v CreateManySecretsV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a new project.
- CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a new project.
- CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t CreateManySecretsV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
- //
- // List identities in a project.
- ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *CreateManySecretsV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create an identity in a project.
- CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsDuplicateSecretV4200JSONResponseBodyResults0 returns the union data inside the DuplicateSecretV4200JSONResponseBody_Results_Item as a DuplicateSecretV4200JSONResponseBodyResults0
+ func (t DuplicateSecretV4200JSONResponseBody_Results_Item) AsDuplicateSecretV4200JSONResponseBodyResults0() (DuplicateSecretV4200JSONResponseBodyResults0, error) {
+ var body DuplicateSecretV4200JSONResponseBodyResults0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create an identity in a project.
- CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromDuplicateSecretV4200JSONResponseBodyResults0 overwrites any union data inside the DuplicateSecretV4200JSONResponseBody_Results_Item as the provided DuplicateSecretV4200JSONResponseBodyResults0
+ func (t *DuplicateSecretV4200JSONResponseBody_Results_Item) FromDuplicateSecretV4200JSONResponseBodyResults0(v DuplicateSecretV4200JSONResponseBodyResults0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
- // with any type of body and a specified content type.
- //
- // Invite members to project.
- InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeDuplicateSecretV4200JSONResponseBodyResults0 performs a merge with any union data inside the DuplicateSecretV4200JSONResponseBody_Results_Item, using the provided DuplicateSecretV4200JSONResponseBodyResults0
+ func (t *DuplicateSecretV4200JSONResponseBody_Results_Item) MergeDuplicateSecretV4200JSONResponseBodyResults0(v DuplicateSecretV4200JSONResponseBodyResults0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Invite members to project.
- InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateProjectGroupMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Add a group from the organization to the project by creating a project group membership.
- CreateProjectGroupMembershipWithBody(ctx context.Context, projectId string, groupId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsDuplicateSecretV4200JSONResponseBodyResults1 returns the union data inside the DuplicateSecretV4200JSONResponseBody_Results_Item as a DuplicateSecretV4200JSONResponseBodyResults1
+ func (t DuplicateSecretV4200JSONResponseBody_Results_Item) AsDuplicateSecretV4200JSONResponseBodyResults1() (DuplicateSecretV4200JSONResponseBodyResults1, error) {
+ var body DuplicateSecretV4200JSONResponseBodyResults1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateProjectGroupMembership performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Add a group from the organization to the project by creating a project group membership.
- CreateProjectGroupMembership(ctx context.Context, projectId string, groupId openapi_types.UUID, body CreateProjectGroupMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromDuplicateSecretV4200JSONResponseBodyResults1 overwrites any union data inside the DuplicateSecretV4200JSONResponseBody_Results_Item as the provided DuplicateSecretV4200JSONResponseBodyResults1
+ func (t *DuplicateSecretV4200JSONResponseBody_Results_Item) FromDuplicateSecretV4200JSONResponseBodyResults1(v DuplicateSecretV4200JSONResponseBodyResults1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create project identity membership.
- CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeDuplicateSecretV4200JSONResponseBodyResults1 performs a merge with any union data inside the DuplicateSecretV4200JSONResponseBody_Results_Item, using the provided DuplicateSecretV4200JSONResponseBodyResults1
+ func (t *DuplicateSecretV4200JSONResponseBody_Results_Item) MergeDuplicateSecretV4200JSONResponseBodyResults1(v DuplicateSecretV4200JSONResponseBodyResults1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create project identity membership.
- CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateIdentityFolderAccessWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request,
- // with any type of body and a specified content type.
- //
- // Grant a machine identity access to a folder.
- CreateIdentityFolderAccessWithBody(ctx context.Context, projectId string, identityId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t DuplicateSecretV4200JSONResponseBody_Results_Item) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // CreateIdentityFolderAccess performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Grant a machine identity access to a folder.
- CreateIdentityFolderAccess(ctx context.Context, projectId string, identityId openapi_types.UUID, body CreateIdentityFolderAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *DuplicateSecretV4200JSONResponseBody_Results_Item) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // CreateSecretTagWithBody performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request,
- // with any type of body and a specified content type.
- CreateSecretTagWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsDeleteSecretV4200JSONResponseBody0 returns the union data inside the DeleteSecretV4200JSONResponseBody as a DeleteSecretV4200JSONResponseBody0
+ func (t DeleteSecretV4200JSONResponseBody) AsDeleteSecretV4200JSONResponseBody0() (DeleteSecretV4200JSONResponseBody0, error) {
+ var body DeleteSecretV4200JSONResponseBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateSecretTag performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateSecretTag(ctx context.Context, projectId string, body CreateSecretTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromDeleteSecretV4200JSONResponseBody0 overwrites any union data inside the DeleteSecretV4200JSONResponseBody as the provided DeleteSecretV4200JSONResponseBody0
+ func (t *DeleteSecretV4200JSONResponseBody) FromDeleteSecretV4200JSONResponseBody0(v DeleteSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // ListSecretApprovalRequests performs a GET /api/v1/secret-approval-requests (the `ListSecretApprovalRequests` operationId) request.
- ListSecretApprovalRequests(ctx context.Context, params *ListSecretApprovalRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeDeleteSecretV4200JSONResponseBody0 performs a merge with any union data inside the DeleteSecretV4200JSONResponseBody, using the provided DeleteSecretV4200JSONResponseBody0
+ func (t *DeleteSecretV4200JSONResponseBody) MergeDeleteSecretV4200JSONResponseBody0(v DeleteSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // GetSecretApprovalRequestCount performs a GET /api/v1/secret-approval-requests/count (the `GetSecretApprovalRequestCount` operationId) request.
- GetSecretApprovalRequestCount(ctx context.Context, params *GetSecretApprovalRequestCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // GetSecretApprovalRequest performs a GET /api/v1/secret-approval-requests/{id} (the `GetSecretApprovalRequest` operationId) request.
- GetSecretApprovalRequest(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsDeleteSecretV4200JSONResponseBody1 returns the union data inside the DeleteSecretV4200JSONResponseBody as a DeleteSecretV4200JSONResponseBody1
+ func (t DeleteSecretV4200JSONResponseBody) AsDeleteSecretV4200JSONResponseBody1() (DeleteSecretV4200JSONResponseBody1, error) {
+ var body DeleteSecretV4200JSONResponseBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // MergeSecretApprovalRequestWithBody performs a POST /api/v1/secret-approval-requests/{id}/merge (the `MergeSecretApprovalRequest` operationId) request,
- // with any type of body and a specified content type.
- MergeSecretApprovalRequestWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromDeleteSecretV4200JSONResponseBody1 overwrites any union data inside the DeleteSecretV4200JSONResponseBody as the provided DeleteSecretV4200JSONResponseBody1
+ func (t *DeleteSecretV4200JSONResponseBody) FromDeleteSecretV4200JSONResponseBody1(v DeleteSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // MergeSecretApprovalRequest performs a POST /api/v1/secret-approval-requests/{id}/merge (the `MergeSecretApprovalRequest` operationId) request.
- // Takes a body of the `application/json` content type.
- MergeSecretApprovalRequest(ctx context.Context, id openapi_types.UUID, body MergeSecretApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeDeleteSecretV4200JSONResponseBody1 performs a merge with any union data inside the DeleteSecretV4200JSONResponseBody, using the provided DeleteSecretV4200JSONResponseBody1
+ func (t *DeleteSecretV4200JSONResponseBody) MergeDeleteSecretV4200JSONResponseBody1(v DeleteSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // ReviewSecretApprovalRequestWithBody performs a POST /api/v1/secret-approval-requests/{id}/review (the `ReviewSecretApprovalRequest` operationId) request,
- // with any type of body and a specified content type.
- ReviewSecretApprovalRequestWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // ReviewSecretApprovalRequest performs a POST /api/v1/secret-approval-requests/{id}/review (the `ReviewSecretApprovalRequest` operationId) request.
- // Takes a body of the `application/json` content type.
- ReviewSecretApprovalRequest(ctx context.Context, id openapi_types.UUID, body ReviewSecretApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // UpdateSecretApprovalRequestStatusWithBody performs a POST /api/v1/secret-approval-requests/{id}/status (the `UpdateSecretApprovalRequestStatus` operationId) request,
- // with any type of body and a specified content type.
- UpdateSecretApprovalRequestStatusWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // UpdateSecretApprovalRequestStatus performs a POST /api/v1/secret-approval-requests/{id}/status (the `UpdateSecretApprovalRequestStatus` operationId) request.
- // Takes a body of the `application/json` content type.
- UpdateSecretApprovalRequestStatus(ctx context.Context, id openapi_types.UUID, body UpdateSecretApprovalRequestStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // CreateGitHubSecretSyncWithBody performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a GitHub Sync for the specified project environment.
- CreateGitHubSecretSyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // CreateGitHubSecretSync performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a GitHub Sync for the specified project environment.
- CreateGitHubSecretSync(ctx context.Context, body CreateGitHubSecretSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // DeleteGitHubSecretSync performs a DELETE /api/v1/secret-syncs/github/{syncId} (the `DeleteGitHubSecretSync` operationId) request.
- //
- // Delete the specified GitHub Sync.
- DeleteGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t DeleteSecretV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // GetGitHubSecretSync performs a GET /api/v1/secret-syncs/github/{syncId} (the `GetGitHubSecretSync` operationId) request.
- //
- // Get the specified GitHub Sync by ID.
- GetGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *DeleteSecretV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // RemoveGitHubSecretSyncSecrets performs a POST /api/v1/secret-syncs/github/{syncId}/remove-secrets (the `RemoveGitHubSecretSyncSecrets` operationId) request.
- //
- // Remove previously synced secrets from the specified GitHub Sync destination.
- RemoveGitHubSecretSyncSecrets(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsUpdateSecretV4200JSONResponseBody0 returns the union data inside the UpdateSecretV4200JSONResponseBody as a UpdateSecretV4200JSONResponseBody0
+ func (t UpdateSecretV4200JSONResponseBody) AsUpdateSecretV4200JSONResponseBody0() (UpdateSecretV4200JSONResponseBody0, error) {
+ var body UpdateSecretV4200JSONResponseBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // SyncGitHubSecretSync performs a POST /api/v1/secret-syncs/github/{syncId}/sync-secrets (the `SyncGitHubSecretSync` operationId) request.
- //
- // Trigger a sync for the specified GitHub Sync.
- SyncGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromUpdateSecretV4200JSONResponseBody0 overwrites any union data inside the UpdateSecretV4200JSONResponseBody as the provided UpdateSecretV4200JSONResponseBody0
+ func (t *UpdateSecretV4200JSONResponseBody) FromUpdateSecretV4200JSONResponseBody0(v UpdateSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // GetSamlConfig performs a GET /api/v1/sso/config (the `GetSamlConfig` operationId) request.
- //
- // Get SAML config.
- GetSamlConfig(ctx context.Context, params *GetSamlConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeUpdateSecretV4200JSONResponseBody0 performs a merge with any union data inside the UpdateSecretV4200JSONResponseBody, using the provided UpdateSecretV4200JSONResponseBody0
+ func (t *UpdateSecretV4200JSONResponseBody) MergeUpdateSecretV4200JSONResponseBody0(v UpdateSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // UpdateSamlConfigWithBody performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update SAML config.
- UpdateSamlConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // UpdateSamlConfig performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Update SAML config.
- UpdateSamlConfig(ctx context.Context, body UpdateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsUpdateSecretV4200JSONResponseBody1 returns the union data inside the UpdateSecretV4200JSONResponseBody as a UpdateSecretV4200JSONResponseBody1
+ func (t UpdateSecretV4200JSONResponseBody) AsUpdateSecretV4200JSONResponseBody1() (UpdateSecretV4200JSONResponseBody1, error) {
+ var body UpdateSecretV4200JSONResponseBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateSamlConfigWithBody performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create SAML config.
- CreateSamlConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromUpdateSecretV4200JSONResponseBody1 overwrites any union data inside the UpdateSecretV4200JSONResponseBody as the provided UpdateSecretV4200JSONResponseBody1
+ func (t *UpdateSecretV4200JSONResponseBody) FromUpdateSecretV4200JSONResponseBody1(v UpdateSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // CreateSamlConfig performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create SAML config.
- CreateSamlConfig(ctx context.Context, body CreateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeUpdateSecretV4200JSONResponseBody1 performs a merge with any union data inside the UpdateSecretV4200JSONResponseBody, using the provided UpdateSecretV4200JSONResponseBody1
+ func (t *UpdateSecretV4200JSONResponseBody) MergeUpdateSecretV4200JSONResponseBody1(v UpdateSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // RedirectOrgSSO performs a GET /api/v1/sso/redirect/organizations/{orgSlug} (the `RedirectOrgSSO` operationId) request.
- RedirectOrgSSO(ctx context.Context, orgSlug string, params *RedirectOrgSSOParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // RedirectSamlByDomain performs a GET /api/v1/sso/redirect/saml2/organizations/domain/{domain} (the `RedirectSamlByDomain` operationId) request.
- RedirectSamlByDomain(ctx context.Context, domain string, params *RedirectSamlByDomainParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t UpdateSecretV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // RedirectSamlByOrgSlug performs a GET /api/v1/sso/redirect/saml2/organizations/{orgSlug} (the `RedirectSamlByOrgSlug` operationId) request.
- RedirectSamlByOrgSlug(ctx context.Context, orgSlug string, params *RedirectSamlByOrgSlugParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *UpdateSecretV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // RedirectSamlByConfigId performs a GET /api/v1/sso/redirect/saml2/{samlConfigId} (the `RedirectSamlByConfigId` operationId) request.
- RedirectSamlByConfigId(ctx context.Context, samlConfigId string, params *RedirectSamlByConfigIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsCreateSecretV4200JSONResponseBody0 returns the union data inside the CreateSecretV4200JSONResponseBody as a CreateSecretV4200JSONResponseBody0
+ func (t CreateSecretV4200JSONResponseBody) AsCreateSecretV4200JSONResponseBody0() (CreateSecretV4200JSONResponseBody0, error) {
+ var body CreateSecretV4200JSONResponseBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // SamlAcsWithBody performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request,
- // with any type of body and a specified content type.
- SamlAcsWithBody(ctx context.Context, samlConfigId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromCreateSecretV4200JSONResponseBody0 overwrites any union data inside the CreateSecretV4200JSONResponseBody as the provided CreateSecretV4200JSONResponseBody0
+ func (t *CreateSecretV4200JSONResponseBody) FromCreateSecretV4200JSONResponseBody0(v CreateSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // SamlAcsWithFormdataBody performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request.
- // Takes a body of the `application/x-www-form-urlencoded` content type.
- SamlAcsWithFormdataBody(ctx context.Context, samlConfigId string, body SamlAcsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeCreateSecretV4200JSONResponseBody0 performs a merge with any union data inside the CreateSecretV4200JSONResponseBody, using the provided CreateSecretV4200JSONResponseBody0
+ func (t *CreateSecretV4200JSONResponseBody) MergeCreateSecretV4200JSONResponseBody0(v CreateSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // CreateSecretFolderWithBody performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create folders.
- CreateSecretFolderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // CreateSecretFolder performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create folders.
- CreateSecretFolder(ctx context.Context, body CreateSecretFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // AsCreateSecretV4200JSONResponseBody1 returns the union data inside the CreateSecretV4200JSONResponseBody as a CreateSecretV4200JSONResponseBody1
+ func (t CreateSecretV4200JSONResponseBody) AsCreateSecretV4200JSONResponseBody1() (CreateSecretV4200JSONResponseBody1, error) {
+ var body CreateSecretV4200JSONResponseBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+ }
- // CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
- // with any type of body and a specified content type.
- CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // FromCreateSecretV4200JSONResponseBody1 overwrites any union data inside the CreateSecretV4200JSONResponseBody as the provided CreateSecretV4200JSONResponseBody1
+ func (t *CreateSecretV4200JSONResponseBody) FromCreateSecretV4200JSONResponseBody1(v CreateSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+ }
- // CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // MergeCreateSecretV4200JSONResponseBody1 performs a merge with any union data inside the CreateSecretV4200JSONResponseBody, using the provided CreateSecretV4200JSONResponseBody1
+ func (t *CreateSecretV4200JSONResponseBody) MergeCreateSecretV4200JSONResponseBody1(v CreateSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- // DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
- DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+ }
- // ListOrgMemberships performs a GET /api/v2/organizations/{organizationId}/memberships (the `ListOrgMemberships` operationId) request.
- //
- // Return organization user memberships.
- ListOrgMemberships(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t CreateSecretV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+ }
- // GetOrgMembership performs a GET /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `GetOrgMembership` operationId) request.
- //
- // Get organization user membership.
- GetOrgMembership(ctx context.Context, organizationId string, membershipId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ func (t *CreateSecretV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+ }
- // UpdateOrgMembershipWithBody performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update organization user memberships.
- UpdateOrgMembershipWithBody(ctx context.Context, organizationId string, membershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // RequestEditorFn is the function signature for the RequestEditor callback function
+ type RequestEditorFn func(ctx context.Context, req *http.Request) error
- // UpdateOrgMembership performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Update organization user memberships.
- UpdateOrgMembership(ctx context.Context, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Doer performs HTTP requests.
+ //
+ // The standard http.Client implements this interface.
+ type HttpRequestDoer interface {
+ Do(req *http.Request) (*http.Response, error)
+ }
- // CreateSecretApprovalPolicyWithBody performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- CreateSecretApprovalPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Client which conforms to the OpenAPI3 specification for this service.
+ type Client struct {
+ // The endpoint of the server conforming to this interface, with scheme,
+ // https://api.deepmap.com for example. This can contain a path relative
+ // to the server, such as https://api.deepmap.com/dev-test, and all the
+ // paths in the swagger spec will be appended to the server.
+ Server string
- // CreateSecretApprovalPolicy performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateSecretApprovalPolicy(ctx context.Context, body CreateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Doer for performing requests, typically a *http.Client with any
+ // customized settings, such as certificate chains.
+ Client HttpRequestDoer
- // GetSecretApprovalPolicyBoard performs a GET /api/v2/secret-approvals/board (the `GetSecretApprovalPolicyBoard` operationId) request.
- GetSecretApprovalPolicyBoard(ctx context.Context, params *GetSecretApprovalPolicyBoardParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // A list of callbacks for modifying requests which are generated before sending over
+ // the network.
+ RequestEditors []RequestEditorFn
+ }
- // DeleteSecretApprovalPolicy performs a DELETE /api/v2/secret-approvals/{sapId} (the `DeleteSecretApprovalPolicy` operationId) request.
- DeleteSecretApprovalPolicy(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ClientOption allows setting custom parameters during construction
+ type ClientOption func(*Client) error
- // GetSecretApprovalPolicy performs a GET /api/v2/secret-approvals/{sapId} (the `GetSecretApprovalPolicy` operationId) request.
- GetSecretApprovalPolicy(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Creates a new Client, with reasonable defaults
+ func NewClient(server string, opts ...ClientOption) (*Client, error) {
+ // create a client with sane default values
+ client := Client{
+ Server: server,
+ }
+ // mutate client and add all optional params
+ for _, o := range opts {
+ if err := o(&client); err != nil {
+ return nil, err
+ }
+ }
+ // ensure the server URL always has a trailing slash
+ if !strings.HasSuffix(client.Server, "/") {
+ client.Server += "/"
+ }
+ // create httpClient, if not already present
+ if client.Client == nil {
+ client.Client = &http.Client{}
+ }
+ return &client, nil
+ }
- // UpdateSecretApprovalPolicyWithBody performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- UpdateSecretApprovalPolicyWithBody(ctx context.Context, sapId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // WithHTTPClient allows overriding the default Doer, which is
+ // automatically created using http.Client. This is useful for tests.
+ func WithHTTPClient(doer HttpRequestDoer) ClientOption {
+ return func(c *Client) error {
+ c.Client = doer
+ return nil
+ }
+ }
- // UpdateSecretApprovalPolicy performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type.
- UpdateSecretApprovalPolicy(ctx context.Context, sapId string, body UpdateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // WithRequestEditorFn allows setting up a callback function, which will be
+ // called right before sending the request. This can be used to mutate the request.
+ func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
+ return func(c *Client) error {
+ c.RequestEditors = append(c.RequestEditors, fn)
+ return nil
+ }
+ }
- // CreateSecretImportWithBody performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create secret imports.
- CreateSecretImportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // The interface specification for the client above.
+ type ClientInterface interface {
- // CreateSecretImport performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request.
- // Takes a body of the `application/json` content type.
+ // GetInstanceStatus performs a GET /api/status (the `GetInstanceStatus` operationId) request.
//
- // Create secret imports.
- CreateSecretImport(ctx context.Context, body CreateSecretImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Get the status of the Infisical instance and the features configured on it. Public and unauthenticated; used by liveness and readiness probes and exempt from the API-wide rate limit.
+ GetInstanceStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetCurrentUser performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.
- //
- // Retrieve the current user on the request.
- GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
++ // ListAccessApprovalPolicies performs a GET /api/v1/access-approvals/policies (the `ListAccessApprovalPolicies` operationId) request.
++ ListAccessApprovalPolicies(ctx context.Context, params *ListAccessApprovalPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // CreateProjectRoleWithBody performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request,
++ // CreateAccessApprovalPolicyWithBody performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request,
+ // with any type of body and a specified content type.
- //
- // Create a project role.
- CreateProjectRoleWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
++ CreateAccessApprovalPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // CreateProjectRole performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request.
++ // CreateAccessApprovalPolicy performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request.
+ // Takes a body of the `application/json` content type.
- //
- // Create a project role.
- CreateProjectRole(ctx context.Context, projectId string, body CreateProjectRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
++ CreateAccessApprovalPolicy(ctx context.Context, body CreateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
++ // GetAccessApprovalPolicy performs a GET /api/v1/access-approvals/policies/{policyId} (the `GetAccessApprovalPolicy` operationId) request.
++ GetAccessApprovalPolicy(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
++
++ // UpdateAccessApprovalPolicyWithBody performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request,
+ // with any type of body and a specified content type.
- LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
++ UpdateAccessApprovalPolicyWithBody(ctx context.Context, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
++ // UpdateAccessApprovalPolicy performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request.
+ // Takes a body of the `application/json` content type.
- LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
++ UpdateAccessApprovalPolicy(ctx context.Context, policyId string, body UpdateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
++ // CreateAccessApprovalRequestWithBody performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request,
+ // with any type of body and a specified content type.
- SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
++ CreateAccessApprovalRequestWithBody(ctx context.Context, params *CreateAccessApprovalRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
++ // CreateAccessApprovalRequest performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request.
+ // Takes a body of the `application/json` content type.
- SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
++ CreateAccessApprovalRequest(ctx context.Context, params *CreateAccessApprovalRequestParams, body CreateAccessApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+ // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
// with any type of body and a specified content type.
- CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+ // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
// Takes a body of the `application/json` content type.
- CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // BeginEmailSignupV3WithBody performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+ // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
// with any type of body and a specified content type.
- BeginEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // BeginEmailSignupV3 performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+ // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
// Takes a body of the `application/json` content type.
- BeginEmailSignupV3(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // VerifyEmailSignupV3WithBody performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+ // CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
// with any type of body and a specified content type.
- VerifyEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // VerifyEmailSignupV3 performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+ // CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
// Takes a body of the `application/json` content type.
- VerifyEmailSignupV3(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // ListSecretsV4 performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
+ // DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
//
- // List secrets.
- ListSecretsV4(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Delete the specified GitHub Connection.
+ DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteManySecretsV4WithBody performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request,
++ // CreateServiceNowAppConnectionWithBody performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request,
+ // with any type of body and a specified content type.
+ //
- // Delete many secrets.
- DeleteManySecretsV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
++ // Create a ServiceNow Connection.
++ CreateServiceNowAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // DeleteManySecretsV4 performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request.
++ // CreateServiceNowAppConnection performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
- // Delete many secrets.
- DeleteManySecretsV4(ctx context.Context, body DeleteManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
++ // Create a ServiceNow Connection.
++ CreateServiceNowAppConnection(ctx context.Context, body CreateServiceNowAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
- // UpdateManySecretsV4WithBody performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request,
+ // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
// with any type of body and a specified content type.
//
- // Update many secrets.
- UpdateManySecretsV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateManySecretsV4 performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request.
+ // AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
// Takes a body of the `application/json` content type.
//
- // Update many secrets.
- UpdateManySecretsV4(ctx context.Context, body UpdateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateManySecretsV4WithBody performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request,
+ // CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
// with any type of body and a specified content type.
//
- // Create many secrets.
- CreateManySecretsV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateManySecretsV4 performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request.
+ // CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
// Takes a body of the `application/json` content type.
//
- // Create many secrets.
- CreateManySecretsV4(ctx context.Context, body CreateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DuplicateSecretV4WithBody performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request,
+ // LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
// with any type of body and a specified content type.
//
- // Duplicate one or more static secrets into another environment.
- DuplicateSecretV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DuplicateSecretV4 performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request.
+ // LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
// Takes a body of the `application/json` content type.
//
- // Duplicate one or more static secrets into another environment.
- DuplicateSecretV4(ctx context.Context, body DuplicateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetSecretByIdV4 performs a GET /api/v4/secrets/id/{secretId} (the `GetSecretByIdV4` operationId) request.
- GetSecretByIdV4(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListProjectSecretsDetails performs a GET /api/v1/dashboard/secrets-details (the `ListProjectSecretsDetails` operationId) request.
+ //
+ // List project secrets details.
+ ListProjectSecretsDetails(ctx context.Context, params *ListProjectSecretsDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // MoveSecretsV4WithBody performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request,
+ // ListEmailDomains performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.
+ ListEmailDomains(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateEmailDomainWithBody performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,
// with any type of body and a specified content type.
- MoveSecretsV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ CreateEmailDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // MoveSecretsV4 performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request.
+ // CreateEmailDomain performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.
// Takes a body of the `application/json` content type.
- MoveSecretsV4(ctx context.Context, body MoveSecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ CreateEmailDomain(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteSecretV4WithBody performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
+ // VerifyEmailDomain performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.
+ VerifyEmailDomain(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateGroupWithBody performs a POST /api/v1/groups (the `CreateGroup` operationId) request,
// with any type of body and a specified content type.
- //
- // Delete secret.
- DeleteSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ CreateGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteSecretV4 performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
+ // CreateGroup performs a POST /api/v1/groups (the `CreateGroup` operationId) request.
// Takes a body of the `application/json` content type.
- //
- // Delete secret.
- DeleteSecretV4(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ CreateGroup(ctx context.Context, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetSecretByNameV4 performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
- //
- // Get a secret by name.
- GetSecretByNameV4(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // RemoveUserFromGroup performs a DELETE /api/v1/groups/{id}/users/{username} (the `RemoveUserFromGroup` operationId) request.
+ RemoveUserFromGroup(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateSecretV4WithBody performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request,
+ // AddUserToGroup performs a POST /api/v1/groups/{id}/users/{username} (the `AddUserToGroup` operationId) request.
+ AddUserToGroup(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
// with any type of body and a specified content type.
//
- // Update secret.
- UpdateSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Create machine identity.
+ CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateSecretV4 performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request.
+ // CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
// Takes a body of the `application/json` content type.
//
- // Update secret.
- UpdateSecretV4(ctx context.Context, secretName string, body UpdateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Create machine identity.
+ CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateSecretV4WithBody performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
+ // InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
// with any type of body and a specified content type.
- //
- // Create secret.
- CreateSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateSecretV4 performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
+ // InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
// Takes a body of the `application/json` content type.
- //
- // Create secret.
- CreateSecretV4(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetSecretReferencesV4 performs a GET /api/v4/secrets/{secretName}/reference-dependency-tree (the `GetSecretReferencesV4` operationId) request.
+ // VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetOrganizationById performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.
+ GetOrganizationById(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateOrganizationWithBody performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ UpdateOrganizationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateOrganization performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ UpdateOrganization(ctx context.Context, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+ GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectFolderGrantWithBody performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request,
+ // with any type of body and a specified content type.
+ CreateProjectFolderGrantWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectFolderGrant performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateProjectFolderGrant(ctx context.Context, body CreateProjectFolderGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteProjectFolderGrant performs a DELETE /api/v1/project-folder-grants/{grantId} (the `DeleteProjectFolderGrant` operationId) request.
+ DeleteProjectFolderGrant(ctx context.Context, grantId openapi_types.UUID, params *DeleteProjectFolderGrantParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+ // with any type of body and a specified content type.
//
- // Get secret reference dependency tree.
- GetSecretReferencesV4(ctx context.Context, secretName string, params *GetSecretReferencesV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Create a new project.
+ CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetSecretReferenceTreeV4 performs a GET /api/v4/secrets/{secretName}/secret-reference-tree (the `GetSecretReferenceTreeV4` operationId) request.
+ // CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+ // Takes a body of the `application/json` content type.
//
- // Get secret reference tree.
- GetSecretReferenceTreeV4(ctx context.Context, secretName string, params *GetSecretReferenceTreeV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
- }
+ // Create a new project.
+ CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetInstanceStatus performs a GET /api/status (the `GetInstanceStatus` operationId) request.
- //
- // Get the status of the Infisical instance and the features configured on it. Public and unauthenticated; used by liveness and readiness probes and exempt from the API-wide rate limit.
- func (c *Client) GetInstanceStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetInstanceStatusRequest(c.Server)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+ //
+ // List identities in a project.
+ ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // ListAccessApprovalPolicies performs a GET /api/v1/access-approvals/policies (the `ListAccessApprovalPolicies` operationId) request.
- func (c *Client) ListAccessApprovalPolicies(ctx context.Context, params *ListAccessApprovalPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListAccessApprovalPoliciesRequest(c.Server, params)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create an identity in a project.
+ CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateAccessApprovalPolicyWithBody performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- func (c *Client) CreateAccessApprovalPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateAccessApprovalPolicyRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create an identity in a project.
+ CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateAccessApprovalPolicy performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type.
- func (c *Client) CreateAccessApprovalPolicy(ctx context.Context, body CreateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateAccessApprovalPolicyRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Invite members to project.
+ InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetAccessApprovalPolicy performs a GET /api/v1/access-approvals/policies/{policyId} (the `GetAccessApprovalPolicy` operationId) request.
- func (c *Client) GetAccessApprovalPolicy(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetAccessApprovalPolicyRequest(c.Server, policyId)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Invite members to project.
+ InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateAccessApprovalPolicyWithBody performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- func (c *Client) UpdateAccessApprovalPolicyWithBody(ctx context.Context, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateAccessApprovalPolicyRequestWithBody(c.Server, policyId, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateProjectGroupMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Add a group from the organization to the project by creating a project group membership.
+ CreateProjectGroupMembershipWithBody(ctx context.Context, projectId string, groupId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateAccessApprovalPolicy performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type.
- func (c *Client) UpdateAccessApprovalPolicy(ctx context.Context, policyId string, body UpdateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateAccessApprovalPolicyRequest(c.Server, policyId, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateProjectGroupMembership performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Add a group from the organization to the project by creating a project group membership.
+ CreateProjectGroupMembership(ctx context.Context, projectId string, groupId openapi_types.UUID, body CreateProjectGroupMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateAccessApprovalRequestWithBody performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request,
- // with any type of body and a specified content type.
- func (c *Client) CreateAccessApprovalRequestWithBody(ctx context.Context, params *CreateAccessApprovalRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateAccessApprovalRequestRequestWithBody(c.Server, params, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create project identity membership.
+ CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateAccessApprovalRequest performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request.
- // Takes a body of the `application/json` content type.
- func (c *Client) CreateAccessApprovalRequest(ctx context.Context, params *CreateAccessApprovalRequestParams, body CreateAccessApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateAccessApprovalRequestRequest(c.Server, params, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create project identity membership.
+ CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
- // with any type of body and a specified content type.
- func (c *Client) AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAdminBootstrapRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateIdentityFolderAccessWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Grant a machine identity access to a folder.
+ CreateIdentityFolderAccessWithBody(ctx context.Context, projectId string, identityId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
- // Takes a body of the `application/json` content type.
- func (c *Client) AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAdminBootstrapRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateIdentityFolderAccess performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Grant a machine identity access to a folder.
+ CreateIdentityFolderAccess(ctx context.Context, projectId string, identityId openapi_types.UUID, body CreateIdentityFolderAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
- // with any type of body and a specified content type.
- func (c *Client) UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateAdminConfigRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateSecretTagWithBody performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request,
+ // with any type of body and a specified content type.
+ CreateSecretTagWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
- // Takes a body of the `application/json` content type.
- func (c *Client) UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateAdminConfigRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateSecretTag performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateSecretTag(ctx context.Context, projectId string, body CreateSecretTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a GitHub Connection.
- func (c *Client) CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateGitHubAppConnectionRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // ListScimGroups performs a GET /api/v1/scim/Groups (the `ListScimGroups` operationId) request.
+ ListScimGroups(ctx context.Context, params *ListScimGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a GitHub Connection.
- func (c *Client) CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateGitHubAppConnectionRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateScimGroupWithBody performs a POST /api/v1/scim/Groups (the `CreateScimGroup` operationId) request,
+ // with any type of body and a specified content type.
+ CreateScimGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
- //
- // Delete the specified GitHub Connection.
- func (c *Client) DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteGitHubAppConnectionRequest(c.Server, connectionId)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateScimGroup performs a POST /api/v1/scim/Groups (the `CreateScimGroup` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateScimGroup(ctx context.Context, body CreateScimGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateServiceNowAppConnectionWithBody performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a ServiceNow Connection.
- func (c *Client) CreateServiceNowAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateServiceNowAppConnectionRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // DeleteScimGroup performs a DELETE /api/v1/scim/Groups/{groupId} (the `DeleteScimGroup` operationId) request.
+ DeleteScimGroup(ctx context.Context, groupId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateServiceNowAppConnection performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a ServiceNow Connection.
- func (c *Client) CreateServiceNowAppConnection(ctx context.Context, body CreateServiceNowAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateServiceNowAppConnectionRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // GetScimGroup performs a GET /api/v1/scim/Groups/{groupId} (the `GetScimGroup` operationId) request.
+ GetScimGroup(ctx context.Context, groupId string, params *GetScimGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
- func (c *Client) RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewRefreshAuthTokenRequest(c.Server)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // PatchScimGroupWithBody performs a PATCH /api/v1/scim/Groups/{groupId} (the `PatchScimGroup` operationId) request,
+ // with any type of body and a specified content type.
+ PatchScimGroupWithBody(ctx context.Context, groupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- func (c *Client) AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAttachUniversalAuthRequestWithBody(c.Server, identityId, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // PatchScimGroup performs a PATCH /api/v1/scim/Groups/{groupId} (the `PatchScimGroup` operationId) request.
+ // Takes a body of the `application/json` content type.
+ PatchScimGroup(ctx context.Context, groupId string, body PatchScimGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- func (c *Client) AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAttachUniversalAuthRequest(c.Server, identityId, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // ReplaceScimGroupWithBody performs a PUT /api/v1/scim/Groups/{groupId} (the `ReplaceScimGroup` operationId) request,
+ // with any type of body and a specified content type.
+ ReplaceScimGroupWithBody(ctx context.Context, groupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- func (c *Client) CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateUniversalAuthClientSecretRequestWithBody(c.Server, identityId, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // ReplaceScimGroup performs a PUT /api/v1/scim/Groups/{groupId} (the `ReplaceScimGroup` operationId) request.
+ // Takes a body of the `application/json` content type.
+ ReplaceScimGroup(ctx context.Context, groupId string, body ReplaceScimGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- func (c *Client) CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateUniversalAuthClientSecretRequest(c.Server, identityId, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // GetScimServiceProviderConfig performs a GET /api/v1/scim/ServiceProviderConfig (the `GetScimServiceProviderConfig` operationId) request.
+ GetScimServiceProviderConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- // LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Login with Universal Auth for machine identity.
- func (c *Client) LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginWithUniversalAuthRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // ListScimUsers performs a GET /api/v1/scim/Users (the `ListScimUsers` operationId) request.
+ ListScimUsers(ctx context.Context, params *ListScimUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Login with Universal Auth for machine identity.
- func (c *Client) LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginWithUniversalAuthRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateScimUserWithBody performs a POST /api/v1/scim/Users (the `CreateScimUser` operationId) request,
+ // with any type of body and a specified content type.
+ CreateScimUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // ListProjectSecretsDetails performs a GET /api/v1/dashboard/secrets-details (the `ListProjectSecretsDetails` operationId) request.
- //
- // List project secrets details.
- func (c *Client) ListProjectSecretsDetails(ctx context.Context, params *ListProjectSecretsDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListProjectSecretsDetailsRequest(c.Server, params)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // CreateScimUser performs a POST /api/v1/scim/Users (the `CreateScimUser` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateScimUser(ctx context.Context, body CreateScimUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // ListEmailDomains performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.
- func (c *Client) ListEmailDomains(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListEmailDomainsRequest(c.Server)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // DeleteScimUser performs a DELETE /api/v1/scim/Users/{orgMembershipId} (the `DeleteScimUser` operationId) request.
+ DeleteScimUser(ctx context.Context, orgMembershipId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateEmailDomainWithBody performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,
- // with any type of body and a specified content type.
- func (c *Client) CreateEmailDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateEmailDomainRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
- }
+ // GetScimUser performs a GET /api/v1/scim/Users/{orgMembershipId} (the `GetScimUser` operationId) request.
+ GetScimUser(ctx context.Context, orgMembershipId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateEmailDomain performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.
- // Takes a body of the `application/json` content type.
- func (c *Client) CreateEmailDomain(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateEmailDomainRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+ // PatchScimUserWithBody performs a PATCH /api/v1/scim/Users/{orgMembershipId} (the `PatchScimUser` operationId) request,
+ // with any type of body and a specified content type.
+ PatchScimUserWithBody(ctx context.Context, orgMembershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // PatchScimUser performs a PATCH /api/v1/scim/Users/{orgMembershipId} (the `PatchScimUser` operationId) request.
+ // Takes a body of the `application/json` content type.
+ PatchScimUser(ctx context.Context, orgMembershipId string, body PatchScimUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ReplaceScimUserWithBody performs a PUT /api/v1/scim/Users/{orgMembershipId} (the `ReplaceScimUser` operationId) request,
+ // with any type of body and a specified content type.
+ ReplaceScimUserWithBody(ctx context.Context, orgMembershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ReplaceScimUser performs a PUT /api/v1/scim/Users/{orgMembershipId} (the `ReplaceScimUser` operationId) request.
+ // Takes a body of the `application/json` content type.
+ ReplaceScimUser(ctx context.Context, orgMembershipId string, body ReplaceScimUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListExternalGroupOrgRoleMappings performs a GET /api/v1/scim/group-org-role-mappings (the `ListExternalGroupOrgRoleMappings` operationId) request.
+ ListExternalGroupOrgRoleMappings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateExternalGroupOrgRoleMappingsWithBody performs a PUT /api/v1/scim/group-org-role-mappings (the `UpdateExternalGroupOrgRoleMappings` operationId) request,
+ // with any type of body and a specified content type.
+ UpdateExternalGroupOrgRoleMappingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateExternalGroupOrgRoleMappings performs a PUT /api/v1/scim/group-org-role-mappings (the `UpdateExternalGroupOrgRoleMappings` operationId) request.
+ // Takes a body of the `application/json` content type.
+ UpdateExternalGroupOrgRoleMappings(ctx context.Context, body UpdateExternalGroupOrgRoleMappingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListScimEvents performs a GET /api/v1/scim/scim-events (the `ListScimEvents` operationId) request.
+ ListScimEvents(ctx context.Context, params *ListScimEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListScimTokens performs a GET /api/v1/scim/scim-tokens (the `ListScimTokens` operationId) request.
+ ListScimTokens(ctx context.Context, params *ListScimTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateScimTokenWithBody performs a POST /api/v1/scim/scim-tokens (the `CreateScimToken` operationId) request,
+ // with any type of body and a specified content type.
+ CreateScimTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateScimToken performs a POST /api/v1/scim/scim-tokens (the `CreateScimToken` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateScimToken(ctx context.Context, body CreateScimTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteScimToken performs a DELETE /api/v1/scim/scim-tokens/{scimTokenId} (the `DeleteScimToken` operationId) request.
+ DeleteScimToken(ctx context.Context, scimTokenId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListSecretApprovalRequests performs a GET /api/v1/secret-approval-requests (the `ListSecretApprovalRequests` operationId) request.
+ ListSecretApprovalRequests(ctx context.Context, params *ListSecretApprovalRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSecretApprovalRequestCount performs a GET /api/v1/secret-approval-requests/count (the `GetSecretApprovalRequestCount` operationId) request.
+ GetSecretApprovalRequestCount(ctx context.Context, params *GetSecretApprovalRequestCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSecretApprovalRequest performs a GET /api/v1/secret-approval-requests/{id} (the `GetSecretApprovalRequest` operationId) request.
+ GetSecretApprovalRequest(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // MergeSecretApprovalRequestWithBody performs a POST /api/v1/secret-approval-requests/{id}/merge (the `MergeSecretApprovalRequest` operationId) request,
+ // with any type of body and a specified content type.
+ MergeSecretApprovalRequestWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // MergeSecretApprovalRequest performs a POST /api/v1/secret-approval-requests/{id}/merge (the `MergeSecretApprovalRequest` operationId) request.
+ // Takes a body of the `application/json` content type.
+ MergeSecretApprovalRequest(ctx context.Context, id openapi_types.UUID, body MergeSecretApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ReviewSecretApprovalRequestWithBody performs a POST /api/v1/secret-approval-requests/{id}/review (the `ReviewSecretApprovalRequest` operationId) request,
+ // with any type of body and a specified content type.
+ ReviewSecretApprovalRequestWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ReviewSecretApprovalRequest performs a POST /api/v1/secret-approval-requests/{id}/review (the `ReviewSecretApprovalRequest` operationId) request.
+ // Takes a body of the `application/json` content type.
+ ReviewSecretApprovalRequest(ctx context.Context, id openapi_types.UUID, body ReviewSecretApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSecretApprovalRequestStatusWithBody performs a POST /api/v1/secret-approval-requests/{id}/status (the `UpdateSecretApprovalRequestStatus` operationId) request,
+ // with any type of body and a specified content type.
+ UpdateSecretApprovalRequestStatusWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSecretApprovalRequestStatus performs a POST /api/v1/secret-approval-requests/{id}/status (the `UpdateSecretApprovalRequestStatus` operationId) request.
+ // Takes a body of the `application/json` content type.
+ UpdateSecretApprovalRequestStatus(ctx context.Context, id openapi_types.UUID, body UpdateSecretApprovalRequestStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateGitHubSecretSyncWithBody performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Sync for the specified project environment.
+ CreateGitHubSecretSyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateGitHubSecretSync performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create a GitHub Sync for the specified project environment.
+ CreateGitHubSecretSync(ctx context.Context, body CreateGitHubSecretSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteGitHubSecretSync performs a DELETE /api/v1/secret-syncs/github/{syncId} (the `DeleteGitHubSecretSync` operationId) request.
+ //
+ // Delete the specified GitHub Sync.
+ DeleteGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetGitHubSecretSync performs a GET /api/v1/secret-syncs/github/{syncId} (the `GetGitHubSecretSync` operationId) request.
+ //
+ // Get the specified GitHub Sync by ID.
+ GetGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RemoveGitHubSecretSyncSecrets performs a POST /api/v1/secret-syncs/github/{syncId}/remove-secrets (the `RemoveGitHubSecretSyncSecrets` operationId) request.
+ //
+ // Remove previously synced secrets from the specified GitHub Sync destination.
+ RemoveGitHubSecretSyncSecrets(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // SyncGitHubSecretSync performs a POST /api/v1/secret-syncs/github/{syncId}/sync-secrets (the `SyncGitHubSecretSync` operationId) request.
+ //
+ // Trigger a sync for the specified GitHub Sync.
+ SyncGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSamlConfig performs a GET /api/v1/sso/config (the `GetSamlConfig` operationId) request.
+ //
+ // Get SAML config.
+ GetSamlConfig(ctx context.Context, params *GetSamlConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSamlConfigWithBody performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update SAML config.
+ UpdateSamlConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSamlConfig performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Update SAML config.
+ UpdateSamlConfig(ctx context.Context, body UpdateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSamlConfigWithBody performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create SAML config.
+ CreateSamlConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSamlConfig performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create SAML config.
+ CreateSamlConfig(ctx context.Context, body CreateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // OidcCallback performs a GET /api/v1/sso/oidc/callback (the `OidcCallback` operationId) request.
+ OidcCallback(ctx context.Context, params *OidcCallbackParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetOidcConfig performs a GET /api/v1/sso/oidc/config (the `GetOidcConfig` operationId) request.
+ //
+ // Get OIDC config.
+ GetOidcConfig(ctx context.Context, params *GetOidcConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateOidcConfigWithBody performs a PATCH /api/v1/sso/oidc/config (the `UpdateOidcConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update OIDC config.
+ UpdateOidcConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateOidcConfig performs a PATCH /api/v1/sso/oidc/config (the `UpdateOidcConfig` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Update OIDC config.
+ UpdateOidcConfig(ctx context.Context, body UpdateOidcConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateOidcConfigWithBody performs a POST /api/v1/sso/oidc/config (the `CreateOidcConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create OIDC config.
+ CreateOidcConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateOidcConfig performs a POST /api/v1/sso/oidc/config (the `CreateOidcConfig` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create OIDC config.
+ CreateOidcConfig(ctx context.Context, body CreateOidcConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RedirectOidcLogin performs a GET /api/v1/sso/oidc/login (the `RedirectOidcLogin` operationId) request.
+ RedirectOidcLogin(ctx context.Context, params *RedirectOidcLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RedirectOrgSSO performs a GET /api/v1/sso/redirect/organizations/{orgSlug} (the `RedirectOrgSSO` operationId) request.
+ RedirectOrgSSO(ctx context.Context, orgSlug string, params *RedirectOrgSSOParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RedirectSamlByDomain performs a GET /api/v1/sso/redirect/saml2/organizations/domain/{domain} (the `RedirectSamlByDomain` operationId) request.
+ RedirectSamlByDomain(ctx context.Context, domain string, params *RedirectSamlByDomainParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RedirectSamlByOrgSlug performs a GET /api/v1/sso/redirect/saml2/organizations/{orgSlug} (the `RedirectSamlByOrgSlug` operationId) request.
+ RedirectSamlByOrgSlug(ctx context.Context, orgSlug string, params *RedirectSamlByOrgSlugParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RedirectSamlByConfigId performs a GET /api/v1/sso/redirect/saml2/{samlConfigId} (the `RedirectSamlByConfigId` operationId) request.
+ RedirectSamlByConfigId(ctx context.Context, samlConfigId string, params *RedirectSamlByConfigIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // SamlAcsWithBody performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request,
+ // with any type of body and a specified content type.
+ SamlAcsWithBody(ctx context.Context, samlConfigId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // SamlAcsWithFormdataBody performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request.
+ // Takes a body of the `application/x-www-form-urlencoded` content type.
+ SamlAcsWithFormdataBody(ctx context.Context, samlConfigId string, body SamlAcsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSecretFolderWithBody performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create folders.
+ CreateSecretFolderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSecretFolder performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create folders.
+ CreateSecretFolder(ctx context.Context, body CreateSecretFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+ DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListOrgMemberships performs a GET /api/v2/organizations/{organizationId}/memberships (the `ListOrgMemberships` operationId) request.
+ //
+ // Return organization user memberships.
+ ListOrgMemberships(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetOrgMembership performs a GET /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `GetOrgMembership` operationId) request.
+ //
+ // Get organization user membership.
+ GetOrgMembership(ctx context.Context, organizationId string, membershipId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateOrgMembershipWithBody performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update organization user memberships.
+ UpdateOrgMembershipWithBody(ctx context.Context, organizationId string, membershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateOrgMembership performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Update organization user memberships.
+ UpdateOrgMembership(ctx context.Context, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSecretApprovalPolicyWithBody performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request,
+ // with any type of body and a specified content type.
+ CreateSecretApprovalPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSecretApprovalPolicy performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateSecretApprovalPolicy(ctx context.Context, body CreateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSecretApprovalPolicyBoard performs a GET /api/v2/secret-approvals/board (the `GetSecretApprovalPolicyBoard` operationId) request.
+ GetSecretApprovalPolicyBoard(ctx context.Context, params *GetSecretApprovalPolicyBoardParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteSecretApprovalPolicy performs a DELETE /api/v2/secret-approvals/{sapId} (the `DeleteSecretApprovalPolicy` operationId) request.
+ DeleteSecretApprovalPolicy(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSecretApprovalPolicy performs a GET /api/v2/secret-approvals/{sapId} (the `GetSecretApprovalPolicy` operationId) request.
+ GetSecretApprovalPolicy(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSecretApprovalPolicyWithBody performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request,
+ // with any type of body and a specified content type.
+ UpdateSecretApprovalPolicyWithBody(ctx context.Context, sapId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSecretApprovalPolicy performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request.
+ // Takes a body of the `application/json` content type.
+ UpdateSecretApprovalPolicy(ctx context.Context, sapId string, body UpdateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSecretImportWithBody performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create secret imports.
+ CreateSecretImportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSecretImport performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create secret imports.
+ CreateSecretImport(ctx context.Context, body CreateSecretImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetCurrentUser performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.
+ //
+ // Retrieve the current user on the request.
+ GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RequestEmailChangeOtpWithBody performs a POST /api/v2/users/me/email-change/otp (the `RequestEmailChangeOtp` operationId) request,
+ // with any type of body and a specified content type.
+ RequestEmailChangeOtpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RequestEmailChangeOtp performs a POST /api/v2/users/me/email-change/otp (the `RequestEmailChangeOtp` operationId) request.
+ // Takes a body of the `application/json` content type.
+ RequestEmailChangeOtp(ctx context.Context, body RequestEmailChangeOtpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectRoleWithBody performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a project role.
+ CreateProjectRoleWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectRole performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create a project role.
+ CreateProjectRole(ctx context.Context, projectId string, body CreateProjectRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
+ // with any type of body and a specified content type.
+ LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
+ // with any type of body and a specified content type.
+ SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // BeginEmailSignupV3WithBody performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ BeginEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // BeginEmailSignupV3 performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ BeginEmailSignupV3(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // VerifyEmailSignupV3WithBody performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ VerifyEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // VerifyEmailSignupV3 performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ VerifyEmailSignupV3(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // ListSecretsV4 performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
+ //
+ // List secrets.
+ ListSecretsV4(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteManySecretsV4WithBody performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Delete many secrets.
+ DeleteManySecretsV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteManySecretsV4 performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Delete many secrets.
+ DeleteManySecretsV4(ctx context.Context, body DeleteManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateManySecretsV4WithBody performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update many secrets.
+ UpdateManySecretsV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateManySecretsV4 performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Update many secrets.
+ UpdateManySecretsV4(ctx context.Context, body UpdateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateManySecretsV4WithBody performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create many secrets.
+ CreateManySecretsV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateManySecretsV4 performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create many secrets.
+ CreateManySecretsV4(ctx context.Context, body CreateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DuplicateSecretV4WithBody performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Duplicate one or more static secrets into another environment.
+ DuplicateSecretV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DuplicateSecretV4 performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Duplicate one or more static secrets into another environment.
+ DuplicateSecretV4(ctx context.Context, body DuplicateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSecretByIdV4 performs a GET /api/v4/secrets/id/{secretId} (the `GetSecretByIdV4` operationId) request.
+ GetSecretByIdV4(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // MoveSecretsV4WithBody performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request,
+ // with any type of body and a specified content type.
+ MoveSecretsV4WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // MoveSecretsV4 performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request.
+ // Takes a body of the `application/json` content type.
+ MoveSecretsV4(ctx context.Context, body MoveSecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteSecretV4WithBody performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Delete secret.
+ DeleteSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeleteSecretV4 performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Delete secret.
+ DeleteSecretV4(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSecretByNameV4 performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
+ //
+ // Get a secret by name.
+ GetSecretByNameV4(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSecretV4WithBody performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update secret.
+ UpdateSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UpdateSecretV4 performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Update secret.
+ UpdateSecretV4(ctx context.Context, secretName string, body UpdateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSecretV4WithBody performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create secret.
+ CreateSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateSecretV4 performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create secret.
+ CreateSecretV4(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSecretReferencesV4 performs a GET /api/v4/secrets/{secretName}/reference-dependency-tree (the `GetSecretReferencesV4` operationId) request.
+ //
+ // Get secret reference dependency tree.
+ GetSecretReferencesV4(ctx context.Context, secretName string, params *GetSecretReferencesV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetSecretReferenceTreeV4 performs a GET /api/v4/secrets/{secretName}/secret-reference-tree (the `GetSecretReferenceTreeV4` operationId) request.
+ //
+ // Get secret reference tree.
+ GetSecretReferenceTreeV4(ctx context.Context, secretName string, params *GetSecretReferenceTreeV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
}
- // VerifyEmailDomain performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.
- func (c *Client) VerifyEmailDomain(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewVerifyEmailDomainRequest(c.Server, emailDomainId)
+ // GetInstanceStatus performs a GET /api/status (the `GetInstanceStatus` operationId) request.
+ //
+ // Get the status of the Infisical instance and the features configured on it. Public and unauthenticated; used by liveness and readiness probes and exempt from the API-wide rate limit.
+ func (c *Client) GetInstanceStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetInstanceStatusRequest(c.Server)
if err != nil {
return nil, err
}
@@@ -24963,124 -25093,10 +27270,120 @@@
return c.Client.Do(req)
}
- // CreateGroupWithBody performs a POST /api/v1/groups (the `CreateGroup` operationId) request,
- // with any type of body and a specified content type.
- func (c *Client) CreateGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateGroupRequestWithBody(c.Server, contentType, body)
++// ListAccessApprovalPolicies performs a GET /api/v1/access-approvals/policies (the `ListAccessApprovalPolicies` operationId) request.
++func (c *Client) ListAccessApprovalPolicies(ctx context.Context, params *ListAccessApprovalPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewListAccessApprovalPoliciesRequest(c.Server, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // CreateGroup performs a POST /api/v1/groups (the `CreateGroup` operationId) request.
- // Takes a body of the `application/json` content type.
- func (c *Client) CreateGroup(ctx context.Context, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateGroupRequest(c.Server, body)
++// CreateAccessApprovalPolicyWithBody performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request,
++// with any type of body and a specified content type.
++func (c *Client) CreateAccessApprovalPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewCreateAccessApprovalPolicyRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // RemoveUserFromGroup performs a DELETE /api/v1/groups/{id}/users/{username} (the `RemoveUserFromGroup` operationId) request.
- func (c *Client) RemoveUserFromGroup(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewRemoveUserFromGroupRequest(c.Server, id, username)
++// CreateAccessApprovalPolicy performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request.
++// Takes a body of the `application/json` content type.
++func (c *Client) CreateAccessApprovalPolicy(ctx context.Context, body CreateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewCreateAccessApprovalPolicyRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // AddUserToGroup performs a POST /api/v1/groups/{id}/users/{username} (the `AddUserToGroup` operationId) request.
- func (c *Client) AddUserToGroup(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAddUserToGroupRequest(c.Server, id, username)
++// GetAccessApprovalPolicy performs a GET /api/v1/access-approvals/policies/{policyId} (the `GetAccessApprovalPolicy` operationId) request.
++func (c *Client) GetAccessApprovalPolicy(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewGetAccessApprovalPolicyRequest(c.Server, policyId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
++// UpdateAccessApprovalPolicyWithBody performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request,
+// with any type of body and a specified content type.
- //
- // Create machine identity.
- func (c *Client) CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateMachineIdentityRequestWithBody(c.Server, contentType, body)
++func (c *Client) UpdateAccessApprovalPolicyWithBody(ctx context.Context, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewUpdateAccessApprovalPolicyRequestWithBody(c.Server, policyId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
++// UpdateAccessApprovalPolicy performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request.
+// Takes a body of the `application/json` content type.
- //
- // Create machine identity.
- func (c *Client) CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateMachineIdentityRequest(c.Server, body)
++func (c *Client) UpdateAccessApprovalPolicy(ctx context.Context, policyId string, body UpdateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewUpdateAccessApprovalPolicyRequest(c.Server, policyId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
++// CreateAccessApprovalRequestWithBody performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request,
+// with any type of body and a specified content type.
- func (c *Client) InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteUsersToOrganizationRequestWithBody(c.Server, contentType, body)
++func (c *Client) CreateAccessApprovalRequestWithBody(ctx context.Context, params *CreateAccessApprovalRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewCreateAccessApprovalRequestRequestWithBody(c.Server, params, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
++// CreateAccessApprovalRequest performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request.
+// Takes a body of the `application/json` content type.
- func (c *Client) InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteUsersToOrganizationRequest(c.Server, body)
++func (c *Client) CreateAccessApprovalRequest(ctx context.Context, params *CreateAccessApprovalRequestParams, body CreateAccessApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewCreateAccessApprovalRequestRequest(c.Server, params, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+ // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
// with any type of body and a specified content type.
- func (c *Client) VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewVerifyUserToOrganizationRequestWithBody(c.Server, contentType, body)
+ func (c *Client) AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAdminBootstrapRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
@@@ -25173,39 -25196,9 +27483,41 @@@ func (c *Client) DeleteGitHubAppConnect
return c.Client.Do(req)
}
- // CreateProjectFolderGrant performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request.
- // Takes a body of the `application/json` content type.
- func (c *Client) CreateProjectFolderGrant(ctx context.Context, body CreateProjectFolderGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectFolderGrantRequest(c.Server, body)
++// CreateServiceNowAppConnectionWithBody performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request,
++// with any type of body and a specified content type.
++//
++// Create a ServiceNow Connection.
++func (c *Client) CreateServiceNowAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewCreateServiceNowAppConnectionRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // DeleteProjectFolderGrant performs a DELETE /api/v1/project-folder-grants/{grantId} (the `DeleteProjectFolderGrant` operationId) request.
- func (c *Client) DeleteProjectFolderGrant(ctx context.Context, grantId openapi_types.UUID, params *DeleteProjectFolderGrantParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteProjectFolderGrantRequest(c.Server, grantId, params)
++// CreateServiceNowAppConnection performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request.
++// Takes a body of the `application/json` content type.
++//
++// Create a ServiceNow Connection.
++func (c *Client) CreateServiceNowAppConnection(ctx context.Context, body CreateServiceNowAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
++ req, err := NewCreateServiceNowAppConnectionRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
- // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a new project.
- func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectRequestWithBody(c.Server, contentType, body)
+ // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ func (c *Client) RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewRefreshAuthTokenRequest(c.Server)
if err != nil {
return nil, err
}
@@@ -27490,206 -27521,8 +29840,242 @@@ func NewGetInstanceStatusRequest(serve
return req, nil
}
- // NewVerifyEmailDomainRequest constructs an http.Request for the VerifyEmailDomain method
- func NewVerifyEmailDomainRequest(server string, emailDomainId openapi_types.UUID) (*http.Request, error) {
++// NewListAccessApprovalPoliciesRequest constructs an http.Request for the ListAccessApprovalPolicies method
++func NewListAccessApprovalPoliciesRequest(server string, params *ListAccessApprovalPoliciesParams) (*http.Request, error) {
+ var err error
+
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "emailDomainId", emailDomainId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
-
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
- operationPath := fmt.Sprintf("/api/v1/email-domains/%s/verify", pathParam0)
++ operationPath := fmt.Sprintf("/api/v1/access-approvals/policies")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
++ if params != nil {
++ // queryValues collects non-styled parameters (passthrough, JSON)
++ // that are safe to round-trip through url.Values.Encode().
++ queryValues := queryURL.Query()
++ // rawQueryFragments collects pre-encoded query fragments from
++ // styled parameters, preserving literal commas as delimiters
++ // per the OpenAPI spec (e.g. "color=blue,black,brown").
++ var rawQueryFragments []string
++
++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectSlug", params.ProjectSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
++ return nil, err
++ } else {
++ for _, qp := range strings.Split(queryFrag, "&") {
++ rawQueryFragments = append(rawQueryFragments, qp)
++ }
++ }
++
++ if encoded := queryValues.Encode(); encoded != "" {
++ rawQueryFragments = append(rawQueryFragments, encoded)
++ }
++ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
++ }
++
++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
- // NewCreateGroupRequest calls the generic CreateGroup builder with application/json body
- func NewCreateGroupRequest(server string, body CreateGroupJSONRequestBody) (*http.Request, error) {
++// NewCreateAccessApprovalPolicyRequest calls the generic CreateAccessApprovalPolicy builder with application/json body
++func NewCreateAccessApprovalPolicyRequest(server string, body CreateAccessApprovalPolicyJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
- return NewCreateGroupRequestWithBody(server, "application/json", bodyReader)
++ return NewCreateAccessApprovalPolicyRequestWithBody(server, "application/json", bodyReader)
+}
+
- // NewCreateGroupRequestWithBody constructs an http.Request for the CreateGroup method, with any body, and a specified content type
- func NewCreateGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
++// NewCreateAccessApprovalPolicyRequestWithBody constructs an http.Request for the CreateAccessApprovalPolicy method, with any body, and a specified content type
++func NewCreateAccessApprovalPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
- operationPath := fmt.Sprintf("/api/v1/groups")
++ operationPath := fmt.Sprintf("/api/v1/access-approvals/policies")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
- // NewRemoveUserFromGroupRequest constructs an http.Request for the RemoveUserFromGroup method
- func NewRemoveUserFromGroupRequest(server string, id string, username string) (*http.Request, error) {
++// NewGetAccessApprovalPolicyRequest constructs an http.Request for the GetAccessApprovalPolicy method
++func NewGetAccessApprovalPolicyRequest(server string, policyId string) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "username", username, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
- operationPath := fmt.Sprintf("/api/v1/groups/%s/users/%s", pathParam0, pathParam1)
++ operationPath := fmt.Sprintf("/api/v1/access-approvals/policies/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
- // NewAddUserToGroupRequest constructs an http.Request for the AddUserToGroup method
- func NewAddUserToGroupRequest(server string, id string, username string) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
++// NewUpdateAccessApprovalPolicyRequest calls the generic UpdateAccessApprovalPolicy builder with application/json body
++func NewUpdateAccessApprovalPolicyRequest(server string, policyId string, body UpdateAccessApprovalPolicyJSONRequestBody) (*http.Request, error) {
++ var bodyReader io.Reader
++ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
++ bodyReader = bytes.NewReader(buf)
++ return NewUpdateAccessApprovalPolicyRequestWithBody(server, policyId, "application/json", bodyReader)
++}
+
- var pathParam1 string
++// NewUpdateAccessApprovalPolicyRequestWithBody constructs an http.Request for the UpdateAccessApprovalPolicy method, with any body, and a specified content type
++func NewUpdateAccessApprovalPolicyRequestWithBody(server string, policyId string, contentType string, body io.Reader) (*http.Request, error) {
++ var err error
+
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "username", username, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
++ var pathParam0 string
++
++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
- operationPath := fmt.Sprintf("/api/v1/groups/%s/users/%s", pathParam0, pathParam1)
++ operationPath := fmt.Sprintf("/api/v1/access-approvals/policies/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
++ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
++ req.Header.Add("Content-Type", contentType)
++
+ return req, nil
+}
+
- // NewCreateMachineIdentityRequest calls the generic CreateMachineIdentity builder with application/json body
- func NewCreateMachineIdentityRequest(server string, body CreateMachineIdentityJSONRequestBody) (*http.Request, error) {
++// NewCreateAccessApprovalRequestRequest calls the generic CreateAccessApprovalRequest builder with application/json body
++func NewCreateAccessApprovalRequestRequest(server string, params *CreateAccessApprovalRequestParams, body CreateAccessApprovalRequestJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
- return NewCreateMachineIdentityRequestWithBody(server, "application/json", bodyReader)
++ return NewCreateAccessApprovalRequestRequestWithBody(server, params, "application/json", bodyReader)
+}
+
- // NewCreateMachineIdentityRequestWithBody constructs an http.Request for the CreateMachineIdentity method, with any body, and a specified content type
- func NewCreateMachineIdentityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
++// NewCreateAccessApprovalRequestRequestWithBody constructs an http.Request for the CreateAccessApprovalRequest method, with any body, and a specified content type
++func NewCreateAccessApprovalRequestRequestWithBody(server string, params *CreateAccessApprovalRequestParams, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
- operationPath := fmt.Sprintf("/api/v1/identities")
++ operationPath := fmt.Sprintf("/api/v1/access-approvals/requests")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
++ if params != nil {
++ // queryValues collects non-styled parameters (passthrough, JSON)
++ // that are safe to round-trip through url.Values.Encode().
++ queryValues := queryURL.Query()
++ // rawQueryFragments collects pre-encoded query fragments from
++ // styled parameters, preserving literal commas as delimiters
++ // per the OpenAPI spec (e.g. "color=blue,black,brown").
++ var rawQueryFragments []string
+
- req.Header.Add("Content-Type", contentType)
++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectSlug", params.ProjectSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
++ return nil, err
++ } else {
++ for _, qp := range strings.Split(queryFrag, "&") {
++ rawQueryFragments = append(rawQueryFragments, qp)
++ }
++ }
++
++ if encoded := queryValues.Encode(); encoded != "" {
++ rawQueryFragments = append(rawQueryFragments, encoded)
++ }
++ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
++ }
++
++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
++ if err != nil {
++ return nil, err
++ }
++
++ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
- // NewInviteUsersToOrganizationRequest calls the generic InviteUsersToOrganization builder with application/json body
- func NewInviteUsersToOrganizationRequest(server string, body InviteUsersToOrganizationJSONRequestBody) (*http.Request, error) {
+ // NewAdminBootstrapRequest calls the generic AdminBootstrap builder with application/json body
+ func NewAdminBootstrapRequest(server string, body AdminBootstrapJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
@@@ -27802,64 -27675,10 +30228,50 @@@ func NewDeleteGitHubAppConnectionReques
return req, nil
}
- // NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body
- func NewUpdateOrganizationRequest(server string, organizationId string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) {
++// NewCreateServiceNowAppConnectionRequest calls the generic CreateServiceNowAppConnection builder with application/json body
++func NewCreateServiceNowAppConnectionRequest(server string, body CreateServiceNowAppConnectionJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
- return NewUpdateOrganizationRequestWithBody(server, organizationId, "application/json", bodyReader)
++ return NewCreateServiceNowAppConnectionRequestWithBody(server, "application/json", bodyReader)
+}
+
- // NewUpdateOrganizationRequestWithBody constructs an http.Request for the UpdateOrganization method, with any body, and a specified content type
- func NewUpdateOrganizationRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
++// NewCreateServiceNowAppConnectionRequestWithBody constructs an http.Request for the CreateServiceNowAppConnection method, with any body, and a specified content type
++func NewCreateServiceNowAppConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
- operationPath := fmt.Sprintf("/api/v1/organization/%s", pathParam0)
++ operationPath := fmt.Sprintf("/api/v1/app-connections/servicenow")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
- req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
- // NewGetOrganizationPlanRequest constructs an http.Request for the GetOrganizationPlan method
- func NewGetOrganizationPlanRequest(server string, organizationId string, params *GetOrganizationPlanParams) (*http.Request, error) {
+ // NewRefreshAuthTokenRequest constructs an http.Request for the RefreshAuthToken method
+ func NewRefreshAuthTokenRequest(server string) (*http.Request, error) {
var err error
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
@@@ -31078,875 -31222,5014 +33815,6310 @@@ func NewSamlAcsRequestWithBody(server s
if err != nil {
return nil, err
}
- return &ClientWithResponses{client}, nil
- }
- // WithBaseURL overrides the baseURL.
- func WithBaseURL(baseURL string) ClientOption {
- return func(c *Client) error {
- newBaseURL, err := url.Parse(baseURL)
- if err != nil {
- return err
- }
- c.Server = newBaseURL.String()
- return nil
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
}
- }
- // ClientWithResponsesInterface is the interface specification for the client with responses above.
- type ClientWithResponsesInterface interface {
+ operationPath := fmt.Sprintf("/api/v1/sso/saml2/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // GetInstanceStatusWithResponse performs a GET /api/status (the `GetInstanceStatus` operationId) request.
- //
- // Get the status of the Infisical instance and the features configured on it. Public and unauthenticated; used by liveness and readiness probes and exempt from the API-wide rate limit.
- //
- // Returns a wrapper object for the known response body format(s).
- GetInstanceStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInstanceStatusResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // ListAccessApprovalPoliciesWithResponse performs a GET /api/v1/access-approvals/policies (the `ListAccessApprovalPolicies` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- ListAccessApprovalPoliciesWithResponse(ctx context.Context, params *ListAccessApprovalPoliciesParams, reqEditors ...RequestEditorFn) (*ListAccessApprovalPoliciesResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // CreateAccessApprovalPolicyWithBodyWithResponse performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateAccessApprovalPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessApprovalPolicyResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // CreateAccessApprovalPolicyWithResponse performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateAccessApprovalPolicyWithResponse(ctx context.Context, body CreateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessApprovalPolicyResponse, error)
+ return req, nil
+ }
- // GetAccessApprovalPolicyWithResponse performs a GET /api/v1/access-approvals/policies/{policyId} (the `GetAccessApprovalPolicy` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetAccessApprovalPolicyWithResponse(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*GetAccessApprovalPolicyResponse, error)
+ // NewCreateSecretFolderRequest calls the generic CreateSecretFolder builder with application/json body
+ func NewCreateSecretFolderRequest(server string, body CreateSecretFolderJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateSecretFolderRequestWithBody(server, "application/json", bodyReader)
+ }
- // UpdateAccessApprovalPolicyWithBodyWithResponse performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateAccessApprovalPolicyWithBodyWithResponse(ctx context.Context, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccessApprovalPolicyResponse, error)
+ // NewCreateSecretFolderRequestWithBody constructs an http.Request for the CreateSecretFolder method, with any body, and a specified content type
+ func NewCreateSecretFolderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // UpdateAccessApprovalPolicyWithResponse performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- UpdateAccessApprovalPolicyWithResponse(ctx context.Context, policyId string, body UpdateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccessApprovalPolicyResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // CreateAccessApprovalRequestWithBodyWithResponse performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateAccessApprovalRequestWithBodyWithResponse(ctx context.Context, params *CreateAccessApprovalRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessApprovalRequestResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/folders")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // CreateAccessApprovalRequestWithResponse performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateAccessApprovalRequestWithResponse(ctx context.Context, params *CreateAccessApprovalRequestParams, body CreateAccessApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessApprovalRequestResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+ return req, nil
+ }
- // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+ // NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body
+ func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)
+ }
- // CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a GitHub Connection.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+ // NewCreateOrganizationRequestWithBody constructs an http.Request for the CreateOrganization method, with any body, and a specified content type
+ func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create a GitHub Connection.
- CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
- //
- // Delete the specified GitHub Connection.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/organizations")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // CreateServiceNowAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a ServiceNow Connection.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateServiceNowAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceNowAppConnectionResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // CreateServiceNowAppConnectionWithResponse performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create a ServiceNow Connection.
- CreateServiceNowAppConnectionWithResponse(ctx context.Context, body CreateServiceNowAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceNowAppConnectionResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+ return req, nil
+ }
- // AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+ // NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method
+ func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Request, error) {
+ var err error
- // CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+ var pathParam0 string
- // CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Login with Universal Auth for machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/organizations/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // ListProjectSecretsDetailsWithResponse performs a GET /api/v1/dashboard/secrets-details (the `ListProjectSecretsDetails` operationId) request.
- //
- // List project secrets details.
- //
- // Returns a wrapper object for the known response body format(s).
- ListProjectSecretsDetailsWithResponse(ctx context.Context, params *ListProjectSecretsDetailsParams, reqEditors ...RequestEditorFn) (*ListProjectSecretsDetailsResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // ListEmailDomainsWithResponse performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- ListEmailDomainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEmailDomainsResponse, error)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // CreateEmailDomainWithBodyWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateEmailDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error)
+ return req, nil
+ }
- // CreateEmailDomainWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateEmailDomainWithResponse(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error)
+ // NewListOrgMembershipsRequest constructs an http.Request for the ListOrgMemberships method
+ func NewListOrgMembershipsRequest(server string, organizationId string) (*http.Request, error) {
+ var err error
- // VerifyEmailDomainWithResponse performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- VerifyEmailDomainWithResponse(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*VerifyEmailDomainResponse, error)
+ var pathParam0 string
- // CreateGroupWithBodyWithResponse performs a POST /api/v1/groups (the `CreateGroup` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // CreateGroupWithResponse performs a POST /api/v1/groups (the `CreateGroup` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateGroupWithResponse(ctx context.Context, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // RemoveUserFromGroupWithResponse performs a DELETE /api/v1/groups/{id}/users/{username} (the `RemoveUserFromGroup` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- RemoveUserFromGroupWithResponse(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*RemoveUserFromGroupResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/organizations/%s/memberships", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // AddUserToGroupWithResponse performs a POST /api/v1/groups/{id}/users/{username} (the `AddUserToGroup` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- AddUserToGroupWithResponse(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*AddUserToGroupResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create machine identity.
- CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+ return req, nil
+ }
- // InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+ // NewGetOrgMembershipRequest constructs an http.Request for the GetOrgMembership method
+ func NewGetOrgMembershipRequest(server string, organizationId string, membershipId string) (*http.Request, error) {
+ var err error
- // InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+ var pathParam0 string
- // VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+ var pathParam1 string
- // GetOrganizationByIdWithResponse performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetOrganizationByIdWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationByIdResponse, error)
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "membershipId", membershipId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // UpdateOrganizationWithBodyWithResponse performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // UpdateOrganizationWithResponse performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- UpdateOrganizationWithResponse(ctx context.Context, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/organizations/%s/memberships/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // CreateProjectFolderGrantWithBodyWithResponse performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectFolderGrantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectFolderGrantResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // CreateProjectFolderGrantWithResponse performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateProjectFolderGrantWithResponse(ctx context.Context, body CreateProjectFolderGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectFolderGrantResponse, error)
+ return req, nil
+ }
- // DeleteProjectFolderGrantWithResponse performs a DELETE /api/v1/project-folder-grants/{grantId} (the `DeleteProjectFolderGrant` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteProjectFolderGrantWithResponse(ctx context.Context, grantId openapi_types.UUID, params *DeleteProjectFolderGrantParams, reqEditors ...RequestEditorFn) (*DeleteProjectFolderGrantResponse, error)
+ // NewUpdateOrgMembershipRequest calls the generic UpdateOrgMembership builder with application/json body
+ func NewUpdateOrgMembershipRequest(server string, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateOrgMembershipRequestWithBody(server, organizationId, membershipId, "application/json", bodyReader)
+ }
- // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a new project.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+ // NewUpdateOrgMembershipRequestWithBody constructs an http.Request for the UpdateOrgMembership method, with any body, and a specified content type
+ func NewUpdateOrgMembershipRequestWithBody(server string, organizationId string, membershipId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create a new project.
- CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+ var pathParam0 string
- // ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
- //
- // List identities in a project.
- //
- // Returns a wrapper object for the known response body format(s).
- ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create an identity in a project.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+ var pathParam1 string
- // CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create an identity in a project.
- CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "membershipId", membershipId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
- // with any type of body and a specified content type.
- //
- // Invite members to project.
- //
- // Returns a wrapper object for the known response body format(s).
- InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Invite members to project.
- InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/organizations/%s/memberships/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // CreateProjectGroupMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Add a group from the organization to the project by creating a project group membership.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectGroupMembershipWithBodyWithResponse(ctx context.Context, projectId string, groupId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectGroupMembershipResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // CreateProjectGroupMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Add a group from the organization to the project by creating a project group membership.
- CreateProjectGroupMembershipWithResponse(ctx context.Context, projectId string, groupId openapi_types.UUID, body CreateProjectGroupMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectGroupMembershipResponse, error)
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create project identity membership.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create project identity membership.
- CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+ return req, nil
+ }
- // CreateIdentityFolderAccessWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request,
- // with any type of body and a specified content type.
- //
- // Grant a machine identity access to a folder.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateIdentityFolderAccessWithBodyWithResponse(ctx context.Context, projectId string, identityId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIdentityFolderAccessResponse, error)
+ // NewCreateSecretApprovalPolicyRequest calls the generic CreateSecretApprovalPolicy builder with application/json body
+ func NewCreateSecretApprovalPolicyRequest(server string, body CreateSecretApprovalPolicyJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateSecretApprovalPolicyRequestWithBody(server, "application/json", bodyReader)
+ }
- // CreateIdentityFolderAccessWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Grant a machine identity access to a folder.
- CreateIdentityFolderAccessWithResponse(ctx context.Context, projectId string, identityId openapi_types.UUID, body CreateIdentityFolderAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIdentityFolderAccessResponse, error)
+ // NewCreateSecretApprovalPolicyRequestWithBody constructs an http.Request for the CreateSecretApprovalPolicy method, with any body, and a specified content type
+ func NewCreateSecretApprovalPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // CreateSecretTagWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateSecretTagWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretTagResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // CreateSecretTagWithResponse performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateSecretTagWithResponse(ctx context.Context, projectId string, body CreateSecretTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretTagResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/secret-approvals")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // ListSecretApprovalRequestsWithResponse performs a GET /api/v1/secret-approval-requests (the `ListSecretApprovalRequests` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- ListSecretApprovalRequestsWithResponse(ctx context.Context, params *ListSecretApprovalRequestsParams, reqEditors ...RequestEditorFn) (*ListSecretApprovalRequestsResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // GetSecretApprovalRequestCountWithResponse performs a GET /api/v1/secret-approval-requests/count (the `GetSecretApprovalRequestCount` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretApprovalRequestCountWithResponse(ctx context.Context, params *GetSecretApprovalRequestCountParams, reqEditors ...RequestEditorFn) (*GetSecretApprovalRequestCountResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // GetSecretApprovalRequestWithResponse performs a GET /api/v1/secret-approval-requests/{id} (the `GetSecretApprovalRequest` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretApprovalRequestWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSecretApprovalRequestResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // MergeSecretApprovalRequestWithBodyWithResponse performs a POST /api/v1/secret-approval-requests/{id}/merge (the `MergeSecretApprovalRequest` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- MergeSecretApprovalRequestWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MergeSecretApprovalRequestResponse, error)
+ return req, nil
+ }
- // MergeSecretApprovalRequestWithResponse performs a POST /api/v1/secret-approval-requests/{id}/merge (the `MergeSecretApprovalRequest` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- MergeSecretApprovalRequestWithResponse(ctx context.Context, id openapi_types.UUID, body MergeSecretApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*MergeSecretApprovalRequestResponse, error)
+ // NewGetSecretApprovalPolicyBoardRequest constructs an http.Request for the GetSecretApprovalPolicyBoard method
+ func NewGetSecretApprovalPolicyBoardRequest(server string, params *GetSecretApprovalPolicyBoardParams) (*http.Request, error) {
+ var err error
- // ReviewSecretApprovalRequestWithBodyWithResponse performs a POST /api/v1/secret-approval-requests/{id}/review (the `ReviewSecretApprovalRequest` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- ReviewSecretApprovalRequestWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReviewSecretApprovalRequestResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // ReviewSecretApprovalRequestWithResponse performs a POST /api/v1/secret-approval-requests/{id}/review (the `ReviewSecretApprovalRequest` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- ReviewSecretApprovalRequestWithResponse(ctx context.Context, id openapi_types.UUID, body ReviewSecretApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ReviewSecretApprovalRequestResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/secret-approvals/board")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // UpdateSecretApprovalRequestStatusWithBodyWithResponse performs a POST /api/v1/secret-approval-requests/{id}/status (the `UpdateSecretApprovalRequestStatus` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateSecretApprovalRequestStatusWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalRequestStatusResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // UpdateSecretApprovalRequestStatusWithResponse performs a POST /api/v1/secret-approval-requests/{id}/status (the `UpdateSecretApprovalRequestStatus` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- UpdateSecretApprovalRequestStatusWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSecretApprovalRequestStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalRequestStatusResponse, error)
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
- // CreateGitHubSecretSyncWithBodyWithResponse performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a GitHub Sync for the specified project environment.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateGitHubSecretSyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubSecretSyncResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // CreateGitHubSecretSyncWithResponse performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create a GitHub Sync for the specified project environment.
- CreateGitHubSecretSyncWithResponse(ctx context.Context, body CreateGitHubSecretSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubSecretSyncResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // DeleteGitHubSecretSyncWithResponse performs a DELETE /api/v1/secret-syncs/github/{syncId} (the `DeleteGitHubSecretSync` operationId) request.
- //
- // Delete the specified GitHub Sync.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams, reqEditors ...RequestEditorFn) (*DeleteGitHubSecretSyncResponse, error)
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
- // GetGitHubSecretSyncWithResponse performs a GET /api/v1/secret-syncs/github/{syncId} (the `GetGitHubSecretSync` operationId) request.
- //
- // Get the specified GitHub Sync by ID.
- //
- // Returns a wrapper object for the known response body format(s).
- GetGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetGitHubSecretSyncResponse, error)
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
- // RemoveGitHubSecretSyncSecretsWithResponse performs a POST /api/v1/secret-syncs/github/{syncId}/remove-secrets (the `RemoveGitHubSecretSyncSecrets` operationId) request.
- //
- // Remove previously synced secrets from the specified GitHub Sync destination.
- //
- // Returns a wrapper object for the known response body format(s).
- RemoveGitHubSecretSyncSecretsWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveGitHubSecretSyncSecretsResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // SyncGitHubSecretSyncWithResponse performs a POST /api/v1/secret-syncs/github/{syncId}/sync-secrets (the `SyncGitHubSecretSync` operationId) request.
- //
- // Trigger a sync for the specified GitHub Sync.
- //
- // Returns a wrapper object for the known response body format(s).
- SyncGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SyncGitHubSecretSyncResponse, error)
+ return req, nil
+ }
- // GetSamlConfigWithResponse performs a GET /api/v1/sso/config (the `GetSamlConfig` operationId) request.
- //
- // Get SAML config.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSamlConfigWithResponse(ctx context.Context, params *GetSamlConfigParams, reqEditors ...RequestEditorFn) (*GetSamlConfigResponse, error)
+ // NewDeleteSecretApprovalPolicyRequest constructs an http.Request for the DeleteSecretApprovalPolicy method
+ func NewDeleteSecretApprovalPolicyRequest(server string, sapId string) (*http.Request, error) {
+ var err error
- // UpdateSamlConfigWithBodyWithResponse performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update SAML config.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateSamlConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSamlConfigResponse, error)
+ var pathParam0 string
- // UpdateSamlConfigWithResponse performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Update SAML config.
- UpdateSamlConfigWithResponse(ctx context.Context, body UpdateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSamlConfigResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // CreateSamlConfigWithBodyWithResponse performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create SAML config.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateSamlConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSamlConfigResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // CreateSamlConfigWithResponse performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create SAML config.
- CreateSamlConfigWithResponse(ctx context.Context, body CreateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSamlConfigResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // RedirectOrgSSOWithResponse performs a GET /api/v1/sso/redirect/organizations/{orgSlug} (the `RedirectOrgSSO` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- RedirectOrgSSOWithResponse(ctx context.Context, orgSlug string, params *RedirectOrgSSOParams, reqEditors ...RequestEditorFn) (*RedirectOrgSSOResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // RedirectSamlByDomainWithResponse performs a GET /api/v1/sso/redirect/saml2/organizations/domain/{domain} (the `RedirectSamlByDomain` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- RedirectSamlByDomainWithResponse(ctx context.Context, domain string, params *RedirectSamlByDomainParams, reqEditors ...RequestEditorFn) (*RedirectSamlByDomainResponse, error)
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // RedirectSamlByOrgSlugWithResponse performs a GET /api/v1/sso/redirect/saml2/organizations/{orgSlug} (the `RedirectSamlByOrgSlug` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- RedirectSamlByOrgSlugWithResponse(ctx context.Context, orgSlug string, params *RedirectSamlByOrgSlugParams, reqEditors ...RequestEditorFn) (*RedirectSamlByOrgSlugResponse, error)
+ return req, nil
+ }
- // RedirectSamlByConfigIdWithResponse performs a GET /api/v1/sso/redirect/saml2/{samlConfigId} (the `RedirectSamlByConfigId` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- RedirectSamlByConfigIdWithResponse(ctx context.Context, samlConfigId string, params *RedirectSamlByConfigIdParams, reqEditors ...RequestEditorFn) (*RedirectSamlByConfigIdResponse, error)
+ // NewGetSecretApprovalPolicyRequest constructs an http.Request for the GetSecretApprovalPolicy method
+ func NewGetSecretApprovalPolicyRequest(server string, sapId string) (*http.Request, error) {
+ var err error
- // SamlAcsWithBodyWithResponse performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- SamlAcsWithBodyWithResponse(ctx context.Context, samlConfigId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SamlAcsResponse, error)
+ var pathParam0 string
- // SamlAcsWithFormdataBodyWithResponse performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request.
- // Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
- SamlAcsWithFormdataBodyWithResponse(ctx context.Context, samlConfigId string, body SamlAcsFormdataRequestBody, reqEditors ...RequestEditorFn) (*SamlAcsResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // CreateSecretFolderWithBodyWithResponse performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create folders.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateSecretFolderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretFolderResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // CreateSecretFolderWithResponse performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create folders.
- CreateSecretFolderWithResponse(ctx context.Context, body CreateSecretFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretFolderResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)
+ return req, nil
+ }
- // ListOrgMembershipsWithResponse performs a GET /api/v2/organizations/{organizationId}/memberships (the `ListOrgMemberships` operationId) request.
- //
- // Return organization user memberships.
- //
- // Returns a wrapper object for the known response body format(s).
- ListOrgMembershipsWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*ListOrgMembershipsResponse, error)
+ // NewUpdateSecretApprovalPolicyRequest calls the generic UpdateSecretApprovalPolicy builder with application/json body
+ func NewUpdateSecretApprovalPolicyRequest(server string, sapId string, body UpdateSecretApprovalPolicyJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateSecretApprovalPolicyRequestWithBody(server, sapId, "application/json", bodyReader)
+ }
- // GetOrgMembershipWithResponse performs a GET /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `GetOrgMembership` operationId) request.
- //
- // Get organization user membership.
- //
- // Returns a wrapper object for the known response body format(s).
- GetOrgMembershipWithResponse(ctx context.Context, organizationId string, membershipId string, reqEditors ...RequestEditorFn) (*GetOrgMembershipResponse, error)
+ // NewUpdateSecretApprovalPolicyRequestWithBody constructs an http.Request for the UpdateSecretApprovalPolicy method, with any body, and a specified content type
+ func NewUpdateSecretApprovalPolicyRequestWithBody(server string, sapId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // UpdateOrgMembershipWithBodyWithResponse performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update organization user memberships.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateOrgMembershipWithBodyWithResponse(ctx context.Context, organizationId string, membershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrgMembershipResponse, error)
+ var pathParam0 string
- // UpdateOrgMembershipWithResponse performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Update organization user memberships.
- UpdateOrgMembershipWithResponse(ctx context.Context, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrgMembershipResponse, error)
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
- // CreateSecretApprovalPolicyWithBodyWithResponse performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateSecretApprovalPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretApprovalPolicyResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // CreateSecretApprovalPolicyWithResponse performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateSecretApprovalPolicyWithResponse(ctx context.Context, body CreateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretApprovalPolicyResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // GetSecretApprovalPolicyBoardWithResponse performs a GET /api/v2/secret-approvals/board (the `GetSecretApprovalPolicyBoard` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretApprovalPolicyBoardWithResponse(ctx context.Context, params *GetSecretApprovalPolicyBoardParams, reqEditors ...RequestEditorFn) (*GetSecretApprovalPolicyBoardResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // DeleteSecretApprovalPolicyWithResponse performs a DELETE /api/v2/secret-approvals/{sapId} (the `DeleteSecretApprovalPolicy` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*DeleteSecretApprovalPolicyResponse, error)
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // GetSecretApprovalPolicyWithResponse performs a GET /api/v2/secret-approvals/{sapId} (the `GetSecretApprovalPolicy` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*GetSecretApprovalPolicyResponse, error)
+ req.Header.Add("Content-Type", contentType)
- // UpdateSecretApprovalPolicyWithBodyWithResponse performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateSecretApprovalPolicyWithBodyWithResponse(ctx context.Context, sapId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalPolicyResponse, error)
+ return req, nil
+ }
- // UpdateSecretApprovalPolicyWithResponse performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- UpdateSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, body UpdateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalPolicyResponse, error)
+ // NewCreateSecretImportRequest calls the generic CreateSecretImport builder with application/json body
+ func NewCreateSecretImportRequest(server string, body CreateSecretImportJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateSecretImportRequestWithBody(server, "application/json", bodyReader)
+ }
- // CreateSecretImportWithBodyWithResponse performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create secret imports.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateSecretImportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretImportResponse, error)
+ // NewCreateSecretImportRequestWithBody constructs an http.Request for the CreateSecretImport method, with any body, and a specified content type
+ func NewCreateSecretImportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // CreateSecretImportWithResponse performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create secret imports.
- CreateSecretImportWithResponse(ctx context.Context, body CreateSecretImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretImportResponse, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // GetCurrentUserWithResponse performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.
- //
- // Retrieve the current user on the request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
+ operationPath := fmt.Sprintf("/api/v2/secret-imports")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // CreateProjectRoleWithBodyWithResponse performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a project role.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectRoleWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectRoleResponse, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // CreateProjectRoleWithResponse performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create a project role.
- CreateProjectRoleWithResponse(ctx context.Context, projectId string, body CreateProjectRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectRoleResponse, error)
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
- // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+ req.Header.Add("Content-Type", contentType)
- // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+ return req, nil
+ }
- // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+ // NewGetCurrentUserRequest constructs an http.Request for the GetCurrentUser method
+ func NewGetCurrentUserRequest(server string) (*http.Request, error) {
+ var err error
- // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+ operationPath := fmt.Sprintf("/api/v2/users/me")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
- // BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
- // BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+ return req, nil
+ }
- // VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+ // NewRequestEmailChangeOtpRequest calls the generic RequestEmailChangeOtp builder with application/json body
+ func NewRequestEmailChangeOtpRequest(server string, body RequestEmailChangeOtpJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewRequestEmailChangeOtpRequestWithBody(server, "application/json", bodyReader)
+ }
- // VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+ // NewRequestEmailChangeOtpRequestWithBody constructs an http.Request for the RequestEmailChangeOtp method, with any body, and a specified content type
+ func NewRequestEmailChangeOtpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- // ListSecretsV4WithResponse performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
- //
- // List secrets.
- //
- // Returns a wrapper object for the known response body format(s).
- ListSecretsV4WithResponse(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*ListSecretsV4Response, error)
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
- // DeleteManySecretsV4WithBodyWithResponse performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Delete many secrets.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManySecretsV4Response, error)
+ operationPath := fmt.Sprintf("/api/v2/users/me/email-change/otp")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
- // DeleteManySecretsV4WithResponse performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Delete many secrets.
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewCreateProjectRoleRequest calls the generic CreateProjectRole builder with application/json body
+ func NewCreateProjectRoleRequest(server string, projectId string, body CreateProjectRoleJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateProjectRoleRequestWithBody(server, projectId, "application/json", bodyReader)
+ }
+
+ // NewCreateProjectRoleRequestWithBody constructs an http.Request for the CreateProjectRole method, with any body, and a specified content type
+ func NewCreateProjectRoleRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v2/workspace/%s/roles", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewLoginV3Request calls the generic LoginV3 builder with application/json body
+ func NewLoginV3Request(server string, body LoginV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewLoginV3RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewLoginV3RequestWithBody constructs an http.Request for the LoginV3 method, with any body, and a specified content type
+ func NewLoginV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/auth/login")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewSelectOrganizationV3Request calls the generic SelectOrganizationV3 builder with application/json body
+ func NewSelectOrganizationV3Request(server string, body SelectOrganizationV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewSelectOrganizationV3RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewSelectOrganizationV3RequestWithBody constructs an http.Request for the SelectOrganizationV3 method, with any body, and a specified content type
+ func NewSelectOrganizationV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/auth/select-organization")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewCompleteAccountSignupV3Request calls the generic CompleteAccountSignupV3 builder with application/json body
+ func NewCompleteAccountSignupV3Request(server string, body CompleteAccountSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCompleteAccountSignupV3RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewCompleteAccountSignupV3RequestWithBody constructs an http.Request for the CompleteAccountSignupV3 method, with any body, and a specified content type
+ func NewCompleteAccountSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/signup/complete-account")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewBeginEmailSignupV3Request calls the generic BeginEmailSignupV3 builder with application/json body
+ func NewBeginEmailSignupV3Request(server string, body BeginEmailSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewBeginEmailSignupV3RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewBeginEmailSignupV3RequestWithBody constructs an http.Request for the BeginEmailSignupV3 method, with any body, and a specified content type
+ func NewBeginEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/signup/email/signup")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewVerifyEmailSignupV3Request calls the generic VerifyEmailSignupV3 builder with application/json body
+ func NewVerifyEmailSignupV3Request(server string, body VerifyEmailSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewVerifyEmailSignupV3RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewVerifyEmailSignupV3RequestWithBody constructs an http.Request for the VerifyEmailSignupV3 method, with any body, and a specified content type
+ func NewVerifyEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/signup/email/verify")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewListSecretsV4Request constructs an http.Request for the ListSecretsV4 method
+ func NewListSecretsV4Request(server string, params *ListSecretsV4Params) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.MetadataFilter != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metadataFilter", *params.MetadataFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ProjectId != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", *params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Environment != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", *params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.SecretPath != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", *params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ViewSecretValue != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "viewSecretValue", *params.ViewSecretValue, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ExpandSecretReferences != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expandSecretReferences", *params.ExpandSecretReferences, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Recursive != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "recursive", *params.Recursive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.IncludePersonalOverrides != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includePersonalOverrides", *params.IncludePersonalOverrides, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.IncludeImports != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeImports", *params.IncludeImports, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.TagSlugs != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tagSlugs", *params.TagSlugs, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+ }
+
+ // NewDeleteManySecretsV4Request calls the generic DeleteManySecretsV4 builder with application/json body
+ func NewDeleteManySecretsV4Request(server string, body DeleteManySecretsV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewDeleteManySecretsV4RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewDeleteManySecretsV4RequestWithBody constructs an http.Request for the DeleteManySecretsV4 method, with any body, and a specified content type
+ func NewDeleteManySecretsV4RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/batch")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewUpdateManySecretsV4Request calls the generic UpdateManySecretsV4 builder with application/json body
+ func NewUpdateManySecretsV4Request(server string, body UpdateManySecretsV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateManySecretsV4RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewUpdateManySecretsV4RequestWithBody constructs an http.Request for the UpdateManySecretsV4 method, with any body, and a specified content type
+ func NewUpdateManySecretsV4RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/batch")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewCreateManySecretsV4Request calls the generic CreateManySecretsV4 builder with application/json body
+ func NewCreateManySecretsV4Request(server string, body CreateManySecretsV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateManySecretsV4RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewCreateManySecretsV4RequestWithBody constructs an http.Request for the CreateManySecretsV4 method, with any body, and a specified content type
+ func NewCreateManySecretsV4RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/batch")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewDuplicateSecretV4Request calls the generic DuplicateSecretV4 builder with application/json body
+ func NewDuplicateSecretV4Request(server string, body DuplicateSecretV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewDuplicateSecretV4RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewDuplicateSecretV4RequestWithBody constructs an http.Request for the DuplicateSecretV4 method, with any body, and a specified content type
+ func NewDuplicateSecretV4RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/duplicate")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewGetSecretByIdV4Request constructs an http.Request for the GetSecretByIdV4 method
+ func NewGetSecretByIdV4Request(server string, secretId string) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretId", secretId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/id/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+ }
+
+ // NewMoveSecretsV4Request calls the generic MoveSecretsV4 builder with application/json body
+ func NewMoveSecretsV4Request(server string, body MoveSecretsV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewMoveSecretsV4RequestWithBody(server, "application/json", bodyReader)
+ }
+
+ // NewMoveSecretsV4RequestWithBody constructs an http.Request for the MoveSecretsV4 method, with any body, and a specified content type
+ func NewMoveSecretsV4RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/move")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewDeleteSecretV4Request calls the generic DeleteSecretV4 builder with application/json body
+ func NewDeleteSecretV4Request(server string, secretName string, body DeleteSecretV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewDeleteSecretV4RequestWithBody(server, secretName, "application/json", bodyReader)
+ }
+
+ // NewDeleteSecretV4RequestWithBody constructs an http.Request for the DeleteSecretV4 method, with any body, and a specified content type
+ func NewDeleteSecretV4RequestWithBody(server string, secretName string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewGetSecretByNameV4Request constructs an http.Request for the GetSecretByNameV4 method
+ func NewGetSecretByNameV4Request(server string, secretName string, params *GetSecretByNameV4Params) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ if params.Environment != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", *params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.SecretPath != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", *params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Version != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "version", *params.Version, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Type != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", *params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ViewSecretValue != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "viewSecretValue", *params.ViewSecretValue, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ExpandSecretReferences != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expandSecretReferences", *params.ExpandSecretReferences, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.IncludeImports != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeImports", *params.IncludeImports, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+ }
+
+ // NewUpdateSecretV4Request calls the generic UpdateSecretV4 builder with application/json body
+ func NewUpdateSecretV4Request(server string, secretName string, body UpdateSecretV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateSecretV4RequestWithBody(server, secretName, "application/json", bodyReader)
+ }
+
+ // NewUpdateSecretV4RequestWithBody constructs an http.Request for the UpdateSecretV4 method, with any body, and a specified content type
+ func NewUpdateSecretV4RequestWithBody(server string, secretName string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewCreateSecretV4Request calls the generic CreateSecretV4 builder with application/json body
+ func NewCreateSecretV4Request(server string, secretName string, body CreateSecretV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateSecretV4RequestWithBody(server, secretName, "application/json", bodyReader)
+ }
+
+ // NewCreateSecretV4RequestWithBody constructs an http.Request for the CreateSecretV4 method, with any body, and a specified content type
+ func NewCreateSecretV4RequestWithBody(server string, secretName string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+ }
+
+ // NewGetSecretReferencesV4Request constructs an http.Request for the GetSecretReferencesV4 method
+ func NewGetSecretReferencesV4Request(server string, secretName string, params *GetSecretReferencesV4Params) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s/reference-dependency-tree", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ if params.SecretPath != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", *params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+ }
+
+ // NewGetSecretReferenceTreeV4Request constructs an http.Request for the GetSecretReferenceTreeV4 method
+ func NewGetSecretReferenceTreeV4Request(server string, secretName string, params *GetSecretReferenceTreeV4Params) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s/secret-reference-tree", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ if params.SecretPath != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", *params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+ }
+
+ func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
+ for _, r := range c.RequestEditors {
+ if err := r(ctx, req); err != nil {
+ return err
+ }
+ }
+ for _, r := range additionalEditors {
+ if err := r(ctx, req); err != nil {
+ return err
+ }
+ }
+ return nil
+ }
+
+ // ClientWithResponses builds on ClientInterface to offer response payloads
+ type ClientWithResponses struct {
+ ClientInterface
+ }
+
+ // NewClientWithResponses creates a new ClientWithResponses, which wraps
+ // Client with return type handling
+ func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
+ client, err := NewClient(server, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &ClientWithResponses{client}, nil
+ }
+
+ // WithBaseURL overrides the baseURL.
+ func WithBaseURL(baseURL string) ClientOption {
+ return func(c *Client) error {
+ newBaseURL, err := url.Parse(baseURL)
+ if err != nil {
+ return err
+ }
+ c.Server = newBaseURL.String()
+ return nil
+ }
+ }
+
+ // ClientWithResponsesInterface is the interface specification for the client with responses above.
+ type ClientWithResponsesInterface interface {
+
+ // GetInstanceStatusWithResponse performs a GET /api/status (the `GetInstanceStatus` operationId) request.
+ //
+ // Get the status of the Infisical instance and the features configured on it. Public and unauthenticated; used by liveness and readiness probes and exempt from the API-wide rate limit.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetInstanceStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInstanceStatusResponse, error)
+
++ // ListAccessApprovalPoliciesWithResponse performs a GET /api/v1/access-approvals/policies (the `ListAccessApprovalPolicies` operationId) request.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ ListAccessApprovalPoliciesWithResponse(ctx context.Context, params *ListAccessApprovalPoliciesParams, reqEditors ...RequestEditorFn) (*ListAccessApprovalPoliciesResponse, error)
++
++ // CreateAccessApprovalPolicyWithBodyWithResponse performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request,
++ // with any type of body and a specified content type.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ CreateAccessApprovalPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessApprovalPolicyResponse, error)
++
++ // CreateAccessApprovalPolicyWithResponse performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request.
++ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++ CreateAccessApprovalPolicyWithResponse(ctx context.Context, body CreateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessApprovalPolicyResponse, error)
++
++ // GetAccessApprovalPolicyWithResponse performs a GET /api/v1/access-approvals/policies/{policyId} (the `GetAccessApprovalPolicy` operationId) request.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ GetAccessApprovalPolicyWithResponse(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*GetAccessApprovalPolicyResponse, error)
++
++ // UpdateAccessApprovalPolicyWithBodyWithResponse performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request,
++ // with any type of body and a specified content type.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ UpdateAccessApprovalPolicyWithBodyWithResponse(ctx context.Context, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccessApprovalPolicyResponse, error)
++
++ // UpdateAccessApprovalPolicyWithResponse performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request.
++ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++ UpdateAccessApprovalPolicyWithResponse(ctx context.Context, policyId string, body UpdateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccessApprovalPolicyResponse, error)
++
++ // CreateAccessApprovalRequestWithBodyWithResponse performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request,
++ // with any type of body and a specified content type.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ CreateAccessApprovalRequestWithBodyWithResponse(ctx context.Context, params *CreateAccessApprovalRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessApprovalRequestResponse, error)
++
++ // CreateAccessApprovalRequestWithResponse performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request.
++ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++ CreateAccessApprovalRequestWithResponse(ctx context.Context, params *CreateAccessApprovalRequestParams, body CreateAccessApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessApprovalRequestResponse, error)
++
+ // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+
+ // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+
+ // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+
+ // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+
+ // CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Connection.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+
+ // CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+
+ // DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+ //
+ // Delete the specified GitHub Connection.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error)
+
++ // CreateServiceNowAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request,
++ // with any type of body and a specified content type.
++ //
++ // Create a ServiceNow Connection.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ CreateServiceNowAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceNowAppConnectionResponse, error)
++
++ // CreateServiceNowAppConnectionWithResponse performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request.
++ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++ //
++ // Create a ServiceNow Connection.
++ CreateServiceNowAppConnectionWithResponse(ctx context.Context, body CreateServiceNowAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceNowAppConnectionResponse, error)
++
+ // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error)
+
+ // AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+
+ // AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+
+ // CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+
+ // CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+
+ // LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Login with Universal Auth for machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+
+ // LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+
+ // ListProjectSecretsDetailsWithResponse performs a GET /api/v1/dashboard/secrets-details (the `ListProjectSecretsDetails` operationId) request.
+ //
+ // List project secrets details.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListProjectSecretsDetailsWithResponse(ctx context.Context, params *ListProjectSecretsDetailsParams, reqEditors ...RequestEditorFn) (*ListProjectSecretsDetailsResponse, error)
+
+ // ListEmailDomainsWithResponse performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListEmailDomainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEmailDomainsResponse, error)
+
+ // CreateEmailDomainWithBodyWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateEmailDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error)
+
+ // CreateEmailDomainWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateEmailDomainWithResponse(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error)
+
+ // VerifyEmailDomainWithResponse performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ VerifyEmailDomainWithResponse(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*VerifyEmailDomainResponse, error)
+
+ // CreateGroupWithBodyWithResponse performs a POST /api/v1/groups (the `CreateGroup` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error)
+
+ // CreateGroupWithResponse performs a POST /api/v1/groups (the `CreateGroup` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateGroupWithResponse(ctx context.Context, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error)
+
+ // RemoveUserFromGroupWithResponse performs a DELETE /api/v1/groups/{id}/users/{username} (the `RemoveUserFromGroup` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RemoveUserFromGroupWithResponse(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*RemoveUserFromGroupResponse, error)
+
+ // AddUserToGroupWithResponse performs a POST /api/v1/groups/{id}/users/{username} (the `AddUserToGroup` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ AddUserToGroupWithResponse(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*AddUserToGroupResponse, error)
+
+ // CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+
+ // CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create machine identity.
+ CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+
+ // InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+
+ // InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+
+ // VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+
+ // VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+
+ // GetOrganizationByIdWithResponse performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetOrganizationByIdWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationByIdResponse, error)
+
+ // UpdateOrganizationWithBodyWithResponse performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
+
+ // UpdateOrganizationWithResponse performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ UpdateOrganizationWithResponse(ctx context.Context, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
+
+ // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error)
+
+ // CreateProjectFolderGrantWithBodyWithResponse performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectFolderGrantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectFolderGrantResponse, error)
+
+ // CreateProjectFolderGrantWithResponse performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateProjectFolderGrantWithResponse(ctx context.Context, body CreateProjectFolderGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectFolderGrantResponse, error)
+
+ // DeleteProjectFolderGrantWithResponse performs a DELETE /api/v1/project-folder-grants/{grantId} (the `DeleteProjectFolderGrant` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteProjectFolderGrantWithResponse(ctx context.Context, grantId openapi_types.UUID, params *DeleteProjectFolderGrantParams, reqEditors ...RequestEditorFn) (*DeleteProjectFolderGrantResponse, error)
+
+ // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a new project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+
+ // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a new project.
+ CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+
+ // ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+ //
+ // List identities in a project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error)
+
+ // CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create an identity in a project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+
+ // CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create an identity in a project.
+ CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+
+ // InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Invite members to project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+
+ // InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Invite members to project.
+ InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+
+ // CreateProjectGroupMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Add a group from the organization to the project by creating a project group membership.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectGroupMembershipWithBodyWithResponse(ctx context.Context, projectId string, groupId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectGroupMembershipResponse, error)
+
+ // CreateProjectGroupMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Add a group from the organization to the project by creating a project group membership.
+ CreateProjectGroupMembershipWithResponse(ctx context.Context, projectId string, groupId openapi_types.UUID, body CreateProjectGroupMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectGroupMembershipResponse, error)
+
+ // CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create project identity membership.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+
+ // CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create project identity membership.
+ CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+
+ // CreateIdentityFolderAccessWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Grant a machine identity access to a folder.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateIdentityFolderAccessWithBodyWithResponse(ctx context.Context, projectId string, identityId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIdentityFolderAccessResponse, error)
+
+ // CreateIdentityFolderAccessWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Grant a machine identity access to a folder.
+ CreateIdentityFolderAccessWithResponse(ctx context.Context, projectId string, identityId openapi_types.UUID, body CreateIdentityFolderAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIdentityFolderAccessResponse, error)
+
+ // CreateSecretTagWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateSecretTagWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretTagResponse, error)
+
+ // CreateSecretTagWithResponse performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateSecretTagWithResponse(ctx context.Context, projectId string, body CreateSecretTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretTagResponse, error)
+
+ // ListScimGroupsWithResponse performs a GET /api/v1/scim/Groups (the `ListScimGroups` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListScimGroupsWithResponse(ctx context.Context, params *ListScimGroupsParams, reqEditors ...RequestEditorFn) (*ListScimGroupsResponse, error)
+
+ // CreateScimGroupWithBodyWithResponse performs a POST /api/v1/scim/Groups (the `CreateScimGroup` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateScimGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScimGroupResponse, error)
+
+ // CreateScimGroupWithResponse performs a POST /api/v1/scim/Groups (the `CreateScimGroup` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateScimGroupWithResponse(ctx context.Context, body CreateScimGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScimGroupResponse, error)
+
+ // DeleteScimGroupWithResponse performs a DELETE /api/v1/scim/Groups/{groupId} (the `DeleteScimGroup` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteScimGroupWithResponse(ctx context.Context, groupId string, reqEditors ...RequestEditorFn) (*DeleteScimGroupResponse, error)
+
+ // GetScimGroupWithResponse performs a GET /api/v1/scim/Groups/{groupId} (the `GetScimGroup` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetScimGroupWithResponse(ctx context.Context, groupId string, params *GetScimGroupParams, reqEditors ...RequestEditorFn) (*GetScimGroupResponse, error)
+
+ // PatchScimGroupWithBodyWithResponse performs a PATCH /api/v1/scim/Groups/{groupId} (the `PatchScimGroup` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ PatchScimGroupWithBodyWithResponse(ctx context.Context, groupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchScimGroupResponse, error)
+
+ // PatchScimGroupWithResponse performs a PATCH /api/v1/scim/Groups/{groupId} (the `PatchScimGroup` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ PatchScimGroupWithResponse(ctx context.Context, groupId string, body PatchScimGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchScimGroupResponse, error)
+
+ // ReplaceScimGroupWithBodyWithResponse performs a PUT /api/v1/scim/Groups/{groupId} (the `ReplaceScimGroup` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ReplaceScimGroupWithBodyWithResponse(ctx context.Context, groupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceScimGroupResponse, error)
+
+ // ReplaceScimGroupWithResponse performs a PUT /api/v1/scim/Groups/{groupId} (the `ReplaceScimGroup` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ ReplaceScimGroupWithResponse(ctx context.Context, groupId string, body ReplaceScimGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceScimGroupResponse, error)
+
+ // GetScimServiceProviderConfigWithResponse performs a GET /api/v1/scim/ServiceProviderConfig (the `GetScimServiceProviderConfig` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetScimServiceProviderConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetScimServiceProviderConfigResponse, error)
+
+ // ListScimUsersWithResponse performs a GET /api/v1/scim/Users (the `ListScimUsers` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListScimUsersWithResponse(ctx context.Context, params *ListScimUsersParams, reqEditors ...RequestEditorFn) (*ListScimUsersResponse, error)
+
+ // CreateScimUserWithBodyWithResponse performs a POST /api/v1/scim/Users (the `CreateScimUser` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateScimUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScimUserResponse, error)
+
+ // CreateScimUserWithResponse performs a POST /api/v1/scim/Users (the `CreateScimUser` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateScimUserWithResponse(ctx context.Context, body CreateScimUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScimUserResponse, error)
+
+ // DeleteScimUserWithResponse performs a DELETE /api/v1/scim/Users/{orgMembershipId} (the `DeleteScimUser` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteScimUserWithResponse(ctx context.Context, orgMembershipId string, reqEditors ...RequestEditorFn) (*DeleteScimUserResponse, error)
+
+ // GetScimUserWithResponse performs a GET /api/v1/scim/Users/{orgMembershipId} (the `GetScimUser` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetScimUserWithResponse(ctx context.Context, orgMembershipId string, reqEditors ...RequestEditorFn) (*GetScimUserResponse, error)
+
+ // PatchScimUserWithBodyWithResponse performs a PATCH /api/v1/scim/Users/{orgMembershipId} (the `PatchScimUser` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ PatchScimUserWithBodyWithResponse(ctx context.Context, orgMembershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchScimUserResponse, error)
+
+ // PatchScimUserWithResponse performs a PATCH /api/v1/scim/Users/{orgMembershipId} (the `PatchScimUser` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ PatchScimUserWithResponse(ctx context.Context, orgMembershipId string, body PatchScimUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchScimUserResponse, error)
+
+ // ReplaceScimUserWithBodyWithResponse performs a PUT /api/v1/scim/Users/{orgMembershipId} (the `ReplaceScimUser` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ReplaceScimUserWithBodyWithResponse(ctx context.Context, orgMembershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceScimUserResponse, error)
+
+ // ReplaceScimUserWithResponse performs a PUT /api/v1/scim/Users/{orgMembershipId} (the `ReplaceScimUser` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ ReplaceScimUserWithResponse(ctx context.Context, orgMembershipId string, body ReplaceScimUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceScimUserResponse, error)
+
+ // ListExternalGroupOrgRoleMappingsWithResponse performs a GET /api/v1/scim/group-org-role-mappings (the `ListExternalGroupOrgRoleMappings` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListExternalGroupOrgRoleMappingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListExternalGroupOrgRoleMappingsResponse, error)
+
+ // UpdateExternalGroupOrgRoleMappingsWithBodyWithResponse performs a PUT /api/v1/scim/group-org-role-mappings (the `UpdateExternalGroupOrgRoleMappings` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateExternalGroupOrgRoleMappingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExternalGroupOrgRoleMappingsResponse, error)
+
+ // UpdateExternalGroupOrgRoleMappingsWithResponse performs a PUT /api/v1/scim/group-org-role-mappings (the `UpdateExternalGroupOrgRoleMappings` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ UpdateExternalGroupOrgRoleMappingsWithResponse(ctx context.Context, body UpdateExternalGroupOrgRoleMappingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExternalGroupOrgRoleMappingsResponse, error)
+
+ // ListScimEventsWithResponse performs a GET /api/v1/scim/scim-events (the `ListScimEvents` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListScimEventsWithResponse(ctx context.Context, params *ListScimEventsParams, reqEditors ...RequestEditorFn) (*ListScimEventsResponse, error)
+
+ // ListScimTokensWithResponse performs a GET /api/v1/scim/scim-tokens (the `ListScimTokens` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListScimTokensWithResponse(ctx context.Context, params *ListScimTokensParams, reqEditors ...RequestEditorFn) (*ListScimTokensResponse, error)
+
+ // CreateScimTokenWithBodyWithResponse performs a POST /api/v1/scim/scim-tokens (the `CreateScimToken` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateScimTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScimTokenResponse, error)
+
+ // CreateScimTokenWithResponse performs a POST /api/v1/scim/scim-tokens (the `CreateScimToken` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateScimTokenWithResponse(ctx context.Context, body CreateScimTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScimTokenResponse, error)
+
+ // DeleteScimTokenWithResponse performs a DELETE /api/v1/scim/scim-tokens/{scimTokenId} (the `DeleteScimToken` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteScimTokenWithResponse(ctx context.Context, scimTokenId string, reqEditors ...RequestEditorFn) (*DeleteScimTokenResponse, error)
+
+ // ListSecretApprovalRequestsWithResponse performs a GET /api/v1/secret-approval-requests (the `ListSecretApprovalRequests` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListSecretApprovalRequestsWithResponse(ctx context.Context, params *ListSecretApprovalRequestsParams, reqEditors ...RequestEditorFn) (*ListSecretApprovalRequestsResponse, error)
+
+ // GetSecretApprovalRequestCountWithResponse performs a GET /api/v1/secret-approval-requests/count (the `GetSecretApprovalRequestCount` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetSecretApprovalRequestCountWithResponse(ctx context.Context, params *GetSecretApprovalRequestCountParams, reqEditors ...RequestEditorFn) (*GetSecretApprovalRequestCountResponse, error)
+
+ // GetSecretApprovalRequestWithResponse performs a GET /api/v1/secret-approval-requests/{id} (the `GetSecretApprovalRequest` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetSecretApprovalRequestWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSecretApprovalRequestResponse, error)
+
+ // MergeSecretApprovalRequestWithBodyWithResponse performs a POST /api/v1/secret-approval-requests/{id}/merge (the `MergeSecretApprovalRequest` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ MergeSecretApprovalRequestWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MergeSecretApprovalRequestResponse, error)
+
+ // MergeSecretApprovalRequestWithResponse performs a POST /api/v1/secret-approval-requests/{id}/merge (the `MergeSecretApprovalRequest` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ MergeSecretApprovalRequestWithResponse(ctx context.Context, id openapi_types.UUID, body MergeSecretApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*MergeSecretApprovalRequestResponse, error)
+
+ // ReviewSecretApprovalRequestWithBodyWithResponse performs a POST /api/v1/secret-approval-requests/{id}/review (the `ReviewSecretApprovalRequest` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ReviewSecretApprovalRequestWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReviewSecretApprovalRequestResponse, error)
+
+ // ReviewSecretApprovalRequestWithResponse performs a POST /api/v1/secret-approval-requests/{id}/review (the `ReviewSecretApprovalRequest` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ ReviewSecretApprovalRequestWithResponse(ctx context.Context, id openapi_types.UUID, body ReviewSecretApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ReviewSecretApprovalRequestResponse, error)
+
+ // UpdateSecretApprovalRequestStatusWithBodyWithResponse performs a POST /api/v1/secret-approval-requests/{id}/status (the `UpdateSecretApprovalRequestStatus` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateSecretApprovalRequestStatusWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalRequestStatusResponse, error)
+
+ // UpdateSecretApprovalRequestStatusWithResponse performs a POST /api/v1/secret-approval-requests/{id}/status (the `UpdateSecretApprovalRequestStatus` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ UpdateSecretApprovalRequestStatusWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSecretApprovalRequestStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalRequestStatusResponse, error)
+
+ // CreateGitHubSecretSyncWithBodyWithResponse performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Sync for the specified project environment.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateGitHubSecretSyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubSecretSyncResponse, error)
+
+ // CreateGitHubSecretSyncWithResponse performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a GitHub Sync for the specified project environment.
+ CreateGitHubSecretSyncWithResponse(ctx context.Context, body CreateGitHubSecretSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubSecretSyncResponse, error)
+
+ // DeleteGitHubSecretSyncWithResponse performs a DELETE /api/v1/secret-syncs/github/{syncId} (the `DeleteGitHubSecretSync` operationId) request.
+ //
+ // Delete the specified GitHub Sync.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams, reqEditors ...RequestEditorFn) (*DeleteGitHubSecretSyncResponse, error)
+
+ // GetGitHubSecretSyncWithResponse performs a GET /api/v1/secret-syncs/github/{syncId} (the `GetGitHubSecretSync` operationId) request.
+ //
+ // Get the specified GitHub Sync by ID.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetGitHubSecretSyncResponse, error)
+
+ // RemoveGitHubSecretSyncSecretsWithResponse performs a POST /api/v1/secret-syncs/github/{syncId}/remove-secrets (the `RemoveGitHubSecretSyncSecrets` operationId) request.
+ //
+ // Remove previously synced secrets from the specified GitHub Sync destination.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RemoveGitHubSecretSyncSecretsWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveGitHubSecretSyncSecretsResponse, error)
+
+ // SyncGitHubSecretSyncWithResponse performs a POST /api/v1/secret-syncs/github/{syncId}/sync-secrets (the `SyncGitHubSecretSync` operationId) request.
+ //
+ // Trigger a sync for the specified GitHub Sync.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ SyncGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SyncGitHubSecretSyncResponse, error)
+
+ // GetSamlConfigWithResponse performs a GET /api/v1/sso/config (the `GetSamlConfig` operationId) request.
+ //
+ // Get SAML config.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetSamlConfigWithResponse(ctx context.Context, params *GetSamlConfigParams, reqEditors ...RequestEditorFn) (*GetSamlConfigResponse, error)
+
+ // UpdateSamlConfigWithBodyWithResponse performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update SAML config.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateSamlConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSamlConfigResponse, error)
+
+ // UpdateSamlConfigWithResponse performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Update SAML config.
+ UpdateSamlConfigWithResponse(ctx context.Context, body UpdateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSamlConfigResponse, error)
+
+ // CreateSamlConfigWithBodyWithResponse performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create SAML config.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateSamlConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSamlConfigResponse, error)
+
+ // CreateSamlConfigWithResponse performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create SAML config.
+ CreateSamlConfigWithResponse(ctx context.Context, body CreateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSamlConfigResponse, error)
+
+ // OidcCallbackWithResponse performs a GET /api/v1/sso/oidc/callback (the `OidcCallback` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ OidcCallbackWithResponse(ctx context.Context, params *OidcCallbackParams, reqEditors ...RequestEditorFn) (*OidcCallbackResponse, error)
+
+ // GetOidcConfigWithResponse performs a GET /api/v1/sso/oidc/config (the `GetOidcConfig` operationId) request.
+ //
+ // Get OIDC config.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetOidcConfigWithResponse(ctx context.Context, params *GetOidcConfigParams, reqEditors ...RequestEditorFn) (*GetOidcConfigResponse, error)
+
+ // UpdateOidcConfigWithBodyWithResponse performs a PATCH /api/v1/sso/oidc/config (the `UpdateOidcConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update OIDC config.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateOidcConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOidcConfigResponse, error)
+
+ // UpdateOidcConfigWithResponse performs a PATCH /api/v1/sso/oidc/config (the `UpdateOidcConfig` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Update OIDC config.
+ UpdateOidcConfigWithResponse(ctx context.Context, body UpdateOidcConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOidcConfigResponse, error)
+
+ // CreateOidcConfigWithBodyWithResponse performs a POST /api/v1/sso/oidc/config (the `CreateOidcConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create OIDC config.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateOidcConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOidcConfigResponse, error)
+
+ // CreateOidcConfigWithResponse performs a POST /api/v1/sso/oidc/config (the `CreateOidcConfig` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create OIDC config.
+ CreateOidcConfigWithResponse(ctx context.Context, body CreateOidcConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOidcConfigResponse, error)
+
+ // RedirectOidcLoginWithResponse performs a GET /api/v1/sso/oidc/login (the `RedirectOidcLogin` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RedirectOidcLoginWithResponse(ctx context.Context, params *RedirectOidcLoginParams, reqEditors ...RequestEditorFn) (*RedirectOidcLoginResponse, error)
+
+ // RedirectOrgSSOWithResponse performs a GET /api/v1/sso/redirect/organizations/{orgSlug} (the `RedirectOrgSSO` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RedirectOrgSSOWithResponse(ctx context.Context, orgSlug string, params *RedirectOrgSSOParams, reqEditors ...RequestEditorFn) (*RedirectOrgSSOResponse, error)
+
+ // RedirectSamlByDomainWithResponse performs a GET /api/v1/sso/redirect/saml2/organizations/domain/{domain} (the `RedirectSamlByDomain` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RedirectSamlByDomainWithResponse(ctx context.Context, domain string, params *RedirectSamlByDomainParams, reqEditors ...RequestEditorFn) (*RedirectSamlByDomainResponse, error)
+
+ // RedirectSamlByOrgSlugWithResponse performs a GET /api/v1/sso/redirect/saml2/organizations/{orgSlug} (the `RedirectSamlByOrgSlug` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RedirectSamlByOrgSlugWithResponse(ctx context.Context, orgSlug string, params *RedirectSamlByOrgSlugParams, reqEditors ...RequestEditorFn) (*RedirectSamlByOrgSlugResponse, error)
+
+ // RedirectSamlByConfigIdWithResponse performs a GET /api/v1/sso/redirect/saml2/{samlConfigId} (the `RedirectSamlByConfigId` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RedirectSamlByConfigIdWithResponse(ctx context.Context, samlConfigId string, params *RedirectSamlByConfigIdParams, reqEditors ...RequestEditorFn) (*RedirectSamlByConfigIdResponse, error)
+
+ // SamlAcsWithBodyWithResponse performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ SamlAcsWithBodyWithResponse(ctx context.Context, samlConfigId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SamlAcsResponse, error)
+
+ // SamlAcsWithFormdataBodyWithResponse performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request.
+ // Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
+ SamlAcsWithFormdataBodyWithResponse(ctx context.Context, samlConfigId string, body SamlAcsFormdataRequestBody, reqEditors ...RequestEditorFn) (*SamlAcsResponse, error)
+
+ // CreateSecretFolderWithBodyWithResponse performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create folders.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateSecretFolderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretFolderResponse, error)
+
+ // CreateSecretFolderWithResponse performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create folders.
+ CreateSecretFolderWithResponse(ctx context.Context, body CreateSecretFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretFolderResponse, error)
+
+ // CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+
+ // CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+
+ // DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)
+
+ // ListOrgMembershipsWithResponse performs a GET /api/v2/organizations/{organizationId}/memberships (the `ListOrgMemberships` operationId) request.
+ //
+ // Return organization user memberships.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListOrgMembershipsWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*ListOrgMembershipsResponse, error)
+
+ // GetOrgMembershipWithResponse performs a GET /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `GetOrgMembership` operationId) request.
+ //
+ // Get organization user membership.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetOrgMembershipWithResponse(ctx context.Context, organizationId string, membershipId string, reqEditors ...RequestEditorFn) (*GetOrgMembershipResponse, error)
+
+ // UpdateOrgMembershipWithBodyWithResponse performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update organization user memberships.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateOrgMembershipWithBodyWithResponse(ctx context.Context, organizationId string, membershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrgMembershipResponse, error)
+
+ // UpdateOrgMembershipWithResponse performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Update organization user memberships.
+ UpdateOrgMembershipWithResponse(ctx context.Context, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrgMembershipResponse, error)
+
+ // CreateSecretApprovalPolicyWithBodyWithResponse performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateSecretApprovalPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretApprovalPolicyResponse, error)
+
+ // CreateSecretApprovalPolicyWithResponse performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateSecretApprovalPolicyWithResponse(ctx context.Context, body CreateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretApprovalPolicyResponse, error)
+
+ // GetSecretApprovalPolicyBoardWithResponse performs a GET /api/v2/secret-approvals/board (the `GetSecretApprovalPolicyBoard` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetSecretApprovalPolicyBoardWithResponse(ctx context.Context, params *GetSecretApprovalPolicyBoardParams, reqEditors ...RequestEditorFn) (*GetSecretApprovalPolicyBoardResponse, error)
+
+ // DeleteSecretApprovalPolicyWithResponse performs a DELETE /api/v2/secret-approvals/{sapId} (the `DeleteSecretApprovalPolicy` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*DeleteSecretApprovalPolicyResponse, error)
+
+ // GetSecretApprovalPolicyWithResponse performs a GET /api/v2/secret-approvals/{sapId} (the `GetSecretApprovalPolicy` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*GetSecretApprovalPolicyResponse, error)
+
+ // UpdateSecretApprovalPolicyWithBodyWithResponse performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateSecretApprovalPolicyWithBodyWithResponse(ctx context.Context, sapId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalPolicyResponse, error)
+
+ // UpdateSecretApprovalPolicyWithResponse performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ UpdateSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, body UpdateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalPolicyResponse, error)
+
+ // CreateSecretImportWithBodyWithResponse performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create secret imports.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateSecretImportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretImportResponse, error)
+
+ // CreateSecretImportWithResponse performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create secret imports.
+ CreateSecretImportWithResponse(ctx context.Context, body CreateSecretImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretImportResponse, error)
+
+ // GetCurrentUserWithResponse performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.
+ //
+ // Retrieve the current user on the request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
+
+ // RequestEmailChangeOtpWithBodyWithResponse performs a POST /api/v2/users/me/email-change/otp (the `RequestEmailChangeOtp` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RequestEmailChangeOtpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestEmailChangeOtpResponse, error)
+
+ // RequestEmailChangeOtpWithResponse performs a POST /api/v2/users/me/email-change/otp (the `RequestEmailChangeOtp` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ RequestEmailChangeOtpWithResponse(ctx context.Context, body RequestEmailChangeOtpJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestEmailChangeOtpResponse, error)
+
+ // CreateProjectRoleWithBodyWithResponse performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a project role.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectRoleWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectRoleResponse, error)
+
+ // CreateProjectRoleWithResponse performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a project role.
+ CreateProjectRoleWithResponse(ctx context.Context, projectId string, body CreateProjectRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectRoleResponse, error)
+
+ // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+
+ // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+
+ // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+
+ // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+
+ // CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+
+ // CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+
+ // BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+
+ // BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+
+ // VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+
+ // VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+
+ // ListSecretsV4WithResponse performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
+ //
+ // List secrets.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListSecretsV4WithResponse(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*ListSecretsV4Response, error)
+
+ // DeleteManySecretsV4WithBodyWithResponse performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Delete many secrets.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManySecretsV4Response, error)
+
+ // DeleteManySecretsV4WithResponse performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Delete many secrets.
DeleteManySecretsV4WithResponse(ctx context.Context, body DeleteManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManySecretsV4Response, error)
- // UpdateManySecretsV4WithBodyWithResponse performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update many secrets.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateManySecretsV4Response, error)
+ // UpdateManySecretsV4WithBodyWithResponse performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Update many secrets.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateManySecretsV4Response, error)
+
+ // UpdateManySecretsV4WithResponse performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Update many secrets.
+ UpdateManySecretsV4WithResponse(ctx context.Context, body UpdateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateManySecretsV4Response, error)
+
+ // CreateManySecretsV4WithBodyWithResponse performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create many secrets.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManySecretsV4Response, error)
+
+ // CreateManySecretsV4WithResponse performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create many secrets.
+ CreateManySecretsV4WithResponse(ctx context.Context, body CreateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManySecretsV4Response, error)
+
+ // DuplicateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Duplicate one or more static secrets into another environment.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DuplicateSecretV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DuplicateSecretV4Response, error)
+
+ // DuplicateSecretV4WithResponse performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Duplicate one or more static secrets into another environment.
+ DuplicateSecretV4WithResponse(ctx context.Context, body DuplicateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DuplicateSecretV4Response, error)
+
+ // GetSecretByIdV4WithResponse performs a GET /api/v4/secrets/id/{secretId} (the `GetSecretByIdV4` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetSecretByIdV4WithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*GetSecretByIdV4Response, error)
+
- // MoveSecretsV4WithBodyWithResponse performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- MoveSecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveSecretsV4Response, error)
++ // MoveSecretsV4WithBodyWithResponse performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request,
++ // with any type of body and a specified content type.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ MoveSecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveSecretsV4Response, error)
++
++ // MoveSecretsV4WithResponse performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request.
++ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++ MoveSecretsV4WithResponse(ctx context.Context, body MoveSecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*MoveSecretsV4Response, error)
++
++ // DeleteSecretV4WithBodyWithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
++ // with any type of body and a specified content type.
++ //
++ // Delete secret.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ DeleteSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error)
++
++ // DeleteSecretV4WithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
++ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++ //
++ // Delete secret.
++ DeleteSecretV4WithResponse(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error)
++
++ // GetSecretByNameV4WithResponse performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
++ //
++ // Get a secret by name.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ GetSecretByNameV4WithResponse(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*GetSecretByNameV4Response, error)
++
++ // UpdateSecretV4WithBodyWithResponse performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request,
++ // with any type of body and a specified content type.
++ //
++ // Update secret.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ UpdateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretV4Response, error)
++
++ // UpdateSecretV4WithResponse performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request.
++ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++ //
++ // Update secret.
++ UpdateSecretV4WithResponse(ctx context.Context, secretName string, body UpdateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretV4Response, error)
++
++ // CreateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
++ // with any type of body and a specified content type.
++ //
++ // Create secret.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ CreateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
++
++ // CreateSecretV4WithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
++ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++ //
++ // Create secret.
++ CreateSecretV4WithResponse(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
++
++ // GetSecretReferencesV4WithResponse performs a GET /api/v4/secrets/{secretName}/reference-dependency-tree (the `GetSecretReferencesV4` operationId) request.
++ //
++ // Get secret reference dependency tree.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ GetSecretReferencesV4WithResponse(ctx context.Context, secretName string, params *GetSecretReferencesV4Params, reqEditors ...RequestEditorFn) (*GetSecretReferencesV4Response, error)
++
++ // GetSecretReferenceTreeV4WithResponse performs a GET /api/v4/secrets/{secretName}/secret-reference-tree (the `GetSecretReferenceTreeV4` operationId) request.
++ //
++ // Get secret reference tree.
++ //
++ // Returns a wrapper object for the known response body format(s).
++ GetSecretReferenceTreeV4WithResponse(ctx context.Context, secretName string, params *GetSecretReferenceTreeV4Params, reqEditors ...RequestEditorFn) (*GetSecretReferenceTreeV4Response, error)
++}
++
++type GetInstanceStatusResponse struct {
++ Body []byte
++ HTTPResponse *http.Response
++ // JSON200 the response for an HTTP 200 `application/json` response
++ JSON200 *struct {
++ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
++ Date time.Time `json:"date"`
++ EmailConfigured *bool `json:"emailConfigured,omitempty"`
++ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
++ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
++ Message *string `json:"message,omitempty"`
++ RedisConfigured *bool `json:"redisConfigured,omitempty"`
++ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
++ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
++ }
++ // JSON400 the response for an HTTP 400 `application/json` response
++ JSON400 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON401 the response for an HTTP 401 `application/json` response
++ JSON401 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON403 the response for an HTTP 403 `application/json` response
++ JSON403 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON404 the response for an HTTP 404 `application/json` response
++ JSON404 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON422 the response for an HTTP 422 `application/json` response
++ JSON422 *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON500 the response for an HTTP 500 `application/json` response
++ JSON500 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++}
++
++// GetJSON200 returns the response for an HTTP 200 `application/json` response
++func (r GetInstanceStatusResponse) GetJSON200() *struct {
++ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
++ Date time.Time `json:"date"`
++ EmailConfigured *bool `json:"emailConfigured,omitempty"`
++ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
++ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
++ Message *string `json:"message,omitempty"`
++ RedisConfigured *bool `json:"redisConfigured,omitempty"`
++ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
++ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
++} {
++ return r.JSON200
++}
++
++// GetJSON400 returns the response for an HTTP 400 `application/json` response
++func (r GetInstanceStatusResponse) GetJSON400() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus400JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON400
++}
++
++// GetJSON401 returns the response for an HTTP 401 `application/json` response
++func (r GetInstanceStatusResponse) GetJSON401() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus401JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON401
++}
++
++// GetJSON403 returns the response for an HTTP 403 `application/json` response
++func (r GetInstanceStatusResponse) GetJSON403() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus403JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON403
++}
++
++// GetJSON404 returns the response for an HTTP 404 `application/json` response
++func (r GetInstanceStatusResponse) GetJSON404() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus404JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON404
++}
++
++// GetJSON422 returns the response for an HTTP 422 `application/json` response
++func (r GetInstanceStatusResponse) GetJSON422() *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus422JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON422
++}
++
++// GetJSON500 returns the response for an HTTP 500 `application/json` response
++func (r GetInstanceStatusResponse) GetJSON500() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetInstanceStatus500JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON500
++}
++
++// GetBody returns the raw response body bytes
++func (r GetInstanceStatusResponse) GetBody() []byte {
++ return r.Body
++}
++
++// Status returns HTTPResponse.Status
++func (r GetInstanceStatusResponse) Status() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Status
++ }
++ return http.StatusText(0)
++}
++
++// StatusCode returns HTTPResponse.StatusCode
++func (r GetInstanceStatusResponse) StatusCode() int {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.StatusCode
++ }
++ return 0
++}
++
++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
++func (r GetInstanceStatusResponse) ContentType() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Header.Get("Content-Type")
++ }
++ return ""
++}
++
++type ListAccessApprovalPoliciesResponse struct {
++ Body []byte
++ HTTPResponse *http.Response
++ // JSON200 the response for an HTTP 200 `application/json` response
++ JSON200 *struct {
++ Approvals *[]struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ Approvers *[]struct {
++ ApprovalsRequired *float32 `json:"approvalsRequired,omitempty"`
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Sequence *float32 `json:"sequence,omitempty"`
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsApproversType `json:"type"`
++ } `json:"approvers,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ Bypassers []struct {
++ Id *string `json:"id,omitempty"`
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsBypassersType `json:"type"`
++ } `json:"bypassers"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approvals,omitempty"`
++ }
++ // JSON400 the response for an HTTP 400 `application/json` response
++ JSON400 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON401 the response for an HTTP 401 `application/json` response
++ JSON401 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON403 the response for an HTTP 403 `application/json` response
++ JSON403 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON404 the response for an HTTP 404 `application/json` response
++ JSON404 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON422 the response for an HTTP 422 `application/json` response
++ JSON422 *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON500 the response for an HTTP 500 `application/json` response
++ JSON500 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++}
++
++// GetJSON200 returns the response for an HTTP 200 `application/json` response
++func (r ListAccessApprovalPoliciesResponse) GetJSON200() *struct {
++ Approvals *[]struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ Approvers *[]struct {
++ ApprovalsRequired *float32 `json:"approvalsRequired,omitempty"`
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Sequence *float32 `json:"sequence,omitempty"`
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsApproversType `json:"type"`
++ } `json:"approvers,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ Bypassers []struct {
++ Id *string `json:"id,omitempty"`
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsBypassersType `json:"type"`
++ } `json:"bypassers"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approvals,omitempty"`
++} {
++ return r.JSON200
++}
++
++// GetJSON400 returns the response for an HTTP 400 `application/json` response
++func (r ListAccessApprovalPoliciesResponse) GetJSON400() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies400JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON400
++}
++
++// GetJSON401 returns the response for an HTTP 401 `application/json` response
++func (r ListAccessApprovalPoliciesResponse) GetJSON401() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies401JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON401
++}
++
++// GetJSON403 returns the response for an HTTP 403 `application/json` response
++func (r ListAccessApprovalPoliciesResponse) GetJSON403() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies403JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON403
++}
++
++// GetJSON404 returns the response for an HTTP 404 `application/json` response
++func (r ListAccessApprovalPoliciesResponse) GetJSON404() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies404JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON404
++}
++
++// GetJSON422 returns the response for an HTTP 422 `application/json` response
++func (r ListAccessApprovalPoliciesResponse) GetJSON422() *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies422JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON422
++}
++
++// GetJSON500 returns the response for an HTTP 500 `application/json` response
++func (r ListAccessApprovalPoliciesResponse) GetJSON500() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies500JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON500
++}
++
++// GetBody returns the raw response body bytes
++func (r ListAccessApprovalPoliciesResponse) GetBody() []byte {
++ return r.Body
++}
++
++// Status returns HTTPResponse.Status
++func (r ListAccessApprovalPoliciesResponse) Status() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Status
++ }
++ return http.StatusText(0)
++}
++
++// StatusCode returns HTTPResponse.StatusCode
++func (r ListAccessApprovalPoliciesResponse) StatusCode() int {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.StatusCode
++ }
++ return 0
++}
++
++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
++func (r ListAccessApprovalPoliciesResponse) ContentType() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Header.Get("Content-Type")
++ }
++ return ""
++}
++
++type CreateAccessApprovalPolicyResponse struct {
++ Body []byte
++ HTTPResponse *http.Response
++ // JSON200 the response for an HTTP 200 `application/json` response
++ JSON200 *struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type CreateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++ }
++ // JSON400 the response for an HTTP 400 `application/json` response
++ JSON400 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON401 the response for an HTTP 401 `application/json` response
++ JSON401 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON403 the response for an HTTP 403 `application/json` response
++ JSON403 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON404 the response for an HTTP 404 `application/json` response
++ JSON404 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON422 the response for an HTTP 422 `application/json` response
++ JSON422 *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON500 the response for an HTTP 500 `application/json` response
++ JSON500 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++}
++
++// GetJSON200 returns the response for an HTTP 200 `application/json` response
++func (r CreateAccessApprovalPolicyResponse) GetJSON200() *struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type CreateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++} {
++ return r.JSON200
++}
++
++// GetJSON400 returns the response for an HTTP 400 `application/json` response
++func (r CreateAccessApprovalPolicyResponse) GetJSON400() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON400
++}
++
++// GetJSON401 returns the response for an HTTP 401 `application/json` response
++func (r CreateAccessApprovalPolicyResponse) GetJSON401() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON401
++}
++
++// GetJSON403 returns the response for an HTTP 403 `application/json` response
++func (r CreateAccessApprovalPolicyResponse) GetJSON403() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON403
++}
++
++// GetJSON404 returns the response for an HTTP 404 `application/json` response
++func (r CreateAccessApprovalPolicyResponse) GetJSON404() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON404
++}
++
++// GetJSON422 returns the response for an HTTP 422 `application/json` response
++func (r CreateAccessApprovalPolicyResponse) GetJSON422() *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON422
++}
++
++// GetJSON500 returns the response for an HTTP 500 `application/json` response
++func (r CreateAccessApprovalPolicyResponse) GetJSON500() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON500
++}
++
++// GetBody returns the raw response body bytes
++func (r CreateAccessApprovalPolicyResponse) GetBody() []byte {
++ return r.Body
++}
++
++// Status returns HTTPResponse.Status
++func (r CreateAccessApprovalPolicyResponse) Status() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Status
++ }
++ return http.StatusText(0)
++}
++
++// StatusCode returns HTTPResponse.StatusCode
++func (r CreateAccessApprovalPolicyResponse) StatusCode() int {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.StatusCode
++ }
++ return 0
++}
++
++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
++func (r CreateAccessApprovalPolicyResponse) ContentType() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Header.Get("Content-Type")
++ }
++ return ""
++}
++
++type GetAccessApprovalPolicyResponse struct {
++ Body []byte
++ HTTPResponse *http.Response
++ // JSON200 the response for an HTTP 200 `application/json` response
++ JSON200 *struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ Approvers *[]struct {
++ ApprovalsRequired *float32 `json:"approvalsRequired,omitempty"`
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Sequence *float32 `json:"sequence,omitempty"`
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalApproversType `json:"type"`
++ } `json:"approvers,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ Bypassers *[]struct {
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalBypassersType `json:"type"`
++ } `json:"bypassers,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++ }
++ // JSON400 the response for an HTTP 400 `application/json` response
++ JSON400 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON401 the response for an HTTP 401 `application/json` response
++ JSON401 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON403 the response for an HTTP 403 `application/json` response
++ JSON403 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON404 the response for an HTTP 404 `application/json` response
++ JSON404 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON422 the response for an HTTP 422 `application/json` response
++ JSON422 *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON500 the response for an HTTP 500 `application/json` response
++ JSON500 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++}
++
++// GetJSON200 returns the response for an HTTP 200 `application/json` response
++func (r GetAccessApprovalPolicyResponse) GetJSON200() *struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ Approvers *[]struct {
++ ApprovalsRequired *float32 `json:"approvalsRequired,omitempty"`
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Sequence *float32 `json:"sequence,omitempty"`
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalApproversType `json:"type"`
++ } `json:"approvers,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ Bypassers *[]struct {
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalBypassersType `json:"type"`
++ } `json:"bypassers,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++} {
++ return r.JSON200
++}
++
++// GetJSON400 returns the response for an HTTP 400 `application/json` response
++func (r GetAccessApprovalPolicyResponse) GetJSON400() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON400
++}
++
++// GetJSON401 returns the response for an HTTP 401 `application/json` response
++func (r GetAccessApprovalPolicyResponse) GetJSON401() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON401
++}
++
++// GetJSON403 returns the response for an HTTP 403 `application/json` response
++func (r GetAccessApprovalPolicyResponse) GetJSON403() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON403
++}
++
++// GetJSON404 returns the response for an HTTP 404 `application/json` response
++func (r GetAccessApprovalPolicyResponse) GetJSON404() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON404
++}
++
++// GetJSON422 returns the response for an HTTP 422 `application/json` response
++func (r GetAccessApprovalPolicyResponse) GetJSON422() *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON422
++}
++
++// GetJSON500 returns the response for an HTTP 500 `application/json` response
++func (r GetAccessApprovalPolicyResponse) GetJSON500() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON500
++}
++
++// GetBody returns the raw response body bytes
++func (r GetAccessApprovalPolicyResponse) GetBody() []byte {
++ return r.Body
++}
++
++// Status returns HTTPResponse.Status
++func (r GetAccessApprovalPolicyResponse) Status() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Status
++ }
++ return http.StatusText(0)
++}
++
++// StatusCode returns HTTPResponse.StatusCode
++func (r GetAccessApprovalPolicyResponse) StatusCode() int {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.StatusCode
++ }
++ return 0
++}
++
++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
++func (r GetAccessApprovalPolicyResponse) ContentType() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Header.Get("Content-Type")
++ }
++ return ""
++}
++
++type UpdateAccessApprovalPolicyResponse struct {
++ Body []byte
++ HTTPResponse *http.Response
++ // JSON200 the response for an HTTP 200 `application/json` response
++ JSON200 *struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type UpdateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++ }
++ // JSON400 the response for an HTTP 400 `application/json` response
++ JSON400 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON401 the response for an HTTP 401 `application/json` response
++ JSON401 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON403 the response for an HTTP 403 `application/json` response
++ JSON403 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON404 the response for an HTTP 404 `application/json` response
++ JSON404 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON422 the response for an HTTP 422 `application/json` response
++ JSON422 *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON500 the response for an HTTP 500 `application/json` response
++ JSON500 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++}
++
++// GetJSON200 returns the response for an HTTP 200 `application/json` response
++func (r UpdateAccessApprovalPolicyResponse) GetJSON200() *struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type UpdateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++} {
++ return r.JSON200
++}
+
- // MoveSecretsV4WithResponse performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- MoveSecretsV4WithResponse(ctx context.Context, body MoveSecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*MoveSecretsV4Response, error)
++// GetJSON400 returns the response for an HTTP 400 `application/json` response
++func (r UpdateAccessApprovalPolicyResponse) GetJSON400() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON400
++}
+
- // DeleteSecretV4WithBodyWithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Delete secret.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error)
++// GetJSON401 returns the response for an HTTP 401 `application/json` response
++func (r UpdateAccessApprovalPolicyResponse) GetJSON401() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON401
++}
+
- // DeleteSecretV4WithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Delete secret.
- DeleteSecretV4WithResponse(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error)
++// GetJSON403 returns the response for an HTTP 403 `application/json` response
++func (r UpdateAccessApprovalPolicyResponse) GetJSON403() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON403
++}
+
- // GetSecretByNameV4WithResponse performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
- //
- // Get a secret by name.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretByNameV4WithResponse(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*GetSecretByNameV4Response, error)
++// GetJSON404 returns the response for an HTTP 404 `application/json` response
++func (r UpdateAccessApprovalPolicyResponse) GetJSON404() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON404
++}
+
- // UpdateSecretV4WithBodyWithResponse performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update secret.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretV4Response, error)
++// GetJSON422 returns the response for an HTTP 422 `application/json` response
++func (r UpdateAccessApprovalPolicyResponse) GetJSON422() *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON422
++}
+
- // UpdateSecretV4WithResponse performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Update secret.
- UpdateSecretV4WithResponse(ctx context.Context, secretName string, body UpdateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretV4Response, error)
++// GetJSON500 returns the response for an HTTP 500 `application/json` response
++func (r UpdateAccessApprovalPolicyResponse) GetJSON500() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON500
++}
+
- // CreateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create secret.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
++// GetBody returns the raw response body bytes
++func (r UpdateAccessApprovalPolicyResponse) GetBody() []byte {
++ return r.Body
++}
+
- // CreateSecretV4WithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create secret.
- CreateSecretV4WithResponse(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
++// Status returns HTTPResponse.Status
++func (r UpdateAccessApprovalPolicyResponse) Status() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Status
++ }
++ return http.StatusText(0)
++}
+
- // GetSecretReferencesV4WithResponse performs a GET /api/v4/secrets/{secretName}/reference-dependency-tree (the `GetSecretReferencesV4` operationId) request.
- //
- // Get secret reference dependency tree.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretReferencesV4WithResponse(ctx context.Context, secretName string, params *GetSecretReferencesV4Params, reqEditors ...RequestEditorFn) (*GetSecretReferencesV4Response, error)
++// StatusCode returns HTTPResponse.StatusCode
++func (r UpdateAccessApprovalPolicyResponse) StatusCode() int {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.StatusCode
++ }
++ return 0
++}
+
- // GetSecretReferenceTreeV4WithResponse performs a GET /api/v4/secrets/{secretName}/secret-reference-tree (the `GetSecretReferenceTreeV4` operationId) request.
- //
- // Get secret reference tree.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretReferenceTreeV4WithResponse(ctx context.Context, secretName string, params *GetSecretReferenceTreeV4Params, reqEditors ...RequestEditorFn) (*GetSecretReferenceTreeV4Response, error)
++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
++func (r UpdateAccessApprovalPolicyResponse) ContentType() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Header.Get("Content-Type")
++ }
++ return ""
+ }
+
-type GetInstanceStatusResponse struct {
++type CreateAccessApprovalRequestResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
- Date time.Time `json:"date"`
- EmailConfigured *bool `json:"emailConfigured,omitempty"`
- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
- Message *string `json:"message,omitempty"`
- RedisConfigured *bool `json:"redisConfigured,omitempty"`
- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
++ Approval struct {
++ ApprovedAt *time.Time `json:"approvedAt,omitempty"`
++ ApprovedByUserId *openapi_types.UUID `json:"approvedByUserId,omitempty"`
++ BypassReason *string `json:"bypassReason,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ EditNote *string `json:"editNote,omitempty"`
++ EditedByUserId *openapi_types.UUID `json:"editedByUserId,omitempty"`
++ ExpiresAt *time.Time `json:"expiresAt,omitempty"`
++ Id openapi_types.UUID `json:"id"`
++ IsTemporary bool `json:"isTemporary"`
++ Note *string `json:"note,omitempty"`
++ Permissions interface{} `json:"permissions,omitempty"`
++ PolicyId openapi_types.UUID `json:"policyId"`
++ PrivilegeDeletedAt *time.Time `json:"privilegeDeletedAt,omitempty"`
++ PrivilegeId *openapi_types.UUID `json:"privilegeId,omitempty"`
++ RequestedByUserId openapi_types.UUID `json:"requestedByUserId"`
++ RevokedAt *time.Time `json:"revokedAt,omitempty"`
++ RevokedByUserId *openapi_types.UUID `json:"revokedByUserId,omitempty"`
++ Status *string `json:"status,omitempty"`
++ TemporaryRange *string `json:"temporaryRange,omitempty"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus400JSONResponseBodyStatusCode `json:"statusCode"`
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus401JSONResponseBodyStatusCode `json:"statusCode"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus403JSONResponseBodyStatusCode `json:"statusCode"`
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus404JSONResponseBodyStatusCode `json:"statusCode"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus422JSONResponseBodyStatusCode `json:"statusCode"`
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus500JSONResponseBodyStatusCode `json:"statusCode"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r GetInstanceStatusResponse) GetJSON200() *struct {
- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
- Date time.Time `json:"date"`
- EmailConfigured *bool `json:"emailConfigured,omitempty"`
- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
- Message *string `json:"message,omitempty"`
- RedisConfigured *bool `json:"redisConfigured,omitempty"`
- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
++func (r CreateAccessApprovalRequestResponse) GetJSON200() *struct {
++ Approval struct {
++ ApprovedAt *time.Time `json:"approvedAt,omitempty"`
++ ApprovedByUserId *openapi_types.UUID `json:"approvedByUserId,omitempty"`
++ BypassReason *string `json:"bypassReason,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ EditNote *string `json:"editNote,omitempty"`
++ EditedByUserId *openapi_types.UUID `json:"editedByUserId,omitempty"`
++ ExpiresAt *time.Time `json:"expiresAt,omitempty"`
++ Id openapi_types.UUID `json:"id"`
++ IsTemporary bool `json:"isTemporary"`
++ Note *string `json:"note,omitempty"`
++ Permissions interface{} `json:"permissions,omitempty"`
++ PolicyId openapi_types.UUID `json:"policyId"`
++ PrivilegeDeletedAt *time.Time `json:"privilegeDeletedAt,omitempty"`
++ PrivilegeId *openapi_types.UUID `json:"privilegeId,omitempty"`
++ RequestedByUserId openapi_types.UUID `json:"requestedByUserId"`
++ RevokedAt *time.Time `json:"revokedAt,omitempty"`
++ RevokedByUserId *openapi_types.UUID `json:"revokedByUserId,omitempty"`
++ Status *string `json:"status,omitempty"`
++ TemporaryRange *string `json:"temporaryRange,omitempty"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r GetInstanceStatusResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus400JSONResponseBodyStatusCode `json:"statusCode"`
++func (r CreateAccessApprovalRequestResponse) GetJSON400() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r GetInstanceStatusResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus401JSONResponseBodyStatusCode `json:"statusCode"`
++func (r CreateAccessApprovalRequestResponse) GetJSON401() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r GetInstanceStatusResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus403JSONResponseBodyStatusCode `json:"statusCode"`
++func (r CreateAccessApprovalRequestResponse) GetJSON403() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r GetInstanceStatusResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus404JSONResponseBodyStatusCode `json:"statusCode"`
++func (r CreateAccessApprovalRequestResponse) GetJSON404() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r GetInstanceStatusResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus422JSONResponseBodyStatusCode `json:"statusCode"`
++func (r CreateAccessApprovalRequestResponse) GetJSON422() *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r GetInstanceStatusResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetInstanceStatus500JSONResponseBodyStatusCode `json:"statusCode"`
++func (r CreateAccessApprovalRequestResponse) GetJSON500() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
-func (r GetInstanceStatusResponse) GetBody() []byte {
++func (r CreateAccessApprovalRequestResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
-func (r GetInstanceStatusResponse) Status() string {
++func (r CreateAccessApprovalRequestResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
-func (r GetInstanceStatusResponse) StatusCode() int {
++func (r CreateAccessApprovalRequestResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetInstanceStatusResponse) ContentType() string {
++func (r CreateAccessApprovalRequestResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type AdminBootstrapResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ Identity struct {
+ Credentials struct {
+ Token string `json:"token"`
+ } `json:"credentials"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"identity"`
+ Message string `json:"message"`
+ Organization struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"organization"`
+ User struct {
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ LastName *string `json:"lastName,omitempty"`
+ SuperAdmin *bool `json:"superAdmin,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r AdminBootstrapResponse) GetJSON200() *struct {
+ Identity struct {
+ Credentials struct {
+ Token string `json:"token"`
+ } `json:"credentials"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"identity"`
+ Message string `json:"message"`
+ Organization struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"organization"`
+ User struct {
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ LastName *string `json:"lastName,omitempty"`
+ SuperAdmin *bool `json:"superAdmin,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r AdminBootstrapResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r AdminBootstrapResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r AdminBootstrapResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r AdminBootstrapResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r AdminBootstrapResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r AdminBootstrapResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
+ func (r AdminBootstrapResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r AdminBootstrapResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r AdminBootstrapResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r AdminBootstrapResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type UpdateAdminConfigResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ Config struct {
+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AllowedStorageHostnames *[]string `json:"allowedStorageHostnames,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Initialized *bool `json:"initialized,omitempty"`
+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
+ PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"passwordPolicy"`
+ Pkcs12PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"pkcs12PasswordPolicy"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+ } `json:"config"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r UpdateAdminConfigResponse) GetJSON200() *struct {
+ Config struct {
+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AllowedStorageHostnames *[]string `json:"allowedStorageHostnames,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Initialized *bool `json:"initialized,omitempty"`
+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
+ PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"passwordPolicy"`
+ Pkcs12PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"pkcs12PasswordPolicy"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+ } `json:"config"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r UpdateAdminConfigResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r UpdateAdminConfigResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r UpdateAdminConfigResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r UpdateAdminConfigResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r UpdateAdminConfigResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r UpdateAdminConfigResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
+ func (r UpdateAdminConfigResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r UpdateAdminConfigResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r UpdateAdminConfigResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r UpdateAdminConfigResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type CreateGitHubAppConnectionResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r CreateGitHubAppConnectionResponse) GetJSON200() *struct {
+ AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r CreateGitHubAppConnectionResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r CreateGitHubAppConnectionResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r CreateGitHubAppConnectionResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r CreateGitHubAppConnectionResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r CreateGitHubAppConnectionResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r CreateGitHubAppConnectionResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
+ func (r CreateGitHubAppConnectionResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r CreateGitHubAppConnectionResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r CreateGitHubAppConnectionResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r CreateGitHubAppConnectionResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type DeleteGitHubAppConnectionResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r DeleteGitHubAppConnectionResponse) GetJSON200() *struct {
+ AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r DeleteGitHubAppConnectionResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r DeleteGitHubAppConnectionResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r DeleteGitHubAppConnectionResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r DeleteGitHubAppConnectionResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r DeleteGitHubAppConnectionResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r DeleteGitHubAppConnectionResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
+ func (r DeleteGitHubAppConnectionResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r DeleteGitHubAppConnectionResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r DeleteGitHubAppConnectionResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r DeleteGitHubAppConnectionResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
++type CreateServiceNowAppConnectionResponse struct {
++ Body []byte
++ HTTPResponse *http.Response
++ // JSON200 the response for an HTTP 200 `application/json` response
++ JSON200 *struct {
++ AppConnection CreateServiceNowAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
++ }
++ // JSON400 the response for an HTTP 400 `application/json` response
++ JSON400 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON401 the response for an HTTP 401 `application/json` response
++ JSON401 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON403 the response for an HTTP 403 `application/json` response
++ JSON403 *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON404 the response for an HTTP 404 `application/json` response
++ JSON404 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON422 the response for an HTTP 422 `application/json` response
++ JSON422 *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ // JSON500 the response for an HTTP 500 `application/json` response
++ JSON500 *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++}
++
++// GetJSON200 returns the response for an HTTP 200 `application/json` response
++func (r CreateServiceNowAppConnectionResponse) GetJSON200() *struct {
++ AppConnection CreateServiceNowAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
++} {
++ return r.JSON200
++}
++
++// GetJSON400 returns the response for an HTTP 400 `application/json` response
++func (r CreateServiceNowAppConnectionResponse) GetJSON400() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON400
++}
++
++// GetJSON401 returns the response for an HTTP 401 `application/json` response
++func (r CreateServiceNowAppConnectionResponse) GetJSON401() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON401
++}
++
++// GetJSON403 returns the response for an HTTP 403 `application/json` response
++func (r CreateServiceNowAppConnectionResponse) GetJSON403() *struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON403
++}
++
++// GetJSON404 returns the response for an HTTP 404 `application/json` response
++func (r CreateServiceNowAppConnectionResponse) GetJSON404() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON404
++}
++
++// GetJSON422 returns the response for an HTTP 422 `application/json` response
++func (r CreateServiceNowAppConnectionResponse) GetJSON422() *struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON422
++}
++
++// GetJSON500 returns the response for an HTTP 500 `application/json` response
++func (r CreateServiceNowAppConnectionResponse) GetJSON500() *struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
++} {
++ return r.JSON500
++}
++
++// GetBody returns the raw response body bytes
++func (r CreateServiceNowAppConnectionResponse) GetBody() []byte {
++ return r.Body
++}
++
++// Status returns HTTPResponse.Status
++func (r CreateServiceNowAppConnectionResponse) Status() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Status
++ }
++ return http.StatusText(0)
++}
++
++// StatusCode returns HTTPResponse.StatusCode
++func (r CreateServiceNowAppConnectionResponse) StatusCode() int {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.StatusCode
++ }
++ return 0
++}
++
++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
++func (r CreateServiceNowAppConnectionResponse) ContentType() string {
++ if r.HTTPResponse != nil {
++ return r.HTTPResponse.Header.Get("Content-Type")
++ }
++ return ""
++}
++
+ type RefreshAuthTokenResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ OrganizationId *string `json:"organizationId,omitempty"`
+ RefreshToken *string `json:"refreshToken,omitempty"`
+ SubOrganizationId *string `json:"subOrganizationId,omitempty"`
+ Token string `json:"token"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r RefreshAuthTokenResponse) GetJSON200() *struct {
+ OrganizationId *string `json:"organizationId,omitempty"`
+ RefreshToken *string `json:"refreshToken,omitempty"`
+ SubOrganizationId *string `json:"subOrganizationId,omitempty"`
+ Token string `json:"token"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r RefreshAuthTokenResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r RefreshAuthTokenResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r RefreshAuthTokenResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r RefreshAuthTokenResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r RefreshAuthTokenResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r RefreshAuthTokenResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
+ func (r RefreshAuthTokenResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r RefreshAuthTokenResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r RefreshAuthTokenResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r RefreshAuthTokenResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type AttachUniversalAuthResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ IdentityUniversalAuth struct {
+ AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`
+ AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`
+ AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`
+ AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`
+ AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`
+ ClientId string `json:"clientId"`
+ ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ IdentityId openapi_types.UUID `json:"identityId"`
+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identityUniversalAuth"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r AttachUniversalAuthResponse) GetJSON200() *struct {
+ IdentityUniversalAuth struct {
+ AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`
+ AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`
+ AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`
+ AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`
+ AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`
+ ClientId string `json:"clientId"`
+ ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ IdentityId openapi_types.UUID `json:"identityId"`
+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identityUniversalAuth"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r AttachUniversalAuthResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r AttachUniversalAuthResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r AttachUniversalAuthResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r AttachUniversalAuthResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r AttachUniversalAuthResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r AttachUniversalAuthResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
+ func (r AttachUniversalAuthResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r AttachUniversalAuthResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r AttachUniversalAuthResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r AttachUniversalAuthResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type CreateUniversalAuthClientSecretResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ ClientSecret string `json:"clientSecret"`
+ ClientSecretData struct {
+ ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`
+ ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`
+ ClientSecretPrefix string `json:"clientSecretPrefix"`
+ ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description string `json:"description"`
+ Id string `json:"id"`
+ IdentityUAId openapi_types.UUID `json:"identityUAId"`
+ IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"clientSecretData"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r CreateUniversalAuthClientSecretResponse) GetJSON200() *struct {
+ ClientSecret string `json:"clientSecret"`
+ ClientSecretData struct {
+ ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`
+ ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`
+ ClientSecretPrefix string `json:"clientSecretPrefix"`
+ ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description string `json:"description"`
+ Id string `json:"id"`
+ IdentityUAId openapi_types.UUID `json:"identityUAId"`
+ IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"clientSecretData"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r CreateUniversalAuthClientSecretResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r CreateUniversalAuthClientSecretResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r CreateUniversalAuthClientSecretResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r CreateUniversalAuthClientSecretResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r CreateUniversalAuthClientSecretResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r CreateUniversalAuthClientSecretResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
+ func (r CreateUniversalAuthClientSecretResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r CreateUniversalAuthClientSecretResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r CreateUniversalAuthClientSecretResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r CreateUniversalAuthClientSecretResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type LoginWithUniversalAuthResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ AccessToken string `json:"accessToken"`
+ AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`
+ ExpiresIn float32 `json:"expiresIn"`
+ TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r LoginWithUniversalAuthResponse) GetJSON200() *struct {
+ AccessToken string `json:"accessToken"`
+ AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`
+ ExpiresIn float32 `json:"expiresIn"`
+ TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r LoginWithUniversalAuthResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
+
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r LoginWithUniversalAuthResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
+
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r LoginWithUniversalAuthResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
+
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r LoginWithUniversalAuthResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
+
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r LoginWithUniversalAuthResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
+
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r LoginWithUniversalAuthResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
+
+ // GetBody returns the raw response body bytes
+ func (r LoginWithUniversalAuthResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r LoginWithUniversalAuthResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r LoginWithUniversalAuthResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r LoginWithUniversalAuthResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type ListProjectSecretsDetailsResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ DynamicSecrets *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ DefaultTTL string `json:"defaultTTL"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ GatewayV2Id *openapi_types.UUID `json:"gatewayV2Id,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ MaxTTL *string `json:"maxTTL,omitempty"`
+ Metadata *[]struct {
+ Key string `json:"key"`
+ Value *string `json:"value,omitempty"`
+ } `json:"metadata,omitempty"`
+ Name string `json:"name"`
+ ProjectGatewayId *openapi_types.UUID `json:"projectGatewayId,omitempty"`
+ Status *string `json:"status,omitempty"`
+ StatusDetails *string `json:"statusDetails,omitempty"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UsernameTemplate *string `json:"usernameTemplate,omitempty"`
+ Version float32 `json:"version"`
+ } `json:"dynamicSecrets,omitempty"`
+ Folders *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ EnvId openapi_types.UUID `json:"envId"`
+ Id openapi_types.UUID `json:"id"`
+ IsReserved *bool `json:"isReserved,omitempty"`
+ LastSecretModified *time.Time `json:"lastSecretModified,omitempty"`
+ Name string `json:"name"`
+ ParentId *openapi_types.UUID `json:"parentId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"folders,omitempty"`
+ HoneyTokens *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Environment struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder struct {
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ SecretsMapping interface{} `json:"secretsMapping,omitempty"`
+ Status *string `json:"status,omitempty"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"honeyTokens,omitempty"`
+ ImportedBy *[]struct {
+ Environment struct {
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folders []struct {
+ IsImported bool `json:"isImported"`
+ Name string `json:"name"`
+ Secrets *[]struct {
+ ReferencedSecretEnv string `json:"referencedSecretEnv"`
+ ReferencedSecretKey string `json:"referencedSecretKey"`
+ SecretId string `json:"secretId"`
+ } `json:"secrets,omitempty"`
+ } `json:"folders"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"project,omitempty"`
+ } `json:"importedBy,omitempty"`
+ Imports *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ Id openapi_types.UUID `json:"id"`
+ ImportEnv struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ ProjectId *string `json:"projectId,omitempty"`
+ Slug string `json:"slug"`
+ } `json:"importEnv"`
+ ImportPath string `json:"importPath"`
+ IsAccessRevoked bool `json:"isAccessRevoked"`
+ IsReplication *bool `json:"isReplication,omitempty"`
+ IsReplicationSuccess *bool `json:"isReplicationSuccess,omitempty"`
+ IsReserved *bool `json:"isReserved,omitempty"`
+ LastReplicated *time.Time `json:"lastReplicated,omitempty"`
+ Position float32 `json:"position"`
+ ReplicationStatus *string `json:"replicationStatus,omitempty"`
+ SourceProjectName *string `json:"sourceProjectName,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"imports,omitempty"`
+ ProxiedServices *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials []struct {
+ DynamicSecretField *string `json:"dynamicSecretField,omitempty"`
+ DynamicSecretName *string `json:"dynamicSecretName,omitempty"`
+ HeaderName *string `json:"headerName,omitempty"`
+ HeaderPrefix *string `json:"headerPrefix,omitempty"`
+ HeaderPurpose *string `json:"headerPurpose,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ PlaceholderKey *string `json:"placeholderKey,omitempty"`
+ PlaceholderValue *string `json:"placeholderValue,omitempty"`
+ Role string `json:"role"`
+ SecretKey *string `json:"secretKey,omitempty"`
+ ServiceId openapi_types.UUID `json:"serviceId"`
+ SubstitutionSurfaces *[]string `json:"substitutionSurfaces,omitempty"`
+ } `json:"credentials"`
+ Environment struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder struct {
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ HostPattern string `json:"hostPattern"`
+ Id openapi_types.UUID `json:"id"`
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`
+ Name string `json:"name"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"proxiedServices,omitempty"`
+ SecretRotations *[]ListProjectSecretsDetails200JSONResponseBody_SecretRotations_Item `json:"secretRotations,omitempty"`
+ Secrets *[]struct {
+ UnderscoreId string `json:"_id"`
+ Actor *struct {
+ ActorId *string `json:"actorId,omitempty"`
+ ActorType *string `json:"actorType,omitempty"`
+ GroupId *string `json:"groupId,omitempty"`
+ MembershipId *string `json:"membershipId,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"actor,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Environment string `json:"environment"`
+ Id string `json:"id"`
+ IsEmpty bool `json:"isEmpty"`
+ IsHoneyTokenSecret *bool `json:"isHoneyTokenSecret,omitempty"`
+ IsRotatedSecret *bool `json:"isRotatedSecret,omitempty"`
+ Reminder *struct {
+ CreatedAt time.Time `json:"createdAt"`
+ FromDate *time.Time `json:"fromDate,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Message *string `json:"message,omitempty"`
+ NextReminderDate time.Time `json:"nextReminderDate"`
+ Recipients *[]string `json:"recipients,omitempty"`
+ RepeatDays *float32 `json:"repeatDays,omitempty"`
+ SecretId *openapi_types.UUID `json:"secretId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"reminder,omitempty"`
+ RotationId *openapi_types.UUID `json:"rotationId,omitempty"`
+ SecretComment string `json:"secretComment"`
+ SecretKey string `json:"secretKey"`
+ SecretMetadata *[]struct {
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ Key string `json:"key"`
+ Value *string `json:"value,omitempty"`
+ } `json:"secretMetadata,omitempty"`
+ SecretPath *string `json:"secretPath,omitempty"`
+ SecretReminderNote *string `json:"secretReminderNote,omitempty"`
+ SecretReminderRepeatDays *float32 `json:"secretReminderRepeatDays,omitempty"`
+ SecretValueHidden bool `json:"secretValueHidden"`
+ SkipMultilineEncoding *bool `json:"skipMultilineEncoding,omitempty"`
+ Tags *[]struct {
+ Color *string `json:"color,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"tags,omitempty"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version float32 `json:"version"`
+ Workspace string `json:"workspace"`
+ } `json:"secrets,omitempty"`
+ TotalCount float32 `json:"totalCount"`
+ TotalDynamicSecretCount *float32 `json:"totalDynamicSecretCount,omitempty"`
+ TotalFolderCount *float32 `json:"totalFolderCount,omitempty"`
+ TotalHoneyTokenCount *float32 `json:"totalHoneyTokenCount,omitempty"`
+ TotalImportCount *float32 `json:"totalImportCount,omitempty"`
+ TotalProxiedServiceCount *float32 `json:"totalProxiedServiceCount,omitempty"`
+ TotalSecretCount *float32 `json:"totalSecretCount,omitempty"`
+ TotalSecretRotationCount *float32 `json:"totalSecretRotationCount,omitempty"`
+ UsedBySecretSyncs *[]struct {
+ Destination string `json:"destination"`
+ Environment string `json:"environment"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Path string `json:"path"`
+ } `json:"usedBySecretSyncs,omitempty"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
+
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r ListProjectSecretsDetailsResponse) GetJSON200() *struct {
+ DynamicSecrets *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ DefaultTTL string `json:"defaultTTL"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ GatewayV2Id *openapi_types.UUID `json:"gatewayV2Id,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ MaxTTL *string `json:"maxTTL,omitempty"`
+ Metadata *[]struct {
+ Key string `json:"key"`
+ Value *string `json:"value,omitempty"`
+ } `json:"metadata,omitempty"`
+ Name string `json:"name"`
+ ProjectGatewayId *openapi_types.UUID `json:"projectGatewayId,omitempty"`
+ Status *string `json:"status,omitempty"`
+ StatusDetails *string `json:"statusDetails,omitempty"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UsernameTemplate *string `json:"usernameTemplate,omitempty"`
+ Version float32 `json:"version"`
+ } `json:"dynamicSecrets,omitempty"`
+ Folders *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ EnvId openapi_types.UUID `json:"envId"`
+ Id openapi_types.UUID `json:"id"`
+ IsReserved *bool `json:"isReserved,omitempty"`
+ LastSecretModified *time.Time `json:"lastSecretModified,omitempty"`
+ Name string `json:"name"`
+ ParentId *openapi_types.UUID `json:"parentId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"folders,omitempty"`
+ HoneyTokens *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Environment struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder struct {
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ SecretsMapping interface{} `json:"secretsMapping,omitempty"`
+ Status *string `json:"status,omitempty"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"honeyTokens,omitempty"`
+ ImportedBy *[]struct {
+ Environment struct {
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folders []struct {
+ IsImported bool `json:"isImported"`
+ Name string `json:"name"`
+ Secrets *[]struct {
+ ReferencedSecretEnv string `json:"referencedSecretEnv"`
+ ReferencedSecretKey string `json:"referencedSecretKey"`
+ SecretId string `json:"secretId"`
+ } `json:"secrets,omitempty"`
+ } `json:"folders"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"project,omitempty"`
+ } `json:"importedBy,omitempty"`
+ Imports *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ Id openapi_types.UUID `json:"id"`
+ ImportEnv struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ ProjectId *string `json:"projectId,omitempty"`
+ Slug string `json:"slug"`
+ } `json:"importEnv"`
+ ImportPath string `json:"importPath"`
+ IsAccessRevoked bool `json:"isAccessRevoked"`
+ IsReplication *bool `json:"isReplication,omitempty"`
+ IsReplicationSuccess *bool `json:"isReplicationSuccess,omitempty"`
+ IsReserved *bool `json:"isReserved,omitempty"`
+ LastReplicated *time.Time `json:"lastReplicated,omitempty"`
+ Position float32 `json:"position"`
+ ReplicationStatus *string `json:"replicationStatus,omitempty"`
+ SourceProjectName *string `json:"sourceProjectName,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"imports,omitempty"`
+ ProxiedServices *[]struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials []struct {
+ DynamicSecretField *string `json:"dynamicSecretField,omitempty"`
+ DynamicSecretName *string `json:"dynamicSecretName,omitempty"`
+ HeaderName *string `json:"headerName,omitempty"`
+ HeaderPrefix *string `json:"headerPrefix,omitempty"`
+ HeaderPurpose *string `json:"headerPurpose,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ PlaceholderKey *string `json:"placeholderKey,omitempty"`
+ PlaceholderValue *string `json:"placeholderValue,omitempty"`
+ Role string `json:"role"`
+ SecretKey *string `json:"secretKey,omitempty"`
+ ServiceId openapi_types.UUID `json:"serviceId"`
+ SubstitutionSurfaces *[]string `json:"substitutionSurfaces,omitempty"`
+ } `json:"credentials"`
+ Environment struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder struct {
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ HostPattern string `json:"hostPattern"`
+ Id openapi_types.UUID `json:"id"`
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`
+ Name string `json:"name"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"proxiedServices,omitempty"`
+ SecretRotations *[]ListProjectSecretsDetails200JSONResponseBody_SecretRotations_Item `json:"secretRotations,omitempty"`
+ Secrets *[]struct {
+ UnderscoreId string `json:"_id"`
+ Actor *struct {
+ ActorId *string `json:"actorId,omitempty"`
+ ActorType *string `json:"actorType,omitempty"`
+ GroupId *string `json:"groupId,omitempty"`
+ MembershipId *string `json:"membershipId,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"actor,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Environment string `json:"environment"`
+ Id string `json:"id"`
+ IsEmpty bool `json:"isEmpty"`
+ IsHoneyTokenSecret *bool `json:"isHoneyTokenSecret,omitempty"`
+ IsRotatedSecret *bool `json:"isRotatedSecret,omitempty"`
+ Reminder *struct {
+ CreatedAt time.Time `json:"createdAt"`
+ FromDate *time.Time `json:"fromDate,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Message *string `json:"message,omitempty"`
+ NextReminderDate time.Time `json:"nextReminderDate"`
+ Recipients *[]string `json:"recipients,omitempty"`
+ RepeatDays *float32 `json:"repeatDays,omitempty"`
+ SecretId *openapi_types.UUID `json:"secretId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"reminder,omitempty"`
+ RotationId *openapi_types.UUID `json:"rotationId,omitempty"`
+ SecretComment string `json:"secretComment"`
+ SecretKey string `json:"secretKey"`
+ SecretMetadata *[]struct {
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ Key string `json:"key"`
+ Value *string `json:"value,omitempty"`
+ } `json:"secretMetadata,omitempty"`
+ SecretPath *string `json:"secretPath,omitempty"`
+ SecretReminderNote *string `json:"secretReminderNote,omitempty"`
+ SecretReminderRepeatDays *float32 `json:"secretReminderRepeatDays,omitempty"`
+ SecretValueHidden bool `json:"secretValueHidden"`
+ SkipMultilineEncoding *bool `json:"skipMultilineEncoding,omitempty"`
+ Tags *[]struct {
+ Color *string `json:"color,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"tags,omitempty"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version float32 `json:"version"`
+ Workspace string `json:"workspace"`
+ } `json:"secrets,omitempty"`
+ TotalCount float32 `json:"totalCount"`
+ TotalDynamicSecretCount *float32 `json:"totalDynamicSecretCount,omitempty"`
+ TotalFolderCount *float32 `json:"totalFolderCount,omitempty"`
+ TotalHoneyTokenCount *float32 `json:"totalHoneyTokenCount,omitempty"`
+ TotalImportCount *float32 `json:"totalImportCount,omitempty"`
+ TotalProxiedServiceCount *float32 `json:"totalProxiedServiceCount,omitempty"`
+ TotalSecretCount *float32 `json:"totalSecretCount,omitempty"`
+ TotalSecretRotationCount *float32 `json:"totalSecretRotationCount,omitempty"`
+ UsedBySecretSyncs *[]struct {
+ Destination string `json:"destination"`
+ Environment string `json:"environment"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Path string `json:"path"`
+ } `json:"usedBySecretSyncs,omitempty"`
+ } {
+ return r.JSON200
+ }
+
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r ListProjectSecretsDetailsResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
- // UpdateManySecretsV4WithResponse performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Update many secrets.
- UpdateManySecretsV4WithResponse(ctx context.Context, body UpdateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateManySecretsV4Response, error)
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r ListProjectSecretsDetailsResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
- // CreateManySecretsV4WithBodyWithResponse performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create many secrets.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManySecretsV4Response, error)
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r ListProjectSecretsDetailsResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
- // CreateManySecretsV4WithResponse performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create many secrets.
- CreateManySecretsV4WithResponse(ctx context.Context, body CreateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManySecretsV4Response, error)
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r ListProjectSecretsDetailsResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
- // DuplicateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Duplicate one or more static secrets into another environment.
- //
- // Returns a wrapper object for the known response body format(s).
- DuplicateSecretV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DuplicateSecretV4Response, error)
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r ListProjectSecretsDetailsResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
- // DuplicateSecretV4WithResponse performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Duplicate one or more static secrets into another environment.
- DuplicateSecretV4WithResponse(ctx context.Context, body DuplicateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DuplicateSecretV4Response, error)
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r ListProjectSecretsDetailsResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectSecretsDetails500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
+ }
- // GetSecretByIdV4WithResponse performs a GET /api/v4/secrets/id/{secretId} (the `GetSecretByIdV4` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretByIdV4WithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*GetSecretByIdV4Response, error)
+ // GetBody returns the raw response body bytes
+ func (r ListProjectSecretsDetailsResponse) GetBody() []byte {
+ return r.Body
+ }
- // MoveSecretsV4WithBodyWithResponse performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- MoveSecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveSecretsV4Response, error)
+ // Status returns HTTPResponse.Status
+ func (r ListProjectSecretsDetailsResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
- // MoveSecretsV4WithResponse performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- MoveSecretsV4WithResponse(ctx context.Context, body MoveSecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*MoveSecretsV4Response, error)
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r ListProjectSecretsDetailsResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
- // DeleteSecretV4WithBodyWithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Delete secret.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error)
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r ListProjectSecretsDetailsResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
- // DeleteSecretV4WithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Delete secret.
- DeleteSecretV4WithResponse(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error)
+ type ListEmailDomainsResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ EmailDomains []struct {
+ CodeExpiresAt time.Time `json:"codeExpiresAt"`
+ CreatedAt time.Time `json:"createdAt"`
+ Domain string `json:"domain"`
+ Id openapi_types.UUID `json:"id"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Status *string `json:"status,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ VerificationCode string `json:"verificationCode"`
+ VerificationMethod *string `json:"verificationMethod,omitempty"`
+ VerificationRecordName string `json:"verificationRecordName"`
+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`
+ } `json:"emailDomains"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ }
- // GetSecretByNameV4WithResponse performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
- //
- // Get a secret by name.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretByNameV4WithResponse(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*GetSecretByNameV4Response, error)
+ // GetJSON200 returns the response for an HTTP 200 `application/json` response
+ func (r ListEmailDomainsResponse) GetJSON200() *struct {
+ EmailDomains []struct {
+ CodeExpiresAt time.Time `json:"codeExpiresAt"`
+ CreatedAt time.Time `json:"createdAt"`
+ Domain string `json:"domain"`
+ Id openapi_types.UUID `json:"id"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Status *string `json:"status,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ VerificationCode string `json:"verificationCode"`
+ VerificationMethod *string `json:"verificationMethod,omitempty"`
+ VerificationRecordName string `json:"verificationRecordName"`
+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`
+ } `json:"emailDomains"`
+ } {
+ return r.JSON200
+ }
- // UpdateSecretV4WithBodyWithResponse performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update secret.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretV4Response, error)
+ // GetJSON400 returns the response for an HTTP 400 `application/json` response
+ func (r ListEmailDomainsResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains400JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON400
+ }
- // UpdateSecretV4WithResponse performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Update secret.
- UpdateSecretV4WithResponse(ctx context.Context, secretName string, body UpdateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretV4Response, error)
+ // GetJSON401 returns the response for an HTTP 401 `application/json` response
+ func (r ListEmailDomainsResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains401JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON401
+ }
- // CreateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create secret.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
+ // GetJSON403 returns the response for an HTTP 403 `application/json` response
+ func (r ListEmailDomainsResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains403JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON403
+ }
- // CreateSecretV4WithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create secret.
- CreateSecretV4WithResponse(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
+ // GetJSON404 returns the response for an HTTP 404 `application/json` response
+ func (r ListEmailDomainsResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains404JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON404
+ }
- // GetSecretReferencesV4WithResponse performs a GET /api/v4/secrets/{secretName}/reference-dependency-tree (the `GetSecretReferencesV4` operationId) request.
- //
- // Get secret reference dependency tree.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretReferencesV4WithResponse(ctx context.Context, secretName string, params *GetSecretReferencesV4Params, reqEditors ...RequestEditorFn) (*GetSecretReferencesV4Response, error)
+ // GetJSON422 returns the response for an HTTP 422 `application/json` response
+ func (r ListEmailDomainsResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains422JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON422
+ }
- // GetSecretReferenceTreeV4WithResponse performs a GET /api/v4/secrets/{secretName}/secret-reference-tree (the `GetSecretReferenceTreeV4` operationId) request.
- //
- // Get secret reference tree.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretReferenceTreeV4WithResponse(ctx context.Context, secretName string, params *GetSecretReferenceTreeV4Params, reqEditors ...RequestEditorFn) (*GetSecretReferenceTreeV4Response, error)
+ // GetJSON500 returns the response for an HTTP 500 `application/json` response
+ func (r ListEmailDomainsResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListEmailDomains500JSONResponseBodyStatusCode `json:"statusCode"`
+ } {
+ return r.JSON500
}
- type GetInstanceStatusResponse struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *struct {
- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
- Date time.Time `json:"date"`
- EmailConfigured *bool `json:"emailConfigured,omitempty"`
- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
- Message *string `json:"message,omitempty"`
- RedisConfigured *bool `json:"redisConfigured,omitempty"`
- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+ // GetBody returns the raw response body bytes
+ func (r ListEmailDomainsResponse) GetBody() []byte {
+ return r.Body
+ }
+
+ // Status returns HTTPResponse.Status
+ func (r ListEmailDomainsResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+ }
+
+ // StatusCode returns HTTPResponse.StatusCode
+ func (r ListEmailDomainsResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+ }
+
+ // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+ func (r ListEmailDomainsResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+ }
+
+ type CreateEmailDomainResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ EmailDomain struct {
+ CodeExpiresAt time.Time `json:"codeExpiresAt"`
+ CreatedAt time.Time `json:"createdAt"`
+ Domain string `json:"domain"`
+ Id openapi_types.UUID `json:"id"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Status *string `json:"status,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ VerificationCode string `json:"verificationCode"`
+ VerificationMethod *string `json:"verificationMethod,omitempty"`
+ VerificationRecordName string `json:"verificationRecordName"`
+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`
+ } `json:"emailDomain"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
@@@ -47746,655 -51873,679 +55762,793 @@@ func (r GetSecretReferenceTreeV4Respons
return ""
}
- type UpdateSecretV4Response struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *UpdateSecretV4200JSONResponseBody
- // JSON400 the response for an HTTP 400 `application/json` response
- JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
+ // GetInstanceStatusWithResponse performs a GET /api/status (the `GetInstanceStatus` operationId) request.
+ //
+ // Get the status of the Infisical instance and the features configured on it. Public and unauthenticated; used by liveness and readiness probes and exempt from the API-wide rate limit.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) GetInstanceStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInstanceStatusResponse, error) {
+ rsp, err := c.GetInstanceStatus(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON401 the response for an HTTP 401 `application/json` response
- JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseGetInstanceStatusResponse(rsp)
+ }
+
++// ListAccessApprovalPoliciesWithResponse performs a GET /api/v1/access-approvals/policies (the `ListAccessApprovalPolicies` operationId) request.
++//
++// Returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) ListAccessApprovalPoliciesWithResponse(ctx context.Context, params *ListAccessApprovalPoliciesParams, reqEditors ...RequestEditorFn) (*ListAccessApprovalPoliciesResponse, error) {
++ rsp, err := c.ListAccessApprovalPolicies(ctx, params, reqEditors...)
++ if err != nil {
++ return nil, err
+ }
- // JSON403 the response for an HTTP 403 `application/json` response
- JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
++ return ParseListAccessApprovalPoliciesResponse(rsp)
++}
++
++// CreateAccessApprovalPolicyWithBodyWithResponse performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request,
++// with any type of body and a specified content type.
++//
++// Returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) CreateAccessApprovalPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessApprovalPolicyResponse, error) {
++ rsp, err := c.CreateAccessApprovalPolicyWithBody(ctx, contentType, body, reqEditors...)
++ if err != nil {
++ return nil, err
+ }
- // JSON404 the response for an HTTP 404 `application/json` response
- JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
++ return ParseCreateAccessApprovalPolicyResponse(rsp)
++}
++
++// CreateAccessApprovalPolicyWithResponse performs a POST /api/v1/access-approvals/policies (the `CreateAccessApprovalPolicy` operationId) request.
++// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) CreateAccessApprovalPolicyWithResponse(ctx context.Context, body CreateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessApprovalPolicyResponse, error) {
++ rsp, err := c.CreateAccessApprovalPolicy(ctx, body, reqEditors...)
++ if err != nil {
++ return nil, err
+ }
- // JSON422 the response for an HTTP 422 `application/json` response
- JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
++ return ParseCreateAccessApprovalPolicyResponse(rsp)
++}
++
++// GetAccessApprovalPolicyWithResponse performs a GET /api/v1/access-approvals/policies/{policyId} (the `GetAccessApprovalPolicy` operationId) request.
++//
++// Returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) GetAccessApprovalPolicyWithResponse(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*GetAccessApprovalPolicyResponse, error) {
++ rsp, err := c.GetAccessApprovalPolicy(ctx, policyId, reqEditors...)
++ if err != nil {
++ return nil, err
+ }
- // JSON500 the response for an HTTP 500 `application/json` response
- JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
++ return ParseGetAccessApprovalPolicyResponse(rsp)
++}
++
++// UpdateAccessApprovalPolicyWithBodyWithResponse performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request,
++// with any type of body and a specified content type.
++//
++// Returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) UpdateAccessApprovalPolicyWithBodyWithResponse(ctx context.Context, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccessApprovalPolicyResponse, error) {
++ rsp, err := c.UpdateAccessApprovalPolicyWithBody(ctx, policyId, contentType, body, reqEditors...)
++ if err != nil {
++ return nil, err
+ }
++ return ParseUpdateAccessApprovalPolicyResponse(rsp)
+}
+
- // GetJSON200 returns the response for an HTTP 200 `application/json` response
- func (r UpdateSecretV4Response) GetJSON200() *UpdateSecretV4200JSONResponseBody {
- return r.JSON200
++// UpdateAccessApprovalPolicyWithResponse performs a PATCH /api/v1/access-approvals/policies/{policyId} (the `UpdateAccessApprovalPolicy` operationId) request.
++// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) UpdateAccessApprovalPolicyWithResponse(ctx context.Context, policyId string, body UpdateAccessApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccessApprovalPolicyResponse, error) {
++ rsp, err := c.UpdateAccessApprovalPolicy(ctx, policyId, body, reqEditors...)
++ if err != nil {
++ return nil, err
++ }
++ return ParseUpdateAccessApprovalPolicyResponse(rsp)
+}
+
- // GetJSON400 returns the response for an HTTP 400 `application/json` response
- func (r UpdateSecretV4Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON400
++// CreateAccessApprovalRequestWithBodyWithResponse performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request,
++// with any type of body and a specified content type.
++//
++// Returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) CreateAccessApprovalRequestWithBodyWithResponse(ctx context.Context, params *CreateAccessApprovalRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessApprovalRequestResponse, error) {
++ rsp, err := c.CreateAccessApprovalRequestWithBody(ctx, params, contentType, body, reqEditors...)
++ if err != nil {
++ return nil, err
++ }
++ return ParseCreateAccessApprovalRequestResponse(rsp)
+}
+
- // GetJSON401 returns the response for an HTTP 401 `application/json` response
- func (r UpdateSecretV4Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON401
++// CreateAccessApprovalRequestWithResponse performs a POST /api/v1/access-approvals/requests (the `CreateAccessApprovalRequest` operationId) request.
++// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) CreateAccessApprovalRequestWithResponse(ctx context.Context, params *CreateAccessApprovalRequestParams, body CreateAccessApprovalRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessApprovalRequestResponse, error) {
++ rsp, err := c.CreateAccessApprovalRequest(ctx, params, body, reqEditors...)
++ if err != nil {
++ return nil, err
++ }
++ return ParseCreateAccessApprovalRequestResponse(rsp)
+}
+
- // GetJSON403 returns the response for an HTTP 403 `application/json` response
- func (r UpdateSecretV4Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON403
+ // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {
+ rsp, err := c.AdminBootstrapWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAdminBootstrapResponse(rsp)
}
- // GetJSON404 returns the response for an HTTP 404 `application/json` response
- func (r UpdateSecretV4Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON404
+ // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {
+ rsp, err := c.AdminBootstrap(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAdminBootstrapResponse(rsp)
}
- // GetJSON422 returns the response for an HTTP 422 `application/json` response
- func (r UpdateSecretV4Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON422
+ // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {
+ rsp, err := c.UpdateAdminConfigWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateAdminConfigResponse(rsp)
}
- // GetJSON500 returns the response for an HTTP 500 `application/json` response
- func (r UpdateSecretV4Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON500
+ // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {
+ rsp, err := c.UpdateAdminConfig(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateAdminConfigResponse(rsp)
}
- // GetBody returns the raw response body bytes
- func (r UpdateSecretV4Response) GetBody() []byte {
- return r.Body
+ // CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Connection.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error) {
+ rsp, err := c.CreateGitHubAppConnectionWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGitHubAppConnectionResponse(rsp)
}
- // Status returns HTTPResponse.Status
- func (r UpdateSecretV4Response) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+ // CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a GitHub Connection.
+ func (c *ClientWithResponses) CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error) {
+ rsp, err := c.CreateGitHubAppConnection(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseCreateGitHubAppConnectionResponse(rsp)
}
- // StatusCode returns HTTPResponse.StatusCode
- func (r UpdateSecretV4Response) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+ // DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+ //
+ // Delete the specified GitHub Connection.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error) {
+ rsp, err := c.DeleteGitHubAppConnection(ctx, connectionId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseDeleteGitHubAppConnectionResponse(rsp)
}
- // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
- func (r UpdateSecretV4Response) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
++// CreateServiceNowAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request,
++// with any type of body and a specified content type.
++//
++// Create a ServiceNow Connection.
++//
++// Returns a wrapper object for the known response body format(s).
++func (c *ClientWithResponses) CreateServiceNowAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceNowAppConnectionResponse, error) {
++ rsp, err := c.CreateServiceNowAppConnectionWithBody(ctx, contentType, body, reqEditors...)
++ if err != nil {
++ return nil, err
+ }
- return ""
++ return ParseCreateServiceNowAppConnectionResponse(rsp)
+}
+
- type CreateSecretV4Response struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *CreateSecretV4200JSONResponseBody
- // JSON400 the response for an HTTP 400 `application/json` response
- JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
++// CreateServiceNowAppConnectionWithResponse performs a POST /api/v1/app-connections/servicenow (the `CreateServiceNowAppConnection` operationId) request.
++// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
++//
++// Create a ServiceNow Connection.
++func (c *ClientWithResponses) CreateServiceNowAppConnectionWithResponse(ctx context.Context, body CreateServiceNowAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceNowAppConnectionResponse, error) {
++ rsp, err := c.CreateServiceNowAppConnection(ctx, body, reqEditors...)
++ if err != nil {
++ return nil, err
+ }
- // JSON401 the response for an HTTP 401 `application/json` response
- JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
++ return ParseCreateServiceNowAppConnectionResponse(rsp)
++}
++
+ // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error) {
+ rsp, err := c.RefreshAuthToken(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON403 the response for an HTTP 403 `application/json` response
- JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseRefreshAuthTokenResponse(rsp)
+ }
+
+ // AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error) {
+ rsp, err := c.AttachUniversalAuthWithBody(ctx, identityId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON404 the response for an HTTP 404 `application/json` response
- JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseAttachUniversalAuthResponse(rsp)
+ }
+
+ // AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ func (c *ClientWithResponses) AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error) {
+ rsp, err := c.AttachUniversalAuth(ctx, identityId, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON422 the response for an HTTP 422 `application/json` response
- JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseAttachUniversalAuthResponse(rsp)
+ }
+
+ // CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error) {
+ rsp, err := c.CreateUniversalAuthClientSecretWithBody(ctx, identityId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON500 the response for an HTTP 500 `application/json` response
- JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseCreateUniversalAuthClientSecretResponse(rsp)
+ }
+
+ // CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ func (c *ClientWithResponses) CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error) {
+ rsp, err := c.CreateUniversalAuthClientSecret(ctx, identityId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateUniversalAuthClientSecretResponse(rsp)
+ }
+
+ // LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Login with Universal Auth for machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error) {
+ rsp, err := c.LoginWithUniversalAuthWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseLoginWithUniversalAuthResponse(rsp)
+ }
+
+ // LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Login with Universal Auth for machine identity.
+ func (c *ClientWithResponses) LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error) {
+ rsp, err := c.LoginWithUniversalAuth(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseLoginWithUniversalAuthResponse(rsp)
+ }
+
+ // ListProjectSecretsDetailsWithResponse performs a GET /api/v1/dashboard/secrets-details (the `ListProjectSecretsDetails` operationId) request.
+ //
+ // List project secrets details.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) ListProjectSecretsDetailsWithResponse(ctx context.Context, params *ListProjectSecretsDetailsParams, reqEditors ...RequestEditorFn) (*ListProjectSecretsDetailsResponse, error) {
+ rsp, err := c.ListProjectSecretsDetails(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListProjectSecretsDetailsResponse(rsp)
+ }
+
+ // ListEmailDomainsWithResponse performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) ListEmailDomainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEmailDomainsResponse, error) {
+ rsp, err := c.ListEmailDomains(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListEmailDomainsResponse(rsp)
+ }
+
+ // CreateEmailDomainWithBodyWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateEmailDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error) {
+ rsp, err := c.CreateEmailDomainWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateEmailDomainResponse(rsp)
+ }
+
+ // CreateEmailDomainWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateEmailDomainWithResponse(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error) {
+ rsp, err := c.CreateEmailDomain(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateEmailDomainResponse(rsp)
+ }
+
+ // VerifyEmailDomainWithResponse performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) VerifyEmailDomainWithResponse(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*VerifyEmailDomainResponse, error) {
+ rsp, err := c.VerifyEmailDomain(ctx, emailDomainId, reqEditors...)
+ if err != nil {
+ return nil, err
}
+ return ParseVerifyEmailDomainResponse(rsp)
}
- // GetJSON200 returns the response for an HTTP 200 `application/json` response
- func (r CreateSecretV4Response) GetJSON200() *CreateSecretV4200JSONResponseBody {
- return r.JSON200
+ // CreateGroupWithBodyWithResponse performs a POST /api/v1/groups (the `CreateGroup` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error) {
+ rsp, err := c.CreateGroupWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGroupResponse(rsp)
}
- // GetJSON400 returns the response for an HTTP 400 `application/json` response
- func (r CreateSecretV4Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON400
+ // CreateGroupWithResponse performs a POST /api/v1/groups (the `CreateGroup` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateGroupWithResponse(ctx context.Context, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error) {
+ rsp, err := c.CreateGroup(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGroupResponse(rsp)
}
- // GetJSON401 returns the response for an HTTP 401 `application/json` response
- func (r CreateSecretV4Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON401
+ // RemoveUserFromGroupWithResponse performs a DELETE /api/v1/groups/{id}/users/{username} (the `RemoveUserFromGroup` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) RemoveUserFromGroupWithResponse(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*RemoveUserFromGroupResponse, error) {
+ rsp, err := c.RemoveUserFromGroup(ctx, id, username, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseRemoveUserFromGroupResponse(rsp)
}
- // GetJSON403 returns the response for an HTTP 403 `application/json` response
- func (r CreateSecretV4Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON403
+ // AddUserToGroupWithResponse performs a POST /api/v1/groups/{id}/users/{username} (the `AddUserToGroup` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) AddUserToGroupWithResponse(ctx context.Context, id string, username string, reqEditors ...RequestEditorFn) (*AddUserToGroupResponse, error) {
+ rsp, err := c.AddUserToGroup(ctx, id, username, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAddUserToGroupResponse(rsp)
}
- // GetJSON404 returns the response for an HTTP 404 `application/json` response
- func (r CreateSecretV4Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON404
+ // CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error) {
+ rsp, err := c.CreateMachineIdentityWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateMachineIdentityResponse(rsp)
}
- // GetJSON422 returns the response for an HTTP 422 `application/json` response
- func (r CreateSecretV4Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON422
+ // CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create machine identity.
+ func (c *ClientWithResponses) CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error) {
+ rsp, err := c.CreateMachineIdentity(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateMachineIdentityResponse(rsp)
}
- // GetJSON500 returns the response for an HTTP 500 `application/json` response
- func (r CreateSecretV4Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON500
+ // InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error) {
+ rsp, err := c.InviteUsersToOrganizationWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseInviteUsersToOrganizationResponse(rsp)
}
- // GetBody returns the raw response body bytes
- func (r CreateSecretV4Response) GetBody() []byte {
- return r.Body
+ // InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error) {
+ rsp, err := c.InviteUsersToOrganization(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseInviteUsersToOrganizationResponse(rsp)
}
- // Status returns HTTPResponse.Status
- func (r CreateSecretV4Response) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+ // VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error) {
+ rsp, err := c.VerifyUserToOrganizationWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseVerifyUserToOrganizationResponse(rsp)
}
- // StatusCode returns HTTPResponse.StatusCode
- func (r CreateSecretV4Response) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+ // VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error) {
+ rsp, err := c.VerifyUserToOrganization(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseVerifyUserToOrganizationResponse(rsp)
}
- // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
- func (r CreateSecretV4Response) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+ // GetOrganizationByIdWithResponse performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) GetOrganizationByIdWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationByIdResponse, error) {
+ rsp, err := c.GetOrganizationById(ctx, organizationId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseGetOrganizationByIdResponse(rsp)
}
- type GetSecretReferencesV4Response struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *struct {
- Tree struct {
- Children []interface{} `json:"children"`
- Environment string `json:"environment"`
- Key string `json:"key"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"project,omitempty"`
- SecretPath string `json:"secretPath"`
- Value *string `json:"value,omitempty"`
- } `json:"tree"`
- }
- // JSON400 the response for an HTTP 400 `application/json` response
- JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4400JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON401 the response for an HTTP 401 `application/json` response
- JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4401JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON403 the response for an HTTP 403 `application/json` response
- JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4403JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON404 the response for an HTTP 404 `application/json` response
- JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4404JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON422 the response for an HTTP 422 `application/json` response
- JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4422JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON500 the response for an HTTP 500 `application/json` response
- JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4500JSONResponseBodyStatusCode `json:"statusCode"`
+ // UpdateOrganizationWithBodyWithResponse performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) {
+ rsp, err := c.UpdateOrganizationWithBody(ctx, organizationId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
+ return ParseUpdateOrganizationResponse(rsp)
}
- // GetJSON200 returns the response for an HTTP 200 `application/json` response
- func (r GetSecretReferencesV4Response) GetJSON200() *struct {
- Tree struct {
- Children []interface{} `json:"children"`
- Environment string `json:"environment"`
- Key string `json:"key"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"project,omitempty"`
- SecretPath string `json:"secretPath"`
- Value *string `json:"value,omitempty"`
- } `json:"tree"`
- } {
- return r.JSON200
+ // UpdateOrganizationWithResponse performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) {
+ rsp, err := c.UpdateOrganization(ctx, organizationId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateOrganizationResponse(rsp)
}
- // GetJSON400 returns the response for an HTTP 400 `application/json` response
- func (r GetSecretReferencesV4Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4400JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON400
+ // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error) {
+ rsp, err := c.GetOrganizationPlan(ctx, organizationId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetOrganizationPlanResponse(rsp)
}
- // GetJSON401 returns the response for an HTTP 401 `application/json` response
- func (r GetSecretReferencesV4Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4401JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON401
+ // CreateProjectFolderGrantWithBodyWithResponse performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateProjectFolderGrantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectFolderGrantResponse, error) {
+ rsp, err := c.CreateProjectFolderGrantWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectFolderGrantResponse(rsp)
}
- // GetJSON403 returns the response for an HTTP 403 `application/json` response
- func (r GetSecretReferencesV4Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4403JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON403
+ // CreateProjectFolderGrantWithResponse performs a POST /api/v1/project-folder-grants (the `CreateProjectFolderGrant` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateProjectFolderGrantWithResponse(ctx context.Context, body CreateProjectFolderGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectFolderGrantResponse, error) {
+ rsp, err := c.CreateProjectFolderGrant(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectFolderGrantResponse(rsp)
}
- // GetJSON404 returns the response for an HTTP 404 `application/json` response
- func (r GetSecretReferencesV4Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4404JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON404
+ // DeleteProjectFolderGrantWithResponse performs a DELETE /api/v1/project-folder-grants/{grantId} (the `DeleteProjectFolderGrant` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) DeleteProjectFolderGrantWithResponse(ctx context.Context, grantId openapi_types.UUID, params *DeleteProjectFolderGrantParams, reqEditors ...RequestEditorFn) (*DeleteProjectFolderGrantResponse, error) {
+ rsp, err := c.DeleteProjectFolderGrant(ctx, grantId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseDeleteProjectFolderGrantResponse(rsp)
}
- // GetJSON422 returns the response for an HTTP 422 `application/json` response
- func (r GetSecretReferencesV4Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4422JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON422
+ // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a new project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {
+ rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectResponse(rsp)
}
- // GetJSON500 returns the response for an HTTP 500 `application/json` response
- func (r GetSecretReferencesV4Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferencesV4500JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON500
+ // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a new project.
+ func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {
+ rsp, err := c.CreateProject(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectResponse(rsp)
}
- // GetBody returns the raw response body bytes
- func (r GetSecretReferencesV4Response) GetBody() []byte {
- return r.Body
+ // ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+ //
+ // List identities in a project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error) {
+ rsp, err := c.ListProjectMachineIdentities(ctx, projectId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListProjectMachineIdentitiesResponse(rsp)
}
- // Status returns HTTPResponse.Status
- func (r GetSecretReferencesV4Response) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+ // CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create an identity in a project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error) {
+ rsp, err := c.CreateProjectMachineIdentityWithBody(ctx, projectId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseCreateProjectMachineIdentityResponse(rsp)
}
- // StatusCode returns HTTPResponse.StatusCode
- func (r GetSecretReferencesV4Response) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+ // CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create an identity in a project.
+ func (c *ClientWithResponses) CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error) {
+ rsp, err := c.CreateProjectMachineIdentity(ctx, projectId, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseCreateProjectMachineIdentityResponse(rsp)
}
- // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
- func (r GetSecretReferencesV4Response) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+ // InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Invite members to project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error) {
+ rsp, err := c.InviteProjectMembersWithBody(ctx, projectId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseInviteProjectMembersResponse(rsp)
}
- type GetSecretReferenceTreeV4Response struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *struct {
- Tree struct {
- Children []interface{} `json:"children"`
- Environment string `json:"environment"`
- Key string `json:"key"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"project,omitempty"`
- SecretPath string `json:"secretPath"`
- Value *string `json:"value,omitempty"`
- } `json:"tree"`
- Value *string `json:"value,omitempty"`
- }
- // JSON400 the response for an HTTP 400 `application/json` response
- JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4400JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON401 the response for an HTTP 401 `application/json` response
- JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4401JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON403 the response for an HTTP 403 `application/json` response
- JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4403JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON404 the response for an HTTP 404 `application/json` response
- JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4404JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON422 the response for an HTTP 422 `application/json` response
- JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4422JSONResponseBodyStatusCode `json:"statusCode"`
+ // InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Invite members to project.
+ func (c *ClientWithResponses) InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error) {
+ rsp, err := c.InviteProjectMembers(ctx, projectId, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON500 the response for an HTTP 500 `application/json` response
- JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4500JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseInviteProjectMembersResponse(rsp)
+ }
+
+ // CreateProjectGroupMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Add a group from the organization to the project by creating a project group membership.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateProjectGroupMembershipWithBodyWithResponse(ctx context.Context, projectId string, groupId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectGroupMembershipResponse, error) {
+ rsp, err := c.CreateProjectGroupMembershipWithBody(ctx, projectId, groupId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
+ return ParseCreateProjectGroupMembershipResponse(rsp)
}
- // GetJSON200 returns the response for an HTTP 200 `application/json` response
- func (r GetSecretReferenceTreeV4Response) GetJSON200() *struct {
- Tree struct {
- Children []interface{} `json:"children"`
- Environment string `json:"environment"`
- Key string `json:"key"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"project,omitempty"`
- SecretPath string `json:"secretPath"`
- Value *string `json:"value,omitempty"`
- } `json:"tree"`
- Value *string `json:"value,omitempty"`
- } {
- return r.JSON200
+ // CreateProjectGroupMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/groups/{groupId} (the `CreateProjectGroupMembership` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Add a group from the organization to the project by creating a project group membership.
+ func (c *ClientWithResponses) CreateProjectGroupMembershipWithResponse(ctx context.Context, projectId string, groupId openapi_types.UUID, body CreateProjectGroupMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectGroupMembershipResponse, error) {
+ rsp, err := c.CreateProjectGroupMembership(ctx, projectId, groupId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectGroupMembershipResponse(rsp)
}
- // GetJSON400 returns the response for an HTTP 400 `application/json` response
- func (r GetSecretReferenceTreeV4Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4400JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON400
+ // CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create project identity membership.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error) {
+ rsp, err := c.CreateProjectIdentityMembershipWithBody(ctx, projectId, identityId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectIdentityMembershipResponse(rsp)
}
- // GetJSON401 returns the response for an HTTP 401 `application/json` response
- func (r GetSecretReferenceTreeV4Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4401JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON401
+ // CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create project identity membership.
+ func (c *ClientWithResponses) CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error) {
+ rsp, err := c.CreateProjectIdentityMembership(ctx, projectId, identityId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectIdentityMembershipResponse(rsp)
}
- // GetJSON403 returns the response for an HTTP 403 `application/json` response
- func (r GetSecretReferenceTreeV4Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4403JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON403
+ // CreateIdentityFolderAccessWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Grant a machine identity access to a folder.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateIdentityFolderAccessWithBodyWithResponse(ctx context.Context, projectId string, identityId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIdentityFolderAccessResponse, error) {
+ rsp, err := c.CreateIdentityFolderAccessWithBody(ctx, projectId, identityId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateIdentityFolderAccessResponse(rsp)
}
- // GetJSON404 returns the response for an HTTP 404 `application/json` response
- func (r GetSecretReferenceTreeV4Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4404JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON404
+ // CreateIdentityFolderAccessWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId}/secret-folder-access (the `CreateIdentityFolderAccess` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Grant a machine identity access to a folder.
+ func (c *ClientWithResponses) CreateIdentityFolderAccessWithResponse(ctx context.Context, projectId string, identityId openapi_types.UUID, body CreateIdentityFolderAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIdentityFolderAccessResponse, error) {
+ rsp, err := c.CreateIdentityFolderAccess(ctx, projectId, identityId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateIdentityFolderAccessResponse(rsp)
}
- // GetJSON422 returns the response for an HTTP 422 `application/json` response
- func (r GetSecretReferenceTreeV4Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4422JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON422
+ // CreateSecretTagWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateSecretTagWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretTagResponse, error) {
+ rsp, err := c.CreateSecretTagWithBody(ctx, projectId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateSecretTagResponse(rsp)
}
- // GetJSON500 returns the response for an HTTP 500 `application/json` response
- func (r GetSecretReferenceTreeV4Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretReferenceTreeV4500JSONResponseBodyStatusCode `json:"statusCode"`
- } {
- return r.JSON500
+ // CreateSecretTagWithResponse performs a POST /api/v1/projects/{projectId}/tags (the `CreateSecretTag` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateSecretTagWithResponse(ctx context.Context, projectId string, body CreateSecretTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretTagResponse, error) {
+ rsp, err := c.CreateSecretTag(ctx, projectId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateSecretTagResponse(rsp)
}
- // GetBody returns the raw response body bytes
- func (r GetSecretReferenceTreeV4Response) GetBody() []byte {
- return r.Body
+ // ListScimGroupsWithResponse performs a GET /api/v1/scim/Groups (the `ListScimGroups` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) ListScimGroupsWithResponse(ctx context.Context, params *ListScimGroupsParams, reqEditors ...RequestEditorFn) (*ListScimGroupsResponse, error) {
+ rsp, err := c.ListScimGroups(ctx, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListScimGroupsResponse(rsp)
}
- // Status returns HTTPResponse.Status
- func (r GetSecretReferenceTreeV4Response) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+ // CreateScimGroupWithBodyWithResponse performs a POST /api/v1/scim/Groups (the `CreateScimGroup` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateScimGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScimGroupResponse, error) {
+ rsp, err := c.CreateScimGroupWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseCreateScimGroupResponse(rsp)
}
- // StatusCode returns HTTPResponse.StatusCode
- func (r GetSecretReferenceTreeV4Response) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+ // CreateScimGroupWithResponse performs a POST /api/v1/scim/Groups (the `CreateScimGroup` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) CreateScimGroupWithResponse(ctx context.Context, body CreateScimGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScimGroupResponse, error) {
+ rsp, err := c.CreateScimGroup(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseCreateScimGroupResponse(rsp)
}
- // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
- func (r GetSecretReferenceTreeV4Response) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+ // DeleteScimGroupWithResponse performs a DELETE /api/v1/scim/Groups/{groupId} (the `DeleteScimGroup` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ func (c *ClientWithResponses) DeleteScimGroupWithResponse(ctx context.Context, groupId string, reqEditors ...RequestEditorFn) (*DeleteScimGroupResponse, error) {
+ rsp, err := c.DeleteScimGroup(ctx, groupId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseDeleteScimGroupResponse(rsp)
}
- // GetInstanceStatusWithResponse performs a GET /api/status (the `GetInstanceStatus` operationId) request.
- //
- // Get the status of the Infisical instance and the features configured on it. Public and unauthenticated; used by liveness and readiness probes and exempt from the API-wide rate limit.
+ // GetScimGroupWithResponse performs a GET /api/v1/scim/Groups/{groupId} (the `GetScimGroup` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) GetInstanceStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInstanceStatusResponse, error) {
- rsp, err := c.GetInstanceStatus(ctx, reqEditors...)
+ func (c *ClientWithResponses) GetScimGroupWithResponse(ctx context.Context, groupId string, params *GetScimGroupParams, reqEditors ...RequestEditorFn) (*GetScimGroupResponse, error) {
+ rsp, err := c.GetScimGroup(ctx, groupId, params, reqEditors...)
if err != nil {
return nil, err
}
@@@ -49575,463 -53848,113 +57851,791 @@@ func ParseGetInstanceStatusResponse(rs
if err != nil {
return nil, err
}
- return ParseGetSecretApprovalPolicyBoardResponse(rsp)
+
+ response := &GetInstanceStatusResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
+ Date time.Time `json:"date"`
+ EmailConfigured *bool `json:"emailConfigured,omitempty"`
+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
+ Message *string `json:"message,omitempty"`
+ RedisConfigured *bool `json:"redisConfigured,omitempty"`
+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetInstanceStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetInstanceStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetInstanceStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetInstanceStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetInstanceStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetInstanceStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ }
+
+ return response, nil
}
- // DeleteSecretApprovalPolicyWithResponse performs a DELETE /api/v2/secret-approvals/{sapId} (the `DeleteSecretApprovalPolicy` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) DeleteSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*DeleteSecretApprovalPolicyResponse, error) {
- rsp, err := c.DeleteSecretApprovalPolicy(ctx, sapId, reqEditors...)
++// ParseListAccessApprovalPoliciesResponse parses an HTTP response from a ListAccessApprovalPoliciesWithResponse call
++func ParseListAccessApprovalPoliciesResponse(rsp *http.Response) (*ListAccessApprovalPoliciesResponse, error) {
++ bodyBytes, err := io.ReadAll(rsp.Body)
++ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
- return ParseDeleteSecretApprovalPolicyResponse(rsp)
++
++ response := &ListAccessApprovalPoliciesResponse{
++ Body: bodyBytes,
++ HTTPResponse: rsp,
++ }
++
++ switch {
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
++ var dest struct {
++ Approvals *[]struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ Approvers *[]struct {
++ ApprovalsRequired *float32 `json:"approvalsRequired,omitempty"`
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Sequence *float32 `json:"sequence,omitempty"`
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsApproversType `json:"type"`
++ } `json:"approvers,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ Bypassers []struct {
++ Id *string `json:"id,omitempty"`
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsBypassersType `json:"type"`
++ } `json:"bypassers"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type ListAccessApprovalPolicies200JSONResponseBodyApprovalsDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approvals,omitempty"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON200 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON400 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON401 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON403 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON404 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
++ var dest struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON422 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode ListAccessApprovalPolicies500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON500 = &dest
++
++ }
++
++ return response, nil
+}
+
- // GetSecretApprovalPolicyWithResponse performs a GET /api/v2/secret-approvals/{sapId} (the `GetSecretApprovalPolicy` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) GetSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, reqEditors ...RequestEditorFn) (*GetSecretApprovalPolicyResponse, error) {
- rsp, err := c.GetSecretApprovalPolicy(ctx, sapId, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseGetSecretApprovalPolicyResponse(rsp)
- }
++// ParseCreateAccessApprovalPolicyResponse parses an HTTP response from a CreateAccessApprovalPolicyWithResponse call
++func ParseCreateAccessApprovalPolicyResponse(rsp *http.Response) (*CreateAccessApprovalPolicyResponse, error) {
++ bodyBytes, err := io.ReadAll(rsp.Body)
++ defer func() { _ = rsp.Body.Close() }()
++ if err != nil {
++ return nil, err
++ }
++
++ response := &CreateAccessApprovalPolicyResponse{
++ Body: bodyBytes,
++ HTTPResponse: rsp,
++ }
++
++ switch {
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
++ var dest struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
++
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type CreateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON200 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON400 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON401 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON403 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON404 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
++ var dest struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON422 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON500 = &dest
+
- // UpdateSecretApprovalPolicyWithBodyWithResponse performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) UpdateSecretApprovalPolicyWithBodyWithResponse(ctx context.Context, sapId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalPolicyResponse, error) {
- rsp, err := c.UpdateSecretApprovalPolicyWithBody(ctx, sapId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ }
- return ParseUpdateSecretApprovalPolicyResponse(rsp)
- }
+
- // UpdateSecretApprovalPolicyWithResponse performs a PATCH /api/v2/secret-approvals/{sapId} (the `UpdateSecretApprovalPolicy` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) UpdateSecretApprovalPolicyWithResponse(ctx context.Context, sapId string, body UpdateSecretApprovalPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretApprovalPolicyResponse, error) {
- rsp, err := c.UpdateSecretApprovalPolicy(ctx, sapId, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateSecretApprovalPolicyResponse(rsp)
++ return response, nil
+}
+
- // CreateSecretImportWithBodyWithResponse performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create secret imports.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) CreateSecretImportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretImportResponse, error) {
- rsp, err := c.CreateSecretImportWithBody(ctx, contentType, body, reqEditors...)
++// ParseGetAccessApprovalPolicyResponse parses an HTTP response from a GetAccessApprovalPolicyWithResponse call
++func ParseGetAccessApprovalPolicyResponse(rsp *http.Response) (*GetAccessApprovalPolicyResponse, error) {
++ bodyBytes, err := io.ReadAll(rsp.Body)
++ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
- return ParseCreateSecretImportResponse(rsp)
- }
+
- // CreateSecretImportWithResponse performs a POST /api/v2/secret-imports (the `CreateSecretImport` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create secret imports.
- func (c *ClientWithResponses) CreateSecretImportWithResponse(ctx context.Context, body CreateSecretImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretImportResponse, error) {
- rsp, err := c.CreateSecretImport(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
++ response := &GetAccessApprovalPolicyResponse{
++ Body: bodyBytes,
++ HTTPResponse: rsp,
+ }
- return ParseCreateSecretImportResponse(rsp)
- }
+
- // GetCurrentUserWithResponse performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.
- //
- // Retrieve the current user on the request.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) {
- rsp, err := c.GetCurrentUser(ctx, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseGetCurrentUserResponse(rsp)
- }
++ switch {
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
++ var dest struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ Approvers *[]struct {
++ ApprovalsRequired *float32 `json:"approvalsRequired,omitempty"`
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Sequence *float32 `json:"sequence,omitempty"`
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalApproversType `json:"type"`
++ } `json:"approvers,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ Bypassers *[]struct {
++ Id *string `json:"id,omitempty"`
++ Name *string `json:"name,omitempty"`
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalBypassersType `json:"type"`
++ } `json:"bypassers,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
+
- // CreateProjectRoleWithBodyWithResponse performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a project role.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) CreateProjectRoleWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectRoleResponse, error) {
- rsp, err := c.CreateProjectRoleWithBody(ctx, projectId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateProjectRoleResponse(rsp)
- }
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type GetAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON200 = &dest
+
- // CreateProjectRoleWithResponse performs a POST /api/v2/workspace/{projectId}/roles (the `CreateProjectRole` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create a project role.
- func (c *ClientWithResponses) CreateProjectRoleWithResponse(ctx context.Context, projectId string, body CreateProjectRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectRoleResponse, error) {
- rsp, err := c.CreateProjectRole(ctx, projectId, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateProjectRoleResponse(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON400 = &dest
+
- // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {
- rsp, err := c.LoginV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseLoginV3Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON401 = &dest
+
- // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {
- rsp, err := c.LoginV3(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseLoginV3Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON403 = &dest
+
- // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {
- rsp, err := c.SelectOrganizationV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseSelectOrganizationV3Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON404 = &dest
+
- // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {
- rsp, err := c.SelectOrganizationV3(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseSelectOrganizationV3Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
++ var dest struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON422 = &dest
+
- // CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error) {
- rsp, err := c.CompleteAccountSignupV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCompleteAccountSignupV3Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode GetAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON500 = &dest
+
- // CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error) {
- rsp, err := c.CompleteAccountSignupV3(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
+ }
- return ParseCompleteAccountSignupV3Response(rsp)
- }
+
- // BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error) {
- rsp, err := c.BeginEmailSignupV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseBeginEmailSignupV3Response(rsp)
++ return response, nil
+}
+
- // BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error) {
- rsp, err := c.BeginEmailSignupV3(ctx, body, reqEditors...)
++// ParseUpdateAccessApprovalPolicyResponse parses an HTTP response from a UpdateAccessApprovalPolicyWithResponse call
++func ParseUpdateAccessApprovalPolicyResponse(rsp *http.Response) (*UpdateAccessApprovalPolicyResponse, error) {
++ bodyBytes, err := io.ReadAll(rsp.Body)
++ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
- return ParseBeginEmailSignupV3Response(rsp)
- }
+
- // VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error) {
- rsp, err := c.VerifyEmailSignupV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
++ response := &UpdateAccessApprovalPolicyResponse{
++ Body: bodyBytes,
++ HTTPResponse: rsp,
+ }
- return ParseVerifyEmailSignupV3Response(rsp)
- }
+
- // VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error) {
- rsp, err := c.VerifyEmailSignupV3(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseVerifyEmailSignupV3Response(rsp)
- }
++ switch {
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
++ var dest struct {
++ Approval struct {
++ AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
++ Approvals *float32 `json:"approvals,omitempty"`
++ BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ DelegatedApproval *struct {
++ // ConnectionId The ID of the App Connection used to reach the delegated approval system.
++ ConnectionId openapi_types.UUID `json:"connectionId"`
+
- // ListSecretsV4WithResponse performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
- //
- // List secrets.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) ListSecretsV4WithResponse(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*ListSecretsV4Response, error) {
- rsp, err := c.ListSecretsV4(ctx, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseListSecretsV4Response(rsp)
- }
++ // Type The delegated approval system that reviews requests made against this policy.
++ Type UpdateAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
++ } `json:"delegatedApproval,omitempty"`
++ DeletedAt *time.Time `json:"deletedAt,omitempty"`
++ EnforcementLevel *string `json:"enforcementLevel,omitempty"`
++ EnvId openapi_types.UUID `json:"envId"`
++ Environment struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environment"`
++ Environments []struct {
++ Id string `json:"id"`
++ Name string `json:"name"`
++ Slug string `json:"slug"`
++ } `json:"environments"`
++ Id openapi_types.UUID `json:"id"`
++ Name string `json:"name"`
++ ProjectId string `json:"projectId"`
++ SecretPath string `json:"secretPath"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON200 = &dest
+
- // DeleteManySecretsV4WithBodyWithResponse performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Delete many secrets.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) DeleteManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManySecretsV4Response, error) {
- rsp, err := c.DeleteManySecretsV4WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteManySecretsV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON400 = &dest
+
- // DeleteManySecretsV4WithResponse performs a DELETE /api/v4/secrets/batch (the `DeleteManySecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Delete many secrets.
- func (c *ClientWithResponses) DeleteManySecretsV4WithResponse(ctx context.Context, body DeleteManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManySecretsV4Response, error) {
- rsp, err := c.DeleteManySecretsV4(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteManySecretsV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON401 = &dest
+
- // UpdateManySecretsV4WithBodyWithResponse performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update many secrets.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) UpdateManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateManySecretsV4Response, error) {
- rsp, err := c.UpdateManySecretsV4WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateManySecretsV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON403 = &dest
+
- // UpdateManySecretsV4WithResponse performs a PATCH /api/v4/secrets/batch (the `UpdateManySecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Update many secrets.
- func (c *ClientWithResponses) UpdateManySecretsV4WithResponse(ctx context.Context, body UpdateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateManySecretsV4Response, error) {
- rsp, err := c.UpdateManySecretsV4(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateManySecretsV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON404 = &dest
+
- // CreateManySecretsV4WithBodyWithResponse performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create many secrets.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) CreateManySecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManySecretsV4Response, error) {
- rsp, err := c.CreateManySecretsV4WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateManySecretsV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
++ var dest struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON422 = &dest
+
- // CreateManySecretsV4WithResponse performs a POST /api/v4/secrets/batch (the `CreateManySecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create many secrets.
- func (c *ClientWithResponses) CreateManySecretsV4WithResponse(ctx context.Context, body CreateManySecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManySecretsV4Response, error) {
- rsp, err := c.CreateManySecretsV4(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateManySecretsV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode UpdateAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON500 = &dest
+
- // DuplicateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Duplicate one or more static secrets into another environment.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) DuplicateSecretV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DuplicateSecretV4Response, error) {
- rsp, err := c.DuplicateSecretV4WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ }
- return ParseDuplicateSecretV4Response(rsp)
- }
+
- // DuplicateSecretV4WithResponse performs a POST /api/v4/secrets/duplicate (the `DuplicateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Duplicate one or more static secrets into another environment.
- func (c *ClientWithResponses) DuplicateSecretV4WithResponse(ctx context.Context, body DuplicateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DuplicateSecretV4Response, error) {
- rsp, err := c.DuplicateSecretV4(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDuplicateSecretV4Response(rsp)
++ return response, nil
+}
+
- // GetSecretByIdV4WithResponse performs a GET /api/v4/secrets/id/{secretId} (the `GetSecretByIdV4` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) GetSecretByIdV4WithResponse(ctx context.Context, secretId string, reqEditors ...RequestEditorFn) (*GetSecretByIdV4Response, error) {
- rsp, err := c.GetSecretByIdV4(ctx, secretId, reqEditors...)
++// ParseCreateAccessApprovalRequestResponse parses an HTTP response from a CreateAccessApprovalRequestWithResponse call
++func ParseCreateAccessApprovalRequestResponse(rsp *http.Response) (*CreateAccessApprovalRequestResponse, error) {
++ bodyBytes, err := io.ReadAll(rsp.Body)
++ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
- return ParseGetSecretByIdV4Response(rsp)
- }
+
- // MoveSecretsV4WithBodyWithResponse performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) MoveSecretsV4WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveSecretsV4Response, error) {
- rsp, err := c.MoveSecretsV4WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
++ response := &CreateAccessApprovalRequestResponse{
++ Body: bodyBytes,
++ HTTPResponse: rsp,
+ }
- return ParseMoveSecretsV4Response(rsp)
- }
+
- // MoveSecretsV4WithResponse performs a POST /api/v4/secrets/move (the `MoveSecretsV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) MoveSecretsV4WithResponse(ctx context.Context, body MoveSecretsV4JSONRequestBody, reqEditors ...RequestEditorFn) (*MoveSecretsV4Response, error) {
- rsp, err := c.MoveSecretsV4(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseMoveSecretsV4Response(rsp)
- }
++ switch {
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
++ var dest struct {
++ Approval struct {
++ ApprovedAt *time.Time `json:"approvedAt,omitempty"`
++ ApprovedByUserId *openapi_types.UUID `json:"approvedByUserId,omitempty"`
++ BypassReason *string `json:"bypassReason,omitempty"`
++ CreatedAt time.Time `json:"createdAt"`
++ EditNote *string `json:"editNote,omitempty"`
++ EditedByUserId *openapi_types.UUID `json:"editedByUserId,omitempty"`
++ ExpiresAt *time.Time `json:"expiresAt,omitempty"`
++ Id openapi_types.UUID `json:"id"`
++ IsTemporary bool `json:"isTemporary"`
++ Note *string `json:"note,omitempty"`
++ Permissions interface{} `json:"permissions,omitempty"`
++ PolicyId openapi_types.UUID `json:"policyId"`
++ PrivilegeDeletedAt *time.Time `json:"privilegeDeletedAt,omitempty"`
++ PrivilegeId *openapi_types.UUID `json:"privilegeId,omitempty"`
++ RequestedByUserId openapi_types.UUID `json:"requestedByUserId"`
++ RevokedAt *time.Time `json:"revokedAt,omitempty"`
++ RevokedByUserId *openapi_types.UUID `json:"revokedByUserId,omitempty"`
++ Status *string `json:"status,omitempty"`
++ TemporaryRange *string `json:"temporaryRange,omitempty"`
++ UpdatedAt time.Time `json:"updatedAt"`
++ } `json:"approval"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON200 = &dest
+
- // DeleteSecretV4WithBodyWithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Delete secret.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) DeleteSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error) {
- rsp, err := c.DeleteSecretV4WithBody(ctx, secretName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteSecretV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest400JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON400 = &dest
+
- // DeleteSecretV4WithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Delete secret.
- func (c *ClientWithResponses) DeleteSecretV4WithResponse(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error) {
- rsp, err := c.DeleteSecretV4(ctx, secretName, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteSecretV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest401JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON401 = &dest
+
- // GetSecretByNameV4WithResponse performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
- //
- // Get a secret by name.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) GetSecretByNameV4WithResponse(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*GetSecretByNameV4Response, error) {
- rsp, err := c.GetSecretByNameV4(ctx, secretName, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseGetSecretByNameV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
++ var dest struct {
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest403JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON403 = &dest
+
- // UpdateSecretV4WithBodyWithResponse performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Update secret.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) UpdateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretV4Response, error) {
- rsp, err := c.UpdateSecretV4WithBody(ctx, secretName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateSecretV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest404JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON404 = &dest
+
- // UpdateSecretV4WithResponse performs a PATCH /api/v4/secrets/{secretName} (the `UpdateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Update secret.
- func (c *ClientWithResponses) UpdateSecretV4WithResponse(ctx context.Context, secretName string, body UpdateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretV4Response, error) {
- rsp, err := c.UpdateSecretV4(ctx, secretName, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseUpdateSecretV4Response(rsp)
- }
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
++ var dest struct {
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest422JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON422 = &dest
++
++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
++ var dest struct {
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateAccessApprovalRequest500JSONResponseBodyStatusCode `json:"statusCode"`
++ }
++ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
++ return nil, err
++ }
++ response.JSON500 = &dest
+
- // CreateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create secret.
- //
- // Returns a wrapper object for the known response body format(s).
- func (c *ClientWithResponses) CreateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error) {
- rsp, err := c.CreateSecretV4WithBody(ctx, secretName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ }
- return ParseCreateSecretV4Response(rsp)
++
++ return response, nil
+}
+
- // CreateSecretV4WithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create secret.
- func (c *ClientWithResponses) CreateSecretV4WithResponse(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error) {
- rsp, err := c.CreateSecretV4(ctx, secretName, body, reqEditors...)
+ // ParseAdminBootstrapResponse parses an HTTP response from a AdminBootstrapWithResponse call
+ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
@@@ -50451,154 -54430,8 +59111,110 @@@ func ParseDeleteGitHubAppConnectionResp
return response, nil
}
- // ParseGetAccessApprovalPolicyResponse parses an HTTP response from a GetAccessApprovalPolicyWithResponse call
- func ParseGetAccessApprovalPolicyResponse(rsp *http.Response) (*GetAccessApprovalPolicyResponse, error) {
++// ParseCreateServiceNowAppConnectionResponse parses an HTTP response from a CreateServiceNowAppConnectionWithResponse call
++func ParseCreateServiceNowAppConnectionResponse(rsp *http.Response) (*CreateServiceNowAppConnectionResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
- response := &GetAccessApprovalPolicyResponse{
++ response := &CreateServiceNowAppConnectionResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
- Approval struct {
- AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`
- Approvals *float32 `json:"approvals,omitempty"`
- Approvers *[]struct {
- ApprovalsRequired *float32 `json:"approvalsRequired,omitempty"`
- Id *string `json:"id,omitempty"`
- Name *string `json:"name,omitempty"`
- Sequence *float32 `json:"sequence,omitempty"`
- Type GetAccessApprovalPolicy200JSONResponseBodyApprovalApproversType `json:"type"`
- } `json:"approvers,omitempty"`
- BypassForMachineIdentities *bool `json:"bypassForMachineIdentities,omitempty"`
- Bypassers *[]struct {
- Id *string `json:"id,omitempty"`
- Name *string `json:"name,omitempty"`
- Type GetAccessApprovalPolicy200JSONResponseBodyApprovalBypassersType `json:"type"`
- } `json:"bypassers,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- DelegatedApproval *struct {
- // ConnectionId The ID of the App Connection used to reach the delegated approval system.
- ConnectionId openapi_types.UUID `json:"connectionId"`
-
- // Type The delegated approval system that reviews requests made against this policy.
- Type GetAccessApprovalPolicy200JSONResponseBodyApprovalDelegatedApprovalType `json:"type"`
- } `json:"delegatedApproval,omitempty"`
- DeletedAt *time.Time `json:"deletedAt,omitempty"`
- EnforcementLevel *string `json:"enforcementLevel,omitempty"`
- EnvId openapi_types.UUID `json:"envId"`
- Environment struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environment"`
- Environments []struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environments"`
- Id openapi_types.UUID `json:"id"`
- MaxTimePeriod *string `json:"maxTimePeriod,omitempty"`
- Name string `json:"name"`
- ProjectId string `json:"projectId"`
- RequestExpirationTime *string `json:"requestExpirationTime,omitempty"`
- SecretPath string `json:"secretPath"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"approval"`
++ AppConnection CreateServiceNowAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetAccessApprovalPolicy400JSONResponseBodyStatusCode `json:"statusCode"`
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetAccessApprovalPolicy401JSONResponseBodyStatusCode `json:"statusCode"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetAccessApprovalPolicy403JSONResponseBodyStatusCode `json:"statusCode"`
++ Details interface{} `json:"details,omitempty"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetAccessApprovalPolicy404JSONResponseBodyStatusCode `json:"statusCode"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetAccessApprovalPolicy422JSONResponseBodyStatusCode `json:"statusCode"`
++ Error string `json:"error"`
++ Message interface{} `json:"message,omitempty"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetAccessApprovalPolicy500JSONResponseBodyStatusCode `json:"statusCode"`
++ Error string `json:"error"`
++ Message string `json:"message"`
++ ReqId string `json:"reqId"`
++ StatusCode CreateServiceNowAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ }
+
+ return response, nil
+}
+
- // ParseUpdateAccessApprovalPolicyResponse parses an HTTP response from a UpdateAccessApprovalPolicyWithResponse call
- func ParseUpdateAccessApprovalPolicyResponse(rsp *http.Response) (*UpdateAccessApprovalPolicyResponse, error) {
+ // ParseRefreshAuthTokenResponse parses an HTTP response from a RefreshAuthTokenWithResponse call
+ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
diff --cc tests/cmd/fakenet/main.go
index e47b51d5fc,41de44c1f2..aef82334b0
--- a/tests/cmd/fakenet/main.go
+++ b/tests/cmd/fakenet/main.go
@@@ -16,7 -16,7 +16,8 @@@ import
"github.com/Infisical/infisical/tests/fakes/github"
"github.com/Infisical/infisical/tests/fakes/license"
+ "github.com/Infisical/infisical/tests/fakes/oidcidp"
+ "github.com/Infisical/infisical/tests/fakes/servicenow"
"github.com/Infisical/infisical/tests/fakes/smtp"
"github.com/Infisical/infisical/tests/infra/fakenet"
)
@@@ -35,7 -35,7 +36,8 @@@ func main()
srv := fakenet.New(
github.Service,
license.Service,
+ servicenow.Service,
+ oidcidp.Service,
)
mail := smtp.New(func(domain string) fakenet.Emitter { return srv.Emitter(smtp.Host, domain) })