Skip to content

Commit f72694f

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 1.26.1 (#96)
* ## Go SDK Changes: * `ConductoroneApi.Connector.UpdateConnectorSchedule()`: **Added** * `ConductoroneApi.AutomationSearch.SearchAutomationTemplateVersions()`: `response.List.[].AutomationSteps.[].ConnectorAction.ResourceTypeId` **Added** * `ConductoroneApi.AutomationSearch.SearchAutomations()`: `response.List.[].AutomationSteps.[].ConnectorAction.ResourceTypeId` **Added** * `ConductoroneApi.Automation.CreateAutomation()`: * `request.Request.AutomationSteps.[].ConnectorAction.ResourceTypeId` **Added** * `response.Automation.AutomationSteps.[].ConnectorAction.ResourceTypeId` **Added** * `ConductoroneApi.Automation.GetAutomation()`: `response.Automation.AutomationSteps.[].ConnectorAction.ResourceTypeId` **Added** * `ConductoroneApi.Automation.ListAutomations()`: `response.List.[].AutomationSteps.[].ConnectorAction.ResourceTypeId` **Added** * `ConductoroneApi.Automation.UpdateAutomation()`: * `request.Request.UpdateAutomationRequest.Automation.AutomationSteps.[].ConnectorAction.ResourceTypeId` **Added** * `response.Automation.AutomationSteps.[].ConnectorAction.ResourceTypeId` **Added** * `ConductoroneApi.Policies.Create()`: * `request.Request.PolicySteps.{}.Steps.[].Approval` **Changed** * `response.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.Policies.Get()`: `response.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.Policies.List()`: `response.List.[].PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.Policies.Update()`: * `request.Request.UpdatePolicyRequest.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `response.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.PolicySearch.Search()`: `response.List.[].PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskSearch.Search()`: `response.List.[].Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskAudit.List()`: `response.List.[].TaskAuditApprovalInstanceChange.ApprovalInstance.Approval` **Changed** * `ConductoroneApi.Task.CreateGrantTask()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.Task.CreateOffboardingTask()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.Task.CreateRevokeTask()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.Task.Get()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.Approve()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.ApproveWithStepUp()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.Close()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.Comment()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.Deny()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.EscalateToEmergencyAccess()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.HardReset()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.ProcessNow()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.Reassign()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.Restart()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.SkipStep()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.UpdateGrantDuration()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * `ConductoroneApi.TaskActions.UpdateRequestData()`: `response.TaskView.Task.PolicyInstance.Policy.PolicySteps.{}.Steps.[].Approval` **Changed** * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent aee8dc7 commit f72694f

File tree

87 files changed

+878
-8771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+878
-8771
lines changed

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 101 additions & 56 deletions
Large diffs are not rendered by default.

β€Ž.speakeasy/logs/naming.logβ€Ž

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ C1ApiAppV1ConnectorServiceUpdateRequest (ConnectorServiceUpdateRequest: Connecto
225225
C1ApiAppV1ConnectorServiceUpdateResponse (ConnectorServiceUpdateResponse: ConnectorServiceUpdateResponse, ContentType: string, StatusCode: int32 ...)
226226
ConnectorServiceUpdateResponse (ConnectorView: ConnectorView, expanded: array)
227227
ConnectorServiceUpdateResponseExpanded (@type: string, AdditionalProperties: map)
228+
C1ApiAppV1ConnectorServiceUpdateConnectorScheduleRequest (UpdateConnectorScheduleRequest: UpdateConnectorScheduleRequest, app_id: string, connector_id: string)
229+
UpdateConnectorScheduleRequest (ConnectorScheduleCron: ConnectorScheduleCron)
230+
ConnectorScheduleCron (cronSpec: string, timezone: string)
231+
C1ApiAppV1ConnectorServiceUpdateConnectorScheduleResponse (ContentType: string, StatusCode: int32, RawResponse: response ...)
232+
UpdateConnectorScheduleResponse (empty)
228233
C1ApiAppV1ConnectorServiceUpdateDelegatedRequest (ConnectorServiceUpdateDelegatedRequest: ConnectorServiceUpdateDelegatedRequest, connector_app_id: string, connector_id: string)
229234
ConnectorServiceUpdateDelegatedRequest (Connector: Connector_input, ConnectorExpandMask: ConnectorExpandMask, updateMask: string)
230235
C1ApiAppV1ConnectorServiceUpdateDelegatedResponse (ConnectorServiceUpdateResponse: ConnectorServiceUpdateResponse, ContentType: string, StatusCode: int32 ...)
@@ -677,7 +682,7 @@ C1ApiAutomationsV1AutomationSearchServiceSearchAutomationTemplateVersionsRespons
677682
AccountRef (accountIdCel: string)
678683
ConnectorRef (appId: string, id: string)
679684
CallFunction (args: map, functionId: string)
680-
ConnectorAction (ConnectorRef: ConnectorRef, actionName: string, argsTemplate: map)
685+
ConnectorAction (ConnectorRef: ConnectorRef, actionName: string, argsTemplate: map ...)
681686
ConnectorCreateAccount (ConnectorRef: ConnectorRef, UserProperties: UserProperties, userIdCel: string)
682687
UserProperties (displayNameCel: string, emailCel: string, profileAttributeCel: string ...)
683688
CreateAccessReview (accessReviewTemplateCel: string, accessReviewTemplateId: string, campaignName: string ...)
@@ -1053,16 +1058,16 @@ CreatePolicyRequest (description: string, displayName: string, policySteps: map
10531058
AppGroupApproval (allowSelfApproval: boolean, appGroupId: string, appId: string ...)
10541059
AppEntitlementReference (appEntitlementId: string, appId: string)
10551060
AppOwnerApproval (allowSelfApproval: boolean, requireDistinctApprovers: boolean)
1056-
EntitlementOwnerApproval (allowSelfApproval: boolean, fallback: boolean, fallbackUserIds: array ...)
1061+
EntitlementOwnerApproval (allowSelfApproval: boolean, fallback: boolean, fallbackGroupIds: array ...)
10571062
Escalation (CancelTicket: CancelTicket, ReassignToApprovers: ReassignToApprovers, ReplacePolicy: ReplacePolicy ...)
10581063
CancelTicket (empty)
10591064
ReassignToApprovers (approverIds: array)
10601065
ReplacePolicy (policyId: string)
10611066
SkipStep (empty)
10621067
ExpressionApprovalInput (allowSelfApproval: boolean, expressions: array, fallback: boolean ...)
1063-
ManagerApprovalInput (allowSelfApproval: boolean, fallback: boolean, fallbackUserIds: array ...)
1064-
ResourceOwnerApproval (allowSelfApproval: boolean, fallback: boolean, fallbackUserIds: array ...)
1065-
SelfApprovalInput (fallback: boolean, fallbackUserIds: array)
1068+
ManagerApprovalInput (allowSelfApproval: boolean, fallback: boolean, fallbackGroupIds: array ...)
1069+
ResourceOwnerApproval (allowSelfApproval: boolean, fallback: boolean, fallbackGroupIds: array ...)
1070+
SelfApprovalInput (fallback: boolean, fallbackGroupIds: array, fallbackUserIds: array ...)
10661071
UserApproval (allowSelfApproval: boolean, requireDistinctApprovers: boolean, userIds: array)
10671072
WebhookApproval (webhookId: string)
10681073
FormInput1 (Form: Form_input)
@@ -1084,7 +1089,7 @@ C1ApiPolicyV1PoliciesCreateResponse (ContentType: string, CreatePolicyResponse:
10841089
Approval (AgentApproval: AgentApproval, AppGroupApproval: AppGroupApproval, AppOwnerApproval: AppOwnerApproval ...)
10851090
ExpressionApproval (allowSelfApproval: boolean, assignedUserIds: array, expressions: array ...)
10861091
ManagerApproval (allowSelfApproval: boolean, assignedUserIds: array, fallback: boolean ...)
1087-
SelfApproval (assignedUserIds: array, fallback: boolean, fallbackUserIds: array)
1092+
SelfApproval (assignedUserIds: array, fallback: boolean, fallbackGroupIds: array ...)
10881093
Form (Form: Form_input)
10891094
PolicyPolicyType (enum: POLICY_TYPE_UNSPECIFIED, POLICY_TYPE_GRANT, POLICY_TYPE_REVOKE ...)
10901095
C1ApiPolicyV1PoliciesDeleteRequest (DeletePolicyRequest: DeletePolicyRequest, id: string)

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.683.0
1+
speakeasyVersion: 1.685.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:a3a7a54c78e9766ae6401ecc3787c4cdb730cea39d36e6e052e074fd033c2bce
6-
sourceBlobDigest: sha256:83701adda0669016a7bdde10340ad842b47dc99567e4989725a5ad554343b665
5+
sourceRevisionDigest: sha256:df39f529d179aacf32d993db09caa65ef17548a20cc17bdb61534762b3df0cde
6+
sourceBlobDigest: sha256:92188d20fcd94bc4da58267bda8cf8c6c158467c4179134de270f3e6a0f7d74c
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1758758985
9+
- speakeasy-sdk-regen-1768003734
1010
- 0.1.0-alpha
1111
targets:
1212
conductorone-go:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:a3a7a54c78e9766ae6401ecc3787c4cdb730cea39d36e6e052e074fd033c2bce
16-
sourceBlobDigest: sha256:83701adda0669016a7bdde10340ad842b47dc99567e4989725a5ad554343b665
15+
sourceRevisionDigest: sha256:df39f529d179aacf32d993db09caa65ef17548a20cc17bdb61534762b3df0cde
16+
sourceBlobDigest: sha256:92188d20fcd94bc4da58267bda8cf8c6c158467c4179134de270f3e6a0f7d74c
1717
codeSamplesNamespace: my-source-go-code-samples
18-
codeSamplesRevisionDigest: sha256:bd941920c6bb450deba2471ed7582da61911476fa48119eb0e94a7b602d39986
18+
codeSamplesRevisionDigest: sha256:28784a2f86a3172d75aa2d8a1443527cc3c0e61e4007cd2c91c86b8161016964
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ func main() {
305305
* [RevokeCredential](docs/sdks/connector/README.md#revokecredential) - Revoke Credential
306306
* [RotateCredential](docs/sdks/connector/README.md#rotatecredential) - Rotate Credential
307307
* [Update](docs/sdks/connector/README.md#update) - Update
308+
* [UpdateConnectorSchedule](docs/sdks/connector/README.md#updateconnectorschedule) - Update Connector Schedule
308309
* [UpdateDelegated](docs/sdks/connector/README.md#updatedelegated) - Update Delegated
309310
* [ValidateHTTPConnectorConfig](docs/sdks/connector/README.md#validatehttpconnectorconfig) - Validate Http Connector Config
310311

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,14 @@ Based on:
7878
### Generated
7979
- [go v1.26.0] .
8080
### Releases
81-
- [Go v1.26.0] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.26.0 - .
81+
- [Go v1.26.0] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.26.0 - .
82+
83+
## 2026-01-13 01:26:39
84+
### Changes
85+
Based on:
86+
- OpenAPI Doc
87+
- Speakeasy CLI 1.685.0 (2.794.1) https://github.com/speakeasy-api/speakeasy
88+
### Generated
89+
- [go v1.26.1] .
90+
### Releases
91+
- [Go v1.26.1] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.26.1 - .

β€Žconductoroneapi.goβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package conductoronesdkgo
44

5-
// Generated from OpenAPI doc version 0.1.0-alpha and generator version 2.792.0
5+
// Generated from OpenAPI doc version 0.1.0-alpha and generator version 2.794.1
66

77
import (
88
"context"
@@ -201,9 +201,9 @@ func WithTimeout(timeout time.Duration) SDKOption {
201201
// New creates a new instance of the SDK with the provided options
202202
func New(opts ...SDKOption) *ConductoroneAPI {
203203
sdk := &ConductoroneAPI{
204-
SDKVersion: "1.26.0",
204+
SDKVersion: "1.26.1",
205205
sdkConfiguration: config.SDKConfiguration{
206-
UserAgent: "speakeasy-sdk/go 1.26.0 2.792.0 0.1.0-alpha github.com/conductorone/conductorone-sdk-go",
206+
UserAgent: "speakeasy-sdk/go 1.26.1 2.794.1 0.1.0-alpha github.com/conductorone/conductorone-sdk-go",
207207
ServerList: ServerList,
208208
ServerVariables: []map[string]string{
209209
{

β€Žconnector.goβ€Ž

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2975,6 +2975,218 @@ func (s *Connector) Update(ctx context.Context, request operations.C1APIAppV1Con
29752975

29762976
}
29772977

2978+
// UpdateConnectorSchedule - Update Connector Schedule
2979+
// Invokes the c1.api.app.v1.ConnectorService.UpdateConnectorSchedule method.
2980+
func (s *Connector) UpdateConnectorSchedule(ctx context.Context, request operations.C1APIAppV1ConnectorServiceUpdateConnectorScheduleRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse, error) {
2981+
o := operations.Options{}
2982+
supportedOptions := []string{
2983+
operations.SupportedOptionRetries,
2984+
operations.SupportedOptionTimeout,
2985+
}
2986+
2987+
for _, opt := range opts {
2988+
if err := opt(&o, supportedOptions...); err != nil {
2989+
return nil, fmt.Errorf("error applying option: %w", err)
2990+
}
2991+
}
2992+
2993+
var baseURL string
2994+
if o.ServerURL == nil {
2995+
baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
2996+
} else {
2997+
baseURL = *o.ServerURL
2998+
}
2999+
opURL, err := utils.GenerateURL(ctx, baseURL, "/api/v1/apps/{app_id}/connectors/{connector_id}/schedule", request, nil)
3000+
if err != nil {
3001+
return nil, fmt.Errorf("error generating URL: %w", err)
3002+
}
3003+
3004+
hookCtx := hooks.HookContext{
3005+
SDK: s.rootSDK,
3006+
SDKConfiguration: s.sdkConfiguration,
3007+
BaseURL: baseURL,
3008+
Context: ctx,
3009+
OperationID: "c1.api.app.v1.ConnectorService.UpdateConnectorSchedule",
3010+
OAuth2Scopes: nil,
3011+
SecuritySource: s.sdkConfiguration.Security,
3012+
}
3013+
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "UpdateConnectorScheduleRequest", "json", `request:"mediaType=application/json"`)
3014+
if err != nil {
3015+
return nil, err
3016+
}
3017+
3018+
timeout := o.Timeout
3019+
if timeout == nil {
3020+
timeout = s.sdkConfiguration.Timeout
3021+
}
3022+
3023+
if timeout != nil {
3024+
var cancel context.CancelFunc
3025+
ctx, cancel = context.WithTimeout(ctx, *timeout)
3026+
defer cancel()
3027+
}
3028+
3029+
req, err := http.NewRequestWithContext(ctx, "POST", opURL, bodyReader)
3030+
if err != nil {
3031+
return nil, fmt.Errorf("error creating request: %w", err)
3032+
}
3033+
req.Header.Set("Accept", "application/json")
3034+
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
3035+
if reqContentType != "" {
3036+
req.Header.Set("Content-Type", reqContentType)
3037+
}
3038+
3039+
if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
3040+
return nil, err
3041+
}
3042+
3043+
for k, v := range o.SetHeaders {
3044+
req.Header.Set(k, v)
3045+
}
3046+
3047+
globalRetryConfig := s.sdkConfiguration.RetryConfig
3048+
retryConfig := o.Retries
3049+
if retryConfig == nil {
3050+
if globalRetryConfig != nil {
3051+
retryConfig = globalRetryConfig
3052+
}
3053+
}
3054+
3055+
var httpRes *http.Response
3056+
if retryConfig != nil {
3057+
httpRes, err = utils.Retry(ctx, utils.Retries{
3058+
Config: retryConfig,
3059+
StatusCodes: []string{
3060+
"429",
3061+
"500",
3062+
"502",
3063+
"503",
3064+
"504",
3065+
},
3066+
}, func() (*http.Response, error) {
3067+
if req.Body != nil && req.Body != http.NoBody && req.GetBody != nil {
3068+
copyBody, err := req.GetBody()
3069+
3070+
if err != nil {
3071+
return nil, err
3072+
}
3073+
3074+
req.Body = copyBody
3075+
}
3076+
3077+
req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req)
3078+
if err != nil {
3079+
if retry.IsPermanentError(err) || retry.IsTemporaryError(err) {
3080+
return nil, err
3081+
}
3082+
3083+
return nil, retry.Permanent(err)
3084+
}
3085+
3086+
httpRes, err := s.sdkConfiguration.Client.Do(req)
3087+
if err != nil || httpRes == nil {
3088+
if err != nil {
3089+
err = fmt.Errorf("error sending request: %w", err)
3090+
} else {
3091+
err = fmt.Errorf("error sending request: no response")
3092+
}
3093+
3094+
_, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err)
3095+
}
3096+
return httpRes, err
3097+
})
3098+
3099+
if err != nil {
3100+
return nil, err
3101+
} else {
3102+
httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes)
3103+
if err != nil {
3104+
return nil, err
3105+
}
3106+
}
3107+
} else {
3108+
req, err = s.hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req)
3109+
if err != nil {
3110+
return nil, err
3111+
}
3112+
3113+
httpRes, err = s.sdkConfiguration.Client.Do(req)
3114+
if err != nil || httpRes == nil {
3115+
if err != nil {
3116+
err = fmt.Errorf("error sending request: %w", err)
3117+
} else {
3118+
err = fmt.Errorf("error sending request: no response")
3119+
}
3120+
3121+
_, err = s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err)
3122+
return nil, err
3123+
} else if utils.MatchStatusCodes([]string{"4XX", "5XX"}, httpRes.StatusCode) {
3124+
_httpRes, err := s.hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil)
3125+
if err != nil {
3126+
return nil, err
3127+
} else if _httpRes != nil {
3128+
httpRes = _httpRes
3129+
}
3130+
} else {
3131+
httpRes, err = s.hooks.AfterSuccess(hooks.AfterSuccessContext{HookContext: hookCtx}, httpRes)
3132+
if err != nil {
3133+
return nil, err
3134+
}
3135+
}
3136+
}
3137+
3138+
res := &operations.C1APIAppV1ConnectorServiceUpdateConnectorScheduleResponse{
3139+
StatusCode: httpRes.StatusCode,
3140+
ContentType: httpRes.Header.Get("Content-Type"),
3141+
RawResponse: httpRes,
3142+
}
3143+
3144+
switch {
3145+
case httpRes.StatusCode == 200:
3146+
switch {
3147+
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):
3148+
rawBody, err := utils.ConsumeRawBody(httpRes)
3149+
if err != nil {
3150+
return nil, err
3151+
}
3152+
3153+
var out shared.UpdateConnectorScheduleResponse
3154+
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
3155+
return nil, err
3156+
}
3157+
3158+
res.UpdateConnectorScheduleResponse = &out
3159+
default:
3160+
rawBody, err := utils.ConsumeRawBody(httpRes)
3161+
if err != nil {
3162+
return nil, err
3163+
}
3164+
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
3165+
}
3166+
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
3167+
rawBody, err := utils.ConsumeRawBody(httpRes)
3168+
if err != nil {
3169+
return nil, err
3170+
}
3171+
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
3172+
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
3173+
rawBody, err := utils.ConsumeRawBody(httpRes)
3174+
if err != nil {
3175+
return nil, err
3176+
}
3177+
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
3178+
default:
3179+
rawBody, err := utils.ConsumeRawBody(httpRes)
3180+
if err != nil {
3181+
return nil, err
3182+
}
3183+
return nil, sdkerrors.NewSDKError("unknown status code returned", httpRes.StatusCode, string(rawBody), httpRes)
3184+
}
3185+
3186+
return res, nil
3187+
3188+
}
3189+
29783190
// UpdateDelegated - Update Delegated
29793191
// Update a delegated connector.
29803192
func (s *Connector) UpdateDelegated(ctx context.Context, request operations.C1APIAppV1ConnectorServiceUpdateDelegatedRequest, opts ...operations.Option) (*operations.C1APIAppV1ConnectorServiceUpdateDelegatedResponse, error) {

β€Ždocs/pkg/models/operations/c1apiappv1connectorservicerotatecredentialrequest.mdβ€Ž

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# C1APIAppV1ConnectorServiceUpdateConnectorScheduleRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
8+
| `UpdateConnectorScheduleRequest` | [*shared.UpdateConnectorScheduleRequest](../../../pkg/models/shared/updateconnectorschedulerequest.md) | :heavy_minus_sign: | N/A |
9+
| `AppID` | *string* | :heavy_check_mark: | N/A |
10+
| `ConnectorID` | *string* | :heavy_check_mark: | N/A |

0 commit comments

Comments
Β (0)