From 3db740f8d897c8ec2881fde2556d95f50fab296a Mon Sep 17 00:00:00 2001 From: Henry Recker Date: Fri, 18 Oct 2024 15:10:47 -0500 Subject: [PATCH] Use consistent method name for setting body json --- identitycloud/api/openapi.yaml | 19 ++++ identitycloud/api_certificates.go | 34 ++++---- identitycloud/api_content_security_policy.go | 32 +++---- identitycloud/api_cookie_domains.go | 16 ++-- identitycloud/api_csrs.go | 34 ++++---- identitycloud/api_custom_domains.go | 30 +++---- identitycloud/api_federation_enforcement.go | 16 ++-- identitycloud/api_promotion.go | 24 +++--- identitycloud/api_secrets.go | 86 +++++++++---------- identitycloud/api_sso_cookie.go | 12 +-- identitycloud/api_variables.go | 42 ++++----- identitycloud/docs/CSRsAPI.md | 16 ++-- identitycloud/docs/CertificatesAPI.md | 16 ++-- .../docs/ContentSecurityPolicyAPI.md | 16 ++-- identitycloud/docs/CookieDomainsAPI.md | 8 +- identitycloud/docs/CustomDomainsAPI.md | 16 ++-- .../docs/FederationEnforcementAPI.md | 8 +- identitycloud/docs/PromotionAPI.md | 16 ++-- identitycloud/docs/SSOCookieAPI.md | 8 +- identitycloud/docs/SecretsAPI.md | 32 +++---- identitycloud/docs/VariablesAPI.md | 16 ++-- spec/openapi.json | 19 ++++ 22 files changed, 277 insertions(+), 239 deletions(-) diff --git a/identitycloud/api/openapi.yaml b/identitycloud/api/openapi.yaml index 29ed060..ba4c169 100644 --- a/identitycloud/api/openapi.yaml +++ b/identitycloud/api/openapi.yaml @@ -287,6 +287,7 @@ paths: summary: Create certificate tags: - Certificates + x-codegen-request-body-name: body /environment/certificates/{id}: delete: description: Deletes a certificate installed on the tenant. This certificate @@ -670,6 +671,7 @@ paths: summary: Update certificate by ID tags: - Certificates + x-codegen-request-body-name: body /environment/content-security-policy/enforced: get: description: Returns current enforced content security policy @@ -870,6 +872,7 @@ paths: summary: Set enforced content security policy tags: - Content Security Policy + x-codegen-request-body-name: body /environment/content-security-policy/report-only: get: description: Returns current report-only content security policy @@ -1070,6 +1073,7 @@ paths: summary: Set report-only content security policy tags: - Content Security Policy + x-codegen-request-body-name: body /environment/cookie-domains: get: description: Returns current cookie domains @@ -1298,6 +1302,7 @@ paths: summary: Set cookie domains tags: - Cookie Domains + x-codegen-request-body-name: body /environment/count: get: description: Get count of ESV secrets and variables in the environment. @@ -1572,6 +1577,7 @@ paths: summary: Create CSR tags: - CSRs + x-codegen-request-body-name: body /environment/csrs/{id}: delete: description: Deletes a CSR created in the tenant. @@ -1936,6 +1942,7 @@ paths: summary: Update CSR by ID tags: - CSRs + x-codegen-request-body-name: body /environment/custom-domains: post: description: Verify a CNAME @@ -2061,6 +2068,7 @@ paths: summary: Verify a CNAME tags: - Custom Domains + x-codegen-request-body-name: body /environment/custom-domains/{realm}: get: description: Returns current custom domains @@ -2294,6 +2302,7 @@ paths: summary: Set custom domains tags: - Custom Domains + x-codegen-request-body-name: body /environment/federation/enforcement: get: description: Returns current federation enforcement settings @@ -2467,6 +2476,7 @@ paths: summary: Set enforcement of federation tags: - Federation Enforcement + x-codegen-request-body-name: body /environment/promotion/lock: post: description: Starts the lock process on the lower and upper environments @@ -2926,6 +2936,7 @@ paths: summary: Run a promotion tags: - Promotion + x-codegen-request-body-name: body /environment/promotion/report: get: description: This will return the contents of the last run config promotion @@ -3425,6 +3436,7 @@ paths: summary: Rollback a promotion tags: - Promotion + x-codegen-request-body-name: body /environment/release: get: description: Get release information @@ -3800,6 +3812,7 @@ paths: summary: Set a secret description tags: - Secrets + x-codegen-request-body-name: body put: description: Create a secret and its first secret version. operationId: createSecret @@ -3867,6 +3880,7 @@ paths: summary: Create a secret tags: - Secrets + x-codegen-request-body-name: body /environment/secrets/{secretId}/versions: get: description: | @@ -4007,6 +4021,7 @@ paths: summary: Create a new version of a secret tags: - Secrets + x-codegen-request-body-name: body /environment/secrets/{secretId}/versions/{versionId}: delete: operationId: deleteSecretVersion @@ -4234,6 +4249,7 @@ paths: summary: Update the status of a version of a secret tags: - Secrets + x-codegen-request-body-name: body /environment/sso-cookie: get: description: Returns current SSO cookie configuration @@ -4541,6 +4557,7 @@ paths: summary: Set SSO cookie configuration tags: - SSO Cookie + x-codegen-request-body-name: body /environment/startup: get: description: Get restart status indicating whether any upgrade or rollout restart @@ -4942,6 +4959,7 @@ paths: summary: Set a variable description tags: - Variables + x-codegen-request-body-name: body put: description: | Create or update a variable using a predefined name. Once created, a variable name cannot be changed. @@ -5010,6 +5028,7 @@ paths: summary: Create or update a variable tags: - Variables + x-codegen-request-body-name: body components: parameters: PageCookie: diff --git a/identitycloud/api_certificates.go b/identitycloud/api_certificates.go index 4981289..eb4d5b1 100644 --- a/identitycloud/api_certificates.go +++ b/identitycloud/api_certificates.go @@ -23,14 +23,14 @@ import ( type CertificatesAPIService service type ApiCreateCertificateRequest struct { - ctx context.Context - ApiService *CertificatesAPIService - createCertificateRequest *CreateCertificateRequest + ctx context.Context + ApiService *CertificatesAPIService + body *CreateCertificateRequest } // JSON body of the new certificate -func (r ApiCreateCertificateRequest) CreateCertificateRequest(createCertificateRequest CreateCertificateRequest) ApiCreateCertificateRequest { - r.createCertificateRequest = &createCertificateRequest +func (r ApiCreateCertificateRequest) Body(body CreateCertificateRequest) ApiCreateCertificateRequest { + r.body = &body return r } @@ -90,8 +90,8 @@ func (a *CertificatesAPIService) internalCreateCertificateExecute(r ApiCreateCer localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.createCertificateRequest == nil { - return localVarReturnValue, nil, reportError("createCertificateRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -112,7 +112,7 @@ func (a *CertificatesAPIService) internalCreateCertificateExecute(r ApiCreateCer localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createCertificateRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -624,15 +624,15 @@ func (a *CertificatesAPIService) GetCertificatesExecute(r ApiGetCertificatesRequ } type ApiUpdateCertificateByIDRequest struct { - ctx context.Context - ApiService *CertificatesAPIService - id string - updateCertificateRequest *UpdateCertificateRequest + ctx context.Context + ApiService *CertificatesAPIService + id string + body *UpdateCertificateRequest } // JSON body of the updated certificate -func (r ApiUpdateCertificateByIDRequest) UpdateCertificateRequest(updateCertificateRequest UpdateCertificateRequest) ApiUpdateCertificateByIDRequest { - r.updateCertificateRequest = &updateCertificateRequest +func (r ApiUpdateCertificateByIDRequest) Body(body UpdateCertificateRequest) ApiUpdateCertificateByIDRequest { + r.body = &body return r } @@ -695,8 +695,8 @@ func (a *CertificatesAPIService) internalUpdateCertificateByIDExecute(r ApiUpdat localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.updateCertificateRequest == nil { - return localVarReturnValue, nil, reportError("updateCertificateRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -717,7 +717,7 @@ func (a *CertificatesAPIService) internalUpdateCertificateByIDExecute(r ApiUpdat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.updateCertificateRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/api_content_security_policy.go b/identitycloud/api_content_security_policy.go index 37e28fa..aca8589 100644 --- a/identitycloud/api_content_security_policy.go +++ b/identitycloud/api_content_security_policy.go @@ -318,14 +318,14 @@ func (a *ContentSecurityPolicyAPIService) internalGetReportOnlyContentSecurityPo } type ApiSetEnforcedContentSecurityPolicyRequest struct { - ctx context.Context - ApiService *ContentSecurityPolicyAPIService - contentSecurityPolicy *ContentSecurityPolicy + ctx context.Context + ApiService *ContentSecurityPolicyAPIService + body *ContentSecurityPolicy } // Enforced content security policy to apply to the tenant -func (r ApiSetEnforcedContentSecurityPolicyRequest) ContentSecurityPolicy(contentSecurityPolicy ContentSecurityPolicy) ApiSetEnforcedContentSecurityPolicyRequest { - r.contentSecurityPolicy = &contentSecurityPolicy +func (r ApiSetEnforcedContentSecurityPolicyRequest) Body(body ContentSecurityPolicy) ApiSetEnforcedContentSecurityPolicyRequest { + r.body = &body return r } @@ -385,8 +385,8 @@ func (a *ContentSecurityPolicyAPIService) internalSetEnforcedContentSecurityPoli localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.contentSecurityPolicy == nil { - return localVarReturnValue, nil, reportError("contentSecurityPolicy is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -407,7 +407,7 @@ func (a *ContentSecurityPolicyAPIService) internalSetEnforcedContentSecurityPoli localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.contentSecurityPolicy + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -478,14 +478,14 @@ func (a *ContentSecurityPolicyAPIService) internalSetEnforcedContentSecurityPoli } type ApiSetReportOnlyContentSecurityPolicyRequest struct { - ctx context.Context - ApiService *ContentSecurityPolicyAPIService - contentSecurityPolicy *ContentSecurityPolicy + ctx context.Context + ApiService *ContentSecurityPolicyAPIService + body *ContentSecurityPolicy } // Enforced content security policy to apply to the tenant -func (r ApiSetReportOnlyContentSecurityPolicyRequest) ContentSecurityPolicy(contentSecurityPolicy ContentSecurityPolicy) ApiSetReportOnlyContentSecurityPolicyRequest { - r.contentSecurityPolicy = &contentSecurityPolicy +func (r ApiSetReportOnlyContentSecurityPolicyRequest) Body(body ContentSecurityPolicy) ApiSetReportOnlyContentSecurityPolicyRequest { + r.body = &body return r } @@ -545,8 +545,8 @@ func (a *ContentSecurityPolicyAPIService) internalSetReportOnlyContentSecurityPo localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.contentSecurityPolicy == nil { - return localVarReturnValue, nil, reportError("contentSecurityPolicy is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -567,7 +567,7 @@ func (a *ContentSecurityPolicyAPIService) internalSetReportOnlyContentSecurityPo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.contentSecurityPolicy + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/api_cookie_domains.go b/identitycloud/api_cookie_domains.go index 4aa827c..73f5ff4 100644 --- a/identitycloud/api_cookie_domains.go +++ b/identitycloud/api_cookie_domains.go @@ -181,14 +181,14 @@ func (a *CookieDomainsAPIService) internalGetCookieDomainsExecute(r ApiGetCookie } type ApiSetCookieDomainsRequest struct { - ctx context.Context - ApiService *CookieDomainsAPIService - cookieDomains *CookieDomains + ctx context.Context + ApiService *CookieDomainsAPIService + body *CookieDomains } // Cookie domains -func (r ApiSetCookieDomainsRequest) CookieDomains(cookieDomains CookieDomains) ApiSetCookieDomainsRequest { - r.cookieDomains = &cookieDomains +func (r ApiSetCookieDomainsRequest) Body(body CookieDomains) ApiSetCookieDomainsRequest { + r.body = &body return r } @@ -248,8 +248,8 @@ func (a *CookieDomainsAPIService) internalSetCookieDomainsExecute(r ApiSetCookie localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.cookieDomains == nil { - return localVarReturnValue, nil, reportError("cookieDomains is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -270,7 +270,7 @@ func (a *CookieDomainsAPIService) internalSetCookieDomainsExecute(r ApiSetCookie localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.cookieDomains + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/api_csrs.go b/identitycloud/api_csrs.go index 3805def..a9a8b27 100644 --- a/identitycloud/api_csrs.go +++ b/identitycloud/api_csrs.go @@ -23,14 +23,14 @@ import ( type CSRsAPIService service type ApiCreateCertificateSigningRequestRequest struct { - ctx context.Context - ApiService *CSRsAPIService - createCertificateSigningRequestRequest *CreateCertificateSigningRequestRequest + ctx context.Context + ApiService *CSRsAPIService + body *CreateCertificateSigningRequestRequest } // JSON body of the new certificate signing request -func (r ApiCreateCertificateSigningRequestRequest) CreateCertificateSigningRequestRequest(createCertificateSigningRequestRequest CreateCertificateSigningRequestRequest) ApiCreateCertificateSigningRequestRequest { - r.createCertificateSigningRequestRequest = &createCertificateSigningRequestRequest +func (r ApiCreateCertificateSigningRequestRequest) Body(body CreateCertificateSigningRequestRequest) ApiCreateCertificateSigningRequestRequest { + r.body = &body return r } @@ -90,8 +90,8 @@ func (a *CSRsAPIService) internalCreateCertificateSigningRequestExecute(r ApiCre localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.createCertificateSigningRequestRequest == nil { - return localVarReturnValue, nil, reportError("createCertificateSigningRequestRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -112,7 +112,7 @@ func (a *CSRsAPIService) internalCreateCertificateSigningRequestExecute(r ApiCre localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.createCertificateSigningRequestRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -613,15 +613,15 @@ func (a *CSRsAPIService) GetCertificateSigningRequestsExecute(r ApiGetCertificat } type ApiUpdateCertificateSigningRequestByIdRequest struct { - ctx context.Context - ApiService *CSRsAPIService - id string - updateCertificateSigningRequestRequest *UpdateCertificateSigningRequestRequest + ctx context.Context + ApiService *CSRsAPIService + id string + body *UpdateCertificateSigningRequestRequest } // JSON body of the new certificate signing request -func (r ApiUpdateCertificateSigningRequestByIdRequest) UpdateCertificateSigningRequestRequest(updateCertificateSigningRequestRequest UpdateCertificateSigningRequestRequest) ApiUpdateCertificateSigningRequestByIdRequest { - r.updateCertificateSigningRequestRequest = &updateCertificateSigningRequestRequest +func (r ApiUpdateCertificateSigningRequestByIdRequest) Body(body UpdateCertificateSigningRequestRequest) ApiUpdateCertificateSigningRequestByIdRequest { + r.body = &body return r } @@ -684,8 +684,8 @@ func (a *CSRsAPIService) internalUpdateCertificateSigningRequestByIdExecute(r Ap localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.updateCertificateSigningRequestRequest == nil { - return localVarReturnValue, nil, reportError("updateCertificateSigningRequestRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -706,7 +706,7 @@ func (a *CSRsAPIService) internalUpdateCertificateSigningRequestByIdExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.updateCertificateSigningRequestRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/api_custom_domains.go b/identitycloud/api_custom_domains.go index 2af7a27..3f1b1de 100644 --- a/identitycloud/api_custom_domains.go +++ b/identitycloud/api_custom_domains.go @@ -175,15 +175,15 @@ func (a *CustomDomainsAPIService) internalGetCustomDomainsExecute(r ApiGetCustom } type ApiSetCustomDomainsRequest struct { - ctx context.Context - ApiService *CustomDomainsAPIService - realm string - customDomains *CustomDomains + ctx context.Context + ApiService *CustomDomainsAPIService + realm string + body *CustomDomains } // Custom domains -func (r ApiSetCustomDomainsRequest) CustomDomains(customDomains CustomDomains) ApiSetCustomDomainsRequest { - r.customDomains = &customDomains +func (r ApiSetCustomDomainsRequest) Body(body CustomDomains) ApiSetCustomDomainsRequest { + r.body = &body return r } @@ -246,8 +246,8 @@ func (a *CustomDomainsAPIService) internalSetCustomDomainsExecute(r ApiSetCustom localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.customDomains == nil { - return localVarReturnValue, nil, reportError("customDomains is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -268,7 +268,7 @@ func (a *CustomDomainsAPIService) internalSetCustomDomainsExecute(r ApiSetCustom localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customDomains + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -353,7 +353,7 @@ type ApiVerifyCustomDomainsRequest struct { ctx context.Context ApiService *CustomDomainsAPIService action *string - cName *CName + body *CName } // Requested action type @@ -363,8 +363,8 @@ func (r ApiVerifyCustomDomainsRequest) Action(action string) ApiVerifyCustomDoma } // Custom domain -func (r ApiVerifyCustomDomainsRequest) CName(cName CName) ApiVerifyCustomDomainsRequest { - r.cName = &cName +func (r ApiVerifyCustomDomainsRequest) Body(body CName) ApiVerifyCustomDomainsRequest { + r.body = &body return r } @@ -408,8 +408,8 @@ func (a *CustomDomainsAPIService) VerifyCustomDomainsExecute(r ApiVerifyCustomDo if r.action == nil { return nil, reportError("action is required and must be specified") } - if r.cName == nil { - return nil, reportError("cName is required and must be specified") + if r.body == nil { + return nil, reportError("body is required and must be specified") } parameterAddToHeaderOrQuery(localVarQueryParams, "_action", r.action, "") @@ -431,7 +431,7 @@ func (a *CustomDomainsAPIService) VerifyCustomDomainsExecute(r ApiVerifyCustomDo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.cName + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err diff --git a/identitycloud/api_federation_enforcement.go b/identitycloud/api_federation_enforcement.go index 5e18b18..06b409d 100644 --- a/identitycloud/api_federation_enforcement.go +++ b/identitycloud/api_federation_enforcement.go @@ -159,14 +159,14 @@ func (a *FederationEnforcementAPIService) internalGetEnforcementExecute(r ApiGet } type ApiSetEnforcementRequest struct { - ctx context.Context - ApiService *FederationEnforcementAPIService - federationEnforcement *FederationEnforcement + ctx context.Context + ApiService *FederationEnforcementAPIService + body *FederationEnforcement } // Enforcement settings to apply to the tenant -func (r ApiSetEnforcementRequest) FederationEnforcement(federationEnforcement FederationEnforcement) ApiSetEnforcementRequest { - r.federationEnforcement = &federationEnforcement +func (r ApiSetEnforcementRequest) Body(body FederationEnforcement) ApiSetEnforcementRequest { + r.body = &body return r } @@ -226,8 +226,8 @@ func (a *FederationEnforcementAPIService) internalSetEnforcementExecute(r ApiSet localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.federationEnforcement == nil { - return localVarReturnValue, nil, reportError("federationEnforcement is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -248,7 +248,7 @@ func (a *FederationEnforcementAPIService) internalSetEnforcementExecute(r ApiSet localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.federationEnforcement + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/api_promotion.go b/identitycloud/api_promotion.go index b13ab17..7ee4904 100644 --- a/identitycloud/api_promotion.go +++ b/identitycloud/api_promotion.go @@ -1213,7 +1213,7 @@ type ApiRollbackRequest struct { ctx context.Context ApiService *PromotionAPIService acceptAPIVersion *string - rollbackRequest *RollbackRequest + body *RollbackRequest } // protocol=1.0,resource=1.0 @@ -1223,8 +1223,8 @@ func (r ApiRollbackRequest) AcceptAPIVersion(acceptAPIVersion string) ApiRollbac } // A request body with info required to initiate a rollback -func (r ApiRollbackRequest) RollbackRequest(rollbackRequest RollbackRequest) ApiRollbackRequest { - r.rollbackRequest = &rollbackRequest +func (r ApiRollbackRequest) Body(body RollbackRequest) ApiRollbackRequest { + r.body = &body return r } @@ -1287,8 +1287,8 @@ func (a *PromotionAPIService) internalRollbackExecute(r ApiRollbackRequest) (*Ro if r.acceptAPIVersion == nil { return localVarReturnValue, nil, reportError("acceptAPIVersion is required and must be specified") } - if r.rollbackRequest == nil { - return localVarReturnValue, nil, reportError("rollbackRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -1310,7 +1310,7 @@ func (a *PromotionAPIService) internalRollbackExecute(r ApiRollbackRequest) (*Ro } parameterAddToHeaderOrQuery(localVarHeaderParams, "Accept-API-Version", r.acceptAPIVersion, "") // body params - localVarPostBody = r.rollbackRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1382,7 +1382,7 @@ type ApiStartRequest struct { ctx context.Context ApiService *PromotionAPIService acceptAPIVersion *string - promotionRequest *PromotionRequest + body *PromotionRequest } // protocol=1.0,resource=1.0 @@ -1392,8 +1392,8 @@ func (r ApiStartRequest) AcceptAPIVersion(acceptAPIVersion string) ApiStartReque } // A request body with info required to initiate a promotion -func (r ApiStartRequest) PromotionRequest(promotionRequest PromotionRequest) ApiStartRequest { - r.promotionRequest = &promotionRequest +func (r ApiStartRequest) Body(body PromotionRequest) ApiStartRequest { + r.body = &body return r } @@ -1456,8 +1456,8 @@ func (a *PromotionAPIService) internalStartExecute(r ApiStartRequest) (*Promotio if r.acceptAPIVersion == nil { return localVarReturnValue, nil, reportError("acceptAPIVersion is required and must be specified") } - if r.promotionRequest == nil { - return localVarReturnValue, nil, reportError("promotionRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -1479,7 +1479,7 @@ func (a *PromotionAPIService) internalStartExecute(r ApiStartRequest) (*Promotio } parameterAddToHeaderOrQuery(localVarHeaderParams, "Accept-API-Version", r.acceptAPIVersion, "") // body params - localVarPostBody = r.promotionRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/api_secrets.go b/identitycloud/api_secrets.go index 0efad4e..5dbd22a 100644 --- a/identitycloud/api_secrets.go +++ b/identitycloud/api_secrets.go @@ -23,11 +23,11 @@ import ( type SecretsAPIService service type ApiActionSecretRequest struct { - ctx context.Context - ApiService *SecretsAPIService - secretId string - action *string - esvSetDescriptionRequest *EsvSetDescriptionRequest + ctx context.Context + ApiService *SecretsAPIService + secretId string + action *string + body *EsvSetDescriptionRequest } func (r ApiActionSecretRequest) Action(action string) ApiActionSecretRequest { @@ -36,8 +36,8 @@ func (r ApiActionSecretRequest) Action(action string) ApiActionSecretRequest { } // The description of this secret -func (r ApiActionSecretRequest) EsvSetDescriptionRequest(esvSetDescriptionRequest EsvSetDescriptionRequest) ApiActionSecretRequest { - r.esvSetDescriptionRequest = &esvSetDescriptionRequest +func (r ApiActionSecretRequest) Body(body EsvSetDescriptionRequest) ApiActionSecretRequest { + r.body = &body return r } @@ -82,8 +82,8 @@ func (a *SecretsAPIService) ActionSecretExecute(r ApiActionSecretRequest) (*http if r.action == nil { return nil, reportError("action is required and must be specified") } - if r.esvSetDescriptionRequest == nil { - return nil, reportError("esvSetDescriptionRequest is required and must be specified") + if r.body == nil { + return nil, reportError("body is required and must be specified") } parameterAddToHeaderOrQuery(localVarQueryParams, "_action", r.action, "") @@ -105,7 +105,7 @@ func (a *SecretsAPIService) ActionSecretExecute(r ApiActionSecretRequest) (*http localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.esvSetDescriptionRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -154,13 +154,13 @@ func (a *SecretsAPIService) ActionSecretExecute(r ApiActionSecretRequest) (*http } type ApiChangeSecretVersionRequest struct { - ctx context.Context - ApiService *SecretsAPIService - action *string - secretId string - versionId string - esvSecretVersionStatusRequest *EsvSecretVersionStatusRequest - acceptAPIVersion *string + ctx context.Context + ApiService *SecretsAPIService + action *string + secretId string + versionId string + body *EsvSecretVersionStatusRequest + acceptAPIVersion *string } // Can only be changestatus @@ -170,8 +170,8 @@ func (r ApiChangeSecretVersionRequest) Action(action string) ApiChangeSecretVers } // JSON body of the new status of the secret version -func (r ApiChangeSecretVersionRequest) EsvSecretVersionStatusRequest(esvSecretVersionStatusRequest EsvSecretVersionStatusRequest) ApiChangeSecretVersionRequest { - r.esvSecretVersionStatusRequest = &esvSecretVersionStatusRequest +func (r ApiChangeSecretVersionRequest) Body(body EsvSecretVersionStatusRequest) ApiChangeSecretVersionRequest { + r.body = &body return r } @@ -246,8 +246,8 @@ func (a *SecretsAPIService) internalChangeSecretVersionExecute(r ApiChangeSecret if r.action == nil { return localVarReturnValue, nil, reportError("action is required and must be specified") } - if r.esvSecretVersionStatusRequest == nil { - return localVarReturnValue, nil, reportError("esvSecretVersionStatusRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } parameterAddToHeaderOrQuery(localVarQueryParams, "_action", r.action, "") @@ -272,7 +272,7 @@ func (a *SecretsAPIService) internalChangeSecretVersionExecute(r ApiChangeSecret parameterAddToHeaderOrQuery(localVarHeaderParams, "Accept-API-Version", r.acceptAPIVersion, "") } // body params - localVarPostBody = r.esvSecretVersionStatusRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -330,16 +330,16 @@ func (a *SecretsAPIService) internalChangeSecretVersionExecute(r ApiChangeSecret } type ApiCreateSecretRequest struct { - ctx context.Context - ApiService *SecretsAPIService - secretId string - esvSecretCreateRequest *EsvSecretCreateRequest - acceptAPIVersion *string + ctx context.Context + ApiService *SecretsAPIService + secretId string + body *EsvSecretCreateRequest + acceptAPIVersion *string } // JSON body of the new secret -func (r ApiCreateSecretRequest) EsvSecretCreateRequest(esvSecretCreateRequest EsvSecretCreateRequest) ApiCreateSecretRequest { - r.esvSecretCreateRequest = &esvSecretCreateRequest +func (r ApiCreateSecretRequest) Body(body EsvSecretCreateRequest) ApiCreateSecretRequest { + r.body = &body return r } @@ -408,8 +408,8 @@ func (a *SecretsAPIService) internalCreateSecretExecute(r ApiCreateSecretRequest localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.esvSecretCreateRequest == nil { - return localVarReturnValue, nil, reportError("esvSecretCreateRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -433,7 +433,7 @@ func (a *SecretsAPIService) internalCreateSecretExecute(r ApiCreateSecretRequest parameterAddToHeaderOrQuery(localVarHeaderParams, "Accept-API-Version", r.acceptAPIVersion, "") } // body params - localVarPostBody = r.esvSecretCreateRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -491,12 +491,12 @@ func (a *SecretsAPIService) internalCreateSecretExecute(r ApiCreateSecretRequest } type ApiCreateSecretVersionRequest struct { - ctx context.Context - ApiService *SecretsAPIService - action *string - secretId string - esvSecretVersionCreateRequest *EsvSecretVersionCreateRequest - acceptAPIVersion *string + ctx context.Context + ApiService *SecretsAPIService + action *string + secretId string + body *EsvSecretVersionCreateRequest + acceptAPIVersion *string } // Can only be create @@ -506,8 +506,8 @@ func (r ApiCreateSecretVersionRequest) Action(action string) ApiCreateSecretVers } // JSON body of the new secret version -func (r ApiCreateSecretVersionRequest) EsvSecretVersionCreateRequest(esvSecretVersionCreateRequest EsvSecretVersionCreateRequest) ApiCreateSecretVersionRequest { - r.esvSecretVersionCreateRequest = &esvSecretVersionCreateRequest +func (r ApiCreateSecretVersionRequest) Body(body EsvSecretVersionCreateRequest) ApiCreateSecretVersionRequest { + r.body = &body return r } @@ -577,8 +577,8 @@ func (a *SecretsAPIService) internalCreateSecretVersionExecute(r ApiCreateSecret if r.action == nil { return localVarReturnValue, nil, reportError("action is required and must be specified") } - if r.esvSecretVersionCreateRequest == nil { - return localVarReturnValue, nil, reportError("esvSecretVersionCreateRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } parameterAddToHeaderOrQuery(localVarQueryParams, "_action", r.action, "") @@ -603,7 +603,7 @@ func (a *SecretsAPIService) internalCreateSecretVersionExecute(r ApiCreateSecret parameterAddToHeaderOrQuery(localVarHeaderParams, "Accept-API-Version", r.acceptAPIVersion, "") } // body params - localVarPostBody = r.esvSecretVersionCreateRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/api_sso_cookie.go b/identitycloud/api_sso_cookie.go index ae3d5a7..c6db3b9 100644 --- a/identitycloud/api_sso_cookie.go +++ b/identitycloud/api_sso_cookie.go @@ -331,12 +331,12 @@ func (a *SSOCookieAPIService) internalResetSSOCookieExecute(r ApiResetSSOCookieR type ApiSetSSOCookieRequest struct { ctx context.Context ApiService *SSOCookieAPIService - sSOCookie *SSOCookie + body *SSOCookie } // SSO cookie configuration to apply to the tenant -func (r ApiSetSSOCookieRequest) SSOCookie(sSOCookie SSOCookie) ApiSetSSOCookieRequest { - r.sSOCookie = &sSOCookie +func (r ApiSetSSOCookieRequest) Body(body SSOCookie) ApiSetSSOCookieRequest { + r.body = &body return r } @@ -396,8 +396,8 @@ func (a *SSOCookieAPIService) internalSetSSOCookieExecute(r ApiSetSSOCookieReque localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.sSOCookie == nil { - return localVarReturnValue, nil, reportError("sSOCookie is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -418,7 +418,7 @@ func (a *SSOCookieAPIService) internalSetSSOCookieExecute(r ApiSetSSOCookieReque localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.sSOCookie + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/api_variables.go b/identitycloud/api_variables.go index 81391c5..ad9d47f 100644 --- a/identitycloud/api_variables.go +++ b/identitycloud/api_variables.go @@ -23,12 +23,12 @@ import ( type VariablesAPIService service type ApiActionVariableRequest struct { - ctx context.Context - ApiService *VariablesAPIService - variableId string - action *string - esvSetDescriptionRequest *EsvSetDescriptionRequest - acceptAPIVersion *string + ctx context.Context + ApiService *VariablesAPIService + variableId string + action *string + body *EsvSetDescriptionRequest + acceptAPIVersion *string } func (r ApiActionVariableRequest) Action(action string) ApiActionVariableRequest { @@ -37,8 +37,8 @@ func (r ApiActionVariableRequest) Action(action string) ApiActionVariableRequest } // The description of this variable -func (r ApiActionVariableRequest) EsvSetDescriptionRequest(esvSetDescriptionRequest EsvSetDescriptionRequest) ApiActionVariableRequest { - r.esvSetDescriptionRequest = &esvSetDescriptionRequest +func (r ApiActionVariableRequest) Body(body EsvSetDescriptionRequest) ApiActionVariableRequest { + r.body = &body return r } @@ -89,8 +89,8 @@ func (a *VariablesAPIService) ActionVariableExecute(r ApiActionVariableRequest) if r.action == nil { return nil, reportError("action is required and must be specified") } - if r.esvSetDescriptionRequest == nil { - return nil, reportError("esvSetDescriptionRequest is required and must be specified") + if r.body == nil { + return nil, reportError("body is required and must be specified") } parameterAddToHeaderOrQuery(localVarQueryParams, "_action", r.action, "") @@ -115,7 +115,7 @@ func (a *VariablesAPIService) ActionVariableExecute(r ApiActionVariableRequest) parameterAddToHeaderOrQuery(localVarHeaderParams, "Accept-API-Version", r.acceptAPIVersion, "") } // body params - localVarPostBody = r.esvSetDescriptionRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -164,16 +164,16 @@ func (a *VariablesAPIService) ActionVariableExecute(r ApiActionVariableRequest) } type ApiCreateVariablesRequest struct { - ctx context.Context - ApiService *VariablesAPIService - variableId string - esvVariableCreateUpdateRequest *EsvVariableCreateUpdateRequest - acceptAPIVersion *string + ctx context.Context + ApiService *VariablesAPIService + variableId string + body *EsvVariableCreateUpdateRequest + acceptAPIVersion *string } // JSON body of the new variable -func (r ApiCreateVariablesRequest) EsvVariableCreateUpdateRequest(esvVariableCreateUpdateRequest EsvVariableCreateUpdateRequest) ApiCreateVariablesRequest { - r.esvVariableCreateUpdateRequest = &esvVariableCreateUpdateRequest +func (r ApiCreateVariablesRequest) Body(body EsvVariableCreateUpdateRequest) ApiCreateVariablesRequest { + r.body = &body return r } @@ -242,8 +242,8 @@ func (a *VariablesAPIService) internalCreateVariablesExecute(r ApiCreateVariable localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.esvVariableCreateUpdateRequest == nil { - return localVarReturnValue, nil, reportError("esvVariableCreateUpdateRequest is required and must be specified") + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") } // to determine the Content-Type header @@ -267,7 +267,7 @@ func (a *VariablesAPIService) internalCreateVariablesExecute(r ApiCreateVariable parameterAddToHeaderOrQuery(localVarHeaderParams, "Accept-API-Version", r.acceptAPIVersion, "") } // body params - localVarPostBody = r.esvVariableCreateUpdateRequest + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/identitycloud/docs/CSRsAPI.md b/identitycloud/docs/CSRsAPI.md index c261a1f..4556f01 100644 --- a/identitycloud/docs/CSRsAPI.md +++ b/identitycloud/docs/CSRsAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## CreateCertificateSigningRequest -> CertificateSigningRequest CreateCertificateSigningRequest(ctx).CreateCertificateSigningRequestRequest(createCertificateSigningRequestRequest).Execute() +> CertificateSigningRequest CreateCertificateSigningRequest(ctx).Body(body).Execute() Create CSR @@ -33,11 +33,11 @@ import ( ) func main() { - createCertificateSigningRequestRequest := *openapiclient.NewCreateCertificateSigningRequestRequest() // CreateCertificateSigningRequestRequest | JSON body of the new certificate signing request + body := *openapiclient.NewCreateCertificateSigningRequestRequest() // CreateCertificateSigningRequestRequest | JSON body of the new certificate signing request configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CSRsAPI.CreateCertificateSigningRequest(context.Background()).CreateCertificateSigningRequestRequest(createCertificateSigningRequestRequest).Execute() + resp, r, err := apiClient.CSRsAPI.CreateCertificateSigningRequest(context.Background()).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CSRsAPI.CreateCertificateSigningRequest``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -58,7 +58,7 @@ Other parameters are passed through a pointer to a apiCreateCertificateSigningRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createCertificateSigningRequestRequest** | [**CreateCertificateSigningRequestRequest**](CreateCertificateSigningRequestRequest.md) | JSON body of the new certificate signing request | + **body** | [**CreateCertificateSigningRequestRequest**](CreateCertificateSigningRequestRequest.md) | JSON body of the new certificate signing request | ### Return type @@ -279,7 +279,7 @@ Other parameters are passed through a pointer to a apiGetCertificateSigningReque ## UpdateCertificateSigningRequestById -> CertificateSigningRequest UpdateCertificateSigningRequestById(ctx, id).UpdateCertificateSigningRequestRequest(updateCertificateSigningRequestRequest).Execute() +> CertificateSigningRequest UpdateCertificateSigningRequestById(ctx, id).Body(body).Execute() Update CSR by ID @@ -299,11 +299,11 @@ import ( func main() { id := "id_example" // string | ID of the certificateSigningRequest - updateCertificateSigningRequestRequest := *openapiclient.NewUpdateCertificateSigningRequestRequest("Certificate_example") // UpdateCertificateSigningRequestRequest | JSON body of the new certificate signing request + body := *openapiclient.NewUpdateCertificateSigningRequestRequest("Certificate_example") // UpdateCertificateSigningRequestRequest | JSON body of the new certificate signing request configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CSRsAPI.UpdateCertificateSigningRequestById(context.Background(), id).UpdateCertificateSigningRequestRequest(updateCertificateSigningRequestRequest).Execute() + resp, r, err := apiClient.CSRsAPI.UpdateCertificateSigningRequestById(context.Background(), id).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CSRsAPI.UpdateCertificateSigningRequestById``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -329,7 +329,7 @@ Other parameters are passed through a pointer to a apiUpdateCertificateSigningRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updateCertificateSigningRequestRequest** | [**UpdateCertificateSigningRequestRequest**](UpdateCertificateSigningRequestRequest.md) | JSON body of the new certificate signing request | + **body** | [**UpdateCertificateSigningRequestRequest**](UpdateCertificateSigningRequestRequest.md) | JSON body of the new certificate signing request | ### Return type diff --git a/identitycloud/docs/CertificatesAPI.md b/identitycloud/docs/CertificatesAPI.md index 68f8433..b6cce4c 100644 --- a/identitycloud/docs/CertificatesAPI.md +++ b/identitycloud/docs/CertificatesAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## CreateCertificate -> Certificate CreateCertificate(ctx).CreateCertificateRequest(createCertificateRequest).Execute() +> Certificate CreateCertificate(ctx).Body(body).Execute() Create certificate @@ -33,11 +33,11 @@ import ( ) func main() { - createCertificateRequest := *openapiclient.NewCreateCertificateRequest("Certificate_example", "PrivateKey_example") // CreateCertificateRequest | JSON body of the new certificate + body := *openapiclient.NewCreateCertificateRequest("Certificate_example", "PrivateKey_example") // CreateCertificateRequest | JSON body of the new certificate configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CertificatesAPI.CreateCertificate(context.Background()).CreateCertificateRequest(createCertificateRequest).Execute() + resp, r, err := apiClient.CertificatesAPI.CreateCertificate(context.Background()).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.CreateCertificate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -58,7 +58,7 @@ Other parameters are passed through a pointer to a apiCreateCertificateRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createCertificateRequest** | [**CreateCertificateRequest**](CreateCertificateRequest.md) | JSON body of the new certificate | + **body** | [**CreateCertificateRequest**](CreateCertificateRequest.md) | JSON body of the new certificate | ### Return type @@ -279,7 +279,7 @@ Other parameters are passed through a pointer to a apiGetCertificatesRequest str ## UpdateCertificateByID -> Certificate UpdateCertificateByID(ctx, id).UpdateCertificateRequest(updateCertificateRequest).Execute() +> Certificate UpdateCertificateByID(ctx, id).Body(body).Execute() Update certificate by ID @@ -299,11 +299,11 @@ import ( func main() { id := "id_example" // string | ID of the certificate resource - updateCertificateRequest := *openapiclient.NewUpdateCertificateRequest() // UpdateCertificateRequest | JSON body of the updated certificate + body := *openapiclient.NewUpdateCertificateRequest() // UpdateCertificateRequest | JSON body of the updated certificate configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CertificatesAPI.UpdateCertificateByID(context.Background(), id).UpdateCertificateRequest(updateCertificateRequest).Execute() + resp, r, err := apiClient.CertificatesAPI.UpdateCertificateByID(context.Background(), id).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.UpdateCertificateByID``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -329,7 +329,7 @@ Other parameters are passed through a pointer to a apiUpdateCertificateByIDReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updateCertificateRequest** | [**UpdateCertificateRequest**](UpdateCertificateRequest.md) | JSON body of the updated certificate | + **body** | [**UpdateCertificateRequest**](UpdateCertificateRequest.md) | JSON body of the updated certificate | ### Return type diff --git a/identitycloud/docs/ContentSecurityPolicyAPI.md b/identitycloud/docs/ContentSecurityPolicyAPI.md index 0e05f5b..3241122 100644 --- a/identitycloud/docs/ContentSecurityPolicyAPI.md +++ b/identitycloud/docs/ContentSecurityPolicyAPI.md @@ -135,7 +135,7 @@ Other parameters are passed through a pointer to a apiGetReportOnlyContentSecuri ## SetEnforcedContentSecurityPolicy -> ContentSecurityPolicy SetEnforcedContentSecurityPolicy(ctx).ContentSecurityPolicy(contentSecurityPolicy).Execute() +> ContentSecurityPolicy SetEnforcedContentSecurityPolicy(ctx).Body(body).Execute() Set enforced content security policy @@ -154,11 +154,11 @@ import ( ) func main() { - contentSecurityPolicy := *openapiclient.NewContentSecurityPolicy() // ContentSecurityPolicy | Enforced content security policy to apply to the tenant + body := *openapiclient.NewContentSecurityPolicy() // ContentSecurityPolicy | Enforced content security policy to apply to the tenant configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ContentSecurityPolicyAPI.SetEnforcedContentSecurityPolicy(context.Background()).ContentSecurityPolicy(contentSecurityPolicy).Execute() + resp, r, err := apiClient.ContentSecurityPolicyAPI.SetEnforcedContentSecurityPolicy(context.Background()).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ContentSecurityPolicyAPI.SetEnforcedContentSecurityPolicy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -179,7 +179,7 @@ Other parameters are passed through a pointer to a apiSetEnforcedContentSecurity Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **contentSecurityPolicy** | [**ContentSecurityPolicy**](ContentSecurityPolicy.md) | Enforced content security policy to apply to the tenant | + **body** | [**ContentSecurityPolicy**](ContentSecurityPolicy.md) | Enforced content security policy to apply to the tenant | ### Return type @@ -201,7 +201,7 @@ Name | Type | Description | Notes ## SetReportOnlyContentSecurityPolicy -> ContentSecurityPolicy SetReportOnlyContentSecurityPolicy(ctx).ContentSecurityPolicy(contentSecurityPolicy).Execute() +> ContentSecurityPolicy SetReportOnlyContentSecurityPolicy(ctx).Body(body).Execute() Set report-only content security policy @@ -220,11 +220,11 @@ import ( ) func main() { - contentSecurityPolicy := *openapiclient.NewContentSecurityPolicy() // ContentSecurityPolicy | Enforced content security policy to apply to the tenant + body := *openapiclient.NewContentSecurityPolicy() // ContentSecurityPolicy | Enforced content security policy to apply to the tenant configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ContentSecurityPolicyAPI.SetReportOnlyContentSecurityPolicy(context.Background()).ContentSecurityPolicy(contentSecurityPolicy).Execute() + resp, r, err := apiClient.ContentSecurityPolicyAPI.SetReportOnlyContentSecurityPolicy(context.Background()).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ContentSecurityPolicyAPI.SetReportOnlyContentSecurityPolicy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -245,7 +245,7 @@ Other parameters are passed through a pointer to a apiSetReportOnlyContentSecuri Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **contentSecurityPolicy** | [**ContentSecurityPolicy**](ContentSecurityPolicy.md) | Enforced content security policy to apply to the tenant | + **body** | [**ContentSecurityPolicy**](ContentSecurityPolicy.md) | Enforced content security policy to apply to the tenant | ### Return type diff --git a/identitycloud/docs/CookieDomainsAPI.md b/identitycloud/docs/CookieDomainsAPI.md index 07b28cf..50d4a03 100644 --- a/identitycloud/docs/CookieDomainsAPI.md +++ b/identitycloud/docs/CookieDomainsAPI.md @@ -72,7 +72,7 @@ Other parameters are passed through a pointer to a apiGetCookieDomainsRequest st ## SetCookieDomains -> CookieDomains SetCookieDomains(ctx).CookieDomains(cookieDomains).Execute() +> CookieDomains SetCookieDomains(ctx).Body(body).Execute() Set cookie domains @@ -91,11 +91,11 @@ import ( ) func main() { - cookieDomains := *openapiclient.NewCookieDomains() // CookieDomains | Cookie domains + body := *openapiclient.NewCookieDomains() // CookieDomains | Cookie domains configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CookieDomainsAPI.SetCookieDomains(context.Background()).CookieDomains(cookieDomains).Execute() + resp, r, err := apiClient.CookieDomainsAPI.SetCookieDomains(context.Background()).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CookieDomainsAPI.SetCookieDomains``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -116,7 +116,7 @@ Other parameters are passed through a pointer to a apiSetCookieDomainsRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cookieDomains** | [**CookieDomains**](CookieDomains.md) | Cookie domains | + **body** | [**CookieDomains**](CookieDomains.md) | Cookie domains | ### Return type diff --git a/identitycloud/docs/CustomDomainsAPI.md b/identitycloud/docs/CustomDomainsAPI.md index 11c62ab..ee2c7f5 100644 --- a/identitycloud/docs/CustomDomainsAPI.md +++ b/identitycloud/docs/CustomDomainsAPI.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes ## SetCustomDomains -> CustomDomains SetCustomDomains(ctx, realm).CustomDomains(customDomains).Execute() +> CustomDomains SetCustomDomains(ctx, realm).Body(body).Execute() Set custom domains @@ -102,11 +102,11 @@ import ( func main() { realm := "realm_example" // string | Realm for the domain - customDomains := *openapiclient.NewCustomDomains() // CustomDomains | Custom domains + body := *openapiclient.NewCustomDomains() // CustomDomains | Custom domains configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CustomDomainsAPI.SetCustomDomains(context.Background(), realm).CustomDomains(customDomains).Execute() + resp, r, err := apiClient.CustomDomainsAPI.SetCustomDomains(context.Background(), realm).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CustomDomainsAPI.SetCustomDomains``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -132,7 +132,7 @@ Other parameters are passed through a pointer to a apiSetCustomDomainsRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **customDomains** | [**CustomDomains**](CustomDomains.md) | Custom domains | + **body** | [**CustomDomains**](CustomDomains.md) | Custom domains | ### Return type @@ -154,7 +154,7 @@ Name | Type | Description | Notes ## VerifyCustomDomains -> VerifyCustomDomains(ctx).Action(action).CName(cName).Execute() +> VerifyCustomDomains(ctx).Action(action).Body(body).Execute() Verify a CNAME @@ -174,11 +174,11 @@ import ( func main() { action := "action_example" // string | Requested action type - cName := *openapiclient.NewCName("Name_example") // CName | Custom domain + body := *openapiclient.NewCName("Name_example") // CName | Custom domain configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CustomDomainsAPI.VerifyCustomDomains(context.Background()).Action(action).CName(cName).Execute() + r, err := apiClient.CustomDomainsAPI.VerifyCustomDomains(context.Background()).Action(action).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CustomDomainsAPI.VerifyCustomDomains``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -198,7 +198,7 @@ Other parameters are passed through a pointer to a apiVerifyCustomDomainsRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action** | **string** | Requested action type | - **cName** | [**CName**](CName.md) | Custom domain | + **body** | [**CName**](CName.md) | Custom domain | ### Return type diff --git a/identitycloud/docs/FederationEnforcementAPI.md b/identitycloud/docs/FederationEnforcementAPI.md index 468c24f..58716d3 100644 --- a/identitycloud/docs/FederationEnforcementAPI.md +++ b/identitycloud/docs/FederationEnforcementAPI.md @@ -72,7 +72,7 @@ Other parameters are passed through a pointer to a apiGetEnforcementRequest stru ## SetEnforcement -> FederationEnforcement SetEnforcement(ctx).FederationEnforcement(federationEnforcement).Execute() +> FederationEnforcement SetEnforcement(ctx).Body(body).Execute() Set enforcement of federation @@ -91,11 +91,11 @@ import ( ) func main() { - federationEnforcement := *openapiclient.NewFederationEnforcement("Groups_example") // FederationEnforcement | Enforcement settings to apply to the tenant + body := *openapiclient.NewFederationEnforcement("Groups_example") // FederationEnforcement | Enforcement settings to apply to the tenant configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.FederationEnforcementAPI.SetEnforcement(context.Background()).FederationEnforcement(federationEnforcement).Execute() + resp, r, err := apiClient.FederationEnforcementAPI.SetEnforcement(context.Background()).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FederationEnforcementAPI.SetEnforcement``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -116,7 +116,7 @@ Other parameters are passed through a pointer to a apiSetEnforcementRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **federationEnforcement** | [**FederationEnforcement**](FederationEnforcement.md) | Enforcement settings to apply to the tenant | + **body** | [**FederationEnforcement**](FederationEnforcement.md) | Enforcement settings to apply to the tenant | ### Return type diff --git a/identitycloud/docs/PromotionAPI.md b/identitycloud/docs/PromotionAPI.md index ea82f24..9f06cdf 100644 --- a/identitycloud/docs/PromotionAPI.md +++ b/identitycloud/docs/PromotionAPI.md @@ -556,7 +556,7 @@ Name | Type | Description | Notes ## Rollback -> RollbackStart Rollback(ctx).AcceptAPIVersion(acceptAPIVersion).RollbackRequest(rollbackRequest).Execute() +> RollbackStart Rollback(ctx).AcceptAPIVersion(acceptAPIVersion).Body(body).Execute() Rollback a promotion @@ -576,11 +576,11 @@ import ( func main() { acceptAPIVersion := "acceptAPIVersion_example" // string | protocol=1.0,resource=1.0 - rollbackRequest := *openapiclient.NewRollbackRequest() // RollbackRequest | A request body with info required to initiate a rollback + body := *openapiclient.NewRollbackRequest() // RollbackRequest | A request body with info required to initiate a rollback configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PromotionAPI.Rollback(context.Background()).AcceptAPIVersion(acceptAPIVersion).RollbackRequest(rollbackRequest).Execute() + resp, r, err := apiClient.PromotionAPI.Rollback(context.Background()).AcceptAPIVersion(acceptAPIVersion).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `PromotionAPI.Rollback``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -602,7 +602,7 @@ Other parameters are passed through a pointer to a apiRollbackRequest struct via Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **acceptAPIVersion** | **string** | protocol=1.0,resource=1.0 | - **rollbackRequest** | [**RollbackRequest**](RollbackRequest.md) | A request body with info required to initiate a rollback | + **body** | [**RollbackRequest**](RollbackRequest.md) | A request body with info required to initiate a rollback | ### Return type @@ -624,7 +624,7 @@ Name | Type | Description | Notes ## Start -> PromotionStart Start(ctx).AcceptAPIVersion(acceptAPIVersion).PromotionRequest(promotionRequest).Execute() +> PromotionStart Start(ctx).AcceptAPIVersion(acceptAPIVersion).Body(body).Execute() Run a promotion @@ -644,11 +644,11 @@ import ( func main() { acceptAPIVersion := "acceptAPIVersion_example" // string | protocol=1.0,resource=1.0 - promotionRequest := *openapiclient.NewPromotionRequest(false) // PromotionRequest | A request body with info required to initiate a promotion + body := *openapiclient.NewPromotionRequest(false) // PromotionRequest | A request body with info required to initiate a promotion configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PromotionAPI.Start(context.Background()).AcceptAPIVersion(acceptAPIVersion).PromotionRequest(promotionRequest).Execute() + resp, r, err := apiClient.PromotionAPI.Start(context.Background()).AcceptAPIVersion(acceptAPIVersion).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `PromotionAPI.Start``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -670,7 +670,7 @@ Other parameters are passed through a pointer to a apiStartRequest struct via th Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **acceptAPIVersion** | **string** | protocol=1.0,resource=1.0 | - **promotionRequest** | [**PromotionRequest**](PromotionRequest.md) | A request body with info required to initiate a promotion | + **body** | [**PromotionRequest**](PromotionRequest.md) | A request body with info required to initiate a promotion | ### Return type diff --git a/identitycloud/docs/SSOCookieAPI.md b/identitycloud/docs/SSOCookieAPI.md index e094db1..ab0a30c 100644 --- a/identitycloud/docs/SSOCookieAPI.md +++ b/identitycloud/docs/SSOCookieAPI.md @@ -139,7 +139,7 @@ Name | Type | Description | Notes ## SetSSOCookie -> SSOCookie SetSSOCookie(ctx).SSOCookie(sSOCookie).Execute() +> SSOCookie SetSSOCookie(ctx).Body(body).Execute() Set SSO cookie configuration @@ -158,11 +158,11 @@ import ( ) func main() { - sSOCookie := *openapiclient.NewSSOCookie("Name_example") // SSOCookie | SSO cookie configuration to apply to the tenant + body := *openapiclient.NewSSOCookie("Name_example") // SSOCookie | SSO cookie configuration to apply to the tenant configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SSOCookieAPI.SetSSOCookie(context.Background()).SSOCookie(sSOCookie).Execute() + resp, r, err := apiClient.SSOCookieAPI.SetSSOCookie(context.Background()).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SSOCookieAPI.SetSSOCookie``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -183,7 +183,7 @@ Other parameters are passed through a pointer to a apiSetSSOCookieRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sSOCookie** | [**SSOCookie**](SSOCookie.md) | SSO cookie configuration to apply to the tenant | + **body** | [**SSOCookie**](SSOCookie.md) | SSO cookie configuration to apply to the tenant | ### Return type diff --git a/identitycloud/docs/SecretsAPI.md b/identitycloud/docs/SecretsAPI.md index 18f3a3a..9b6aa59 100644 --- a/identitycloud/docs/SecretsAPI.md +++ b/identitycloud/docs/SecretsAPI.md @@ -19,7 +19,7 @@ Method | HTTP request | Description ## ActionSecret -> ActionSecret(ctx, secretId).Action(action).EsvSetDescriptionRequest(esvSetDescriptionRequest).Execute() +> ActionSecret(ctx, secretId).Action(action).Body(body).Execute() Set a secret description @@ -38,11 +38,11 @@ import ( func main() { secretId := "secretId_example" // string | ID of the secret action := "action_example" // string | - esvSetDescriptionRequest := *openapiclient.NewEsvSetDescriptionRequest("My secret") // EsvSetDescriptionRequest | The description of this secret + body := *openapiclient.NewEsvSetDescriptionRequest("My secret") // EsvSetDescriptionRequest | The description of this secret configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.SecretsAPI.ActionSecret(context.Background(), secretId).Action(action).EsvSetDescriptionRequest(esvSetDescriptionRequest).Execute() + r, err := apiClient.SecretsAPI.ActionSecret(context.Background(), secretId).Action(action).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.ActionSecret``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -67,7 +67,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action** | **string** | | - **esvSetDescriptionRequest** | [**EsvSetDescriptionRequest**](EsvSetDescriptionRequest.md) | The description of this secret | + **body** | [**EsvSetDescriptionRequest**](EsvSetDescriptionRequest.md) | The description of this secret | ### Return type @@ -89,7 +89,7 @@ Name | Type | Description | Notes ## ChangeSecretVersion -> EsvSecretVersionResponse ChangeSecretVersion(ctx, secretId, versionId).Action(action).EsvSecretVersionStatusRequest(esvSecretVersionStatusRequest).AcceptAPIVersion(acceptAPIVersion).Execute() +> EsvSecretVersionResponse ChangeSecretVersion(ctx, secretId, versionId).Action(action).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() Update the status of a version of a secret @@ -111,12 +111,12 @@ func main() { action := "action_example" // string | Can only be changestatus secretId := "secretId_example" // string | ID of the secret versionId := "versionId_example" // string | ID of the secret version - esvSecretVersionStatusRequest := *openapiclient.NewEsvSecretVersionStatusRequest("DISABLED") // EsvSecretVersionStatusRequest | JSON body of the new status of the secret version + body := *openapiclient.NewEsvSecretVersionStatusRequest("DISABLED") // EsvSecretVersionStatusRequest | JSON body of the new status of the secret version acceptAPIVersion := "acceptAPIVersion_example" // string | resource=2.0 (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SecretsAPI.ChangeSecretVersion(context.Background(), secretId, versionId).Action(action).EsvSecretVersionStatusRequest(esvSecretVersionStatusRequest).AcceptAPIVersion(acceptAPIVersion).Execute() + resp, r, err := apiClient.SecretsAPI.ChangeSecretVersion(context.Background(), secretId, versionId).Action(action).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.ChangeSecretVersion``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -145,7 +145,7 @@ Name | Type | Description | Notes **action** | **string** | Can only be changestatus | - **esvSecretVersionStatusRequest** | [**EsvSecretVersionStatusRequest**](EsvSecretVersionStatusRequest.md) | JSON body of the new status of the secret version | + **body** | [**EsvSecretVersionStatusRequest**](EsvSecretVersionStatusRequest.md) | JSON body of the new status of the secret version | **acceptAPIVersion** | **string** | resource=2.0 | ### Return type @@ -168,7 +168,7 @@ Name | Type | Description | Notes ## CreateSecret -> EsvSecretResponse CreateSecret(ctx, secretId).EsvSecretCreateRequest(esvSecretCreateRequest).AcceptAPIVersion(acceptAPIVersion).Execute() +> EsvSecretResponse CreateSecret(ctx, secretId).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() Create a secret @@ -188,12 +188,12 @@ import ( func main() { secretId := "secretId_example" // string | ID of the secret - esvSecretCreateRequest := *openapiclient.NewEsvSecretCreateRequest("generic", false, string([B@5be067de)) // EsvSecretCreateRequest | JSON body of the new secret + body := *openapiclient.NewEsvSecretCreateRequest("generic", false, string([B@5be067de)) // EsvSecretCreateRequest | JSON body of the new secret acceptAPIVersion := "acceptAPIVersion_example" // string | resource=2.0 (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SecretsAPI.CreateSecret(context.Background(), secretId).EsvSecretCreateRequest(esvSecretCreateRequest).AcceptAPIVersion(acceptAPIVersion).Execute() + resp, r, err := apiClient.SecretsAPI.CreateSecret(context.Background(), secretId).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.CreateSecret``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -219,7 +219,7 @@ Other parameters are passed through a pointer to a apiCreateSecretRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **esvSecretCreateRequest** | [**EsvSecretCreateRequest**](EsvSecretCreateRequest.md) | JSON body of the new secret | + **body** | [**EsvSecretCreateRequest**](EsvSecretCreateRequest.md) | JSON body of the new secret | **acceptAPIVersion** | **string** | resource=2.0 | ### Return type @@ -242,7 +242,7 @@ Name | Type | Description | Notes ## CreateSecretVersion -> EsvSecretVersionResponse CreateSecretVersion(ctx, secretId).Action(action).EsvSecretVersionCreateRequest(esvSecretVersionCreateRequest).AcceptAPIVersion(acceptAPIVersion).Execute() +> EsvSecretVersionResponse CreateSecretVersion(ctx, secretId).Action(action).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() Create a new version of a secret @@ -261,12 +261,12 @@ import ( func main() { action := "action_example" // string | Can only be create secretId := "secretId_example" // string | ID of the secret - esvSecretVersionCreateRequest := *openapiclient.NewEsvSecretVersionCreateRequest(string([B@7383eae2)) // EsvSecretVersionCreateRequest | JSON body of the new secret version + body := *openapiclient.NewEsvSecretVersionCreateRequest(string([B@7383eae2)) // EsvSecretVersionCreateRequest | JSON body of the new secret version acceptAPIVersion := "acceptAPIVersion_example" // string | resource=2.0 (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SecretsAPI.CreateSecretVersion(context.Background(), secretId).Action(action).EsvSecretVersionCreateRequest(esvSecretVersionCreateRequest).AcceptAPIVersion(acceptAPIVersion).Execute() + resp, r, err := apiClient.SecretsAPI.CreateSecretVersion(context.Background(), secretId).Action(action).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.CreateSecretVersion``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -293,7 +293,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action** | **string** | Can only be create | - **esvSecretVersionCreateRequest** | [**EsvSecretVersionCreateRequest**](EsvSecretVersionCreateRequest.md) | JSON body of the new secret version | + **body** | [**EsvSecretVersionCreateRequest**](EsvSecretVersionCreateRequest.md) | JSON body of the new secret version | **acceptAPIVersion** | **string** | resource=2.0 | ### Return type diff --git a/identitycloud/docs/VariablesAPI.md b/identitycloud/docs/VariablesAPI.md index fbe70ca..46b3a91 100644 --- a/identitycloud/docs/VariablesAPI.md +++ b/identitycloud/docs/VariablesAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## ActionVariable -> ActionVariable(ctx, variableId).Action(action).EsvSetDescriptionRequest(esvSetDescriptionRequest).AcceptAPIVersion(acceptAPIVersion).Execute() +> ActionVariable(ctx, variableId).Action(action).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() Set a variable description @@ -33,12 +33,12 @@ import ( func main() { variableId := "variableId_example" // string | ID of the variable action := "action_example" // string | - esvSetDescriptionRequest := *openapiclient.NewEsvSetDescriptionRequest("My secret") // EsvSetDescriptionRequest | The description of this variable + body := *openapiclient.NewEsvSetDescriptionRequest("My secret") // EsvSetDescriptionRequest | The description of this variable acceptAPIVersion := "acceptAPIVersion_example" // string | resource=2.0 (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VariablesAPI.ActionVariable(context.Background(), variableId).Action(action).EsvSetDescriptionRequest(esvSetDescriptionRequest).AcceptAPIVersion(acceptAPIVersion).Execute() + r, err := apiClient.VariablesAPI.ActionVariable(context.Background(), variableId).Action(action).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VariablesAPI.ActionVariable``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -63,7 +63,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action** | **string** | | - **esvSetDescriptionRequest** | [**EsvSetDescriptionRequest**](EsvSetDescriptionRequest.md) | The description of this variable | + **body** | [**EsvSetDescriptionRequest**](EsvSetDescriptionRequest.md) | The description of this variable | **acceptAPIVersion** | **string** | resource=2.0 | ### Return type @@ -86,7 +86,7 @@ Name | Type | Description | Notes ## CreateVariables -> EsvVariableResponse CreateVariables(ctx, variableId).EsvVariableCreateUpdateRequest(esvVariableCreateUpdateRequest).AcceptAPIVersion(acceptAPIVersion).Execute() +> EsvVariableResponse CreateVariables(ctx, variableId).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() Create or update a variable @@ -106,12 +106,12 @@ import ( func main() { variableId := "variableId_example" // string | ID of the variable - esvVariableCreateUpdateRequest := *openapiclient.NewEsvVariableCreateUpdateRequest(string([B@18245eb0)) // EsvVariableCreateUpdateRequest | JSON body of the new variable + body := *openapiclient.NewEsvVariableCreateUpdateRequest(string([B@18245eb0)) // EsvVariableCreateUpdateRequest | JSON body of the new variable acceptAPIVersion := "acceptAPIVersion_example" // string | resource=2.0 (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VariablesAPI.CreateVariables(context.Background(), variableId).EsvVariableCreateUpdateRequest(esvVariableCreateUpdateRequest).AcceptAPIVersion(acceptAPIVersion).Execute() + resp, r, err := apiClient.VariablesAPI.CreateVariables(context.Background(), variableId).Body(body).AcceptAPIVersion(acceptAPIVersion).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VariablesAPI.CreateVariables``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -137,7 +137,7 @@ Other parameters are passed through a pointer to a apiCreateVariablesRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **esvVariableCreateUpdateRequest** | [**EsvVariableCreateUpdateRequest**](EsvVariableCreateUpdateRequest.md) | JSON body of the new variable | + **body** | [**EsvVariableCreateUpdateRequest**](EsvVariableCreateUpdateRequest.md) | JSON body of the new variable | **acceptAPIVersion** | **string** | resource=2.0 | ### Return type diff --git a/spec/openapi.json b/spec/openapi.json index ea70370..8c707cf 100644 --- a/spec/openapi.json +++ b/spec/openapi.json @@ -203,6 +203,7 @@ "post": { "description": "Upload a new certificate to the tenant.", "operationId": "createCertificate", + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -669,6 +670,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -966,6 +968,7 @@ "put": { "description": "Specify enforced content security policy", "operationId": "setEnforcedContentSecurityPolicy", + "x-codegen-request-body-name": "body", "requestBody": { "$ref": "#/components/requestBodies/ContentSecurityPolicy" }, @@ -1224,6 +1227,7 @@ "put": { "description": "Specify report-only content security policy", "operationId": "setReportOnlyContentSecurityPolicy", + "x-codegen-request-body-name": "body", "requestBody": { "$ref": "#/components/requestBodies/ContentSecurityPolicy" }, @@ -1506,6 +1510,7 @@ "put": { "description": "Specify cookie domains", "operationId": "setCookieDomains", + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -1856,6 +1861,7 @@ "post": { "description": "Create a new certificate signing request", "operationId": "createCertificateSigningRequest", + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -2298,6 +2304,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -2491,6 +2498,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -2787,6 +2795,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -3036,6 +3045,7 @@ "put": { "description": "Specify which admin groups are required to use federation", "operationId": "setEnforcement", + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -3609,6 +3619,7 @@ "$ref": "#/components/parameters/apiVersion" } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -4201,6 +4212,7 @@ "$ref": "#/components/parameters/apiVersion" } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -4691,6 +4703,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -4774,6 +4787,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -4957,6 +4971,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -5245,6 +5260,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -5571,6 +5587,7 @@ "put": { "description": "Specify SSO cookie configuration", "operationId": "setSSOCookie", + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -6136,6 +6153,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": { @@ -6219,6 +6237,7 @@ } } ], + "x-codegen-request-body-name": "body", "requestBody": { "content": { "application/json": {